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

Re: [Metastockusers] Re: How to reproduce the zig zag



PureBytes Links

Trading Reference Links

Thanks Roy and Jose for clarifying that.
Looking at this example in MS coding functions :

MACD ()  function produces the same as the following code:

mp1:=Input("Short MA",1,377,12);
mp2:=Input("Long MA",1,377,26);
Mov(C ,mp1 ,E )- Mov(C ,mp2 ,E )

So  any expert MS expert know the basic code of  Peak () and Trough ()
functions ?

Regards, Hani :)


----- Original Message -----
From: "Jose" <josesilva22@xxxxxxxxx>
To: <Metastockusers@xxxxxxxxxxxxxxx>
Sent: Tuesday, January 25, 2005 7:03 PM
Subject: [Metastockusers] Re: How to reproduce the zig zag


>
>
>
> Without external help (dll), your chances of coding the ZigZag using
> plain old MetaStock code are... zero, zilch.
>
> Think about it - how will you look back in retrospect, find peaks &
> troughs after they have passed by, using hindsight with MS code,
> without help from any of the functions in the ZigZag class?
>
> MetaStock processes data from left to right, and the only exceptions
> are the LastValue() & ZigZag-type (Peak/Trough, etc) functions.
> Forget forward-referencing functions (Ref(y,+x), DPO, etc.) because
> this introduces null (N/A) bars.
>
> Anyone that understands the basic way MetaStock handles data from left
> to right, knows well enough to forget about re-inventing the wheel.
>
>
> jose '-)
> http://www.metastocktools.com
>
>
>
> --- In Metastockusers@xxxxxxxxxxxxxxx, "Steve Grala" <stevegrala@xxxx>
> wrote:
> >
> >
> >
> >
> > Hi Roy
> >
> >    I have been writing formulas for Metastock for 12 years.  I
> consider myself a very competent formula writer.  I always wondered
> how the zig zag formula was created.  It seems straight forward
> enough.  I think if I spend enough time on it I could figure it out
> totally.  Part of the problem is that I am a active player in the
> market and there just isn't enough time in the day.  Thanks for being
> honest with your limitations.  If I come up with the formula I will
> post it.  For now I will just move on.  Good luck to all and keep
> building the most profitable trading system.
> >
> >
> >
> > Steve
> >
> >
> >    From: "Roy Larsen" <
> > rlarsen@xxxx>
> >
> > Subject: Re: How to reproduce the zig zag formula
> >
> > Steve
> >
> > If you want to learn the formula language I suggest to you pick
> another exercise. There are
> > certainly enough to choose from. I'm not one to give up easily on
> challenges, but ZigZag and SAR are
> > two that have proved to be beyond me. Then there are others that
> have, shall we say, been on the
> > back-burner for a long time.
> >
> > Limitations with the formula language make it very difficult to
> string an indeterminate number of
> > lines together, particularly when they are not horizontal or equal
> in pitch or length. When you can
> > string just two lines together, such that one starts where the other
> finishes, you'll have a better
> > appreciation of the difficulties involved.
> >
> > For a competent programmer with access to the MetaStock Development
> Kit it's probably a breeze, but
> > for us mere mortals confined to the MetaStock Formula Language I
> think this particular challenge
> > should be left sitting out of sight in the "too hard" basket.
> >
> > Kind regards
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>




------------------------ 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/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/