Login Page - Create Account

Technical Studies Reference


Gann Swing Oscillator

This study calculates and displays the Gann Swing Oscillator (GSO) of the Price Data. The GSO is meant to be used in conjunction with the Gann HiLo Activator and the Gann Trend Oscillator, as prescribed by Robert Krausz in his article The New Gann Swing Chartist, Stocks & Commodities V16:2 (pp 57-66).

Let \(H_t\) and \(L_t\) be, respectively, the High Price and Low Price at Index \(t\).

Let \(H_t\) and \(L_t\) be, respectively, the High Price and Low Price at Index \(t\).

An Uptrend occurs at Index \(t\) if \(H_{t - 1} < H_t\) and \(L_{t - 1} < L_t\).

A Downtrend occurs at Index \(t\) if \(H_{t - 1} > H_t\) and \(L_{t - 1} > L_t\).

An Upswing occurs at Index \(t\) if \(H_{t - 1} > H_t\) and \(L_{t - 1} > L_t\) and \(H_t < H_{t + 1}\) and \(L_t < L_{t + 1}\). That is, an Upswing occurs at Index \(t\) if a Downtrend is immediately followed by an Uptrend at \(t\).

A Downswing occurs at Index \(t\) if \(H_{t - 1} < H_t\) and \(L_{t - 1} < L_t\) and \(H_t > H_{t + 1}\) and \(L_t > L_{t + 1}\). That is, a Downswing occurs at Index \(t\) if an Uptrend is immediately followed by a Downtrend at \(t\).

We denote the value of the Gann Swing Oscillator at Index \(t\) as \(GSO_t\), and we compute it for \(t > 1\) as follows.

\(\displaystyle{GSO_t =\left\{ \begin{matrix} 1 & Upswing \space and \space H_{t + 1} > H_t \space and \space H_{t + 2} > H_{t + 1} \\ -1 & Downswing \space and \space L_{t + 1} < L_t \space and \space L_{t + 2} < L_{t + 1} \\ GSO_{t - 1} & Otherwise \end{matrix}\right .}\)

Simply put, the value of GSO at Index \(t\) is 1 if an Upswing is immediately followed by two higher Highs, the value is -1 if a Downswing is immediately followed by two lower Lows, and if neither of these things occur then the previous value of the GSO is used.

Inputs

  • This study has no inputs.

Spreadsheet

The spreadsheet below contains the formulas for this study in Spreadsheet format. Save this Spreadsheet to the Data Files Folder.

Open it through File >> Open Spreadsheet.

Gann_Swing_Oscillator.478.scss


*Last modified Monday, 26th September, 2022.