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

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.

Attachment download
📎 above_below_ma.mq5 (34.51 KB)
Source: MQL5 #21733
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •