Volatility Adjusted Grid [Gann]

Aug 14, 2021

Static chart image
Support and Resistance
Dashboard
Volatility

The Volatility Adjusted Grid [Gann] indicator provides a dynamic support and resistance framework based on the Gann Square of 9, automatically adjusting its grid spacing according to market volatility. By utilizing the Average True Range (ATR) to scale levels, it ensures that the geometrical price patterns remain relevant across different timeframes and market conditions.

Usage

The indicator displays a series of horizontal levels derived from the Gann Square of 9 spiral. Unlike static Gann grids, this tool iterates through multipliers to find a range that is at least a specific multiple of the ATR. This prevents levels from being too wide on lower timeframes or too narrow on higher timeframes.

  • Cardinal Cross Levels: Represented by solid lines, these are considered major support and resistance levels.
  • Ordinal Cross Levels: Represented by dotted lines, these act as minor support and resistance.
  • Range Guide: A table at the bottom left helps you fine-tune the grid. If the current levels feel too tight or too loose, the guide shows you exactly which "Range Size" value to input to reach the next or previous mathematical range step.

Details

The Gann Square of 9 is a method that treats price action as a square root relationship. This script generates a sequence of these numbers and maps them to the chart. To overcome the "rigidity" of standard Gann levels, the script employs a volatility-adjustment logic:

  1. It calculates the current ATR.
  2. It tests various multipliers for the Gann sequence.
  3. It selects the first multiplier that results in a price range greater than the user-defined Range Size * ATR. As ATR expands or contracts, the grid may shift to maintain its proportional relationship to market movement.

Settings

Main Settings

  • No. of S&R Lines: Determines how many resistance and support lines are drawn from the current price.
  • Range Size: The primary sensitivity control. A smaller number results in a tighter grid, while a larger number creates a wider grid.
  • Range Guide: Toggles the visibility of the multiplier guide table on the UI.

Style

  • Line Extension: Choose whether the lines extend to the left or remain at the current bars.
  • Cardinal Cross Style: Sets the line style (Solid, Dashed, or Dotted) for major levels.
  • Ordinal Cross Style: Sets the line style for minor levels.

Alert

  • Alert Frequency: Controls how often alerts trigger when price crosses the nearest Gann levels (Once per Bar or Once per Bar Close).

FAQ

How do I adjust the grid if the lines are too far apart?

You can decrease the "Range Size" setting. Refer to the "Previous Range" value in the on-chart Range Guide table to see what value will trigger the next tighter grid level.

Why do the lines occasionally move?

Because the grid is "Volatility Adjusted," it uses the ATR to determine spacing. If volatility changes significantly, the script may shift to a different multiplier to keep the grid relevant to current price action.

How can I access the Volatility Adjusted Grid [Gann]?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free access on the following platforms
tradingviewSymbolTradingView
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

ninjatraderNinjaTrader
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

metatrader4MetaTrader 4/5
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

thinkorswimThinkorswim
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

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.