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.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Jeremytang, 07-14-2018, 06:45 PM
    21 responses
    439 views
    0 likes
    Last Post mav8rick  
    Started by LeonK, Yesterday, 09:26 PM
    1 response
    7 views
    0 likes
    Last Post bltdavid  
    Started by NicholasJoannette, Yesterday, 03:01 PM
    2 responses
    11 views
    0 likes
    Last Post NicholasJoannette  
    Started by rach1994, Yesterday, 12:20 PM
    1 response
    35 views
    0 likes
    Last Post bltdavid  
    Started by litamm89, Yesterday, 11:00 AM
    5 responses
    21 views
    1 like
    Last Post rafael_delima86  
    Working...
    X