BB Squeeze Replica For Tradestation - Page 2 - Traders Laboratory

Go Back   Traders Laboratory > Trading Resources > Trading Indicators

Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL.

Comment
 
LinkBack (14) Release Tools Display Modes
 
Old 10-22-2006, 12:06 AM
Soultrader's Avatar
Soultrader Soultrader is offline
Soultrader is looking for a green card.

Trader Specs
 
Join Date: Aug 2006
Location: Tokyo, Japan
Posts: 3,089
Thanks: 114
Thanked 373 Times in 150 Posts
Send a message via Skype™ to Soultrader
BB Squeeze Replica For Tradestation

This is an interesting indicator re-created by other traders on the TS forum. Known as the BB Squeeze Indicator, its concept is based on capturing breakout moves by using the Bollinger Bands and the Keltner Channels.

Whenever the Bollinger Bands fall inside the Keltner Channels the indicator will fire a signal. This signal is represented by a red dot on the lower pane.

When the Bollinger Bands breakout of the Keltner Channels the indicator fires a squeeze indicated...

__________________
James Lee
Email: JamesLee@traderslaborator y.com
Skype: james.lee03
TradersLaboratory.com
**********************
Empowering traders with knowledge.
Reply With Quote
  #8 (permalink)  
By torero on 02-18-2007, 09:52 AM
Re: BB Squeeze Indicator For Tradestation

Hi FLX, do you have an example? In charts would be very helpful. I followed strictly the rules of that TTM people gave. Adding other things is a whole new subject. Incorporating trendlines along with Squeeze will be challenging to code.
Reply With Quote
  #9 (permalink)  
By dovetree on 02-24-2007, 11:33 PM
Re: BB Squeeze Indicator For Tradestation

This may be a difficult question but how do I get this indicator into Tradestation 2000i. ?

relatively new to tradestation.

Thanks
Reply With Quote
  #10 (permalink)  
By FLX on 02-25-2007, 06:52 AM
Re: BB Squeeze Indicator For Tradestation

This is a big subject and something you will have to follow up on due to the vast nature of the trend line, but if you want a good book on the subject look at Tom Demark, The Science of techical Analysis.
If you are not using trendlines you will experience hugh problems determining trendline support and resistence. We have tested all these indicator, but most of the time there late, with a signal to trade so you need a trendline to confirm break out on the 15m and the 60 min. The best example is in choopy market. You must have s/r line and trendlines to confirm breakout. We have wrote our own indicator to avoid this problem. Most of the MACDS are 3 to 5 bars late and the trades are long gone in Most cases.

If the macd is turning(not confirmed) you have a trend line break, the trendlline confirmed the move your ready to go what are you going to do wait for the macd that is four bar behind.

The biggest mistake a trader can make is not draw fibonacci and trendlines on there chart. Long term and short term DY,WKLY, 240m, 1HR, 15m

You dont do what feels good, you do what has to be done! Let the market determine where it will go.

I made the mistake last week of determining direction, the direction was correct but it went down 500 dollar before it started to rally.
A simple 60 min trendline would have solved the problem.

Always look at the 60 and 15 min trendline!

Dont get lock into a direction, let the market tell you the rest of the story.

Something i learned if the market moves, (days range 700 points) or more (ER2 Dow SP) the next days volitility is very high and expect major swing in the market the next day.
This is the reason the market went down 300 more than expected!
Last edited by FLX; 02-25-2007 at 10:24 AM.
Reply With Quote
  #11 (permalink)  
By walterw on 02-25-2007, 09:47 AM
Re: BB Squeeze Indicator For Tradestation

Quote:
View Post
This may be a difficult question but how do I get this indicator into Tradestation 2000i. ?

relatively new to tradestation.

Thanks
Dovee you will have to create an indicator ( name it : _BB Squeeze )and paste this formula, then verify it... try if it works, if it doesnt please tell me.. you may need some functions... should work... cheers Walter.


[LegacyColorValue = true];




{@@14439@@}
{04/05/2006}
//Updated by TradingDude, fixed "division by zero error"

