Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Development and Strategy Analyzer

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

    Strategy Development and Strategy Analyzer

    I created a Strategy and it works as programmed.
    I have a variable that is a double. When I go into Strategy Analyzer and run Optimization and
    I want to optimize the value of the variable that is a double, in Strategy Analyzer I can't set it below the
    integer one. I tried setting the Minimum to, lets say .5, and Strategy Analyzer sets it to 1. I can set the
    Maximum to a decimal, say 1.2. I would like to be able to use a Minimum below 1.

    How can I get this to work?

    Thanks.

    #2
    Hello ATMtrader0001,

    Thank you for your post.

    If you open the strategy in the Strategy Builder, on the Inputs and Variables screen, what is listed as the Min value for the variable? By default the minimum value for a double when you create it in the Strategy Builder is 1. If you wish to be able to input a decimal smaller than 1, the minimum value would need to be changed to something smaller, like a negative value, for instance. Note that changing the default will force you to remove all references to the variable in your script before it may be changed.

    Please let us know if we may be of further assistance to you.

    Comment


      #3
      NM. I made a mistake and put 1 as the Min value in the Region declaration.

      All good now.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      45 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      21 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      31 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 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