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 |

PCF Hep Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
xChaserx
Posted : Wednesday, October 25, 2006 10:12:27 PM
Registered User
Joined: 10/7/2004
Posts: 51
Hi,

How to write the MACD Histogram(36.78.18) vs it's moving average(5)?

Thank you.

Craig_S
Posted : Thursday, October 26, 2006 5:51:36 AM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
Simple or exponential MACD? Simple or exponential 5ma?

- Craig
Here to Help!
xChaserx
Posted : Thursday, October 26, 2006 7:53:23 PM
Registered User
Joined: 10/7/2004
Posts: 51
Simple 5ma.
Craig_S
Posted : Friday, October 27, 2006 6:54:41 AM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
Try this:

SGN(((AVGC36-AVGC78)-(AVG(AVGC36,18)-AVG(AVGC78,18)))-
((((AVGC36-AVGC78)-(AVG(AVGC36,18)-AVG(AVGC78,18)))+
((AVGC36.1-AVGC78.1)-(AVG(AVGC36.1,18)-AVG(AVGC78.1,18)))+
((AVGC36.2-AVGC78.2)-(AVG(AVGC36.2,18)-AVG(AVGC78.2,18)))+
((AVGC36.3-AVGC78.3)-(AVG(AVGC36.3,18)-AVG(AVGC78.3,18)))+
((AVGC36.4-AVGC78.4)-(AVG(AVGC36.4,18)-AVG(AVGC78.4,18))))/5))

It will return 1 when the histo is above the 5sma
It will return -1 when it is below.

If your MACD is exponential, put an X in front of every AVG in the formula (XAVGC36)

- Craig
Here to Help!
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.