//@version=4
study("OB by SB", overlay=true)
//Inputs
highBarNext = high
lowBarNext = low
highBarPrevious = high
lowBarPrevious = low
openBarPrevious = open
closeBarPrevious = close
openBarCurrent = open
closeBarCurrent = close
int offset = 2
bar_index_ = bar_index
//bearCandlecolor = input(defval=#a86161, title="Bearish OB Candle", type=input.color, ...