
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
Hi guys,
I've been working on an EA that is supposed to move all positions stop losses to entry, if the last order hit take profit. The EA is restricted to 3 positions. The code below that I've written moves the first position stop loss to entry, but doesn't affect any of the other positions, and I wanted to know why is this the case during my backtest analyses.
For reference I also get Error 130, 1, and 4180 randomly in my error log. Just wondering if I could get a little guidance as to how to correct my code so that all positions have their stop loss moved to entry/order open price.
Thanks!