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

Re: [EquisMetaStock Group] Moving Average



PureBytes Links

Trading Reference Links

Hi Jim


I think Steve covered your situation with the piece of code he gave. It will work for both simple 
and exponential moving averages.

There's an intersting aspect of exponential moving averages in that an EMA always moves toward the 
price. Always. The length of the moving average is irrelevant. This means that you can accurately 
predict whether the EMA will move up or down based on whether the new price is above or below the 
existing (previous bar) EMA value.

So Steve's code could be rewritten like this for exponential moving averages.

If(C>Ref(Mov(C,40,E),-1), {bullish} +1, {bearish} -1);

This principle also applies to Wilders Smoothing, but not to simple moving averages.



Kind regards

Roy Larsen
www.metastocktips.co.nz





----- Original Message ----- 
From: "James Briggs" <jobriggs2@xxxxxxxx>
To: <equismetastock@xxxxxxxxxxxxxxx>
Sent: Thursday, February 10, 2005 10:41 AM
Subject: [EquisMetaStock Group] Moving Average


>
> Need some help with a code to tell me when a Moving Average(price) is
> greater or less than previous period, i.e. 40 DMA today is > than 40
> DMA yesterday. I have all of Roy's MS T&T plus the manual so if this
> is discussed in either please point me in the right direction. thanks
> in advance.
>
> Jim
>
>
>
>
>      Yahoo! Groups Sponsor
>            ADVERTISEMENT
>
>
>
>
>
> --------------------------------------------------------------------------------
> Yahoo! Groups Links
>
>  a.. To visit your group on the web, go to:
>  http://groups.yahoo.com/group/equismetastock/
>
>  b.. To unsubscribe from this group, send an email to:
>  equismetastock-unsubscribe@xxxxxxxxxxxxxxx
>
>  c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
> 




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