Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Optimizing Indicator Parameter Settings for highest RSquared (not Strategy P/L)

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

    Optimizing Indicator Parameter Settings for highest RSquared (not Strategy P/L)

    Hi,

    I am building an indicator, and i want to optimize its parameters, to get the highest output of a signal.(not optimize based on strategy results)

    Is it possible to optimize the indicator parameters, for a specific signal output? rather than optimize the a Strategy P/L?

    Any help appreciated, thanks.
    Last edited by yertle; 06-11-2024, 05:40 PM.

    #2
    Hello yertle,

    I wanted to clarify your use of optimize here, are you asking to use the strategy analyzer tool to optimize an indicator parameter for an indicator that your strategy is using?

    Comment


      #3
      yeah, I dont have a strategy as yet, right now i'm building the indicator.
      But it has several parameters, like ema periods that i can adjust.

      and i want to use R^2 to figure out which parameter settings are the closest fit to the 1 minute data.

      Is there an existing approach for this?

      Comment


        #4
        Hello yertle,

        Besides just changing your parameters and reloading the indicator to see the result there would not be a way to optimize an indicator directly. The optimizer that comes with NinjaTrader is strictly for strategies, a strategy would need to place trades for its performance to be calculated and to have the optimized results displayed.

        For this type of situation you would have to make your indicator work in general and ensure it has some user inputs to control the values you wanted to optimize. Then make a simple strategy that uses the indicator in whatever way you will end up using it. After doing that you could make user inputs in the strategy and pass those values to the indicator so when the optimizer is optimizing the strategies parameters it is instead changing the indicators parameters. A simple example of this would be the SampleMACrossOver strategy, its fast and slow inputs are passed to the SMA indicators it uses.

        Comment


          #5
          ok, it sounds like i need to build something that iterates over the indicator

          Thanks for the info..

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          672 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          379 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          111 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          577 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          582 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X