• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AddDataSeries() does not seem to load other instruments.

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

    AddDataSeries() does not seem to load other instruments.

    Trying to do the following and discovering that the only DataSeries available is the primary. From looking at the manual, it is my understanding that this should add these other indexes using the same PeriodType as the primary DataSeries. What am I missing?

    Code:
      else if (State == State.DataLoaded)
                {
                    AddDataSeries("^UVOL");
                    AddDataSeries("^DVOL");
                    AddDataSeries("^NUPV");
                    AddDataSeries("^NDNV");     
                }
    Following only shows the primary.
    Code:
                for (int var = 0; var < BarsArray.Count(); var++)
                {
                    Print(var + ": " + BarsArray[0].Instrument);
                }

    #2
    I actually see my problem now, but did not get an error message until I added specific BarsPeriodType for each added series.

    This must be in the State.Configure.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NT-Roland, Today, 04:36 PM
    0 responses
    2 views
    0 likes
    Last Post NT-Roland  
    Started by Newtrader101, Today, 03:40 PM
    2 responses
    10 views
    0 likes
    Last Post Newtrader101  
    Started by Branpo, Today, 02:58 PM
    2 responses
    7 views
    0 likes
    Last Post Branpo
    by Branpo
     
    Started by sdauteuil, Today, 02:09 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by AMATX, Today, 02:19 PM
    2 responses
    11 views
    0 likes
    Last Post AMATX
    by AMATX
     
    Working...
    X