pwwatson:
Unfortunately not possible.
Can enumeration be used in MQL4? I'd like to have input parameters where an input is Moving Average Method and the user has a choice of Simple, Exponential, etc instead of having to input 0, 1, etc. Is that possible?
Thanks,
Paul
// you may use the below codes as a note extern string MaMethod="Ma_Method's Number Value"; extern string SMA="0"; extern string EMA="1"; extern string SSMA="2"; extern string LWMA="3";
pwwatson:
Will be possible in MT5
Can enumeration be used in MQL4? I'd like to have input parameters where an input is Moving Average Method and the user has a choice of Simple, Exponential, etc instead of having to input 0, 1, etc. Is that possible?
7bit:
Will be possible in MT5
Will be possible in MT5
YES.
extern int MA.Mode.S0E1L3 = 0;
Now possible using MT4 - Build 600:
enum enum_side
{
BUY=1,
SELL=-1
};
....
...
input enum_side side=1;
GB
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
Can enumeration be used in MQL4? I'd like to have input parameters where an input is Moving Average Method and the user has a choice of Simple, Exponential, etc instead of having to input 0, 1, etc. Is that possible?
Thanks,
Paul