Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | Rj_SlidingRangeRj_Digit_System

The indicator paints candles going beyond the Rj_SlidingRangeRj_Digit channel. Candlesticks outside the channel limits are marked with color according to the trend. Candlesticks with the trend have bright fill color, ones against the trend - dark fill color.

The indicator algorithm features the ability to separately configure everything related to its upper and lower border.

//+--------------------------------------------+  //|  INDICATOR INPUTS                          |  //+--------------------------------------------+  input uint UpCalcPeriodRange=5; //Search period for high  input uint UpCalcPeriodShift=0; //Shift period for high    input uint UpDigit=2;           //number of rounded decimal places for high  //----                         input uint DnCalcPeriodRange=5; //Search period for low  input uint DnCalcPeriodShift=0; //Shift period for low        input uint DnDigit=2;           //number of rounded decimal places for low  //----  input int Shift=0;              //Indicator horizontal shift in bars  

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. Rj_SlidingRangeRj_Digit_System indicator

21513