The author of the idea: Scriptor
MQL5 code author: barabashkakvn
The indicator defines the market state: flat or trend.
Interpretation of the histogram color buffers when setting "signal timeframe" PERIOD_CURRENT:

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/21926
Flat Trend EA
EA based on FlatTrend indicator. You can also include working time.
TrendManager_HTF
TrendManager indicator with the timeframe selection option available in input parameters
XRSI_Candle_Vol
RSI_Candle_Vol indicator with additional averaging of the resulting candles
XССI_Candle_Vol
CCI_Candle_Vol indicator with additional averaging of the resulting candles