The last bar over a weekend will always be the last bar of the week. Are you talking about a normal week or a trading week?
jmca:
The last bar over a weekend will always be the last bar of the week. Are you talking about a normal week or a trading week?
The last bar over a weekend will always be the last bar of the week. Are you talking about a normal week or a trading week?
Trading week like friday at 23h00 but with the hour difference, we can have 17h00 instead so i was wondering if there's a function or something implanted in mql4 that allow us to know that.
Thanks
fft
> I don't want to use code like TimeHour(TimeCurrent()) == 23 and DayOfWeek==5.
Very wise - if your broker is in Asia, Chicago doesnt close until 'Saturday' :eek:
You do know absolutely which bar is the last of the week :)
It is the last bar before the first one of the new week?!
// On the D1 chart if(DayOfWeek()==0 && Volume[0]==1) // First tick of new week { // Do stuff to look back to prior bars with shift }
FWIW
-BB-
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 everyone,
I was wondering if there's another way to know if the last bar on screen is the last bar of the week.
I don't want to use code like TimeHour(TimeCurrent()) == 23 and DayOfWeek==5.
Thanks.