//binguru.net highest and lowest prices of the day compared with the previous D
study(title="HHLL", shorttitle="HL", overlay=true)
dd = security(tickerid, 'D', high)
ddd = security(tickerid, 'D', high)
ll = security(tickerid, 'D', low)
lll = security(tickerid, 'D', low)
isHigh() => high > ddd and high == dd
isLow() => low < lll and low == ll
barcolor(isHigh() ? #43FF00 : isLow() ? #F9F104 : na)
plotchar(isHigh(), char='H')
plotchar(isLow(), char='L', location = location.belowbar)
study(title="HHLL", shorttitle="HL", overlay=true)
dd = security(tickerid, 'D', high)
ddd = security(tickerid, 'D', high)
ll = security(tickerid, 'D', low)
lll = security(tickerid, 'D', low)
isHigh() => high > ddd and high == dd
isLow() => low < lll and low == ll
barcolor(isHigh() ? #43FF00 : isLow() ? #F9F104 : na)
plotchar(isHigh(), char='H')
plotchar(isLow(), char='L', location = location.belowbar)
//@version=2 study(title="HHLL", shorttitle="HL", overlay=true) dd = security(tickerid, 'D', high) ddd = security(tickerid, 'D', high[1]) ll = security(tickerid, 'D', low) lll = security(tickerid, 'D', low[1]) isHigh() => high > ddd and high == dd isLow() => low < lll and low == ll barcolor(isHigh() ? #43FF00 : isLow() ? #F9F104 : na) plotchar(isHigh(), char='H') plotchar(isLow(), char='L', location = location.belowbar)