I have the following script essentially showing what I want on the chart. However, I only want it to display the priceline on the current bar, and not all the way across the screen as it currently does. Any help would be greatly appreciated, thanks.
Code:
plot priceLine = highestAll(if isNan(close[-1]) and !isNAN(close) then close else double.nan) * 1.0175;