After reading Cam Hui's blog post about his "Trifecta" bottom spotting model I thought I'd try my hand at scripting it as an indicator. The results are pretty close to what he describes. Though the data TradingView feeds me doesn't seem to be identical to what he's using on StockCharts.com the results are close enough that I will call the effort a success worth...
Top signal: reaches -100 when the color is yellow
Bottom signal: reaches -100 when the color is red
This script calculate a stochastic oscillator of BBW, and defines a top and a bottom as its highest in N bars.