All indicators

Volatility Adjusted Grid [Gann]

Aug 14, 2021

Static chart image
Support and ResistanceDashboardVolatility

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 indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.