{02/16/2005}
{Updated by Redlock}
{
Well, I have been working in this indicator. I have made a couple of changes:
(1) that if the momentum changes direction, it changes color.
(2) I have taken out the plotting of the alertline
(3) have the dots plotted along the axis
(4) Have changed the name of the indicator to BBSqueeze (cuts down on confusion).

I think that you will find that it resembles what is on the TTM indicator.}

{------------------------------------------------------------------}
{mmillar, 05/12/2005
For anyone interested I made a small change to the indicator(s) above.
I found that the indicator displayed fine for ES, YM etc but screwed up for FX -
this is due to the number of decimal places used by the symbol.
I just added a multiplier so the indicator is normalised across all symbols.

Add the following lines...
Vars: LHMult(0);
if ( barnumber=1 ) then Begin
LHMult=pricescale/minmove;
end;

And modify the following line so that it includes the LHMult variable...

Plot3(value2*LHMult, "NickmNxtMove", color);

}

{ Bolinger Band Squeeze (BBS) Indicator }

{ A variation of an idea by nickm001 (Originally coded by eKam) that when Bollinger Bands (BB) fit inside
the Keltner Channel (KC), a breakout is about to occur. It works on longer term charts, such as
15 minute to daily charts.

This code creates an indicator that plots the ratio of BB width to KC width. When BB and KC widths are
the same, the ratio (BBS_Ind)is equal to one (1). When the BB width is less than the KC Width (i.e. BB
fit inside KC), the BBS_Ind is less than one and a breakout is indicated.

An Alert Line is provided to indicate the level at which the trader considers that the "sqeeze is on" and
a breakout is eminant.

Coded by Kahuna 9/10/2003

Added by eKam: 9/10/2003
The average of where price has been relative to the Donchian mid line and Exponential average of the
same length is also plotted as an attempt to predict the direction of the breakout.

Added 2/1/2005 For decreasing Delta bar....darker colors to highlight the change.}

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,"dum my");

