Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OptimizationFitnesses

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

    OptimizationFitnesses

    Hello,

    I do not find any documentation on OptimizationFitnesses.

    I am trying to determine how the strategy optimization process know whether the Fitness Function should be maximized or minimized. Looking at the various ones provided it seems the only indication is based on the name being prefixed with "Min" or "Max". Is this correct and therefore a requirement to naming an OptimizationFitness?

    Also, please confirm the value stored in "Value" is to be optimized.

    Thanks,
    Last edited by tornadoatc; 02-10-2016, 04:00 PM.

    #2
    Hello,

    This can be confusing at first glance, but it is actually a simpler concept than you might expect. In all cases, the Optimizer is looking for the highest value returned by the Optimization Fitness Metric. If you are looking at Max Net Profit, for example, it will be looking for the highest numeric value of net profit. If you are looking at Min DrawDown, on the other hand, you are looking for the highest numeric value of drawdown. Consider a drawdown of 10 points, which would numerically be expressed as -10, compared to a drawdown of 2 points, which would be expressed numerically as -2. All the Optimizer cares is that -2 is greater numerically than -10, so it considers -2 (the higher value) to be the minimum drawdown between these two.

    If you take a look at the code for some of the Min and Max Fitness Metrics in the Custom project, you will see that each one is simply returning a performance value, but is not differentiating whether "max" or "min" is best. This is because, in each case, when you want to minimize something bad, like MAE or drawdown, the Optimizer simply needs to look for the set of results with the highest numeric value, which minimizes the negative impact of that statistic.
    Dave I.NinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,610 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    9 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    19 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    6 views
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    16 views
    0 likes
    Last Post Javierw.ok  
    Working...
    X