[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RT] Band3 Study



PureBytes Links

Trading Reference Links

Hello ,

below  is  the  band3 study that calculates the average point move and
the  actual  point  move of the market when it goes outside the bands.
it  is  a  separate  study that should be plotted as as histogram in a
subgraph.   it  can  be  seen  in  subgraph  2 of the screen shot here
http://www.markbrown.com/bands2.htm   it  is  the  green  ramp looking
thingy.   also if you have any trouble with any of these you may first
try  and take out the print(file statements i see i left in). well i'm
having enchiladas for lunch amigo's see ya.


vars:countup(-1),countdn(-1),bandup(0),banddn(0),av(0),pts_up(0),pts_dn(0) ;
 
av=average(c,21);
bandup=av*1.025;
banddn=av*0.975;var:
 
aa(0),bb(0),cc(0),dd(0);
 
if c > bandup and c[2]<bandup then value1=1;
if value1= 1  then begin
aa=aa+1;
 
Print(File("d:\xitami\root\mod\SPBand.txt"),d:6:0,",  ",c:3:2,",  C>UpperBand",",   ","L>MiddleBand,  ",aa:0," Days");
print(d:6:0,",  ",c:3:2,",  C>UpperBand",",   ","L>MiddleBand,  ",aa:0," Days");end;
if l<=av then value1=0;
if l<=av then aa=0;
 
if c < banddn and c[2]>banddn then value2=1;
if value2= 1 then begin
bb=bb+1;
 
Print(File("d:\xitami\root\mod\SPBand.txt"),d:6:0,",  ",c:3:2,",  C<LowerBand",",   ","H<MiddleBand,  ",bb:0," Days");
print(d:6:0,",  ",c:3:2,",  C<LowerBand",",   ","H<MiddleBand,  ",bb:0," Days");end;
if h>=av then value2=0;
if h>=av then bb=0;
 
plot2((average(aa,5)-average(bb,5)),"bandup");



To unsubscribe from this group, send an email to:
realtraders-unsubscribe@xxxxxxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/