Wrong calculation of Lot Size in MT4

Lot size in MT4 is 1/10 of that in SQX, despite the Tick Size is the same (see attached configs).
Setting the "SQTickSize" = True the Lots Site returns correct


With SWTickSize = False
USDJPY,H1: - SQ LOG 2022.07.28 13:00 Computing Money Management for order - Fixed amount
USDJPY H1 -Strategy 2.12.175 USDJPY,H1: - SQ LOG 2021.07.28 13:00 Computing Money Management for order - Fixed amount
0 18:38:10.132 2021.07.28 13:00:00  USDJPY H1 -Strategy 2.12.175 USDJPY,H1: - SQ LOG 2021.07.28 13:00 Computing Money Management - Smallest_Lot: 0.01000000, Largest_Lot: 50.00000000, Computed LotSize: 0.05000000
0 18:38:10.132 2021.07.28 13:00:00  USDJPY H1 -Strategy 2.12.175 USDJPY,H1: - SQ LOG 2021.07.28 13:00 Money to risk: 200.00000000, Max Trade drawdown: 3996.81938608, Point value: 761.31311286
0 18:38:10.132 2021.07.28 13:00:00  USDJPY H1 -Strategy 2.12.175 USDJPY,H1: - SQ LOG 2021.07.28 13:00 Opening order type BUY STOP with price 110.32000000. Current market prices: 109.98300000 / 109.97000000


With SWTickSize = True

USDJPY,H1: - SQ LOG 2021.07.28 13:00 Computing Money Management for order - Fixed amount
0 19:58:34.816 2021.07.28 13:00:00  USDJPY H1 -Strategy 2.12.175 USDJPY,H1: - SQ LOG 2021.07.28 13:00 Computing Money Management - Smallest_Lot: 0.01000000, Largest_Lot: 50.00000000, Computed LotSize: 0.50000000
0 19:58:34.816 2021.07.28 13:00:00  USDJPY H1 -Strategy 2.12.175 USDJPY,H1: - SQ LOG 2021.07.28 13:00 Money to risk: 200.00000000, Max Trade drawdown: 399.61492783, Point value: 761.31311286
0 19:58:34.816 2021.07.28 13:00:00  USDJPY H1 -Strategy 2.12.175 USDJPY,H1: - SQ LOG 2021.07.28 13:00 Opening order type BUY STOP with price 110.32000000. Current market prices: 109.98300000 / 109.97000000

Attachments
Instruments_136.xml
(7.12 KiB)
USDJPY H1 -Strategy 212175.sqx
(21.75 KiB)
mt4.properties
(12.85 KiB)
USDJPY H1 -Strategy 212175.mq4
(230.15 KiB)
  • Votes 0
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

MS
#1

mscapin95

11.02.2023 21:56

Task created


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