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 have 2 questions regarding a practice EA I am coding.
1. A SELL position is not opened immediately after closing a BUY position. This results in the EA only having long or only short trades. What is the problem?
2. When the CurrentFastEMA = CurrentSlowEMA (unlikely, but it happens), the code executes multiple times (keeps buying/selling in the same candle). How can I overcome this bug?
Thanks in advance for the responses. Cheers!