Hi, I have attached a normal Pivot indicator MQ4 file.
It works exactly as expected except that it doesn't calculate Mondays correctly.
For Monday calculations, it should take the time from Thursday night (Friday morning) 0000 EST to Sunday night (Monday morning) 0000 EST.
On the current indicator, it screws the lines up on Mondays as its still trying to calculate from Saturday night to Sunday night instead.
Is there anyone who can adjust the code so it works well on Mondays while keeping the remaining days exactly as they are?
Appreciate the help,
JH
It works exactly as expected except that it doesn't calculate Mondays correctly.
For Monday calculations, it should take the time from Thursday night (Friday morning) 0000 EST to Sunday night (Monday morning) 0000 EST.
On the current indicator, it screws the lines up on Mondays as its still trying to calculate from Saturday night to Sunday night instead.
Is there anyone who can adjust the code so it works well on Mondays while keeping the remaining days exactly as they are?
Appreciate the help,
JH
Attached File(s)
PIVOTS DAILY.MQ4
15 KB
|
367 downloads