EA31337/Strategy-ZigZag

Zigzag Strategy just open buy positon ,not sell

Opened this issue · 2 comments

Hi Kenorb ;

when i test robot for zigzag strategy regardless timeframe , it just open buy position , not sell position.

Thanks.

kenorb commented

Thanks for the report.

EA Advanced v2.013.1 with MT5:

  • Tested ZigZag assigned on M15-H12 timeframes with default settings on EURUSD for this year, it generates a lot of trades, all longs.

So you're right, something is off.

I've checked MT4 tests for ZigZag strategy, same issue for MT4:

Symbol                             EURUSD (Euro vs US Dollar)
Period                             1 Minute (M1) 2019.01.01 23:42 - 2019.01.30 23:59 (2019.01.01 - 2019.01.31)
Total trades                  1934 Short positions (won %)                  0 (0.00%) Long positions (won %)                             1934 (49.69%)

Signal logic can be found at https://github.com/EA31337/Strategy-ZigZag/blob/v1.013/Stg_ZigZag.mqh#L107-L116

I'll check and fix it in the next release.

kenorb commented

Fixed in a6f505e.