OPEN-SOURCE SCRIPT

Pipe tops & bottoms v1.0

This indicator detects Pipe Tops and Pipe Bottoms chart patterns, using the concept described by Thomas Bulkowski: Tops, Bottoms.

Pipe tops and bottoms patterns are marked on the chart. You can change the indicator sensitivity by using the main settings which define detected price variation boundaries. This will lead to more dense or sparse pattern detection.

Once the bar following each detected top or bottom pattern satisfies signal condition (the current close price must be higher than the high of the pipe bottom, or lower than the low of the pipe top), these bars are also marked on the chart and can be used to define potential long or short entry points.

You can optionally choose to show only signal marks on the chart (this is preferable to avoid visual cluttering), or both pattern and signal marks.

Script calculations are based on the 'Pipe Bottoms Indicator Based on Thomas Bulkowski's Theories' indicator developed by BoilderRoomColdCaller in 2020.
Candlestick analysisChart patterns

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer