Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Optimizer

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

    Strategy Optimizer

    I've read through the docs on the Strategy Optimizer and and wonder how to add my custom set of strategy parameters to the strategy.

    RE: https://ninjatrader.com/support/help...a_strategy.htm

    For instance, I'd like to be able to optimize the length supplied to a moving average relative to price to see which works best with the particular strategy.

    Please advise.

    - chasebank

    #2
    Hello chasebank,

    Thanks for your post and welcome to the NinjaTrader forums!

    To optimize a parameter you would need to create it as a user input to the strategy.

    You can certainly create an input for the moving average period that you can then run in the optimizer.

    In your Ninjatrader is an example of a strategy that uses two moving averages and it has two inputs for the periods of the moving averages. The strategy is called SampleMACrossover that you can test as well as review the code of.

    Comment


      #3
      Thanks, Paul. I'll have a look this morning.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      71 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      41 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      109 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      188 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      171 views
      0 likes
      Last Post CarlTrading  
      Working...
      X