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 XD-RangeSwitch indicator.
Depending on trend direction the candlestick body is painted in blue or orange, shadows are painted in light blue or yellow.
The indicator requires the compiled indicator file XD-RangeSwitch.mq5 for operation. Place it to terminal_data_folder\MQL5\Indicators\.
Recover from drawdowns intelligently with the Auto Recovery Expert Advisor for MT4/MT5. Perfect for hedging strategies. Learn more.

Figure 1. The BackgroundСandle_XD-RangeSwitch_HTF indicator
Build better strategies with RobotFX professional tools – check them out.
2275