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

Trading signals based on PullBack and Candle (for MQL5 Wizard) - MetaTrader 5 Library

author EAcpu | 5 reads | 0 comments |

Trade signal based on PullBack and Candle (for MQL5 Wizard) - library for MetaTrader 5

Trade signal based on PullBack and Candle (for MQL5 Wizard) - library for MetaTrader 5

Trade signal based on PullBack and Candle (for MQL5 Wizard) - library for MetaTrader 5

Trade signal based on PullBack and Candle (for MQL5 Wizard) - library for MetaTrader 5

Trade signal based on PullBack and Candle (for MQL5 Wizard) - library for MetaTrader 5

This EA will trade based on "pullback and candle operations".

The candle operation part uses "candlepatterns.mqh" provided by MetaQuotes.

This program is very useful for improving input accuracy. Thanks.

I added the autogenerated mq5 file just in case, but you don't have to force it.

Because you can use the MQL 5 Wizard to create automatically customized mq5 files.

1. Position

A long position is opened when all the following conditions are met.

A short position is opened when all the following conditions are met.

[Common situations]

2. Close position

The conditions for closing a position are simple.

  • Close the position when the RSI is lower than the set value.

  • Close the position when RSI exceeds the set value.

3. On/off diagram

Long opening and closing.

Trade signal based on PullBack and Candle (for MQL5 Wizard) - library for MetaTrader 5

Short on and short off.

Trade signal based on PullBack and Candle (for MQL5 Wizard) - library for MetaTrader 5

4. Create Expert Advisor using MQL 5 Wizard

After compiling SignalPullBackCandle.mqh, you will be able to use it with the MQL5 Wizard.

To generate a trading robot based on this logic, select the signal of the "PullBack And Candle" indicator in the signal properties of the MQL 5 Wizard.

5.Test results

Let's backtest the EA.

The setting values ​​are as follows.

Trade signal based on PullBack and Candle (for MQL5 Wizard) - library for MetaTrader 5

Testing time: December 1, 2017 - December 11, 2018

Timeframe: M15 (even for others)

Trade signal based on PullBack and Candle (for MQL5 Wizard) - library for MetaTrader 5

Trade signal based on PullBack and Candle (for MQL5 Wizard) - library for MetaTrader 5

Attachments: "SignalPullBackCandle.mqh and acandlepatterns.mqh" must be placed in terminal_data_folder \ MQL5 \ Include \ Expert \ Signal \ MySignal.

The ExpertsBands.mq5 file contains the codes of Expert Advisors created using the MQL 5 Wizard.


Attachment download

📎 acandlepatterns.mqh (20.34 KB)

📎 signalpullbackcandle.mqh (7.83 KB)

📎 signalpullbackcandletest.mq5 (7 KB)

Source: MQL5 #23587

Verification code Refresh