It's better to run the EA once when new bar starts.
"MQL4: Completed Bar"
"MQL4: Completed Bar"
Thank you.. :)
it works much better..
it works much better..
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
I'm currently working on an Expert Advisor. But my code is verry
sloooow so i don't want metatrader from updating every tick from
server. I want it to read every 30 seconds. I have put this line but
whenever metatrader updates its data it automatically refreshes screen
data.. Metatrader is not reloading indicator data with code below but i
don't want to update the objects (i mean screen objects, trendlines etc etc) either.
if (CurTime()-timelastupdate < 600 && Period()==lasttimeframe)
return (0);
Thanks in advance.