Ich have testet the follwing thinks
1) I load a strategy in the sequential optimizer
2) I optimized this strategy for xauusd
3) The equity looks good in the optimzier
4) I copied this strategy to the retester
5) The result is different
6) I attached this strategy
7) I generated a video to for more description of this problem
https://www.youtube.com/watch?v=ULHa0kQmVm0
Subject changed from SQ 4.136 Retester don´t use the parameter from sequial optimizier to SQ 4.136, 4.137B1 Retester don´t use the parameter from sequial optimizier
IF the strategy has been tested with SeqOpt THEN automatically select to show the SeqOpt equity chart result rather than the Main equity chart result.
Status changed from Fixed to Refused
Ok, I was able to reproduce this and there is no bug, this behavior has an explanation.
You are optimizing several categories of parameters using seq. optimization, one of them is Exit parameters UNUSED, and you didn't check that long/short values should be symmetrical.
The optimization itself was correct, including the results and behavior in SQ.
There is one thing that confused you - Sequential optimization doesn't change the main result/equity of the strategy.
It is applied on the original strategy afterthe initial backtest on original parameters, and the only result of this optimization is
in Results -> Sequential Optimization Results and in changed parameters (after the main backtest).
So when Optimization is finished the new strategy "gbpusd.... - Sequential opmimization" is added to the databank.
But the databank values and equity chart are not for the optimized parameters - they are for the riginal parameters of the strategy, that's why they are as same as in original strategy.
When you Retest the strategy in Retester it will retest it with the new parameter values, and the results will be different - which happened.
Now the reason why the results were so different - it is caused bytwo things:
1. parameters settings. You enabled also use of UNUSED exit pataremers, which means that they will be activated - it is mainly Exit After Bars,
ad you didn't enable long/short symmetry.
As a result, the optimized strategy has few more parameters:
int ExitAfterBars1 = 12;
double ProfitTarget2 = 3222; <--- this is PT/SL for Short part
double StopLoss2 = 2543;
so there was quite a change in exits of the strategy
2. Automatic optimization was not very good in this case, it optimized to ranges that sometimes don't make good sense.
We are preparing a very big improvement of automatic optimizations for version 138, it will enable "smarter" and better configuration of what to optimize and what is the optimal range.