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

Multi-Instrument, Initialization

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

    Multi-Instrument, Initialization

    1. Am making a Multi-instrument strategy, to basically Alert me upon certain conditions (but not actually make trades).
    This works fine (compiles, runs, gives alerts) UNLESS, I add any currencies, ie :
    //Add("EURUSD", PeriodType.Range, 4); // 4
    //Add("GBPUSD", PeriodType.Range, 4); // 4
    //Add("USDCHF", PeriodType.Range, 4); // 4
    If any of the above are un-commented, then when I try to add any strategies (from ControlCenter/Strategies/NewStrategy)
    the entire popup window to add-strategy is empty. If I re-comment the instrument, it is again available to run.

    2. Also on the multi-instrument strategy; all my Add(instrument)s are done with Range bars. If I've
    stopped/edited/recompiled/restarted the strategy, can it somehow get access to the range bars which -precede- the
    restart? I know the data is available, since I'm watching it on Charts with range bars.

    3. Initialization question - when I do 'Strategies/<right-click>/NewStrategy', it looks like the Initialization function for < All strategies I've ever written> get run, rather than just the init function for the strategy I'm adding getting run. Is this the expected behavior?

    Thanks,
    Bruce.

    #2
    Forex instruments require $.

    $EURUSD

    2. I am not sure what you mean. As you restart your strategy it recalculates from the beginning of your data.

    3. Yes, Initialize() triggers for all strategies.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cencored, 03-31-2016, 05:09 PM
    9 responses
    2,454 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by Human#102, 05-08-2024, 09:54 AM
    3 responses
    16 views
    0 likes
    Last Post Human#102  
    Started by ETFVoyageur, Today, 06:11 AM
    0 responses
    5 views
    0 likes
    Last Post ETFVoyageur  
    Started by James650, 05-07-2024, 08:25 AM
    2 responses
    8 views
    0 likes
    Last Post James650  
    Started by ssijbabu, 10-07-2012, 07:10 AM
    7 responses
    4,466 views
    0 likes
    Last Post alex@n
    by alex@n
     
    Working...
    X