Join our fan page
- Views:
- 4973
- Rating:
- Published:
- Updated:
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
A moving average with the five-fold EMA averaging. It displays the most recent value as a price label with the possibility to round the indicator levels up to a required number of digits. The number of digits to round is set in the input variable Digit:
input uint Digit=3; //Number of digits to round to
The indicator uses SmoothAlgorithms.mqh library classes (copy it to <terminal_data_folder>\MQL5\Include). The use of the classes is described in details the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".

Fig. 1. The Color_PEMA_Digit indicator
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/18488
Bullish and Bearish Engulfing
The EA trades based on the "Bullish and Bearish Engulfing" pattern.
Size of candles 2 (text)
The size of a candlestick. The size is calculated by the following formula: "minuend" minus "deduction".
Color_QEMA_Digit
A moving average with the four-fold EMA averaging. It displays the most recent value as a price label with the possibility to round the indicator levels up to a required number of digits.
PEMA_HTF
The PEMA indicator with the timeframe selection option available in input parameters.