Different backtest result between 2.26.2 and 2.27.1 with the same set

Avatar
  • updated
  • Not a bug

Hi Andrey, iam sorry for my late report.

The backtest using the c00l default set but with 0.01 start lot: eurusd5Ultimo4.set

I attached tester LOG: 20210316.log

Result in 2.26.2 is good with no stop loss catch from 2019 to 2021 (today), but result in 2.27.1 catched 6 stoploss.

In 2.27.1 i already tested with false virtual stop loss, the result is same.

2019-2021 (today)

CP 2.26.2

Image 968

2019-2021 (today)

CP 2.27.1

Image 969

Image 970

Please check, maybe its bugs from virtual/real stop loss mode in the new 2.27.1 version.

Thank you.

Avatar
0
Sai Pratap

Did u check the TDI setting which was enabled by default in 2.27 version?

I do not have the versions to do backtest.

May plz share so that I can also do a backtest.

Avatar
0
gamal rizaldi
Quote from Sai Pratap

Did u check the TDI setting which was enabled by default in 2.27 version?

I do not have the versions to do backtest.

May plz share so that I can also do a backtest.

2.27.1 is the default version on mql5, it can be downloaded direct from metatrader 5 market.

or use this: CommunityPower 2.27.1.ex5

Avatar
0
Sai Pratap
Quote from gamal rizaldi

2.27.1 is the default version on mql5, it can be downloaded direct from metatrader 5 market.

or use this: CommunityPower 2.27.1.ex5

2.26 also plz.

Avatar
0
gamal rizaldi
Quote from Sai Pratap

2.26 also plz.

ah yes, i forgot.. CommunityPower 2.26.2.ex5

Avatar
0
Andrey Khatimlianskyi
  • Not a bug

Gamal, sorry for my late reply too!

I've made investigation and found the reason of the difference.

In 2.26 StopLoss based on "last open price" was activated when the last martingale deal was opened.

Starting from 2.27, CP calculates StopLoss "From last open price" mode right after 1st order is opened (supposing trades will be opened with defined Step). So, you always know the maximum risk you may have.

I thinks it is correct behavior, so I don't want to change it.

For your case, I think you just need to increase SL size (it hasn't been reached in your test with 2.26).

Another little difference: 2.27 opens new deal immediately after Partial close (if conditions are met), but 2.26 waits for next tick. But it is doesn't affect results too much.