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

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 PeakTry, Today, 10:49 AM
    0 responses
    2 views
    0 likes
    Last Post PeakTry
    by PeakTry
     
    Started by llanqui, Today, 10:32 AM
    0 responses
    4 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by StockTrader88, 03-06-2021, 08:58 AM
    45 responses
    3,992 views
    3 likes
    Last Post johntraderuser2  
    Started by TAJTrades, Today, 09:46 AM
    0 responses
    8 views
    0 likes
    Last Post TAJTrades  
    Started by rhyminkevin, Yesterday, 04:58 PM
    5 responses
    62 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Working...
    X