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

Re: [amibroker] MA, DEMA and TEMA can take array parameters, but EMA can't?



PureBytes Links

Trading Reference Links

Dave,

For variable period exponential smoothing simply use AMA:

EMA( array, period_variable ) = >>>  AMA( array, 2 / ( period_variable+1) );

http://www.amibroker.com/guide/afl/afl_view.php?name=AMA


Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Dave Merrill" <dmerrill@xxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, October 14, 2003 2:39 PM
Subject: [amibroker] MA, DEMA and TEMA can take array parameters, but EMA can't?


> it appears that you can pass an array, not just a single scalar value, as
> the range parameter to the built in MA, DEMA and TEMA functions, but you
> can't for EMA. am I right about this, or is there some other problem in my
> code?
> 
> if that is true, it's too bad, and I hope this ability will be added in the
> future, hopefully soon. it's been said before that it would nice to use
> dynamic (array) parameters with all built in indicators, and that's
> definitely true, but EMA is a basic building block that I'd think personally
> was even more important to have.
> 
> thanks,
> 
> dave
> 
> 
> 
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
> 
> 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/ArdFIC/hP.FAA/3jkFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/