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 Segwin, 05-07-2018, 02:15 PM
    14 responses
    1,788 views
    0 likes
    Last Post aligator  
    Started by Jimmyk, 01-26-2018, 05:19 AM
    6 responses
    837 views
    0 likes
    Last Post emuns
    by emuns
     
    Started by jxs_xrj, 01-12-2020, 09:49 AM
    6 responses
    3,293 views
    1 like
    Last Post jgualdronc  
    Started by Touch-Ups, Today, 10:36 AM
    0 responses
    13 views
    0 likes
    Last Post Touch-Ups  
    Started by geddyisodin, 04-25-2024, 05:20 AM
    11 responses
    63 views
    0 likes
    Last Post halgo_boulder  
    Working...
    X