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

[RT] Band study



PureBytes Links

Trading Reference Links

Here is research dept code for the bands that can be adjusted via inputs
for other securities.

Prosper


Inputs: Pcnt1(1.025),Pcnt2(.975),Offset(1);

vars:bandup(0),banddn(0),av(0);

av=average(c,21);
bandup=av*Pcnt1;
banddn=av*Pcnt2;var:

aa(0),bb(0),cc(0),dd(0);

if c > bandup and c[2]<bandup then value1=1;
if value1= 1 then begin plot4(H+offset,"break");
aa=aa+1;

Print(File("C:\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 plot4(l-offset,"break");
bb=bb+1;

Print(File("C:\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;

plot1(av,"21MA");
plot2(bandup,"bandup");
plot3(banddn,"banddn");




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/