if I use +GMToffset in start/stop hours it will not work ... how can this be solved?
fex:
thank you, can I use it like bellow?
if(TimeCurrent()>=FromHour+GMToffset && TimeCurrent()<=ToHour+GMToffset) return(0);
thank you, can I use it like bellow?
no 23+2 ??
Why is this? I checked my indicators and I've done the same but I forgot why :)
@ fulltilt, I think Raptor means
if(TimeHour(TimeCurrent())>=FromHour+GMToffset && Hour()<=ToHour+GMToffset) return(0);
TimeCurrent() gets the server time of the last tick. And TimeHour() gets the hour figure from that.
Why is this? I checked my indicators and I've done the same but I forgot why :)
@ fulltilt, I think Raptor means
TimeCurrent() gets the server time of the last tick. And TimeHour() gets the hour figure from that.
//TIMEZONECORRECTION int NewTime = (TimeCurrent()+ (( 0 - Timezone.from.Server) * 3600));Try again
seems to be working ;-)
but what about the ToHour part in this case?
Hour()<=ToHour+GMToffset
if(TimeHour(TimeCurrent())>=FromHour+GMToffset && Hour()<=ToHour+GMToffset) return(0);
seems to be working ;-)
but what about the ToHour part in this case?
first part only, is this enough.?
if(TimeHour(TimeCurrent())>=FromHour+GMToffset && Hour()<=ToHour+GMToffset) return(0);
first part only, is this enough.?
No, take your time reading this topic
read this twice if one time is not enough
and do it again if reading twice is not enough
... the answer why not is in this topic !!

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
if I use +GMToffset in start/stop hours it will not work ... how can this be solved?
fex: