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 Software Corp.
Original code: https://www.mql5.com/ru/code/18488
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".