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.
    Paul H.NinjaTrader Customer Service

    Comment


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

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Taddypole, 04-26-2024, 02:47 PM
      5 responses
      31 views
      0 likes
      Last Post eDanny
      by eDanny
       
      Started by kujista, 04-23-2024, 06:23 AM
      6 responses
      44 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by giulyko00, 04-24-2024, 12:03 PM
      7 responses
      32 views
      0 likes
      Last Post eDanny
      by eDanny
       
      Started by NM_eFe, Today, 10:13 AM
      0 responses
      5 views
      0 likes
      Last Post NM_eFe
      by NM_eFe
       
      Started by hdge4u, Yesterday, 12:23 PM
      1 response
      10 views
      0 likes
      Last Post hdge4u
      by hdge4u
       
      Working...
      X