Closed P/L in money - Rule is working in MT5 but not in SQX backtest

I generated a strategy that include following rules (created with Algowizard):



IF LONG order (0.01 size) is closed and "Closed P/L in money > 0", NEW LONG order (0.02 size) is opened
IF SHORT order (0.01 size) is closed and "Closed P/L in money > 0", NEW SHORT order (0.02 size) is opened



The problem is that if I generate a strategy using template that include rules above, it will not work SQX, but if I export the same strategy in mq5, the backtest in MT5 is working correctly.


Attached .sqx and .mq5 strategy, template used and screenshots of backtest from SQX and MT5.

Attachments
Template.sq4
(3.57 KiB)
Strategy 012.mq5
(226.10 KiB)
Strategy 012.sqx
(17.14 KiB)
Screenshot SQX.png
(193.56 KiB)
Screenshot MT5.png
(41.50 KiB)
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

SL
#1

Morningbull

03.01.2021 14:06

Task created

m
#2

mattedmonds

03.01.2021 23:09
Voted for this task.
TB
#3

Tomas Brynda

05.01.2021 11:14

Status changed from New to Fixed


Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please