Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 Kaledus, Today, 01:29 PM
    0 responses
    3 views
    0 likes
    Last Post Kaledus
    by Kaledus
     
    Started by PaulMohn, Today, 12:36 PM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by yertle, Yesterday, 08:38 AM
    8 responses
    36 views
    0 likes
    Last Post ryjoga
    by ryjoga
     
    Started by rdtdale, Today, 01:02 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by alifarahani, Today, 09:40 AM
    3 responses
    18 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X