Wrong parameters count
SendNotification(Symbol()+", "+NameTimeframe()+": Candle size>="+string(InpLevelSize)+" pips");
(the other two functions already return string, only InpLevelSize needs to be converted)
- www.mql5.com
SendNotification(Symbol()+", "+NameTimeframe()+": Candle size>="+string(InpLevelSize)+" pips");
(the other two functions already return string, only InpLevelSize needs to be converted)
Thats great,
thanks a lot for your help
string NameTimeframe(void) { switch(Period()) { case 1 : return "M1"; case 2 : return "M2"; case 3 : return "M3"; case 4 : return "M4";
- Don't hard code constants. Always use the corresponding symbol (PERIOD_M…).
- Simplify, use EnumToString
Need some help with some MT5 code - MT5 - Expert Advisors and Automated Trading - MQL5 programming forum #3 (2018)
Hi,
I am trying to add a mobile alert to the below indicator and have added the following line
SendNotification(Symbol(),", ",NameTimeframe(),": Candle size>=",InpLevelSize," pips");
but now I get a 'wrong parameters count' error when I compile it.
If anyone could point me in the right direction on fixing this that would be awesome.
Many thanks