VDUB_KITKAT_V1 - EXPERIMENTAL
//@version=2 study("VDUB_KITKAT_V1_EXP", overlay=true, shorttitle="VDUB_KITKAT_V1") RST = input(title='KITKAT 1:', type=integer, defval=16) // RSTT = valuewhen(high >= highest(high, RST), high, 0) RSTB = valuewhen(low <= lowest(low, RST), low, 0) RT2 = plot(RSTT, color=RSTT != RSTT[1] ? na : red, linewidth=4, offset=+0) RB2 = plot(RSTB, color=RSTB != RSTB[1] ? na : green, linewidth=4, offset=0) //////////////////////////////////////////////////// RST2 = input(title='KITKAT 1:', type=integer, defval=16) // RSTT2 = valuewhen(high >= highest(high, RST2), high, 1) RSTB2 = valuewhen(low <= lowest(low, RST2), low, 1) RT22 = plot(RSTT2, color=RSTT2 != RSTT2[1] ? na : red, linewidth=9, offset=+0) RB22 = plot(RSTB2, color=RSTB2 != RSTB2[1] ? na : green, linewidth=9, offset=0) ////////////////////////////////////////////////////