[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

Hi Hani

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

Actually there's a slight difference. The MACD() function uses factors of 0.15 and 0.075 for the 
respective exponential moving averages. The code above uses 2/13 and 2/27 as the EMA factors (of new 
data added on each bar). The difference is small but real.

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

If you accept the existing ZigZag it should be possible. It's not something I've looked at though.

> Regards, Hani :)



Kind regards

Roy
www.metastocktips.co.nz





------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/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/