I solved the issue. Thanks.
Hello,
I have an older EA template (using EA with libraries and include files) that is no longer working in current MT4 versions. I'm getting "ambiguous call to overloaded function with the same parameters" error when compiling.
I'm not a programmer, but I can read and write some code. My problem is that I can code some simple routine things but I don't have a good fundamental understanding of MQL language.
Can anyone help?
I have a feeling that I need to include more code for a comprehensive solution, but can anyone at-least try to explain me what is the reason for this error and point me to right direction?
Line below is the one causing the error in main EA code. Library and Include files seem to compile just fine
if ( !FilterSetups( martingale, fibomartingale,...
Code from EA:
//if all filters are passed successfully // if ( !FilterSetups( martingale, fibomartingale, maxspread, pt, //max spread filter parameters _buy_trades + _sell_trades, max_martingale_trades, maxtrades, maxtradesnet, //max trades filter parameters Symbol() , magic_number, closeall, //closeAll trades filter parameters //sleep minutes after x losses filter parameters sleepafterxlosses, xlosses, sleepminutes, last_minutes_xlosses_time, //sleep x mintes between trades filter parameters minutes_between_trades, last_minutes_bt_time, //sleep x bars between trades filter parameters bars_between_trades, bars_counter, //time filter parameters usetimefilter, tradesunday, mondayfilter, mondayhour, mondayminute, fridayfilter, fridayhour, fridayminute, weekfilter, starthour, startminute, endhour, endminute, //news time filter parameters newsfilter, minutesbefore, minutesafter, impacthigh, impactmedium, impactlow ) ) {
Code from Include:
//check Restrictions for new SETUPS, if there are some restrictions, return true, DO NOT open new trades, otherwise return false bool FilterSetups( bool martingale, bool fibomartingale, double maxspread, double point, //max spread filter parameters int _trades_open, int max_martingale_trades, int maxtrades, int maxtradesnet, //max trades filter parameters string symbol, int magic, bool closeall_activated, //closeAll trades filter parameters //sleep minutes after x losses filter parameters bool sleepafterxlosses, int xlosses, int sleepminutes, datetime last_minutes_xlosses_time, //sleep x mintes between trades filter parameters int minutes_between_trades, datetime last_minutes_bt_time, //sleep x bars between trades filter parameters int bars_between_trades, int bars_counter, //time filter parameters bool usetimefilter, bool tradesunday, bool mondayfilter, int mondayhour, int mondayminute, bool fridayfilter, int fridayhour, int fridayminute, bool weekfilter, int starthour, int startminute, int endhour, int endminute, //news time filter parameters bool newsfilter, int minutesbefore, int minutesafter, bool impacthigh, bool impactmedium, bool impactlow );
Code from Library:
bool FilterSetups( bool martingale, bool fibomartingale, double maxspread, double point, //max spread filter parameters int _trades_open, int max_martingale_trades, int maxtrades, int maxtradesnet, //max trades filter parameters string symbol, int magic, bool closeall_activated, //closeAll trades filter parameters //sleep minutes after x losses filter parameters bool sleepafterxlosses, int xlosses, int sleepminutes, datetime last_minutes_xlosses_time, //sleep x mintes between trades filter parameters int minutes_between_trades, datetime last_minutes_bt_time, //sleep x bars between trades filter parameters int bars_between_trades, int bars_counter, //time filter parameters bool usetimefilter, bool tradesunday, bool mondayfilter, int mondayhour, int mondayminute, bool fridayfilter, int fridayhour, int fridayminute, bool weekfilter, int starthour, int startminute, int endhour, int endminute, //news time filter parameters bool newsfilter, int minutesbefore, int minutesafter, bool impacthigh, bool impactmedium, bool impactlow ) {
Hello,
I have an older EA template (using EA with libraries and include files) that is no longer working in current MT4 versions. I'm getting "ambiguous call to overloaded function with the same parameters" error when compiling.
I'm not a programmer, but I can read and write some code. My problem is that I can code some simple routine things but I don't have a good fundamental understanding of MQL language.
Can anyone help?
Wow, that is a lot of arguments for one function, no wonder it is giving you issues... I would start by simplifying your code and breaking it up into smaller functions with less arguments. That should help you pin down where the issue is laying at. Just a general programming advice
Thank you all, I appreciate your help!
gjol: I compiled the exact same code about 1 yr ago and it was compiled just fine with library and include as they are. Therefore the same function twice should not be the problem, unless the new MT4 versions have changed so that they don't accept it, which ofcourse can be the case...
Thank you all, I appreciate your help!
gjol: I compiled the exact same code about 1 yr ago and it was compiled just fine with library and include as they are. Therefore the same function twice should not be the problem, unless the new MT4 versions have changed so that they don't accept it, which ofcourse can be the case...
try and find out
Thank you all, I appreciate your help!
gjol: I compiled the exact same code about 1 yr ago and it was compiled just fine with library and include as they are. Therefore the same function twice should not be the problem, unless the new MT4 versions have changed so that they don't accept it, which ofcourse can be the case...

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
what is this compiling error?
help me
and the compiling error
thanks
eugenio