I have changed the time frame range in the optimizer backtest by source code using params.
protected override void Initialize() .. BackTestFrom = new DateTime(YearFrom, MonthFrom, 1); BackTestTo = new DateTime(YearFrom, MonthFrom+1, 1);
And don't print the true info
protected override void OnBarUpdate() .. if ((base.CurrentBar == (base.Bars.Count - 2)) && !this.infoShow) { this.infoShow = true; base.Print(" \x00b7 Start Date: " + BackTestFrom.ToString()); base.Print(" \x00b7 End Date: " + BackTestTo.ToString()); base.Print(" \x00b7 Total Profit: " + base.Performance.AllTrades.TradesPerformance.Currency.CumProfit + " $/€ "); ..
· End Date: 01/03/2016 0:00:00
· Total Profit: 769,999999999975 $/€
· Start Date: 01/04/2016 0:00:00
· End Date: 01/05/2016 0:00:00
· Total Profit: 769,999999999975 $/€
· Start Date: 01/01/2016 0:00:00
· End Date: 01/02/2016 0:00:00
· Total Profit: 769,999999999975 $/€
· Start Date: 01/03/2016 0:00:00
· End Date: 01/04/2016 0:00:00
· Total Profit: 769,999999999975 $/€
· Start Date: 01/06/2016 0:00:00
· End Date: 01/07/2016 0:00:00
· Total Profit: 769,999999999975 $/€
· Start Date: 01/05/2016 0:00:00
· End Date: 01/06/2016 0:00:00
· Total Profit: 769,999999999975 $/€
· Start Date: 01/07/2016 0:00:00
· End Date: 01/08/2016 0:00:00
· Total Profit: 769,999999999975 $/€
· Start Date: 01/07/2016 0:00:00
· End Date: 01/08/2016 0:00:00
· Total Profit: 2270 $/€
· Start Date: 01/02/2016 0:00:00
· End Date: 01/03/2016 0:00:00
· Total Profit: 419,999999999995 $/€
· Start Date: 01/03/2016 0:00:00
· End Date: 01/04/2016 0:00:00
· Total Profit: 2360,00000000001 $/€
David
Comment