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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X