RobotFX curates the best open-source MetaTrader code to inspire your trading automation.
The indicator draws candlesticks of a larger timeframe as color filled rectangles using DRAW_FILLING buffers. Rectangles are color filled in accordance with the values of the ColorStepXCCX indicator.
Depending on trend direction the candlestick body is painted in brick red or blue, shadows are painted in light pink or light blue.
The indicator requires the compiled indicator file ColorStepXCCX.mq5 for operation. Place it to terminal_data_folder\MQL5\Indicators\.
Reduce lag and improve accuracy with the NonLagMA Expert Advisor for MT4/MT5. Discover it.

Figure 1. Indicator BackgroundCandle_ColorStepXCCX_HTF
Build better strategies with RobotFX professional tools – check them out.
2216