{-- 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(alertTex tID, date, time, 0);
Alert("Check for Squeeze Setups on " + SymbolName);
end;

{-- Issue Alert when the Squeeze Releases ---------------}
if BBS_Ind crosses above AlertLine
and Text_GetTime(alertTextID) <> time then
begin
text_setLocation(alertTex tID, date, time, 0);
Alert("Squeeze is Over on " + SymbolName);
end;

if BBS_Ind crosses below AlertLine then
SetPlotColor(1, Green);
Reply With Quote
  #12 (permalink)  
By FLX on 02-25-2007, 10:42 AM
Re: BB Squeeze and back up when all else fails!

https://www.tradestation.com/Discuss...txtExactMatch=
I dont have time to post this link or indicator on your site but this will help you out a lot, save the time and energy and use this indicator. Choas A/o
I tested this and it work a lot better, use it the same way but has alot better signal. Test it out and let me know if it works better than the bb.
I use it in 5m and 10 min chart and 471TK put up and run with it.
Thanks Mike
Reply With Quote
  #13 (permalink)  
By FLX on 02-25-2007, 12:12 PM
Re: BB Squeeze/EM Dow 4 trades!

Place a momentum indicator over top, the Choas A/O, when it break below.. above the zero line on the Mom ZERO line look to enter off the 5 min Chart. You want the Choas to change Green first or red and moving up/dwn in that direction of the trade at the same time . You can place an order out side the range of the last 5 bar to enter! You had 5 trades on the Em dow on friday! Tell me what you see! Alert Do not trade at 11am thur 13:00 Bad time for indicators......Unless you like Spanked ! Press FLX at the left for a picture image.
Last edited by FLX; 02-25-2007 at 01:19 PM.
Reply With Quote
  #14 (permalink)  
By dovetree on 02-25-2007, 05:03 PM
Re: BB Squeeze Indicator For Tradestation

Thanks Walter,

Will try it
Reply With Quote
  #15 (permalink)  
By htptrade on 02-26-2007, 04:20 PM
Re: BB Squeeze Indicator For Tradestation

Hi FLX,
I have checked the Chaos indicator and it looks really like the BBSQZ. Since it is a momentum indicator do you use any other indicator to compliment it ?
Thanks
Reply With Quote
  #16 (permalink)  
By dovetree on 02-26-2007, 06:58 PM
Re: BB Squeeze Indicator For Tradestation

Hi Walter, The code will not verify in 2000i. I think some of the functions are not quite the same, for example it doesn't seem to recognise what the line
"SDev = StandardDev(Price, Length, 1);" is.
either the term Satandarddev or the ( variables in the brackets)

Will investigate further but if you have any suggestions I would be grateful.

Thanks
Reply With Quote
  #17 (permalink)  
By walterw on 02-26-2007, 09:57 PM
Re: BB Squeeze Indicator For Tradestation

Quote:
View Post
Hi Walter, The code will not verify in 2000i. I think some of the functions are not quite the same, for example it doesn't seem to recognise what the line
"SDev = StandardDev(Price, Length, 1);" is.
either the term Satandarddev or the ( variables in the brackets)

Will investigate further but if you have any suggestions I would be grateful.

Thanks

ok dovee, you have to create a function with the exact name : Standarddev

then paste this:

{ Standard Deviation of Population or Sample }

inputs:
Price( numericseries ),
Length( numericsimple ),
DataType( numericsimple ) ; { pass in 1 if you are working with the entire
population, and 2 if you are working with a sample and want the SD for the
population }

Value1 = VariancePS( Price, Length, DataType ) ;
if Value1 > 0 then
StandardDev = SquareRoot( Value1 )
else
StandardDev = 0 ;


{ ** Copyright (c) 1991-2003 TradeStation Technologies, Inc. All rights reserved. **
** TradeStation reserves the right to modify or overwrite this analysis technique
with each release. ** }




then verify function.... after that go open and an verify again _bbsqueeze indicator... try it if again error tel me maybe need more functions. cheers Walter
Reply With Quote
Comment

LinkBacks (?)
LinkBack to this Thread: http://www.traderslaboratory.com/forums/f46/bb-squeeze-replica-for-tradestation-662.html
Posted By For Type Date
Forums - AHG - Profitable Strategy for Struggling Traders This thread Refback 01-24-2008 06:04 AM
Forums - AHG - Profitable Strategy for Struggling Traders This thread Refback 01-17-2008 03:30 PM
Thank you for Indicators-Good job guys! - NinjaTrader Support Forum This thread Refback 01-06-2008 09:42 AM
Thank you for Indicators-Good job guys! - NinjaTrader Support Forum This thread Refback 01-06-2008 08:51 AM
Thank you for Indicators-Good job guys! - NinjaTrader Support Forum This thread Refback 01-05-2008 11:11 PM
Forums - AHG - Profitable Strategy for Struggling Traders This thread Refback 12-01-2007 02:19 PM
Forums - AHG - Profitable Strategy for Struggling Traders This thread Refback 11-30-2007 10:31 PM
Forums - AHG - Profitable Strategy for Struggling Traders This thread Refback 11-30-2007 09:19 PM
Forums - AHG - Profitable Strategy for Struggling Traders This thread Refback 11-30-2007 09:07 PM
Forums - AHG - Profitable Strategy for Struggling Traders This thread Refback 11-30-2007 08:59 PM
Forums - AHG - Profitable Strategy for Struggling Traders This thread Refback 11-30-2007 08:54 PM
Forums - AHG - Profitable Strategy for Struggling Traders This thread Refback 11-30-2007 08:52 PM
Forums - AHG - Profitable Strategy for Struggling Traders This thread Refback 11-30-2007 08:50 PM
Trading Indicators [Archive] - Traders Laboratory This thread Refback 08-06-2007 01:43 PM


Currently Active Users Viewing This Release: 1 (0 members and 1 guests)
 
Release Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Release Release Starter Category Comments Last Post
Scalper Buys/Sell Replica traderlu Trading Indicators 41 05-20-2008 11:41 PM
BB Squeeze indicator januson Technical Analysis 2 03-17-2007 06:14 PM
Squeeze base indicators januson Coding Forum 2 03-16-2007 06:06 PM


All times are GMT -4. The time now is 12:23 PM.

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63