[136 dev2] SL is miscalculated in mql5 code

In the wizard, I am forced to use "Value from formula in pips"  to run my own SL formula, therefore, I need to do ConvertPriceToPips in the wizard  but then in mt5 terminal SL and TP are totaly wrong.







Attachments
Strategy 133129.sqx
(298.05 KiB)
Screenshot_96.png
(8.35 KiB)
Screenshot_95.png
(9.53 KiB)
Screenshot_94.png
(6.10 KiB)
  • Votes +2
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

b
#1

bentra

17.07.2022 22:37

Task created

b
#2

bentra

17.07.2022 22:41


PS I had to manually fix the mql code first related to these bugs before I was able to expose this bug:


https://roadmap.strategyquant.com/tasks/sq4_9101

https://roadmap.strategyquant.com/tasks/sq4_9099


b
#3

bentra

17.07.2022 23:07
Voted for this task.
?
#4

anonymous

17.07.2022 23:46

Description changed:

In the wizard, I am forced to use "Value from formula in pips"  to run my own SL formula, therefore, I need to do ConvertPriceToPips in the wizard  but then in mt5 terminal SL and TP are totaly wrong.







E
#5

Emmanuel

20.07.2022 15:07
Voted for this task.
g
#6

Lee Guan Chuan

01.09.2022 08:34

Status changed from New to Fixed


Votes: +2

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please