OPEN-SOURCE SCRIPT

pipe_finder. Reversal Indicator for Pipe Top & Bottom Patterns.

By andrewqiu9774
Simple indicator to find pipe bottom and top patterns.

Definition:
- Pipe Bottom:
- Positive Difference from Open and Close is greater than the average thickness of the last "x" candles multiplied by sensitivity "y"
- The previous candle is red and the current candle is green
- Trend Definition - (Trend for EMA length 'z" has a slope less than 0 or pointed downwards)
- The average of the current and previous candle's volume is greater than the average volume for the last "n" candles.

- Pipe Top:
- Positive Difference from Open and Close is greater than the average thickness of the last "x" candles multiplied by sensitivity "y"
- The previous candle is green and the current candle is red
- Trend Definition - (Trend for EMA length 'z" has a slope greater than 0 or pointed upwards)
- The average of the current and previous candle's volume is greater than the average volume for the last "n" candles.

Settings:
Sensitivity: How thick do the pipe candles have to be? (Greater sensitivity = more alerts)
Candle Thickness Average Period: The number of past candles used for measuring the average body size of candlestick.
Filter EMA Length: Length of the EMA used to filter between bull trends and bear trends.
Volume EMA Length: Length of the volume EMA.
Candlestick AnalysisExponential Moving Average (EMA)pipepipebottompipespipe-topVolume Indicator

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