I normally use a vertical line script to mark the point of 3 hours ago on my charts. I adjust the number of bars back that the vertical line will be painted, based on the aggregation of the candles.
(Eg. if wanting the line to mark one hour ago then it would be 60 bars ago on a 1min chart and 4 bars ago on a 15m chart. Although it might be 61 and 5, because the vertical line appears to the right of the current bar, not the left - I can’t remember offhand if the input for the script needs to be the time back +1 bar because of that, but you get the idea.)
I do this so that I can immediately spot which portion of each chart’s candles corresponds to the candles on the other charts using different periods, without needing to inspect the x-axis time labels of the chart cells. It’s helpful when using a lot of charts having different periods across different flexible grid cells.
However, using an adjustable bars back input or counter for drawing a vertical line X hours ago obviously won’t work on tick charts. Is there a way to do it on tick charts? I think probably so using “secondsfromtime” or something but it’s not clear to me how. Also I am not sure if some time functions might not work on tick charts since they can’t reference secondary periods but maybe that is irrelevant. I think that Welkin’s volume tick projection study draws bars at set time intervals on a tick chart, if I’m not remembering wrong, so an answer/ solution might partly lie there.
I would be very grateful if anyone has a solution for getting a time marker based on X hours ago to work on a tick chart.
(Eg. if wanting the line to mark one hour ago then it would be 60 bars ago on a 1min chart and 4 bars ago on a 15m chart. Although it might be 61 and 5, because the vertical line appears to the right of the current bar, not the left - I can’t remember offhand if the input for the script needs to be the time back +1 bar because of that, but you get the idea.)
I do this so that I can immediately spot which portion of each chart’s candles corresponds to the candles on the other charts using different periods, without needing to inspect the x-axis time labels of the chart cells. It’s helpful when using a lot of charts having different periods across different flexible grid cells.
However, using an adjustable bars back input or counter for drawing a vertical line X hours ago obviously won’t work on tick charts. Is there a way to do it on tick charts? I think probably so using “secondsfromtime” or something but it’s not clear to me how. Also I am not sure if some time functions might not work on tick charts since they can’t reference secondary periods but maybe that is irrelevant. I think that Welkin’s volume tick projection study draws bars at set time intervals on a tick chart, if I’m not remembering wrong, so an answer/ solution might partly lie there.
I would be very grateful if anyone has a solution for getting a time marker based on X hours ago to work on a tick chart.