This indicator is developed from Gann overextended (Gann's square of nine).
thinkScript Code
Code:
# Gann-OverExtended
# Assembled by BenTen at useThinkScript.com
# Converted from https://www.tradingview.com/script/YRUMUXkz-Gann-OverExtended/
declare lower;
input MAS = 15;
def SMA = simpleMovingAvg(close, MAS);
def Price_adjust = close * 10;
def SMA_adjust = SMA * 10;
def sqPrice_adjust = sqrt(Price_adjust);
def SqSMA_adjust = sqrt(SMA_adjust);
def Diff_sqr = sqPrice_adjust - SqSMA_adjust;
def Diff_angel = (Diff_sqr * 360) / 2;
def g8 = simpleMovingAvg(Diff_angel, 2);
plot gann = Diff_angel;
plot h = 90;
plot ZeroLine = 0;
plot l = -90;