Please do not double post,
initialize the variable signal, something like below
int signal=-1; // no signal
change the data type of variable wt to datetime.
refer this article https://www.mql5.com/en/articles/1391
Common Errors in MQL4 Programs and How to Avoid Them
- www.mql5.com
Some older programs can return errors in the new version of the MQL4 of compiler. To avoid critical completion of programs, the previous version compiler handled many errors in the runtime environment. For example, division by zero or array out of range are critical errors and usually lead to application crash. Such errors occur only in some...
Thank you @Lakshan Perera,
I not sure why there is double post when I click Post...
Thank you again :)
After some changes, I have an error (!= unexpected token)
I refer to the https://www.mql5.com/en/articles/1391 [1.1]
But is seem even worst if i change it from
if(datetime!=Time[0])
TO
if(datetime1[] =Time[0])
Common Errors in MQL4 Programs and How to Avoid Them
- www.mql5.com
Some older programs can return errors in the new version of the MQL4 of compiler. To avoid critical completion of programs, the previous version compiler handled many errors in the runtime environment. For example, division by zero or array out of range are critical errors and usually lead to application crash. Such errors occur only in some...
Melvin Tan:
After some changes, I have an error (!= unexpected token)
I refer to the https://www.mql5.com/en/articles/1391 [1.1]
But is seem even worst if i change it from
if(datetime!=Time[0])
TO
if(datetime1[] =Time[0])
this is wrong, what I said was replace the current data type of "wt" variable with datetime data 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
Hello guys,
I cant figure out...
After i compiler my coding, it works accordingly but there is 2 warning sign showed and i cant find out what is the problem with it.
Hope expert out there can help me out with this problem
Colored box represent each warning sign