RobotFX curates the best open-source MetaTrader code to inspire your trading automation.
The CronexAC 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 CronexAC.mq5 indicator file in terminal_data_folder\MQL5\Indicators.

Smooth out market noise with the Heiken Ashi Expert Advisor for MT4 and MT5. Reliable trend-following automation. Details here.
Figure 1. The CronexAC_HTF indicator
Build better strategies with RobotFX professional tools – check them out.
2403