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

Re: [amibroker] Re: exponential moving average is different



PureBytes Links

Trading Reference Links

I write all my own filters so most of the time I use loops.

Length = param("Length", 1, 1, 100, 1);

factor = 2 /(Length + 1);

Exp[ 0 ] = Close[ 0 ];

for ( i = 1; i < barcount; i++)

{
    Exp[ i ] = factor * Close[ i ] + ( 1 - factor) * Exp[ i - 1 ];
}

Erik Skyba, CMT



bigitop wrote:
>
> Yes, i notice that the initial value used for EMA is the 8 day simple
> moving average.
>
> I would like to match EMA to yahoo.com and quote.com. Does anyone know
> the formula to initialize the EMA?
>
> --- In amibroker@xxxxxxxxxxxxxxx <mailto:amibroker%40yahoogroups.com>, 
> "Mike" <sfclimbers@xxx> wrote:
> >
> > There is a comment in the user guide referring you to the DEMA where
> it is indicated that the AmiBroker EMA is started from an MA rather than
> the first value.
> >
> > http://www.amibroker.com/guide/afl/afl_view.php?id=44 
> <http://www.amibroker.com/guide/afl/afl_view.php?id=44>
> > http://www.amibroker.com/guide/afl/afl_view.php?id=42 
> <http://www.amibroker.com/guide/afl/afl_view.php?id=42>
> >
> > Mike
> >
> > --- In amibroker@xxxxxxxxxxxxxxx 
> <mailto:amibroker%40yahoogroups.com>, "bigitop" doctormuniz@ wrote:
> > >
> > > how does amibroker calculate the EMA?? it is giving me different
> values than yahoo's EMA... anyone knows?
> > >
> >
>
> 


------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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