
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
In the new version of MQL5 Wizard, the format of signal modules has changed. Look here for information - https://www.mql5.com/ru/forum/3724/66962#comment_66962.
I looked through the code of several ready signals from the Signal folder, there is no implementation of the CheckOpenShort/CheckOpenLong functions. Instead of them are used correctly I understand?
Yeah, that's right.
To be honest, I'm a bit confused. There are CheckOpenShort/CheckOpenLong functions in the CExpertSignal class. You use other functions in your signals, and I don't understand where they are called in CExpert either. The problem is that I took a ready-made signal from the article about writing my own signals module, got the wizard to see it (you can probably make changes to the article about the new format) and got an Expert Advisor with this signal, but it doesn't trade, not a single deal in the tester for a year.
Functions are called in the constructor - it is clear, but why are not used standard functions?Please see what's wrong. It's not trading in the tester.
This module is trading.
For your case, replace for longs
by
for shorts - find it yourself
this module trades
for your case, replace the longs
by
for shorts, you'll find it yourself.
Yes it does, thank you! I spent the day, I think I did everything like in the article, what is my mistake?
In the new wizard compared to the previous one, there are very big changes,
virtual bool CheckOpenLong(double& price,double& sl,double& tp,datetime& expiration);
virtual bool CheckOpenShort(double& price,double& sl,double& tp,datetime& expiration);
I understood as follows: there should be an object of CExpertSignal class among several objects used in the Expert Advisor with the main attribute, it can use these functions. other objects take part in opening positions through the functions
virtual int ShortCondition(); //check the Sell opening condition
virtual int LongCondition(); //check the condition for opening a Buy position
To dot the i's, we need an article on how to write your own signals module in the new wizard, so we are waiting for it.