Skip to content

ESEC Futures

Market Analysis and Trader Eduation

Menu
  • About
  • Order Flow and Price Action Trading
  • Trader Funding
  • Trading Strategies
Menu

BB Squeeze Indicator for TradeStation (TTM Squeeze concept)

Posted on December 18, 2021 by Vlad

Hey Traders,

here is an excellent indicator using Bollinger band and Keltner channel “SQUEEZE”

Inputs: {————————————————}
Price(Close),
Length(20), { Length for Average True Range (ATR) & Std. Deviation (SD) Calcs }
nK(1.5), { Keltner Channel ATRs from Average }
nBB(2), { Bollinger Band Std. Devs. from Average }
AlertLine( 1 ), { BBS_Index level at which to issue alerts }
NormalColor( Red ), { Normal color for BBS_Ind }
AlertlColor( Blue ); { Color for BBS_Ind below alert line }

Variables: {———————————————}
ATR(0), { Average True Range }
SDev(0), { Standard Deviation }
BBS_Ind(0), { Bollinger Band Squeeze Indicator }
alertTextID(-1),
Denom(0),
LHMult(0);

if ( barnumber=1 ) then
Begin
If minmove <> 0 then
LHMult = pricescale/minmove;
end;

if barnumber = 1 and alertTextID = -1 then
alertTextID = Text_New(date,time,0,”dummy”);

{– Calculate BB Squeeze Indicator ———————-}
ATR = AvgTrueRange(Length);
SDev = StandardDev(Price, Length, 1);

Denom = (nK*ATR);
If Denom <> 0 then
BBS_Ind = (nBB * SDev) /Denom;

If BBS_Ind < Alertline then
SetPlotColor(1, NormalColor)
else
SetPlotColor(1, AlertlColor);

{– Plot the Index & Alert Line ————————-}
Plot1(0, “BBS_Ind”);

{– Plot delta of price from Donchian mid line ———-}
value2 = LinearRegValue(price-((Highest(H, Length)+Lowest(L, Length))/2
+ xAverage(c,Length))/2,Length,0);

var:color(0); color = yellow;

if value2 > 0 then
if value2 > value2[1] then
color = green
else
color = darkgreen;

if value2 < 0 then
if value2 < value2[1] then color = red
else
color = darkred;

Plot3(value2*LHMult, “NickmNxtMove”, color);
{plot3(value2,”BB Squeeze”,color);}

{– Issue Alert when the Squeeze is On ——————}
if BBS_Ind crosses below AlertLine
and Text_GetTime(alertTextID) <> time then
begin
text_setLocation(alertTextID, date, time, 0);
Alert(”BB Squeeze Alert”);
end;

{– Issue Alert when the Squeeze Releases —————}
if BBS_Ind crosses above AlertLine
and Text_GetTime(alertTextID) <> time then
begin
text_setLocation(alertTextID, date, time, 0);
Alert(”BB Squeeze Is Over”);
end;

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Best Deals in Trader Funding for June 2022
  • Pop-n-Crap Set Up
  • June Weekend Crypto Trading Order Flow Concepts
  • 6E Euro Futures and Resting Liquidity via BookMap
  • Best Funded Trader Deals & Sales for May
  • LeeLoo Birthday 83% Off – Code OPT83
  • Perfect Crude 5/19
  • Apex 80% Off Funded Trader Program
  • BTC Trade opportunity – combining a few concepts
  • Funded Trader Deals Feb 2022
  • BTC Liquidity Pull Set Up
  • Leeloo Trading 25,000 Funded Account $23
  • About
  • Order Flow and Price Action Trading
  • Trader Funding
  • Trading Strategies
© 2025 ESEC Futures | Powered by Minimalist Blog WordPress Theme