Code: Select all
//@version=5
indicator("Prev_Day_Close",overlay=false)
prev_day_close = request.security(syminfo.ticker,"1D",close[1])
curr_day_open = request.security(syminfo.ticker,"1D",open[0])
difference = curr_day_open - prev_day_close
plot(difference)