
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 all, i'm having a tough time making my EA place stop orders only once at a given price. It places stop orders every tick which matches the price. I wanna be able to make multiple Buy stop and Sell Stops, but only one at a time. For example if there is a filled Buy stop order and another Buy condition is met, then I wanna be able to take the trade. This code works perfectly for Sell market orders:
This code makes orders every matching tick:
And another version:
The above code produces the following log(discard the inputs):
Please note the last entry - the condition becomes true. I've spent 2 days trying to figure it out and I know that there's something simple that i'm missing, but i'm not an expert obviously.