Pivot Points
Dec 21, 2024

The Pivot Points indicator highlights specific price levels where market sentiment shifts, identifying potential reversal or continuation zones based on candle color changes.
Usage
The tool is designed to identify "peaks" or "valleys" in price action by monitoring for consecutive candles of opposite colors.
- Trend Continuation: In an uptrend, a pivot point formed by a green candle followed by a red candle can act as a resistance level. A break above this level suggests trend continuation. Conversely, in a downtrend, a break below a pivot point formed by a red candle followed by a green candle suggests further downside.
- Reversal Patterns: These pivot points help visualize classic chart formations like double tops, double bottoms, and head and shoulders patterns.
- Visual Setup: Users can apply the indicator to both a candlestick chart and a line chart simultaneously. While candlesticks provide detail, the line chart helps filter noise to see the market structure more clearly.
Details
The script functions by identifying two specific price action conditions:
- Bullish Pivot (Sell Line): Occurs when a red candle (close < open) is immediately followed by a green candle (close > open). The closing price of the red candle is used as the pivot level.
- Bearish Pivot (Buy Line): Occurs when a green candle (close > open) is immediately followed by a red candle (close < open). The closing price of the green candle is used as the pivot level.
The indicator draws horizontal lines from these points. These lines extend until price crosses over them, providing a visual representation of historical support and resistance levels that have yet to be "cleared" by the current price action.
Settings
- Number of candles to draw lines on: Determines the lookback period (in bars) for calculating and displaying pivot levels.
- Draw Buy Line: Toggles the visibility of bearish pivot levels.
- Buy Line Color/Style/Width: Customizes the visual appearance of the resistance lines.
- Draw Sell Line: Toggles the visibility of bullish pivot levels.
- Sell Line Color/Style/Width: Customizes the visual appearance of the support lines.
FAQ
How do I use the Pivot Points indicator? You can use it to identify market structure and key levels where price is likely to react. It is best used in conjunction with other tools like a 20-period SMA or the RSI to confirm trends and momentum.
Does this indicator work on all timeframes? Yes, the logic is based on individual candle relationships and is applicable to any timeframe from 1-minute to monthly charts.
How can I access Pivot Points? 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.

