Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Exponential Moving Average Calculation

  • 18-03-2011 1:49am
    #1
    Registered Users, Registered Users 2 Posts: 926 ✭✭✭


    Can anyone tell me if there's a direct connection between the actual formula for an EMA:

    a3a63410a8db7ce3ffae2a78d9ff74c9.png

    where alpha is a specified weighting between 1 and 0.


    And the formula used for technical analysis:

    7d9048ec588c5f82276d177c4fccd8c2.png

    where alpha = 2/(n+1) and n is equal to the number of days in the EMA.

    Or is the latter just a 'sort of' EMA.


    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 926 ✭✭✭neil.p.b


    Any chance a mod could move this to the maths forum for me?

    Thanks


  • Registered Users, Registered Users 2 Posts: 2,945 ✭✭✭D-Generate


    Set k=0, t = 1. Then you will see that they are equivalent. It follows for all k and t > 0.

    A decent book for technical analysis is New Trading Systems and Methods by Kaufman, pretty good at giving a bit more detail about the different technical indicators.


  • Registered Users, Registered Users 2 Posts: 926 ✭✭✭neil.p.b


    But the alpha values are still both variable, so giving the first formula a different weighting will change the outcome. I guess what i'm wondering is: is there a connection between the chosen weighting in the first formula, to the size of N in the second. E.g. if N is equal to 12 in the second formula, is there a set value for alpha to be in the first formula so that they give the same answer?

    Thanks for the reply

    EDIT: Sorry i just noticed i posted the wrong formula, it should read

    St = α(Yt + α(1-α)Yt-1 + α(1-α)^2*Yt-2 +.....+ α(1-α)^k*Yt-k)


Advertisement