Join our fan page
- Published by:
- Vladimir Karputov
- Views:
- 5915
- Rating:
- Published:
- 2018.09.27 15:41
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Idea by: Scriptor
MQL5 code author: barabashkakvn
How it works
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.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/21733

The Mirror MA indicator features two mirrored moving averages in a separate chart window calculated based on a difference between two MAs with different calculation data, and one signal line calculated based on a direct moving average data.

One of the variations of the "Avalanche" strategy. Martingale is used.

Super SAR is a signal indicator based on SuperTrend and iSAR.

The Chandelier Exit indicator implemented as a sequence of candlesticks