![Above Below MA Robot for MT5](https://www.best-expert-advisors.com/wp-content/uploads/2020/04/Above-Below-MA-Robot.png)
![Above Below MA EA for MT5](https://www.best-expert-advisors.com/wp-content/uploads/2020/04/Above-Below-MA-EA.png)
Description
The Expert Advisor uses the iMA (Moving Average, MA) indicator. It compares the open price of bar #0 and the Moving Average values on bars #0 and #1. If there is already an open position in the direction of the new signal, this signal will be ignored. The Expert Advisor performs operation on every tick.
Signals
BUY opening signal: bar #0 Open price is below MA #0 AND the ASK price is below MA #0 AND MA #1 is below MA #0.
SELL opening signal: bar #0 Open price is above MA #0 AND the BID price is above than MA #0 AND MA #1 is above MA #0.
A position is closed when an opposite signal occurs, i.e. a SELL position will be closed upon the emergence of a BUY signal.