pipe_finder: Reversal Indicator for Pipe Top & Bottom Patterns
Aug 25, 2018

The pipe_finder indicator identifies high-probability Pipe Top and Pipe Bottom reversal patterns by analyzing candle body thickness, volume spikes, and trend direction. It helps traders pinpoint potential trend exhaustion points where two adjacent, unusually large candles of opposite polarity form a "pipe" shape.
Usage
The Usage section focuses on identifying price reversals through specific candlestick formations. Traders can use this tool to spot potential entries when the market is overextended.
- Pipe Bottom: Look for a green background highlight during a downtrend. This occurs when a large red candle is immediately followed by a large green candle, both supported by high volume.
- Pipe Top: Look for a red background highlight during an uptrend. This occurs when a large green candle is followed by a large red candle, indicating a potential bearish reversal.
The indicator is most effective when the sensitivity is tuned to the specific volatility of the asset being traded. Higher sensitivity values will result in more frequent detections by lowering the threshold for what constitutes a "large" candle body.
Details
The script identifies patterns based on four primary criteria:
- Body Thickness: Both candles in the pattern must have a body size (absolute difference between open and close) greater than the moving average of recent candle bodies, adjusted by a sensitivity multiplier.
- Color Polarity: For a bottom, the first candle must be bearish and the second bullish. For a top, the first must be bullish and the second bearish.
- Trend Filtering: Patterns are filtered by an Exponential Moving Average (EMA). Bottoms are only valid if the EMA slope is negative (downtrend), and tops are only valid if the EMA slope is positive (uptrend).
- Volume Confirmation: The average volume of the two candles forming the pipe must be greater than the Volume EMA, ensuring the move has significant market participation.
Settings
- Sensitivity: Determines the threshold for candle body size. A higher value makes the criteria stricter, while a lower value makes the indicator more sensitive to smaller "pipes."
- Candle Thickness Average Period: The lookback period used to calculate the average body size of historical candles.
- Filter EMA Length: The length of the EMA used to determine the underlying trend direction.
- Volume EMA Length: The lookback period for the volume moving average used to confirm the pattern.
FAQ
How do I interpret the background colors?
A green background indicates a Pipe Bottom (bullish reversal), while a red background indicates a Pipe Top (bearish reversal).
Can I use this on any timeframe?
Yes, the pipe_finder can be used on any timeframe, though it is traditionally used on higher timeframes (H1, H4, Daily) to filter out market noise.
How can I access pipe_finder?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

