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

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



PureBytes Links

Trading Reference Links

The same question for EMA/AMA equivalent.
The AMA(C,a) will not touch AMA(C,10) when a is variable and a=10.
I do not think we may speak for equivalence...
 
x1=10;Plot(EMA(C,x1),"EMA10",1,1);
x2=20;Plot(EMA(C,x2),"EMA20",1,1);
a1=2/(x1+1);Plot(AMA(C,a1),"AMA10",4,8);
a2=2/(x2+1);Plot(AMA(C,a2),"AMA20",4,8);
x=10+Cum(1)%11;
a=2/(x+1);
Plot(AMA(C,a),"AMA",7,1);

Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> 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@xxxx>
> 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@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > 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 ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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/