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.
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!