Basic question on Bollinger band

Moderator: admin

Basic question on Bollinger band

Postby bharanimani » Tue Oct 11, 2016 8:01 pm

Hi,
I am writing a custom strategy using bollinger band. Are the following right?

BB.BL[period] gives the value of the bottom line for the period.
BB.TL[period] gives the value of middle line (trend line) for the period.
BB.AB[period] gives value of the top line for the period.

suppose if i want to place an order when the bar goes above the middle line for example,
i should do

src.close[period] >= BB.TL[period}

Is this right?
bharanimani
 
Posts: 12
Joined: Wed Oct 05, 2016 12:59 pm

Re: Basic question on Bollinger band

Postby Apprentice » Wed Oct 12, 2016 3:17 am

I'm not sure which BB you are using.

For standard BB, We have TL, BL and AL.

For central line crossover, will have something similar.
if source.close [period]> BB.AL [period]
and source.close [period-1] <= BB.AL [period-1]
then
end

--and source.close [period-1] <= BB.AL [period-1] is optinal.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Basic question on Bollinger band

Postby bharanimani » Wed Oct 12, 2016 5:21 am

Can someone explain in Bollinger band, what TL, AL, BL are? Which is the central (middle ) line, and standard deviation lines (bottom and top lines). This is not clear to me.
bharanimani
 
Posts: 12
Joined: Wed Oct 05, 2016 12:59 pm

Re: Basic question on Bollinger band

Postby bharanimani » Wed Oct 12, 2016 6:15 am

Can you please tell me about AL,TL and BL. Is my interpertation right about them as mentioned in my previous message?
bharanimani
 
Posts: 12
Joined: Wed Oct 05, 2016 12:59 pm

Re: Basic question on Bollinger band

Postby dogxyz » Sun Oct 16, 2016 11:59 pm

AL is the middle line at the BB chart, which is N periods of MVA ( default N is 20).
TL is the the top line at the BB chart, which is AL + M multipled by the standard deviations. (default M is 2)
BL is the the bottom line at the BB chart, which is AL - M multipled by the standard deviations. (default M is 2).
Attachments
bb.png
BB chart
dogxyz
 
Posts: 7
Joined: Wed Sep 28, 2016 3:20 am


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 12 guests

cron