Download MetaTrader 5

Expert Advisors: MQL5 Wizard - Trade Signals Based on Bullish Engulfing/Bearish Engulfing + CCI

To add comments, please log in or register
Automated-Trading
Admin
100941
Automated-Trading 2011.03.10 10:54 

MQL5 Wizard - Trade Signals Based on Bullish Engulfing/Bearish Engulfing + CCI:

The MQL5 Wizard allows creating ready-made Expert Advisors based on the Standard library classes delivered together with the client terminal (see Creating Ready-Made Expert Advisors in MQL5 Wizard for the details). It allows to check your trade ideas quickly, all you need is to create your own trading signals class. The structure of this class and example can be found in the article MQL5 Wizard: How to Create a Module of Trading Signals.

The generic idea is the following: the class of trading signals is derived from CExpertSignal, the next, it's necessary to override the LongCondition() and ShortCondition() virtual methods with your own methods.

There is a book "Strategies of best traders" (in Russian), there are many trading strategies are considered there, we will focus on reversal candlestick patterns, confirmed by Stochastic, CCI, MFI and RSI oscillators.

The best way is to create the separate class, derived from CExpertSignal for checking of formation of candlestick patterns. For confirmation of trade signals, generated by candlestick patterns, it's sufficient to write the class, derived from CCandlePattern and add the necessary features (for example, confirmation by oscillators) there.

Here we will consider the signals, based "Bullish Engulfing/Bearish Engulfing" reversal candlestick pattern, confirmed by CCI indicator. The module of trade signals is based on the CCandlePattern class, it's simple example of its use for creation of trade signals with candlestick patterns.

Fig. 1. "Bullish Engulfing" candlestick pattern Fig. 2. "Bearish Engulfing" candlestick pattern

Fig. 11. Testing results of the Expert Advisor, based on Bullish Engulfing/Bearish Engulfing + CCI

Author: MetaQuotes Software Corp.


rasif000
3
rasif000 2011.03.11 23:19  

I'm not able to create this EA. Please Help me to make this EA. I'm newbie in this section. Please Guide me step by step. Thanks
muller
559
muller 2011.03.12 11:45  
rasif000:

I'm not able to create this EA. Please Help me to make this EA. I'm newbie in this section. Please Guide me step by step. Thanks

what do you mean ? this EA is already created :)

The first thing to do is: read the entire article, slowly if you need to understand it, everything is well explained about how/where to install the packages. Do your own effort.

kono1
23
kono1 2011.09.20 14:45  

Hi, I tried this EA out and is good, it appears to compile OK.

However, when I tested on the Strategy Tester, I notice this error message in the Journal:

2011.09.20 20:27:31 Core 1 2011.01.04 00:00:00   CExpertBase::SetOtherSeries: changing of timeseries is forbidden
2011.09.20 20:27:31 Core 1 2011.01.04 00:00:00   CExpertBase::SetPriceSeries: changing of timeseries is forbidden

I tried to debug but don't know enough about MQL5. Please help locate the bug.

Many thanx in advance.

Kon 

To add comments, please log in or register