Vladimir Karputov:
4. Carefully check the conditions Close_Buy_Condition_xxxx and Close_Sell_Condition_xxxx
4. Carefully check the conditions Close_Buy_Condition_xxxx and Close_Sell_Condition_xxxx
Hi Vladimir,
Thank you for your response.
Based on the information you have provided I believe the issue has been resolved and the EA is executing trades as desired.
Your help is appreciated!

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 Everyone,
I am struggling to get my EA to closes trades based on price closing below (for long trades) or above (for short trades) a weighted MA.
I would like for the trade to be closed ONLY if price closes against the moving average.
Currently the EA only seems to close the trade once TP (600 pts) or the SL (300 pts) is reached.
Any help is appreciated.
Here is the code: