PureBytes Links
Trading Reference Links
|
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/
|