Logic Conflict Traiiling stop and Breakeven

Hello, I don´t know if this bug was already fixed in SQ4.



There is a a logic conflict in strategies that use more than one stop management like Breakeven stop and trailling stop generating discrepancy between SQ3 and mt4 trades.


Follow a example from a test in mt4 attached.


The solution is simple in this case. The problem is that the Stoploss() function is not refreshing with new ST/TP after a ST/TP change. There is a necessity to select again the ticket number after Ordermodify function.


The problem and solution is described here: https://www.mql5.com/en/forum/128062


Filipe Acerbi



















Attachments
mt4trail.png
(16.37 KiB)
  • Votes 0
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

FB
#1

lumbrjack

16.04.2018 14:36

Task created

TB
#2

Tomas Brynda

05.10.2018 17:04

Status changed from New to Fixed

This issue should be already fixed in SQX. When managing trades, a ticket number is passed as an argument to each stop management function and then OrderSelect is called using the ticket number provided. It is done in every single stop management method so there should not be a problem like this anymore.

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