Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Programmatically run Strategy Analyzer multiple times

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

    Programmatically run Strategy Analyzer multiple times

    Hello,
    Is there a way to programmatically run the Strategy Analyzer multiple times?

    I have 40 strategies for 40 stocks. Right now I have to manually pair the SA Strategy drop down and the Symbol, then update the To Date to be today (all other parameters i've saved so no need to change them), then click Backtest. I need to do this every day in order to get the performance per day.

    Is there a way to programmatically loop through that?

    Or is there some other part of NT that I could use to do this?

    I have tried a scripting language but it's not very reliable and the To Date still requires manual input because it's Windows Handle is not unique.

    I don't see any other posts about this nor any functions in the Language Reference.

    BTW, one might ask, why loop through SA so quickly. Well each strategy outputs By Bar data which I then aggregate to get the portfolio equity curve. Is there a better way to do this?

    Thanks

    #2
    Hello sajosh,
    Thanks for your note.
    Unfortunately there are no way to loop through the strategies. You can however backtest a list of instrument.

    Create a list of instrument you want to backtest. Please refer to our help guide to know more http://www.ninjatrader.com/support/h...ment_lists.htm
    Select the list in the Strategy Analyzer and backtest it (see attached screenshot)
    Last edited by NinjaTrader_Joydeep; 12-06-2012, 09:50 AM.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Originally posted by sajosh View Post
      Hello,
      Is there a way to programmatically run the Strategy Analyzer multiple times?

      I have 40 strategies for 40 stocks. Right now I have to manually pair the SA Strategy drop down and the Symbol, then update the To Date to be today (all other parameters i've saved so no need to change them), then click Backtest. I need to do this every day in order to get the performance per day.

      Is there a way to programmatically loop through that?

      Or is there some other part of NT that I could use to do this?

      I have tried a scripting language but it's not very reliable and the To Date still requires manual input because it's Windows Handle is not unique.

      I don't see any other posts about this nor any functions in the Language Reference.

      BTW, one might ask, why loop through SA so quickly. Well each strategy outputs By Bar data which I then aggregate to get the portfolio equity curve. Is there a better way to do this?

      Thanks
      Why not just put the instruments in a list, and run the backtest on the list?

      Comment


        #4
        Hi Koganam,
        Can I do that when it's a 1 for 1 relationship? One strategy for each symbol.

        What you say would work if i had one strategy for 40 symbols.

        Right? Am I off?

        Regards.

        Comment


          #5
          Originally posted by sajosh View Post
          Hi Koganam,
          Can I do that when it's a 1 for 1 relationship? One strategy for each symbol.

          What you say would work if i had one strategy for 40 symbols.

          Right? Am I off?

          Regards.
          You mean you have 40 different strategies, each tied to one different instrument, on a one-to-one basis?

          If so, then using a list cannot work. A list will run a single strategy against all the members of the list.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by PaulMohn, Today, 03:49 AM
          0 responses
          4 views
          0 likes
          Last Post PaulMohn  
          Started by inanazsocial, Today, 01:15 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Jason  
          Started by rocketman7, Today, 02:12 AM
          0 responses
          10 views
          0 likes
          Last Post rocketman7  
          Started by dustydbayer, Today, 01:59 AM
          0 responses
          2 views
          0 likes
          Last Post dustydbayer  
          Started by trilliantrader, 04-18-2024, 08:16 AM
          5 responses
          23 views
          0 likes
          Last Post trilliantrader  
          Working...
          X