Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Understanding AddDataSeries

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Understanding AddDataSeries

    I created some logic to read from a 10 minute chart and display on a volume 1000 chart.


    else if (State == State.Configure)
    {

    AddDataSeries(Data.BarsPeriodType.Minute, 10);

    }


    OnbarUpdate


    if (BarsInProgress == 1)
    {
    //do my calcuations
    }

    Now this is my error

    2018-04-22 21:46:17:047 Cbi.Instrument.RequestBars (to Provider): instrument='NQ 06-18' from='4/22/2018 12:00:00 AM' to='4/22/2018 12:00:00 AM' period='1 Minute'
    2018-04-22 21:46:17:828 ERROR: Indicator 'MyIndicator': Error on calling 'OnBarUpdate' method on bar 7097: Object reference not set to an instance of an object.

    How can this be on a 1000 volume chart AND the add data series is 10 minutes?
    If I change the Dataseries to 15 minues, 30 minutes or 60 minutes it will work.

    #2
    Hello ballboy11,

    Thank you for your note.

    If you open a NQ ##-## volume chart and right click on the chart>Data Series and set bars to load to 50, OK. How far is the chart built back? For example March 1 2018.

    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by sjsj2732, Yesterday, 04:31 AM
    0 responses
    26 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    283 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    280 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    131 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    90 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X