Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using Add method in Initilise section of multitimeframe

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

    Using Add method in Initilise section of multitimeframe

    Hello is it possible to get a work around for this.
    Ninja complains that BarsArray cannot be used in the Initilise section.

    I want to add an indicator to my chart using market data from another timeframe for that indicator.

    I was trying the following:

    HTFA = VarianceImbalance3(BarsArray[1]);
    Add(HTFA);


    However ninja script don't like it. Any work around ideas?

    #2
    Hello richa61416,

    Thank you for writing in.

    Any chart indicators added in Initialize() to plot on the char will rely on the primary series; you cannot pass a different series to it.

    I would suggest taking a look at this reference post on information of how you can have your strategy generate values based on a secondary series that a dummy indicator can plot instead: http://ninjatrader.com/support/forum...ead.php?t=6651

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    569 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    548 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X