Join our fan page
- Views:
- 6842
- Rating:
- Published:
- 2014.03.14 13:05
- Updated:
- 2016.11.22 07:32
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Real author:
Forex-TSD.com
The indicator changes color of bars in a separate window. It is changed to the color of the current trend calculated based on the RSI technical indicator.
If the trend and candlestick direction match, the color of the bar is light, if opposite, the bar is dark.
Trend strength is determined by the presence of the RSI indicator in overbought or oversold areas whose levels are determined by the indicator input parameters:
input uint HighLevel=55; // Overbought level input uint LowLevel=45; // Oversold level
If the RSI is outside these areas, the bar is painted in light gray.
Figure 1. The RSIFilter indicator
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/2125

The indicator draws averaged candlesticks of a higher timeframe as color filled rectangles using DRAW_FILLING buffers.

The indicator draws Heiken Ashi candlesticks of a higher timeframe as color filled rectangles using DRAW_FILLING buffers.

The indicator draws rectangle candlesticks of a higher timeframe based on the values of the BrainTrend1 indicator.

The indicator draws rectangle candlesticks of a higher timeframe based on the values of the BrainTrend2 indicator.