Optmisable Patterns...
Once you've assembled your EA you may want to replace
input int Inp_Signal_SignalCustomPatterns_CCI_LongPattern = 1; input int Inp_Signal_SignalCustomPatterns_CCI_ShortPattern = 2;
with
//---3 white soldiers & black crows are an example... it could be any other signal input ENUM_LONG_CANDLE_PATTERNS Inp_Signal_SignalCustomPatterns_CCI_LongPattern =CANDLE_PATTERN_THREE_WHITE_SOLDIERS; input ENUM_SHORT_CANDLE_PATTERNS Inp_Signal_SignalCustomPatterns_CCI_ShortPattern=CANDLE_PATTERN_THREE_BLACK_CROWS;
Hello!
How to test the code of the Expert Advisor created by MQL5 Wizard, expert_ms_es_rsi.mq5 (Trading signals of candlestick patterns "Morning Star/Evening Star" with confirmation from RSI indicator) in MetaTrader 5 Strategy Tester.
I open the tester in the list of Expert Advisors it is not there, although I copied it there.
I open the tester and it is not in the list of Expert Advisors, although I copied it there.
did you compile it?
and compiled?
Ultra:
Ну да открыл код в редакторе MQL5
compiled it.
The tester shows 10 errors.
Yes, I opened the code in the MQL5 editor.
compiled.
The tester shows 10 errors.
so look at these errors and correct them.
The tester does not show compilation errors. the editor shows them.
so look at these errors and fix them.
Well, yes, in the tester
it turns out that the code is not clean, it has errors if compilation fails and it is posted on www.mql5.com.
I am trying to put together a simple EA using the sample code supplied by including the "aCandlePatters.mqh" but there appears to be an error in the class as I keep getting "invalid pointer access in 'aCandlePatterns.mqh' (66,64)" error message and in the journal initializing of test_EA (AUDUSD,H4) failed. I have tried everything but the problem persists. Any tips or assistance would be appreciated. Thks
https://www.mql5.com/en/code/321
The error " Core 1 tester stopped because OnInit failed". The code of the programme is exactly the same. Could you please tell me what could be the problem? Thank you.
The error " Core 1 tester stopped because OnInit failed".
Before that " 2013.12.25 10:47:33 Core 1 2013.01.01 00:00:00 CExpert::ValidationSettings: error money parameters"
"2013.12.25 10:47:33 Core 1 2013.01.01 00:00:00 CMoneyFixedLot::ValidationSettings: lot amount must be in the range from 1.000000 to 1000.000000"

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
MQL5 Wizard - Trade Signals Based on Morning/Evening Stars + RSI:
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 RSI 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.
Author: MetaQuotes Software Corp.