A Good Custom Fitness Function
Posted: 31 Oct 2009
Just wanted to share the Fitness Function which I am using with nice results for a while (high net profit with very "clean" and straight equity curve, low draw-downs):
if (StrategyPerformance.MaxStrategyDrawDown != 0) {
if (StrategyPerformance.GrossLoss != 0) {
return 1000000 * StrategyPerformance.NetProfit / (-StrategyPerformance.GrossLoss) / (-StrategyPerformance.MaxStrategyDrawDown);
}
}
Good luck and let me know your results with it!
if (StrategyPerformance.MaxStrategyDrawDown != 0) {
if (StrategyPerformance.GrossLoss != 0) {
return 1000000 * StrategyPerformance.NetProfit / (-StrategyPerformance.GrossLoss) / (-StrategyPerformance.MaxStrategyDrawDown);
}
}
Good luck and let me know your results with it!