Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategies for multiple instruments

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

    Strategies for multiple instruments

    Dear experts,

    in strategies running as backtest for more than one instrument (like for all of the S&P 500 shares):

    Where do I have to place a condition which compare the ticker-symbol for what the strategy is currently running for to values in a pre-defined list using StreamReader?
    Is intialize() the appropriate method for it and will this method called again for every instrument?

    In the resultscreen of a backtest I won't have symbols in the grid who are excluded by a strategy.
    How can I programmatically delete rows in the resultgrid?

    And last question...Is it possible to alter a strategy-script using visual studio?
    I tried this but had no intellisense for elements in the 'NinjaTrader' namespace.

    Thanks for your help in advance,
    Mho

    #2
    Mho, thanks for the post - first of all you could unfortunately not access the resulting Strategy Analyzer grid programmatically.

    What we would support in terms of VS integration would be using it's more detailed debug capabilities through a debug DLL the NS edtor would support working with - http://www.ninjatrader.com/support/h..._debugging.htm

    It would try putting your statement in OnStartUp() instead as Initialize() could get called multiple times and OnStartUp() would be called once after Initialize() but before the first OnBarUpdate() call then.

    Good luck,

    Comment


      #3
      Originally posted by mho792 View Post
      And last question...Is it possible to alter a strategy-script using visual studio?
      I tried this but had no intellisense for elements in the 'NinjaTrader' namespace.
      You can alter a NinjaTrader strategy or Indicator using Visual Studio (or any editing program) but you must be careful to reopen it with NinjaTrader after writing your changes out from Visual Studio. And the file must be compiled from within NinjaTrader.

      Unfortunately, I haven't figured out how to get Visual Studio to recognize NinjaTrader's intellisense info. I suspect there's a way to do it but I haven't sent the time to figure it out if it is possible.

      Comment

      Latest Posts

      Collapse

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