michaelhasip
New member
I added a vertical line to indicate how far to the newest bar with below code:
However, the vertical line appear at the left hand side of the bar.
Is there any chance that I could move the line to the middle of the bar? Using same code for 1min/5min/day/week chart
Thanks in advance~
Code:
def last_bar = HighestAll(if !IsNaN(close) then BarNumber() else Double.NEGATIVE_INFINITY);
AddVerticalLine((last_bar - BarNumber() == 5) , 5, Color.ORANGE, Curve.SHORT_DASH);
Is there any chance that I could move the line to the middle of the bar? Using same code for 1min/5min/day/week chart
Thanks in advance~