Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi-objective optimization graph vertical scale

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

    Multi-objective optimization graph vertical scale

    Got a query re the scaling of values on the Y-axis of the multi-objective results graph... as shown below testing on MA crossover

    Click image for larger version

Name:	Multi-opt Y axis weirdness 2.png
Views:	227
Size:	87.4 KB
ID:	1161049
    I've tested this with a few combos of optimisation fitness metrics... and MOST of them display the Y-axis with a strange scale. Like above... in which the drawdown values are in the range lets say zero to maybe $10,000... but this is displayed as a range of -0.1 to -0.18 ???

    The only combo I got that seemed to display sensibly was using Net Profit plus Profit Factor... which showed as a value ranging from 2.8 to 6.0 (or thereabouts)... ie values in agreement with the reported profit factor, as you would expect.

    So... what the heck is Min Drawdown (which I assume is really MAX drawdown) of -0.12 or whatever? Is it a percentage? If so... maybe consider displaying it as such... but frankly, I'd prefer if the actual drawdown dollar amount was shown, same as Net Profit is shown.

    Thanks,
    T.

    #2
    Hello tgn55,

    Thank you for your inquiry.

    It's displaying it as a percent. Here's the code for that particular optimization fitness (this can be found in the NinjaScript Editor):

    Code:
    namespace NinjaTrader.NinjaScript.OptimizationFitnesses
    {
    public class MinDrawDown : OptimizationFitness
    {
    protected override void OnCalculatePerformanceValue(StrategyBase strategy)
    {
    Value = strategy.SystemPerformance.AllTrades.TradesPerformance.Percent.Drawdown;
    }
    
    protected override void OnStateChange()
    {
    if (State == State.SetDefaults)
    Name = NinjaTrader.Custom.Resource.NinjaScriptOptimizationFitnessNameMinDrawDown;
    }
    }
    }
    You could certainly create your own Optimization fitness and use TradesPerformance.Currency.Drawdown instead of TradesPerformance.Percent.Drawdown and it would display the amount in currency.

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

    Comment


      #3
      Thanks Kate... I haven't been very active on the forum for months... but once again, you delivered!

      Cheers,
      T.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      172 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      88 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      128 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      208 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      185 views
      0 likes
      Last Post CarlTrading  
      Working...
      X