One way to solve the problem yourself is starting the debugger and placing breakpoints right before the trailing starts in your code. It's one of the best ways to improve one's skills!
Beside that have you tried to find a solution that already here exists and is published?
Search for "Trailing a position" you'll find many articles, free code in the CodeBase and in the Forum - a lot to find working solutions of the others here!
It's faster than re-inventing the wheel. :)
One way to solve the problem yourself is starting the debugger and placing breakpoints right before the trailing starts in your code. It's one of the best ways to improve one's skills!
Beside that have you tried to find a solution that already here exists and is published?
Search for "Trailing a position" you'll find many articles, free code in the CodeBase and in the Forum - a lot to find working solutions of the others here!
It's faster than re-inventing the wheel. :)
the truth is that I have no idea of mql coding :(
i have bought a software EAs builder, its really good and I didn't have any problems with it before.. this issue had appeared the first time when I tried with this parameters.. basically it allows multiple orders but as I said it tries to do the trailing stops several times without success. Already talked to support to get an answer and they already tried to help me with no success either, I was hoping someone with more experience would help me with this little problem, because the rest of parameters are working good.. Anyway thank you for your answer :)
Do not double post!
I have deleted your duplicate topic!
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hello , first of all sorry for my english if i say something wrong.
I have this trobule with this code where it suppose to move to BE after 20 pips profit (it does) and then after being in BE do a trailing stop with 50 pips. The problem appears after being moved to BE, the EA as i see tries to do the trailing but moves to BE point again (see attachments), and of course it does it like a lot of times within a second, because tick by tick it is like the EA understand it has to move the stop 50 pips away from price but then comes back to BE point. Its like something in the code is having a conflict. Im very frustated bacause of that :(.
If you find a solution thank you so much.