Objective_HTF - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

This objective input parameter is an indicator with available timeframe selection options:
Input ENUM_TIMEFRAMES time range = PERIOD_H4 ; // Indicator chart period (time range)
The Objective_HTF repeater indicator requires a compiled custom indicator file Objective.mq5 for compilation. Place it in <Terminal Data Folder>\MQL5\Indicators .
After compilation, the Objective_HTF.ex5 indicator file contains the Objective.ex5 indicator as a resource , therefore the compiled indicator does not need to be present in the terminal folder in order to work! For this purpose, corresponding code has been added to the indicator code in order to include the target indicator in the executable file.
The indicator executable has been added as a globally scoped resource:
//----Include custom indicators as resources in the indicator code #Resources \\Indicators\\Objective.ex5
Change the string path to the indicator used as a resource in the OnInit() function block:
//--- Get the handle of the target indicator Ind_Handle= Customized (symbol_, time range, "::Indicator\\Target" , sample, quartile_1, quartile_2, quartile_3, 0 );
Therefore, the compiled executable of the Repeater indicator can be used independently on other trading terminals without the original indicator.

Figure 1. Objective_HTF indicator
Attachment download
📎 objective.mq5 (16.46 KB)
📎 objective_htf.mq5 (23.2 KB)
Source: MQL5 #17458
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •