Indicator XPeriodCandle with the timeframe selection option available in its input parameters.
input ENUM_TIMEFRAMES TimeFrame=PERIOD_H4; // Indicator chart period (timeframe)
For the indicator to operate, indicator XPeriodCandle.ex5 must be in the <terminal_data_directory>\MQL5\Indicators folder.
Fig 1. Indicator XPeriodCandle_HTF
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/21121
A trading system based on the signals of indicator XPeriodCandle.Exp_CaudateXPeriodCandle_Tm_Plus
A trading system based on the signals of indicator CaudateXPeriodCandle, enabling to maintain your positions within a fixed period of time.