Home Technical Indicator Post

Getting Started with the XMA-XN_HTF Indicator for MetaTrader 5

Attachments
17376.zip (27.93 KB, Download 0 times)

If you’re looking to enhance your trading strategy, the XMA-XN indicator might be just what you need. It comes with a handy timeframe selection option in the input parameters, allowing you to tailor it to your trading style.

input ENUM_TIMEFRAMES TimeFrame=PERIOD_H4;  // Set your desired timeframe for the indicator

To get started with the XMA-XN_HTF repeater indicator, you’ll need the compiled custom indicator file XMA-XN.mq5. Just place it in <terminal_data_folder>\MQL5\Indicators.

Once you've compiled it, the XMA-XN_HTF.ex5 indicator file will embed the XMA-XN.ex5 indicator as a resource. This means you won’t need the original indicator in your terminal folder for it to function properly! The coding makes it all seamless, as the XMA-XN indicator is included directly within the executable file.

The executable file has the necessary resources included at a global level:

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

In addition, the string path to the resource indicator has been adjusted in the OnInit() function block:

//--- Getting the handle of the XMA-XN indicator
   Ind_Handle=iCustom(Symbol(), TimeFrame, "::Indicators\\XMA-XN", Step, xMA_Method, xLength, xPhase, IPC, 0, PriceShift, ColorWidth);

This means you can use the compiled executable file of the repeater indicator on different trading terminals without needing the original indicator. It's all about making your trading experience smoother!

Fig1. The XMA-XN_HTF indicator

Fig1. The XMA-XN_HTF indicator

Related Posts

Comments (0)