PureBytes Links
Trading Reference Links
|
Jose',
I agree about its value. The original code was missing a couple of
less than greater than arguments. The {?} is where I included them.
I was really more intriqued by the charting methods that the code
allowed.
Preston
--- In equismetastock@xxxxxxxxxxxxxxx, "Jose" <josesilva22@xxxx>
wrote:
>
> Preston, the original code seems fine to me, but it's value is
> debatable - all it seems to do is mimic price action.
>
> ---8<--------------------
>
> Lg:=Input("Long Average:",5,240,35);
> St:=Input("Short Average:",1,200,5);
> A:=Input("Style AlphOmega=1 Aget=0",0,1,1);
> eoa:=Input("Display MA 8 bars:",0,1,0);
>
> B:=If(Outside()AND Ref(H,-1)>Ref(H,-2),H,
> If(Outside() AND Ref(L,-1)<Ref(L,-2),L,
> If((Outside() OR Inside()) AND C>O,H,
> If((Outside() OR Inside()) AND O>C,L,
> If(H>Ref(H,-1),H,
> If(L<Ref(L,-1),L,
> If(Ref(H,-1)>Ref(H,-2),H,
> If(Ref(L,-1)<Ref(L,-2),L,C))))))));
>
> Eo:=Mov(B,St,E)-Mov(B,Lg,E);
> Eot:=Mov(If(Eo>0,Eo,PREV),Lg,E);
> Eob:=Mov(If(Eo<0,Eo,PREV),Lg,E);
>
> Eo;
> If(A=0,Eot,0);
> If(A=0,Eob,0);
> If(eoa=1,Mov(EO,8,E),0)
>
> ---8<--------------------
>
>
> Stan, converting MS code into plain English is one of the most
> wasteful pursuits known to mankind.
> To really find out what the code does, plot it below a chart and
> compare it to the prices above.
>
>
> jose '-)
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxxx>
wrote:
> >
> > Stan,
> >
> > We can but the code isn't correct. What does EO stand for? Here's
a
> > workable code. Problem is in the "B" variable.
> >
> > {EO oscillator - Metastock:}
> >
> >
> > Lg:=Input("Long Average:",5,240,35);
> > St:=Input("Short Average:",1,200,5);
> > A:=Input("Style AlphOmega=1 Aget=0",0,1,1);
> > eoa:=Input("Display MA 8 bars:",0,1,0);
> > B:=If(Outside() AND Ref(H,-1)>Ref(H,-2),H,
> > If(Outside() AND Ref(L,-1) {?}> O,H,
> > If((Outside() OR Inside()) AND O>C,L,
> > If(H>Ref(H,-1),H,If(L {?}< Ref(H,-2),H,
> > If(Ref(L,-1)<Ref(L,-2),L,C))))));
> > Eo:=Mov(B,St,E)-Mov(B,Lg,E);
> > Eot:=Mov(If(Eo>0,Eo,PREV),Lg,E);
> > Eob:=Mov(If(Eo<0,Eo,PREV),Lg,E);
> > Eo;If(A=0,Eot,0);If(A=0,Eob,0);If(eoa=1,Mov(EO,8,E),0);Eo
> >
> > Preston
> >
> >
> >
> > --- In equismetastock@xxxxxxxxxxxxxxx, "S Book" <sbook@xxxx>
wrote:
> >
> >
> > Can anyone translate this code into plain English statements???
> >
> > EO oscillator - Metastock:
> > Lg:=Input("Long Average:",5,240,35);
> > St:=Input("Short Average:",1,200,5);
> > A:=Input("Style AlphOmega=1 Aget=0",0,1,1);
> > eoa:=Input("Display MA 8 bars:",0,1,0);
> >
> > B:=If(Outside() AND Ref(H,-1)>Ref(H,-2),H,If(Outside() AND Ref(L,-
1)
> > <Ref(L,-2),L,If((Outside() OR Inside()) AND C>O,H,If((Outside()
OR
> > Inside()) AND O>C,L,If(H>Ref(H,-1),H,If(L<Ref(L,-1),L,If(Ref(H,-1)
> > > Ref(H,-2),H,If(Ref(L,-1)<Ref(L,-2),L,C))))))));
> >
> > Eo:=Mov(B,St,E)-Mov(B,Lg,E);
> > Eot:=Mov(If(Eo>0,Eo,PREV),Lg,E);
> > Eob:=Mov(If(Eo<0,Eo,PREV),Lg,E);
> > Eo;If(A=0,Eot,0);If(A=0,Eob,0);If(eoa=1,Mov(EO,8,E),0);
> >
> > -Stan
------------------------ Yahoo! Groups Sponsor --------------------~-->
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/BefplB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|