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:	215
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 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