RobotFX curates the best open-source MetaTrader code to inspire your trading automation.
The AltrTrend_Signal_v2.2 indicator with the timeframe selection option available in input parameters.
input ENUM_TIMEFRAMES TimeFrame=PERIOD_H4; //Indicator chart period
The indicator requires the compiled indicator file AltrTrend_Signal_v22.mq5. Place it to the terminal_data_folder\MQL5\Indicators\.

Protect profits effectively with the smart Trailing Stop Expert Advisor. Advanced trailing options for MT4/MT5. See it in action.
Figure 1. Indicator AltrTrend_Signal_v2_2_HTF
Level up your trading with professional RobotFX expert advisors and indicators. Visit www.robotfx.org for proven MT4/MT5 tools.
2065