gedward3
Established member
- Messages
- 928
- Likes
- 121
Guys,
I emailed Prorealtime and got them to do what is roughly a copy of the TTM Squeeze.
Basicaly breakouts of the Keltner and Bollinger Bands.
Its not a bad indicator.
Hope this helps
Ged
-----------------------------------------------------------------------------------------------------
Price = Close
REM Length for Average True Range (ATR) & Std. Deviation (SD) Calculations
Length = 20
REM Keltner Channel ATRs from Average
nK = 1.5
REM Bollinger Band Std. Devs. from Average
nBB = 2
REM BBS_Index level at which to issue alerts
AlertLine = 1
REM Calculate BB Squeeze Indicator
monATR = AverageTrueRange[Length](Price)
SDev = STD[Length](Price)
Denom = (nK * monATR)
IF Denom <> 0 THEN
BBSInd = (nBB * SDev) / Denom
ENDIF
IF BBSInd < Alertline THEN
Indic = -1
ELSE
Indic = 1
ENDIF
REM Plot delta of price from Donchian mid line
Histo = LinearRegression[Length] (price - ((Highest[Length](High) + Lowest[Length](Low))/2 + ExponentialAverage[Length](close))/2 )
RETURN Histo as "Histogramme" , Indic coloured by Indic as "Indic"
I emailed Prorealtime and got them to do what is roughly a copy of the TTM Squeeze.
Basicaly breakouts of the Keltner and Bollinger Bands.
Its not a bad indicator.
Hope this helps
Ged
-----------------------------------------------------------------------------------------------------
Price = Close
REM Length for Average True Range (ATR) & Std. Deviation (SD) Calculations
Length = 20
REM Keltner Channel ATRs from Average
nK = 1.5
REM Bollinger Band Std. Devs. from Average
nBB = 2
REM BBS_Index level at which to issue alerts
AlertLine = 1
REM Calculate BB Squeeze Indicator
monATR = AverageTrueRange[Length](Price)
SDev = STD[Length](Price)
Denom = (nK * monATR)
IF Denom <> 0 THEN
BBSInd = (nBB * SDev) / Denom
ENDIF
IF BBSInd < Alertline THEN
Indic = -1
ELSE
Indic = 1
ENDIF
REM Plot delta of price from Donchian mid line
Histo = LinearRegression[Length] (price - ((Highest[Length](High) + Lowest[Length](Low))/2 + ExponentialAverage[Length](close))/2 )
RETURN Histo as "Histogramme" , Indic coloured by Indic as "Indic"