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 | LBR_Paint_Bars

LBR Paint Bars indicator draws color candles depending on a trend direction. The trend is defined by the location of two volatility lines. A color cloud histogram is displayed along these two lines.

It has four inputs:

  • Factor - ATR share in the cloud width calculation
  • ATR period - ATR calculation period
  • HL period - cloud borders calculation period
  • Color Candles - display color candles (Yes/No)

Calculation:

Edge1 = Min(Lowest(Low, HL period) + Delta; Edge2 = Max(Highest(High, HL period) - Delta;

where:

Delta = ATR(ATR period) * Factor

If color candles display is enabled (Color Candles = Yes):

  • if the bullish candle is closed above the cloud, a green candle is displayed
  • if the bearish candle is closed above the cloud, a light-green candle is displayed
  • if the bearish candle is closed below the cloud, a red candle is displayed
  • if the bullish candle is closed below the cloud, an orange candle is displayed

MetaTrader Experts, Indicators, Scripts and Libraries


22200