[Build 109] SQX 108 - Money management "MM Used from Strategy" not working in MT4

Hi Mark and Team,



I generated a strategy that uses "Risk Fixed % of Account" and in the SQX backtest, shows a rising lot size over time.


When exported to MQ4 and backtested using tick data, the results look quite similar, but it looks like a fixed lot size is used.


Please see attached SQ4 and MQ4 file.


If I've set something wrong, please let me know.


Regards,


Mike

Attachments
Strategy 0194962.mq4
(186.06 KiB)
2018820Strategy 0194962.sq4
(88.99 KiB)
  • Votes 0
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

m
#1

mikeyc

21.08.2018 22:50

Task created

m
#2

mikeyc

21.08.2018 23:16
This is in the MT4 log:


2018.08.21 22:04:03.270 2007.02.15 16:00:03  Strategy 0.194962 EURUSD,H1: - SQ LOG 2007.02.15 16:00 Calculated LotSize is <= 0. Using LotsIfNoMM value: 0.1)


TB
#3

Tomas Brynda

22.08.2018 16:59

Status changed from New to Fixed

Fixed. There was a bug in MQL code for strategies that don't use stop loss

N
#4

nathan

04.09.2018 13:24
Not fixed in build 109...SQ4 will always use a fixed lot size 0.1 in the MQ4 code no matter what the MM settings in the strategy, globally or at the source code generation tab (MM selection field top right)...

Votes: 0

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please