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 Aviram Y, Today, 05:29 AM
      4 responses
      11 views
      0 likes
      Last Post Aviram Y  
      Started by algospoke, 04-17-2024, 06:40 PM
      3 responses
      27 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by bmartz, 03-12-2024, 06:12 AM
      3 responses
      30 views
      0 likes
      Last Post NinjaTrader_Zachary  
      Started by gentlebenthebear, Today, 01:30 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by cls71, Today, 04:45 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X