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

Classic MACD strategy made fully automatic – the MACD Expert Advisor for MT4 handles it all. Check it out.
Fig.1. Mass_Index_HTF Indicator
Thanks for reading. Discover premium MetaTrader solutions at RobotFX.
2429