greenDay = close >= close[1]
redDay = close< close[1]
highVolume = highest(volume, 10)
Redvolume= iff(redDay,volume,0)
Greenvolume= iff(greenDay,volume,0)
TopGreenV= highest(Greenvolume, 10)
TopRedV=highest(Redvolume, 10)
pocketPivot = volume > TopRedV
pocketPivotDay =pocketPivot and greenDay
plotshape(pocketPivotDay? 1:na,style=shape.triangleup, location=location.belowbar, color=aqua, size=size.small)
redDay = close< close[1]
highVolume = highest(volume, 10)
Redvolume= iff(redDay,volume,0)
Greenvolume= iff(greenDay,volume,0)
TopGreenV= highest(Greenvolume, 10)
TopRedV=highest(Redvolume, 10)
pocketPivot = volume > TopRedV
pocketPivotDay =pocketPivot and greenDay
plotshape(pocketPivotDay? 1:na,style=shape.triangleup, location=location.belowbar, color=aqua, size=size.small)
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.