I do not receive any compile error from your snippet when compiled by 745 nor 749.
add a line :
input LineType TL = UP_TRENDLINE;
this is whithin the documentation, not in the help of editor
deysmacro:
Yes. Using DOT for variable name is only for MT5. Remove all the DOTs.
Yes. Using DOT for variable name is only for MT5. Remove all the DOTs.
Please don't give wrong advice. DOT can not be used in variables for MT4 AND MT5.
There is not 1 variable with a dot in this code. See documentation.
kenykau:
When I compile, I got the error:
Does anyone know why?
- When I compiled your posted code, I get no error.
- This can be simplified
datetime GetLeft(){return (this.left);}; datetime GetRight(){return (this.right);}; LineType GetType(){return (this.type);};
datetime GetLeft(){return left;} datetime GetRight(){return right;} LineType GetType(){return type;}
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
Hi all,
I found that MT4(Build 745) is compulsory requiring enum type variable to have a default value, which is very confused.
Below is my code segment.
When I compile, I got the error:
note: the above errors corresponding to the bold codes
Does anyone know why?