Bollinger Bands in Tenths
Posted: Sat Nov 02, 2019 8:03 pm
Bollinger bands in Tenths is based on Ian Woodward's Pct B Buckets
Under the Parameters tab
N double 20 5 300
P double 2 .1 10
Under the script tab
MID:= MA(CLOSE,N);
HH: MID + P*STDP(CLOSE,N),width2,colorBlack;
LL: MID - P*STDP(CLOSE,N),width2,colorBlack;
Height := HH-LL;
A1 := LL+Height*0.1,Width2,ColorGold;
A2 := LL+Height*0.2,Width2,ColorRed;
A3 := LL+Height*0.3,Width2,ColorGreen;
A4 := LL+Height*0.4,Width2,ColorBlue;
A5 : LL+Height*0.5,Width2,ColorBlack;
A6 := LL+Height*0.6,Width2,ColorBlue;
A7 := LL+Height*0.7,Width2,ColorGreen;
A8 := LL+Height*0.8,Width2,ColorRed;
A9 := LL+Height*0.9,Width2,ColorGold;
FILLRGN(1,HH,A9),ExtendLR,Brush#65D3D3D3;
FILLRGN(1,A9,A8),ExtendLR,Brush#40FFD700;
FILLRGN(1,A8,A7),ExtendLR,Brush#20FF0000;
FILLRGN(1,A7,A6),ExtendLR,Brush#4598FB98;
FILLRGN(1,A6,A5),ExtendLR,Brush#4000FFFF;
FILLRGN(1,A5,A4),ExtendLR,Brush#4000FFFF;
FILLRGN(1,A4,A3),ExtendLR,Brush#4598FB98;
FILLRGN(1,A3,A2),ExtendLR,Brush#20FF0000;
FILLRGN(1,A2,A1),ExtendLR,Brush#40FFD700;
FILLRGN(1,A1,LL),ExtendLR,Brush#65D3D3D3;
@SetTextVisible(HH,false);
@SetTextVisible(LL,false);
@SetTextVisible(A1,false);
@SetTextVisible(A2,false);
@SetTextVisible(A3,false);
@SetTextVisible(A4,false);
@SetTextVisible(A5,false);
@SetTextVisible(A6,false);
@SetTextVisible(A7,false);
@SetTextVisible(A8,false);
@SetTextVisible(A9,false);
Under the Parameters tab
N double 20 5 300
P double 2 .1 10
Under the script tab
MID:= MA(CLOSE,N);
HH: MID + P*STDP(CLOSE,N),width2,colorBlack;
LL: MID - P*STDP(CLOSE,N),width2,colorBlack;
Height := HH-LL;
A1 := LL+Height*0.1,Width2,ColorGold;
A2 := LL+Height*0.2,Width2,ColorRed;
A3 := LL+Height*0.3,Width2,ColorGreen;
A4 := LL+Height*0.4,Width2,ColorBlue;
A5 : LL+Height*0.5,Width2,ColorBlack;
A6 := LL+Height*0.6,Width2,ColorBlue;
A7 := LL+Height*0.7,Width2,ColorGreen;
A8 := LL+Height*0.8,Width2,ColorRed;
A9 := LL+Height*0.9,Width2,ColorGold;
FILLRGN(1,HH,A9),ExtendLR,Brush#65D3D3D3;
FILLRGN(1,A9,A8),ExtendLR,Brush#40FFD700;
FILLRGN(1,A8,A7),ExtendLR,Brush#20FF0000;
FILLRGN(1,A7,A6),ExtendLR,Brush#4598FB98;
FILLRGN(1,A6,A5),ExtendLR,Brush#4000FFFF;
FILLRGN(1,A5,A4),ExtendLR,Brush#4000FFFF;
FILLRGN(1,A4,A3),ExtendLR,Brush#4598FB98;
FILLRGN(1,A3,A2),ExtendLR,Brush#20FF0000;
FILLRGN(1,A2,A1),ExtendLR,Brush#40FFD700;
FILLRGN(1,A1,LL),ExtendLR,Brush#65D3D3D3;
@SetTextVisible(HH,false);
@SetTextVisible(LL,false);
@SetTextVisible(A1,false);
@SetTextVisible(A2,false);
@SetTextVisible(A3,false);
@SetTextVisible(A4,false);
@SetTextVisible(A5,false);
@SetTextVisible(A6,false);
@SetTextVisible(A7,false);
@SetTextVisible(A8,false);
@SetTextVisible(A9,false);