The attached BarTimer.mq4 displays the percentage of time elapsed for the current bar on the chart using the period() function.
I would like to modify the indicator so the percentage time of D1 can be outputted on a five minute chart. The problem is how to get the seconds elapsed from from a D1 bar while using an M5 chart without using the period function.
I have tried various ideas but never seem to get the correct values outputted.
Is there a neat and obvious solution?
Any suggestions?
I would like to modify the indicator so the percentage time of D1 can be outputted on a five minute chart. The problem is how to get the seconds elapsed from from a D1 bar while using an M5 chart without using the period function.
I have tried various ideas but never seem to get the correct values outputted.
Is there a neat and obvious solution?
Any suggestions?
Attached File(s)
BarTimer.mq4
3 KB
|
321 downloads