You can get the count from an OrderSelect loop.
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, I'm currently facing a problem editing my EA. I managed to get the EA to open a new trade every single candle, using:
But now I'm unsure of how to write a code that reopens the trade that has previously TP-ed. Basically I'm looking for the EA to check if it's a new bar, if it is then OpenOrder, but if it's not then check if there is any Open Trades, If there is no open trade, OpenOrder again. So that I'm always buying/selling once previous trade criteria TP/SL.