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

Exp_ChandelExitSign_ReOpen - MetaTrader 5 Expert - MT4/MT5 Resources

author EAcpu | 4 reads | 0 comments |

Exp_ChandelExitSign_ReOpen - expert for MetaTrader 5

Exp_ChandelExitSign_ReOpen - expert for MetaTrader 5

Information about position scaling is stored in the transaction's string annotation in the following format: scale number/last deal price/latest volume .

For correct compilation of Expert Advisor, you should save the ChandelExitSign.ex5 compilation file to the <terminal data folder>\MQL5\indicators folder.

After compilation, the Exp_ChandelExitSign_ReOpen.ex5 expert file contains the ChandelExitSign.ex5 indicator as a resource , therefore 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.

Metrics executable has been added as a global scope resource

 //----Include the indicator as a resource in the EA code
#Resources \\Indicators\\ChandelExitSign.ex5

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

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.

Exp_ChandelExitSign_ReOpen - expert for MetaTrader 5

Figure 1. Example of trade on chart


2015 USDCAD H8 test results:

Exp_ChandelExitSign_ReOpen - expert for MetaTrader 5

Figure 2. Test results chart


Attachment download

📎 tradealgorithms.mqh (178.23 KB)

📎chandelexitsign.mq5 (16.87 KB)

📎 exp_chandelexitsign_reopen.mq5 (26.79 KB)

Source: MQL5 #17639

Verification code Refresh