Ah good awesome thanks I did not see that thread
I cannot get this code to work:
static datetime CurrentBarOpenTime ; if(iTime(Symbol(),0,0)==CurrentBarOpenTime) return; else CurrentBarOpenTime=iTime(Symbol(),0,0); //Code goes here
Any idea why it wont work?
Thanks!
Ok seem to be working fine now, thanks
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
Hey there,
I'm experiencing some big problems when it comes to determining when a newly bar is formed, or an old bar is closed.
The code only needs to execute when a new bar is formed.
So far I have tried:
and
but it wont work.
Any help would be appreciated!