![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I wrote some code for a trailing stop with the help of a tutorial and it works as it should:
However when I insert it into the EA I'm developing it doesn't work at all, the orders show a stop loss being set but its not triggering when it should. I feel like the issue is that its getting caught up in the order of operations somewhere but I cant put my finger on it.
I attached my code instead of pasting it because its pretty long.
Any help would be appreciated!