
Plots a horizontal line where the last close price is. Due to changes in Thinkscript, current version is plotting using the daily close price.
Code:
# Last Price Line
# Barbaros
plot hc = HighestAll(if isNaN(close[-1]) then Close(period = AggregationPeriod.DAY) else Double.NaN);
hc.SetPaintingStrategy(PaintingStrategy.LINE);
hc.SetStyle(Curve.SHORT_DASH);
hc.SetDefaultColor(Color.Orange);
hc.HideBubble();
hc.HideTitle();