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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    80 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X