[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

Hi,

if you want, in indicators.dll there is a Ema with variable period

Plot(scEMA(C,RSI(14)),"",colorRed,1);
Plot(C,"",1,64);


stephane


wrote:
> thanks for the steer tomasz.
> 
> I knew AMA was related to EMA, and took an array as its second 
parameter, I
> even looked at it again before posting. however, it wasn't clear 
how its
> second parameter, called SmoothingFactor, was related to EMA's 
second
> parameter, called Range.
> 
> I'm good to go,
> 
> 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
> >
> > > 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/
> >
> >
> >
> 
> 
> 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 ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/JYdFFC/XP.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/