I am beginning on pinescript and in coding, and I would like some help...
I would want to know the impact on the market of the last 15 minutes of each trading day. So I would want to plot the price difference between the closing at 16:00 and the closing at 15:45. And I would like to read the indicator on 1D timeframe charts.
Thank you very much!
//@version=5
indicator("Time_Strategy", "Time_Strategy", overlay=false)
close_end = if hour(time) == 16 and minute(time) == 00
close
else
na
close_start = if hour(time) == 15 and minute(time) == 45
close
else
na
close_diff= close_end - close_start
plot (close_diff, "difference", color=color.blue, style=plot.style_columns)