Download MetaTrader 5

How to define a VA function?

To add comments, please log in or register
Have you developed a profitable strategy? Share it with millions of traders via Signals!
Amy Liu
644
Amy Liu 2014.11.03 04:56 

How to make a function like "type VAFunction(type arg1, type arg2, …)" work in MQL4? Thank you very much!

Stanislav Korotky
17939
Stanislav Korotky 2014.11.03 14:43  
It's not clear what you mean exactly? Do you want to define such function or use an existing one? You can specify default value for all ending parameters.
Amy Liu
644
Amy Liu 2014.11.03 15:20  
marketeer:
It's not clear what you mean exactly? Do you want to define such function or use an existing one? You can specify default value for all ending parameters.

Thank you. in MQL4, it has function like below:

void  Print(
   argument,     // first value
   ...           // next values
   );

I want to define such function but compilation fails:

It seems that it not surpported by MQL4, but I'm not sure. Can you help? :) 

To add comments, please log in or register