Expert Advisors: MQL5 Wizard - Trade Signals Based on Morning/Evening Stars + MFI

 

MQL5 Wizard - Trade Signals Based on Morning/Evening Stars + MFI:

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 on "Morning Star/Evening Star" (Morning Doji Star/Evening Doji Star) reversal candlestick patterns, confirmed by MFI 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.

"Morning Star" and "Morning Doji Star" candlestick patterns

"Evening Star" and "Evening Doji Star" candlestick patterns

Testing results of the Expert Advisor, based on Morning/Evening Stars + MFI

Author: MetaQuotes Software Corp.


 

and here too, Could you make an arrow indicator by the same rules?))

your ideas are very interesting, honourable))))

 

With the parameters stated:

"2.4 Results of testing on history

The results of testing the Expert Advisor on historical data (EURUSD H1, testing period: 2010.01.01-2011.03.16, PeriodMFI=49, MA_period=3).

This Expert Advisor used theTrading FixedLot module (Trading Fixed Lot),Trailing not used."

When testing the result is negative (in the article on the chart it is positive).

Why could this happen?

 

Forum on trading, automated trading systems and testing trading strategies

Testing Morning/Evening Stars + MFI

remizz, 2016.02.22 02:30

Testing https://www.mql5.com/en/code/323 with the specified parameters - the result is unprofitable. Why so?

Forum on trading, automated trading systems and testing trading strategies

Testing Morning/Evening Stars + MFI

remizz, 2016.02.22 02:48 pm.

Yes, no, you misunderstand. There in the article there is a graph that turned out on the specified period with the specified parameters - it is positive. My question is why I have a negative result under the same conditions.

 
Very good indicator, just a shame mt4 doesn't work, I wonder if it's possible to rewrite one that mt4 can use, looking forward to it, thanks!
 
Do not allow me to compile. 14 ERRORS
 
how to buy it?