OPEN-SOURCE SCRIPT
pipe_finder. Reversal Indicator for Pipe Top & Bottom Patterns.

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.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
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.