PureBytes Links
Trading Reference Links
|
Lionel,
This should come close (unless I've botched something, in which I'll be
sure to hear about it) :). It's made up of two indicators and an
Expert.
IMPORTANT: Make sure both indicators have the same parameters. Change
the default values to suit yourself.
{Name: %Bands}
Pds:= Input("EMA Periods?",1,1000,21);
Pct:= Input("Percentage Bands?",0.1,10,5);
MA:= Mov(C,Pds,E);
TBnd:= MA*(1+Pct/100);
LBnd:= MA*(1-Pct/100);
MA;TBnd;LBnd;
{Name: %BandsCount}
Pds:= Input("EMA Periods?",1,1000,21);
Pct:= Input("Percentage Bands?",0.1,10,5);
MA:= Mov(C,Pds,E);
TBnd:= MA*(1+Pct/100);
LBnd:= MA*(1-Pct/100);
IUp:= (H > TBnd) * Ref((H <= TBnd),-1);
CntUp:= IUp + BarsSince(IUp=1) * (H > TBnd);
IDn:= (L < LBnd) * Ref((L >= LBnd),-1);
CntDn:= IDn + BarsSince(IDn=1) * (L < LBnd);
CntUp; -CntDn;
EXPERT
{Name: %Bands}
Symbols tab.
{Name: %BandUp}
FmlVar("% BandsCount","CNTUP") >= 1
{Graphic: Dot, Small, Green, Above price plot}
Symbols tab.
{Name: %BandDn}
FmlVar("% BandsCount","CNTDN") >= 1
{Graphic: Dot, Small, Magenta, Below price plot}
HHP
===================
Lionel Issen wrote:
>
> This is very interesting.
>
> Has anyone put this in either Excel or Metastock format?
> Lionel Issen
> lissen@xxxxxxxxx
> ----- Original Message -----
> From: Mark Brown <markbrown@xxxxxxxxxxxxx>
> To: metastock <metastock@xxxxxxxxxxxxx>
> Sent: Tuesday, May 23, 2000 10:01 AM
> Subject: Band2 Study
>
> > Hello ,
> >
> > http://www.markbrown.com/bands2.htm
> >
> > --
> >
> >
> > -Thanks, Mark
> >
> > .o©º°¨¨°º©[ WWW.MARKBROWN.COM ]©º°¨¨°º©o.
> >
> >
> >
Attachment Converted: "f:\eudora\attach\ºnds.gif"
|