Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Exponential Moving Average Calculation

  • 18-03-2011 02: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,947 ✭✭✭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