Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

WeightOscillator_HTF - MetaTrader 5 Script - MT4/MT5 Resource

author EAcpu | 3 reads | 0 comments |

WeightOscillator_HTF - indicator for MetaTrader 5

This indicator has time frame selection options available in the input parameters of the weight oscillator :

 Input ENUM_TIMEFRAMES time range = PERIOD_H4 ; // Indicator chart period (time range)

The WeightOscillator_HTF repeater indicator requires the compiled custom indicator file WeightOscillator.mq5 for compilation. Place it in <Terminal Data Folder>\MQL5\Indicators .

After compilation, the WeightOscillator_HTF.ex5 indicator file contains the WeightOscillator.ex5 indicator as a resource , therefore the compiled indicator does not need to be present in the terminal folder to work! For this purpose, corresponding code has been added to the indicator code to include the WeightOscillator indicator in the executable file.

Metrics executable has been added as a global scope resource

Change the string path to the indicator used as a resource in the OnInit() function block

Therefore, the compiled executable of the Repeater indicator can be used independently on other trading terminals without the original indicator.

WeightOscillator_HTF - indicator for MetaTrader 5

Figure 1. WeightOscillator_HTF indicator


Attachment download

📎 SmoothAlgorithms.mqh (130.2 KB)

📎 WeightOscillator.mq5 (23.62 KB)

📎 WeightOscillator_HTF.mq5 (22.29 KB)

Source: MQL5 #17075

Verification code Refresh