Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Set parameters Min.Value and Max.Value in strategy

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

    Set parameters Min.Value and Max.Value in strategy

    When optimizing you can set Min/Max/increment in parameters. It standard sets all to 1. How can I change the default values? For example that it shows the min and max values already (as below)..


    #region Properties
    [Description("ATR multiplier")]
    [GridCategory("Parameters")]
    public double ATR_multiplier
    {
    get { return a; }
    set {

    a = Math.Min(1, value);
    a = Math.Max(25, value);

    }
    }

    #2
    Originally posted by no111 View Post
    When optimizing you can set Min/Max/increment in parameters. It standard sets all to 1. How can I change the default values? For example that it shows the min and max values already (as below)..


    #region Properties
    [Description("ATR multiplier")]
    [GridCategory("Parameters")]
    public double ATR_multiplier
    {
    get { return a; }
    set {

    a = Math.Min(1, value);
    a = Math.Max(25, value);

    }
    }
    Properties are evaluated at runtime, so you cannot do what you are seeking to do other than by saving the parameters of the optimization itself. So, the parameters are saved as attributes of the optimization, not of the object that you are attempting to optimize.

    Right-click on the parameters in the Strategy Analyzer, and click on the only option that pops up.

    Comment


      #3
      Hello no111,

      Thank you for your post.

      Koganam is correct, right click in the parameters section after setting the Min and Max for the optimization and then select 'Set Default for 'StrategyName''.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      558 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      324 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      545 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X