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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    63 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    139 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X