Home Technical Indicator Post

Mastering the Fractal Weight Oscillator HTF for MetaTrader 5

Attachments
17121.zip (46.33 KB, Download 0 times)

If you’re looking to enhance your trading strategy, the Fractal Weight Oscillator is a powerful tool to consider. This indicator comes with a timeframe selection option that you can easily tweak in the input parameters.

input ENUM_TIMEFRAMES TimeFrame=PERIOD_H4;  // Indicator chart period (timeframe)

To get started with the Fractal Weight Oscillator HTF repeater indicator, you’ll need to have the custom indicator file Fractal_WeightOscillator.mq5 compiled and ready. Simply place it in <terminal_data_folder>\MQL5\Indicators.

Once you compile the indicator, the Fractal_WeightOscillator_HTF.ex5 file will be generated, which includes the Fractal_WeightOscillator.ex5 as a resource. This means you won’t need to keep the original indicator in your terminal folder for it to function properly. The indicator code has been designed to include the Weight Oscillator indicator within the executable file itself.

This executable file has the necessary resources added at a global scope:

//---- Include custom indicators in the indicator code as resources
#resource \\Indicators\\Fractal_WeightOscillator.ex5

Additionally, the path to the indicator used as a resource is updated in the OnInit() function:

//--- getting the Fractal_WeightOscillator indicator handle
   Ind_Handle=iCustom(Symbol_,TimeFrame,"::Indicators\\Fractal_WeightOscillator",e_period,normal_speed,RSIWeight,RSIPrice,MFIWeight,MFIPrice,MFIVolumeType,
                            WPRWeight,DeMarkerWeight,bMA_Method,bLength,bPhase,HighLevel,LowLevel);

The source file for Fractal_WeightOscillator.ex5 also includes other indicators as resources, allowing you to use the compiled version of the repeater indicator independently across different trading terminals.

Here’s the order to follow when compiling the files:

  • Fractal_RSI.mq5, Fractal_MFI.mq5, Fractal_WPR.mq5, and Fractal_DeMarker.mq5;
  • Fractal_WeightOscillator.mq5;
  • Fractal_WeightOscillator_HTF.mq5.

Fig1. The Fractal Weight Oscillator HTF Indicator

Fig1. The Fractal Weight Oscillator HTF Indicator

Related Posts

Comments (0)