Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to preset values in the strategy script for the optimization min, max, increment

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

    How to preset values in the strategy script for the optimization min, max, increment

    Can I set the values that appear in the Strategy Analyzer properties panel for Property min, max and increment, via script in the Strategy?

    It seems I am constantly resetting these values if I go from SA Optimization to Backtest and back.

    Thanks

    #2
    adamus, unfortunately you can't programmatically set those properties.

    Comment


      #3
      Can you put that on the list of requested enhancements?

      I find that changing the value of the variable for the optimization property via script in the Initialize or OnStartUp event mucks up the defaults I save on the Properties panel.

      Comment


        #4
        Sure adamus, I'll forward it as enhancement suggestion.

        Comment


          #5
          That would be cool.

          If anybody wonders why, it's because I have to hardcode the value of the optimization parameter so that I don't get it wrong when I actually set up the Strategy to trade. Plus other reasons.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          47 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          23 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          33 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          51 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          42 views
          0 likes
          Last Post CarlTrading  
          Working...
          X