Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Possible to optimize on user defined parameters

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

    Possible to optimize on user defined parameters

    How can I optimize from a list of user defined parameters presented to the user?

    For example, if the NT provided sample code from , "Creating a user-defined parameter type(enum)" the indicator SampleUniversalMovingAverage presents the user with a list of moving average types to choose from.

    If I use this sample code in a strategy, how can I optimize on the list so the best moving average type would be revealed by the optimizer?

    #2
    Hi Crassius, there would be unfortunately not a direct way, as the optimizer natively could only work with int's and double values to iterate through, so you could assign a given MA choice an int value and the itereate through this public property with the optimizer to find the 'best' MA for your setup.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    647 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    368 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    571 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X