Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

optimizing plots parameters of indicator on strategy analyzer

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

    optimizing plots parameters of indicator on strategy analyzer

    Hi,
    is it possible to optimize the plots of an indicator to be able to change them on the strategy analyzer?
    i have a simple strategy that attaches a limit order to an indicator by plot, i want to be able to optimi​ze and change the ceratin plots on the strategy analyzer.
    thanks!

    Attached Files

    #2
    Hello garmiza234,

    Thank you for your post.

    The answer depends on what about your plots you would like to optimize. An optimization allows you to test a range of input values; if you set up your plots to be calculated/selected based on some piece of user input, then that input value could be optimized and the Strategy Analyzer results would show you the different possible outcomes of the orders when attached to the plot that changes based on the range of user input values to optimize.

    For example, the Sample MA Crossover strategy that comes with NinjaTrader uses inputs for the Fast and Slow periods of the SMAs used. You may choose to optimize one or both of those Fast and/or Slow values and that will affect the outcome of the optimization. It appears you are using the Strategy Builder to build your strategy with the LifeTime VWAP Strips indicator as the value for an order. You mentioned you, "want to be able to optimi​ze and change the ceratin plots on the strategy analyzer." What about the plots do you want to change? Are you looking to change which plot from the indicator in your screenshot is being used? Or to change a value set up in the indicator properties based on an input? Please provide more details and an example of what you would like to change so I may better understand and assist you.

    I look forward to your reply.

    Comment


      #3
      Hi Emily thank you for the response,
      to be clear, i want to be able to change whice plot the indicator meantioned is being used, through the strategy analyzer.
      for example in the image the current plot is "Strip_0_75_high", i want to be able to change that to any other plot thats in that list.
      thanks!
      Last edited by garmiza234; 08-15-2023, 11:15 AM.

      Comment


        #4
        Hello garmiza234,

        Thank you for your reply.

        Due to the way the builder is designed and certain limitations, this would not be possible with the Strategy Builder. This should, however, be possible using an unlocked strategy in the NinjaScript Editor. You could take a similar approach to the SampleUniversalMovingAverage indicator and instead create a user-defined enum parameter that determines which plot of the indicator is used. Then, you would add the NinjaScriptProperty attribute to the property so that it appears in the Strategy Analyzer as an optimizable parameter. This would come up as a checkbox where you may check the different enum possibilities (plot types) you would like to optimize and it will run through the optimization using the different possible plot selections. Here are links to that reference sample and the NinjaScriptProperty attribute help guide page:Please let me know if I may be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        65 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        139 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        75 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        50 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X