Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Above MA Below - MetaTrader 5 Expert | Forex Indicators Download - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

Above Below MA - expert for MetaTrader 5

Idea comes from : screenwriter

MQL5 code author : Balabashka Kong

Expert Advisors use the iMA (Moving Average, MA) indicator. It compares the opening price of bar #0 and the moving average values ​​on bars #0 and #1. If a position is already opened in the direction of the new signal, the signal will be ignored. The Expert Advisor performs actions on every price change.

BUY OPEN SIGNAL : Column #0 opens below MA #0 and the price is below MA #0 and MA #1 is below MA #0.

Signal for opening a sell position : Column #0 opened at a price above MA #0 and the bid price was above MA #0 and MA #1 was above MA #0.

When the opposite signal appears, the position is closed, that is, when the buy signal appears, the sell position will be closed.

Above Below MA - expert for MetaTrader 5


Attachment download

📎 above_below_ma.mq5 (34.51 KB)

Source: MQL5 #21733

Verification code Refresh