Sorry. I've continued to test this and found some additional information. It appears that the code will work, when I have only one order. That is, only a single order in my account. Any other orders seem to get ignored, even if it's a different currency and the expert is attached to different charts.
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
So, here's the scenario, just to be clear. At 10 pips, I want to close 1 lot out of a 5 lot order. The new profit target will get incremented by 10 pips, so, the next profit target is 20 pips. The function for this works. At 15 pips, I want my stop loss moved to breakeven. This fails.
Can someone help me how to get multiple order operations within a single expert working?
Thanks.