Monday, December 01, 2008     | Register
TradersStudio Forums
Subject: Please help! Newbie Question on Bollinger Bands

You are not authorized to post a reply.   
Author Messages
jaychiew
Posts:3

11-06-2007 11:55 AM Alert 

I have a script I am trying to convert from WealthLab to TradersStudio regarding Bollinger Band.

What I did in WealthLab -

I want to Limit Short today based on yesterday's BollingerBand (#High, Period of 10 bars ago, using 1.5)

ShortAtLimit( Bar + 1,  ( BBandUpper( Bar, #High, 10, 1.5 ) * 1.30 ), '');

In TradersStudio, I have:

Sell("Sell",1, UpperBolBand(High,10,1.5,1)*1.3, Limit, day)

However, it does not seem to work and I am wondering if I got the last argument, which is on shift, right. Any help will be useful. Thanks.

murray
Posts:431

11-06-2007 12:19 PM Alert 

Please explain not working. Our limit orders are different. They require you to move 1 tick beyond the price to get filled.

Also I am not sure with that bar shift exactly what Wealth labs is doing.

jaychiew
Posts:3

11-06-2007 2:08 PM Alert 

The bar shift means I use today's bollinger band calculation as tomorrow's signal. I believe the last argument of TradersStudio's Bollinger band have similar meaning, but I am not sure.

I will reword my question differently:

How do you write a limit sell for tomorrow using Bollinger Band?

murray
Posts:431

11-06-2007 3:43 PM Alert 

I think your problem is multipling by 1.3. So if upper band is at 1000, your logic enters at 1300.00, which will not happen.

 Try to enter at the band on a limit without the 1.3 or use 1.3*Average(Range,10,0) if you want to have it break though the band.

 

Buy("BBBreak",1,Average(Close,30,0)+2*stddev(Close,30,0),limit,day)

This is the logic without using the function this might be clearer for yu to understand.

 

 

You are not authorized to post a reply.
Forums > Technical Trading > Developing Trading Systems > Please help! Newbie Question on Bollinger Bands



ActiveForums 3.6
TradersStudio® Copyright 2004-2008 All Rights Reserved   |  Privacy Statement  |  Terms Of Use