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

[EquisMetaStock Group] Re: Variable length moving averages



PureBytes Links

Trading Reference Links


Here's some basic code that shows the construction of an Exponential 
Moving Average, which allows variable periods:

======================
EMA - variable periods
======================
---8<---------------------------

VarPds:=21;

EMA:=C*2/(VarPds+1)+PREV*(1-2/(VarPds+1));

EMA

---8<---------------------------


jose '-)
http://www.metastocktools.com




--- In equismetastock@xxxxxxxxxxxxxxx, "Jose" <josesilva22@xxxx> 
wrote:
> 
> Scott, you'll find a whole bunch of MetaStock variable-length EMAs
> at: http://www.metastocktools.com/#metastock
> 
> jose '-)
> http://www.metastocktools.com
> 
> 
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, meta_scott <no_reply@xxxx> 
> wrote:
>
>
> Hello,
> 
> Does anyone know a clean way of calculating exponential moving 
> averages of variable length?  THe second parameter of tmov function 
> must be a constant.
> 
> Thanks,
> 
> Scott





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