//version=5 indicator("High of Specific Date", overlay=true)
// Input for the specific date input_date = input.time(timestamp("2023-10-01"), title="Specific Date", confirm=true)
// Check if the current bar's date matches the input date is_target_date = (time == input_date)
// Get the high of the target candle var float target_high = na if is_target_date target_high := high
// Draw a horizontal line at the high of the target candle line.new(x1=bar_index, y1=target_high, x2=bar_index + 1, y2=target_high, color=color.red, width=2, extend=extend.right)
// Optional: Label to show the high value if not na(target_high) label.new(x=bar_index, y=target_high, text=str.tostring(target_high), color=color.white, textcolor=color.black, style=label.style_label_down, size=size.small)