EXPERIMENTAL: previous custom time window median price and current time window open price in a neat package :p
study(title="[RS]Temporal Median Price V0", shorttitle="[RS]TMP.V0", overlay=true) hideopen = input(true) hidemedian = input(false) timewindow = input("3M") topen = hideopen ? na : security(tickerid, timewindow, open) tmedian = hidemedian ? na : security(tickerid, timewindow, hl2[1]) plot(tmedian, color=(tmedian != tmedian[1] ? na : black), linewidth=2) plot(topen, color=(topen != topen[1] ? na : black), linewidth=1)