The PA_Oscillator with the timeframe selection option available in the input parameters:
input ENUM_TIMEFRAMES TimeFrame=PERIOD_H4; // Indicator chart period (timeframe)
The indicator requires PA_Oscillator.mq5 indicator file. Place it in <terminal_data_folder>\MQL5\Indicators.
Figure 1. The PA_Oscillator_HTF indicator
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/14341
The class restricts the EA trading by time. It has flexible configuration options, which allow to set a custom number of the time zones, and also to allow trading only on the specified week days.Sentiment
Robot that trades the open sentiment of the market.