Announcement

Collapse
No announcement yet.

MACD formula

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MACD formula

    HI,
    I am looking for the original formula of the MACD as used in the efs study, the one I'm using does not give the same results as the efs standard one.

    macd : MAe(12,C) - MAe(26,C) -> is nearly OK

    macdsignal : MAe(9, macd) -> is completely wrong !

    or is it in the Exponential MA the problem ? I'm using :

    MAe(t) = MAe(t-1) + k x ( macd - MAe(t-1))

    where k = 2/(9 +1) = 0.16

    this MAe formula works fine to simulate the standard MAe of EFS but not the MACD signal !

    NGP

  • #2
    NGP
    As far as I know the builtinMACD.efs and the Basic Study MACD use the following as a default

    macd = EMA(12,C) - EMA(26,C)
    signal = MA(9, macd)

    Also, an example of how eSignal calculates an EMA is provided by JasonK here
    Alex
    Last edited by ACM; 10-21-2003, 03:09 AM.

    Comment

    Working...
    X