New free code from MQL5: indicators, EAs, and scripts for traders.
The AMA_STL indicator with the timeframe selection option available in input parameters:
input ENUM_TIMEFRAMES TimeFrame=PERIOD_H4; // Indicator chart period (timeframe)
To provide correct operation of the indicator, place the compiled AMA_STL.mq5 indicator file in 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 AMA_STL_HTF indicator
Complement community code with advanced automation from RobotFX.
7043