Exp_XOSignal_ReOpen - MetaTrader 5 Expert - MT4/MT5 Resources


Signal-based Exp_XOSignal_ReOpen Trading system XO Signal Indicator with trend following scaling If colored indicator arrows appear, a signal is formed when the bar closes. In addition, if the profit points of the last trade of the position exceed the threshold specified in the EA input parameters, it scales the volume of the opened position.
Information about position scaling is stored in the transaction's string annotation in the following format: scale number/last deal price/latest volume .
In order to compile the Expert Advisor correctly, you should save the XOSignal.ex5 compiled file to the <terminal data folder>\MQL5\indicators folder.
After compilation, the Exp_XOSignal_ReOpen.ex5 expert file contains the XOSignal.ex5 indicator as a resource , so the compiled EA does not need to be present in the terminal folder to work! For this purpose, corresponding code has been added to the EA code in order to include this indicator in the EA's executable file.
The indicator executable has been added as a globally scoped resource:
//----Include the indicator as a resource in the EA code #Resources \\Indicators\\XOSignal.ex5
Change the string path to the indicator used as a resource in the OnInit() function block:
//---- Get the XOSignal indicator handle InpInd_Handle= Customized ( symbol (),InpInd_Timeframe, "::Indicator\\XOSignal" , range, IPC);
Therefore, the executable compiled by experts can be used independently on other trading terminals without indicators.
The input parameters of the default Expert Advisor were used in the test shown below. Stop Loss and Take Profit were not used during testing.

Figure 1. Example of trade on chart
2015 EURUSD H8 test results:

Figure 2. Test results chart
Attachment download
📎 tradealgorithms.mqh (178.46 KB)
📎 xosignal.mq5 (20.53 KB)
📎exp_xosignal_reopen.mq5 (27.98 KB)
Source: MQL5 #17684
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •