What does this do ?
TimeCurrent()%(period_no * 60) for H1 ?
TimeCurrent()%(period_no * 120) for D1 ?
What does this do ?
TimeCurrent()%(period_no * 60) for H1 ?
TimeCurrent()%(period_no * 120) for D1 ?
The 60 works out the box for the 1hr chart based on a 24hr period.
So, for the 1hr charts it does 1440 * 60 and works out the time to start the rectangle from.
On the Daily charts, it should be highlighting a 5 day period but only Monday to Friday. SO, if the chart is currently Wednesday, it should highlight Monday, Tues, and Wednesday only.
When the Daily is selected the period_no will be 10080 for weekly.
I did and no matter what I do, it will only highlight 5 days
10080/100
I did and no matter what I do, it will only highlight 5 days
10080/100

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have a problem with the times on this chart.
It works with the one hour chart highlighting a box for the daily range
but on the Daily chart, I am trying to highlight a box for the last week and it doesn't highlight the correct number of days.