Join our fan page
- Published by:
- Vladimir Karputov
- Views:
- 5991
- Rating:
- Published:
- 2018.08.23 13:17
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Author of the idea: Iurii Tokman
MQL5 code author: barabashkakvn
The EA trades by a single iMA (Moving Average, MA) indicator. All indicator parameters are included to the inputs. Operation is performed at each tick: as soon as a signal is received and there are no open positions in the direction of a signal, the signal can be executed.
Position opening decision logic
Indicator data are taken from Current Bar (get MA). Open, High and Low data are taken from Current Bar (get OHLC). Conditions for being in the channel, where the upper border is calculated as "MA" plus Ceiling of the channel and the lower one is "MA" minus Floor of the channel.
Levels
Stop Loss and Take Profit parameters can be disabled. To do this, set "0". Keep in mind that if Stop Loss is "0", we may receive frozen loss-making positions that are never closed by the EA.
Sample test on EURUSD M15:
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/21499
![Chaikin_Volatility_Histogram](https://c.mql5.com/i/code/indicator.png)
Chaikin volatility indicator as a colored histogram.
![3sma](https://c.mql5.com/i/code/expert.png)
The EA based on three iMA (Moving Average, MA) indicators.
![AMA Histogram Normalize](https://c.mql5.com/i/code/indicator.png)
Version of the AMA Histogram indicator.
![Ozymandias_System_Alert](https://c.mql5.com/i/code/indicator.png)
Ozymandias_System indicator provides alerts, sends email and push notifications when the candles break through the indicator channel.