Declare the bool outside of {} if you are going to reference it in more than one{}
bool test; if(TimeCurrent()>0) { test = true;} else{ test = false; }
bool test; if(TimeCurrent()>0) { test = true;} else{ test = false; }Just declare it on global.
deysmacro:
Just declare it on global.
Thx : )
Just declare it on global.
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'm not used to OnTimer() however, the EA refreshes every 2 minutes given by EventSetTimer(60*2);
I would like to modify this EA, but it seems not working as usual:
Example
If I do this, I got an error: "Test - Undeclared identifier"
So i have to do this:
=> This is really weird.
I tried to add the Start()... but I got the same error?
While if i do this into any other EA... it works fine:
Please help
Cheers