ucspider

OWS/OBC

Updated OneWhiteSoldier, OneBlackCraw script. This now also shows STRONG patterns where both open and close is above prior's day close for OWS and vice versa for OBC
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?
study("OWS/OBC", overlay=true)

ows = close>open and open>close[1] and close>open[1] and open[1]>close[1]? true : na
strong_ows = ows and open>open[1] ? high : na

plotshape(ows, style=shape.triangledown, location=location.abovebar,color = green)

obc = close<open and open<close[1] and close<close[1] and open[1]<close[1]? true : na
plotshape(obc, style=shape.triangleup, location=location.belowbar,color = red)
strong_obc = obc and open<open[1] ? -high : na


plotarrow(strong_ows)
plotarrow(strong_obc)