Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

TC's MACD formula Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
adriaanvw
Posted : Friday, November 17, 2006 5:54:00 AM
Registered User
Joined: 4/10/2006
Posts: 3
Hi,

I read a Worden report dated 5th Oct 06 that described the "Patient Trader" trading system. Wanting to backtest this system prior to trading it, I programmed it into Metastock. The trading system relies heavily on MACDs, but unfortunately I've so far been unable to replicate TC's MACD histogram accurately in Metastock. Referring to the Wikipedia link listed in the Worden Knowledge Base, the correct histograph formula for a Simple MACD(12,18,5) is as follows:

MACD = EMA12 - EMA18 on PRICE
SIGNAL = SMA5 on MACD
HISTOGRAM = MACD - SIGNAL

I've programmed this into Metastock as follows:

(Mov(CLOSE,12,E) - Mov(CLOSE,18,E)) {MACD} - (Mov((Mov(CLOSE,12,E) - Mov(CLOSE,18,E)),5,S)) {SIGNAL}

I've concluded that there must be a difference between the way in which TC calculates its MACD histogram and the way it was described on Wikipedia. Could you please shed some light as to how TC actually calculates its MACD histogram values, or perhaps point out something that I appear to have down incorrecly?

Much appreciated,
AvW
diceman
Posted : Friday, November 17, 2006 8:12:49 AM
Registered User
Joined: 1/28/2005
Posts: 6,049
You may be interested in this:

Understanding MACD

MACD and MACD histogram equations are below the video.

Thanks
diceman
diceman
Posted : Friday, November 17, 2006 8:15:59 AM
Registered User
Joined: 1/28/2005
Posts: 6,049
You may also be interested in this:

Indicator Color, Visuals, and MACD.

It shows how to indicate on price chart when MACD histogram is above and below zero (for back testing).

Thanks
diceman
Bruce_L
Posted : Friday, November 17, 2006 8:34:20 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
adriaanvw,
In TeleChart, a Simple MACD uses Simple Moving Averages throughout and an Exponential MACD uses Exponential Moving Averages throughout. It doesn't mix Simple and Exponential Moving Averages in the same MACD.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
adriaanvw
Posted : Friday, November 17, 2006 9:02:48 AM
Registered User
Joined: 4/10/2006
Posts: 3
Hi Bruce,

Thanks for the info. I've adjusted for what you pointed out, but still had differences. I then upgraded from TC2005 to TC2007, and now it all works! It would not have if you hadn't cleared up the non-mixing of MAs though.

Again, thanks for helping clear things up.
Adriaan
Bruce_L
Posted : Friday, November 17, 2006 9:07:24 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.