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 MQL community
Admittedly I am new to coding but have written a few successful codes but I am having trouble with this simple eaI am trying to write.
The ea will open a buy order when a spinning to candle appears and this is tied in with an alert. I have written in the code to only allow one open order at a time and this will stop duplicate orders. As you can imagine, this ea is only a small section of a larger ea I am still trying to write.
Problem: The ea will occasionally open an order with a single alert but most other times I seems to alert with every tick but not open a single trade.
What have I done wrong? My ea is below.
Many thanks in advance!