CM Gann Swing High Low V2
Oct 7, 2014

The CM Gann Swing High Low V2 indicator tracks market trend shifts by plotting dynamic support and resistance levels based on Gann-style moving average crossovers, providing clear visual cues for trend direction and potential breakouts.
Usage
The CM Gann Swing High Low V2 serves as a trend-following tool that identifies "Swing High" and "Swing Low" levels based on the relationship between price action and moving averages. When the price closes above a Gann High level, it signals a bullish shift; conversely, a close below a Gann Low level indicates a bearish shift.
The indicator offers several visual modes to interpret these shifts:
- Trend Identification: Traders can use the color-coded lines and shapes to determine the current trend bias. Green elements typically represent bullish conditions, while red elements represent bearish conditions.
- Breakout Signals: The script can highlight specific bars or the background when a price crossover occurs, making it easier to spot the exact moment a trend reverses.
- Sensitivity Adjustment: By modifying the moving average period, users can tailor the indicator to different timeframes or market volatilities. A lower period increases sensitivity to price changes, while a higher period smooths out noise.
Details
The script is a refined version of the original Gann Swing High Low logic, originally developed by Glaz and ChrisMoody. It functions by calculating a Simple Moving Average (SMA) of both highs and lows over a user-defined period.
The core logic determines the trend state (hld) by comparing the current close to the previous SMA values. If the close is above the previous high SMA, the state is bullish (1). If the close is below the previous low SMA, the state is bearish (-1). The indicator uses the linebr style for plotting, ensuring that lines only appear when specific conditions are met, preventing cluttered charts.
Settings
Main Settings
- Moving Average Period: Sets the lookback period for calculating the SMA of Highs and Lows. Adjusting this value changes the responsiveness of the indicator.
- Plot Up/Down Triangles at Top and Bottom of Candles/Bars?: Toggles the visibility of triangles directly above or below price bars when a swing level is active.
- Plot Circles at Top and Bottom of Candles/Bars?: Toggles the visibility of the primary Gann High/Low plots using a circle-based line style.
- Plot Triangles at Top and Bottom of Screen?: Displays directional triangles at the very top or bottom of the chart area to provide a constant indication of the current trend.
- Show Highlight Bars on Cross Up or Cross Down?: When enabled, colors the specific price bar (yellow) that triggers a crossover.
- Show Background Highlights at Cross Up or Cross Down?: When enabled, applies a background color (Green for up, Red for down) to the chart at the moment of a crossover.
FAQ
How do I interpret the different colors on the chart?
Green signals typically indicate a bullish environment where price is holding above the Gann Low, while red signals indicate a bearish environment where price is below the Gann High. Yellow highlights identify the specific transition bars.
Can I use this for intraday trading?
Yes, the indicator is versatile and can be applied to any timeframe. However, users should adjust the Moving Average Period setting to match the volatility of their specific timeframe.
How do I get access to CM Gann Swing High Low V2?
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.

