MQL5 Orphaned positions

Hi,



Please include a function in the generated MQL5 code that periodically checks to ensure any position placed by the EA has a stop-loss.   Too many positions are being opened without a stop-loss even those the strategy stop-loss  is a healthy one of over 50 pips.  As things stand these EAs require manual supervision which defeats the objective of our noble automated pursuit.
  

Attachments
No attachments
  • Votes 0
  • Project StrategyQuant X
  • Type Feature
  • Status Fixed
  • Priority Normal

History

n
#1

notch

25.02.2019 15:27

Task created

KL
#2

kainc301

27.02.2019 17:05
Can you provide an example str file and mql5 for a strategy that does this so the bug can be replicated?
n
#3

notch

28.02.2019 12:30

Attachment XXXX.png added

Hi Kein,


Maybe this screen shot can help if not I'll upload the strategy.


It's just the standard SQX generated MT5 hedged MQL5 code.

n
#4

notch

28.02.2019 12:56
The problem is specific to ICMarkets so it is a broker-side bug.  Please close this task.


thank you.

TB
#5

Tomas Brynda

01.03.2019 07:53

Status changed from New to Fixed

Hi Notch,

you can try to set a different filling mode if it does problems for your broker.


You can set the filling mode by modifying these two lines in MQL code:


const ENUM_ORDER_TYPE_FILLING preferredFillingType = ORDER_FILLING_FOK;         -> choose the right filling mode const bool forceFillingType = false;              -> set it to true


n
#6

notch

01.03.2019 13:03
Hi Tomas,


I had already tried the 3 filling modes on true and false but still had the same issue.


I've shelved this problem, for now but will come back to it in the future.


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