PureBytes Links
Trading Reference Links
|
Jose, your code
d:=If(C>Ref(HHV(H,3),-1),LLV(L,3),
If(C<Ref(LLV(L,3),-1),HHV(H,3),PREV));
a:=Cross(C,d);
b:=Cross(d,C);
a+-b
will work for a 2 signal system,which can be a long only,short only,
and a stop and reverse type of system, but it will not work with a 4
signal system.
I found that the external formula SysEval from the PowerPivots Plus
add-on can address this type of system.
Henry
--- In Metastockusers@xxxxxxxxxxxxxxx, "Jose" <josesilva22@xxxx>
wrote:
>
> I'm surprised that "professional" MetaStock programmers are
capable of
> producing such crappy MS code.
>
> Leaving the PREV() issue aside, the code can be written (and
better
> understood) this way:
>
> ---8<--------------------------------
> d:=If(C>Ref(HHV(H,3),-1),LLV(L,3),
> If(C<Ref(LLV(L,3),-1),HHV(H,3),PREV));
> a:=Cross(C,d);
> b:=Cross(d,C);
> a+-b
> ---8<--------------------------------
>
> In English:
>
> If the Close is greater than the highest High for the previous
three
> days, plot the lowest Low of the past three days (including
today),
> otherwise do this:
>
> If the Close is less than the lowest Low for the previous three
days,
> plot the highest High of the past three days (including today),
> otherwise plot the previous formula value.
>
>
> jose '-)
> http://users.bigpond.com/prominex/pegasus.htm
>
>
>
> --- In Metastockusers@xxxxxxxxxxxxxxx, "Jeff" <jnickoloff6@xxxx>
> wrote:
> > The Enter Long formula for the "3-Day_range Switch" included
> > in "Performance Sytems Plus" plugin is as follows:
> >
> > d:=If(C>Ref(Max(H,Max(Ref(H,-1),Ref(H,-2))),-1),Min(L,Min(Ref(L,-
> > 1),Ref(L,-2))),If(C<Ref(Min(L,Min(Ref(L,-1),Ref(L,-2))),-1),
> > Max(H,Max(Ref(H,-1),Ref(H,-2))),PREV));
> >
> > a:=Cross(C,d);
> > b:=Cross(d,C);
> >
> >
> > I thought the formula above was a fancy way of simply generating
a
> > BUY signal if:
> >
> > CLOSE of TODAY was GREATER THAN the MAX HIGH of the PRIOR 3 DAYS.
> >
> > Yet, I have found numerous chart examples of the system
generating a
> > BUY signal when:
> >
> > CLOSE is LESS THAN the MAX HIGH of the PRIOR 3 DAYS.
> >
> > So either I'm wrong on how this system generates BUY signal or
MS is
> > just so buggy that it calculates incorrectly!
> >
> > Which is it?
> >
> > Thank you to anyone who can give me some help with this one
> >
> > -Jeff
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/zMEolB/TM
---------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Metastockusers/
<*> To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|