I'm trying to code my EA in mql5 and after a certain condition is met I would like the EA to loop through all the open orders and modify the SL, to just a few pips above/below the order open price but after double checking over and over it keeps on reporting Error 4754. I check and ensure that orders do indeed exist and that I am calling them according to their ticket numbers but its still not functioning.. This is my first time posting in the forum, hope I didnt infringe on any rules.
OMG!! eye just realized that I'm not trying to modify an ORDER, I'm trying to modify a POSITION, hence I'm using PositionModify() now, and I haven't even compiled it yet, but I know that was the problem lol.. Thanks 4 solving your own problem, NasdaqDude 24!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I'm trying to code my EA in mql5 and after a certain condition is met I would like the EA to loop through all the open orders and modify the SL, to just a few pips above/below the order open price but after double checking over and over it keeps on reporting Error 4754. I check and ensure that orders do indeed exist and that I am calling them according to their ticket numbers but its still not functioning.. This is my first time posting in the forum, hope I didnt infringe on any rules..