
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi Trolley,
i have the same problem. Have you found any solution or idea on it?
thanks
The problem is caused by MetaTrader Wizard itself. Somehow it is not creating the signal object using the SampleSignal class but using the CExpertSignal! Look for the:
CExpertSignal *signal = new CExpertSignal;
and change it with:
CSampleSignal *signal = new CSampleSignal;
Cheers, Zarik
Hi,
When I compiled the code, I got three warnings
declaration of 'm_open' hides member samplesignal.mqh 42 23
declaration of 'm_close' hides member samplesignal.mqh 43 23
m_open and m_close were defined in ExpertBase.mqh but with different type.
m_expiratin was defined in ExpertSignal.mqh.
Comment out above three lines. Warnings are gone.
George
The reason for the warning is because those properties are already defined in the ExpertBase (m_open and m_close) and ExpertSignal (m_expiration). Rename the properties names to something different and the issue will be solved.
Cheers, Zarik
I have just downloaded your Signal Code and compiled it. I get these errors. How can I fix them to make it work?
And the same errors come out and your file, which is in the archive and I did not change it in any way, just compiled.
If you look at how these parameters are written in the ExpertBase file there they are with asterisks, if I put asterisks before the name in the code errors will be even more. What is the reason ?
https://photos.app.goo.gl/2rPVRPfBDhb65aZC9
Please set the correct Code.
Even after looking through all the answers in this thread, the EA still does not trade on history, only draws a moving line and does not make any other trades.
I am looking for at least some working EA with buy and sell orders to experiment with settings or add my ideas. I would like to have a simple Template, and just be able to add Conditions1 and Conditions2 to the Code to execute trades based on them. I just used to write in another programme (Easy Lengwich from another platform), here it is very difficult for a simple user to understand how to write his strategies. Even when an error occurs, there is no possibility to right-click on the mouse to find a variant of its correction in the Help manual, so I have to search the Internet and still can't find a solution.
Try this - https://www.mql5.com/en/code/32107
Important Note:
In order MetaEditor Wizard to be able to find the signal file (samplesignal.mqh file), The class discriptor should be as following:
// wizard description start
//+------------------------------------------------------------------+
//| Description of the class |
//| Title=Signal on crossing of the price and the MA |
//| entering on the back movement |
//| Type=SignalAdvanced |
//| Name=Sample |
//| Class=CSampleSignal |
//| Page= |
//| Parameter=PeriodMA,int,12 |
//| Parameter=ShiftMA,int,0 |
//| Parameter=MethodMA,ENUM_MA_METHOD,MODE_EMA |
//| Parameter=AppliedMA,ENUM_APPLIED_PRICE,PRICE_CLOSE |
//| Parameter=Limit,double,0.0 |
//| Parameter=StopLoss,double,50.0 |
//| Parameter=TakeProfit,double,50.0 |
//| Parameter=Expiration,int,10 |
//+------------------------------------------------------------------+
// wizard description end
//+------------------------------------------------------------------+
The Type should be SignalAdvanced (which is shown by red color), so change signal to SignalAdvanced in your source code and then MetaEditor Wizard will be able to find the signal file (samplesignal.mqh file).
and finlly metaquotes should edit this article.