Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple DataSeries 's''s

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

    Multiple DataSeries 's''s

    I added a second DataSeries in State.Configure: AddDataSeries(BarsPeriodType.Second, 1);
    I'm also using the BuySellVolume indicator added as: private BuySellVolume BuySellVolume1;
    This collects the Close value in State.DataLoaded: BuySellVolume1 = BuySellVolume(Close);

    Now I have a variable that needs the value 1 bar ago so I use: myCoolVar = BuySellVolume1.Buyss[2][1];

    I have an error: BuySellVolume does not contain a definition for Buyss...

    What am I doing wrong guys?
    Last edited by Bluebeep; 08-26-2019, 07:31 AM. Reason: Fixing some speeling mistakes

    #2
    Hello Bluebeep,

    Thanks for your message.

    The indicator will only use one data series unless the indicator adds the additional data series. Additional plots also would not be added unless added in the indicator.

    I believe what you would like to do is instantiate the indicator against the added data series. For example: BuySellVolume1 = BuySellVolume(Closes[1]); The indicator would then be referenced as normal, but the plots will be based off of the secondary data series.

    Please let me know if I can be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    79 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X