Candlestick Patterns + windows Mod by Boernerer

My modifications for the candlestick pattern script by Robert Waddell.

- Added window (= gaps) detection
- Added Bear/Bull Sash
- Modified candlestick ID code
- Candlesticks will only be displayed if above or below TLine

Originally created by Robert Waddell with special thanks to repo32 for his candlestick ID code, DavidR for EMA code and Chris Moody for barcolor code.

Enjoy and would love if you improve it further!
Release Notes: Updated colors, reorganised the code
Release Notes: Modified TLine (now a 10 SMA, instead of 8 EMA)
Modified candlestick logic to include location above or below TLine
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.

Want to use this script on a chart?