PureBytes Links
Trading Reference Links
|
can anyone give me a hand with this??
My questions are regarding the AMA function of Amibroker. I'm trying to migrate an AFL script to Metatrader and need to code this formula.
1. the array "Period", where does it come from?
2. the "Factor" is calculated as 2/(Period+1). So is this a "fixed" formula or does it vary? If I would like something like AMA(Close, 0.5) where does the 0.5 gets plugged in the "Factor" formula?
3. How is the first value of AMA established?
Thanks for your help!
--- In amibroker@xxxxxxxxxxxxxxx, "bigitop" <doctormuniz@xxx> wrote:
>
> Hi Joe. I read what you recommended and understand how the arrays are calculated, but it still leaves out some details about the AMA function. Please correct me if I'm wrong.
>
> 1. the array "Period", where does it come from?
>
> 2. in the example you provided the "Factor" is calculated as 2/(Period+1). So is this a "fixed" formula or does it vary? If I would like something like AMA(Close, 0.5) where does the 0.5 gets plugged in the "Factor" formula?
>
> 3. How is the first value of AMA established?
>
> Thanks for your help!
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Joe" <j0etr4der@> wrote:
> >
> > Find "Understanding How AFL Works" in the User's Guide (Help). AMA is explained at the bottom.
> >
> > Joe
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "bigitop" <doctormuniz@> wrote:
> > >
> > > Hi All.
> > >
> > > I am trying to migrate an AFL script to Metatrader 4 for forex. The
> > > script is based on Woodie's Heikin Ashi
> > > (http://www.amibroker.com/library/detail.php?id=1024) and it uses AB's
> > > AMA function.
> > >
> > > The problem I have is that Metatrader doesn't have a built-in AMA
> > > function as AB does. So I am trying to code the AMA function myself.
> > >
> > > My question is this:
> > >
> > > 1. What is the default PERIOD for AB AMA function. (since it only takes
> > > two parameters, the ARRAY and SMOOTHINGFACTOR)
> > >
> > > 2. What exactly is the SMOOTHINGFACTOR?
> > >
> > > Any help is greatly appreciated!
> > >
> > > I'm using the following, which i got on the internet, to calculate the
> > > AMA
> > >
> > > Direction = Price - price(n) ; where n = AMA Period
> > > Volatility = Sum(abs(price - price[1], n)
> > > Effeciency Ratio (ER) = Direction / Volatility
> > > Fast Smoothing Constant (FastC) = 2/(p + 1) ; where p = FSC Period
> > > Slow Smoothing Constant (SlowC) = 2/(q + 1) ; where q = FSC Period
> > > Scaled Smoothing Constant (SSC) = ER(FastC - SlowC) + SlowC
> > >
> >
>
------------------------------------
**** 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/
|