Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

MACD (20, 15, 7) Cross Over Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
4optrader
Posted : Friday, October 26, 2018 9:06:17 AM
Registered User
Joined: 3/22/2005
Posts: 88

What do I write a PCF to get exponential MACD (20, 15, 7) Cross Down and Cross Up on a two-day chart for TC2000 version7?

I wrote the following for crossing up but it is not accurate.

XAVGC40 - XAVGC30 > XAVG(XAVGC40,14) - XAVG(XAVGC30,14) AND XAVGC40.1 - XAVGC30.1 <= XAVG(XAVGC40.1,14) - XAVG(XAVGC30.1,14)

Bruce_L
Posted : Friday, October 26, 2018 9:25:53 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You need to manually expand the moving averages to properly calculate this for a 2-day chart in TC2000 v7. So crossing up would be the following.

.093840533 * (C + 7 / 8 * (C2 + 7 / 8 * (C4 + 7 / 8 * (C6 + 7 / 8 * (C8 + 7 / 8 * (C10 + 7 / 8 * (C12 + 7 / 8 * (C14 + 7 / 8 * (C16 + 7 / 8 * (C18 + 7 / 8 * (C20 + 7 / 8 * (C22 + 7 / 8 * (C24 + 7 / 8 * (C26 + 7 / 8 * (C28 + 7 / 8 * (C30 + 7 / 8 * (C32 + 7 / 8 * (C34 + 7 / 8 * (C36 + 7 / 8 * (C38 + 7 / 8 * (C40 + 7 / 8 * (C42 + 7 / 8 * (C44 + 7 / 8 * (C46 + 7 / 8 * (C48 + 7 / 8 * (C50 + 7 / 8 * (C52 + 7 / 8 * (C54 + 7 / 8 * (C56 + 7 / 8 * (C58 + 7 / 8 * (C60 + 7 / 8 * (C62 + 7 / 8 * (C64 + 7 / 8 * (C66 + 7 / 8 * (C68 + 7 / 8 * (C70 + 7 / 8 * (C72 + 7 / 8 * (C74 + 7 / 8 * (C76 + 7 / 8 * (C78 + 7 / 8 * (C80 + 7 / 8 * (C82 + 7 / 8 * (C84 + 7 / 8 * (C86 + 7 / 8 * (C88 + 7 / 8 * (C90 + 7 / 8 * (C92 + 7 / 8 * (C94 + 7 / 8 * (C96 + 7 / 8 * (C98 + 7 / 8 * (C100 + 7 / 8 * (C102)))))))))))))))))))))))))))))))))))))))))))))))))))) > .043995929 * (C + 19 / 21 * (C2 + 19 / 21 * (C4 + 19 / 21 * (C6 + 19 / 21 * (C8 + 19 / 21 * (C10 + 19 / 21 * (C12 + 19 / 21 * (C14 + 19 / 21 * (C16 + 19 / 21 * (C18 + 19 / 21 * (C20 + 19 / 21 * (C22 + 19 / 21 * (C24 + 19 / 21 * (C26 + 19 / 21 * (C28 + 19 / 21 * (C30 + 19 / 21 * (C32 + 19 / 21 * (C34 + 19 / 21 * (C36 + 19 / 21 * (C38 + 19 / 21 * (C40 + 19 / 21 * (C42 + 19 / 21 * (C44 + 19 / 21 * (C46 + 19 / 21 * (C48 + 19 / 21 * (C50 + 19 / 21 * (C52 + 19 / 21 * (C54 + 19 / 21 * (C56 + 19 / 21 * (C58 + 19 / 21 * (C60 + 19 / 21 * (C62 + 19 / 21 * (C64 + 19 / 21 * (C66 + 19 / 21 * (C68 + 19 / 21 * (C70 + 19 / 21 * (C72 + 19 / 21 * (C74 + 19 / 21 * (C76 + 19 / 21 * (C78 + 19 / 21 * (C80 + 19 / 21 * (C82 + 19 / 21 * (C84 + 19 / 21 * (C86 + 19 / 21 * (C88 + 19 / 21 * (C90 + 19 / 21 * (C92 + 19 / 21 * (C94 + 19 / 21 * (C96 + 19 / 21 * (C98 + 19 / 21 * (C100 + 19 / 21 * (C102 + 19 / 21 * (C104 + 19 / 21 * (C106 + 19 / 21 * (C108 + 19 / 21 * (C110 + 19 / 21 * (C112 + 19 / 21 * (C114 + 19 / 21 * (C116 + 19 / 21 * (C118 + 19 / 21 * (C120 + 19 / 21 * (C122 + 19 / 21 * (C124 + 19 / 21 * (C126 + 19 / 21 * (C128 + 19 / 21 * (C130 + 19 / 21 * (C132 + 19 / 21 * (C134 + 19 / 21 * (C136 + 19 / 21 * (C138)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) + .072169695 * (C + 3 / 4 * (C2 + 3 / 4 * (C4 + 3 / 4 * (C6 + 3 / 4 * (C8 + 3 / 4 * (C10 + 3 / 4 * (C12 + 3 / 4 * (C14 + 3 / 4 * (C16 + 3 / 4 * (C18 + 3 / 4 * (C20 + 3 / 4 * (C22 + 3 / 4 * (C24 + 3 / 4 * (C26 + 3 / 4 * (C28 + 3 / 4 * (C30 + 3 / 4 * (C32 + 3 / 4 * (C34 + 3 / 4 * (C36 + 3 / 4 * (C38 + 3 / 4 * (C40 + 3 / 4 * (C42 + 3 / 4 * (C44 + 3 / 4 * (C46 + 3 / 4 * (C48))))))))))))))))))))))))) AND .093840533 * (C2 + 7 / 8 * (C4 + 7 / 8 * (C6 + 7 / 8 * (C8 + 7 / 8 * (C10 + 7 / 8 * (C12 + 7 / 8 * (C14 + 7 / 8 * (C16 + 7 / 8 * (C18 + 7 / 8 * (C20 + 7 / 8 * (C22 + 7 / 8 * (C24 + 7 / 8 * (C26 + 7 / 8 * (C28 + 7 / 8 * (C30 + 7 / 8 * (C32 + 7 / 8 * (C34 + 7 / 8 * (C36 + 7 / 8 * (C38 + 7 / 8 * (C40 + 7 / 8 * (C42 + 7 / 8 * (C44 + 7 / 8 * (C46 + 7 / 8 * (C48 + 7 / 8 * (C50 + 7 / 8 * (C52 + 7 / 8 * (C54 + 7 / 8 * (C56 + 7 / 8 * (C58 + 7 / 8 * (C60 + 7 / 8 * (C62 + 7 / 8 * (C64 + 7 / 8 * (C66 + 7 / 8 * (C68 + 7 / 8 * (C70 + 7 / 8 * (C72 + 7 / 8 * (C74 + 7 / 8 * (C76 + 7 / 8 * (C78 + 7 / 8 * (C80 + 7 / 8 * (C82 + 7 / 8 * (C84 + 7 / 8 * (C86 + 7 / 8 * (C88 + 7 / 8 * (C90 + 7 / 8 * (C92 + 7 / 8 * (C94 + 7 / 8 * (C96 + 7 / 8 * (C98 + 7 / 8 * (C100 + 7 / 8 * (C102 + 7 / 8 * (C104)))))))))))))))))))))))))))))))))))))))))))))))))))) <= .043995929 * (C2 + 19 / 21 * (C4 + 19 / 21 * (C6 + 19 / 21 * (C8 + 19 / 21 * (C10 + 19 / 21 * (C12 + 19 / 21 * (C14 + 19 / 21 * (C16 + 19 / 21 * (C18 + 19 / 21 * (C20 + 19 / 21 * (C22 + 19 / 21 * (C24 + 19 / 21 * (C26 + 19 / 21 * (C28 + 19 / 21 * (C30 + 19 / 21 * (C32 + 19 / 21 * (C34 + 19 / 21 * (C36 + 19 / 21 * (C38 + 19 / 21 * (C40 + 19 / 21 * (C42 + 19 / 21 * (C44 + 19 / 21 * (C46 + 19 / 21 * (C48 + 19 / 21 * (C50 + 19 / 21 * (C52 + 19 / 21 * (C54 + 19 / 21 * (C56 + 19 / 21 * (C58 + 19 / 21 * (C60 + 19 / 21 * (C62 + 19 / 21 * (C64 + 19 / 21 * (C66 + 19 / 21 * (C68 + 19 / 21 * (C70 + 19 / 21 * (C72 + 19 / 21 * (C74 + 19 / 21 * (C76 + 19 / 21 * (C78 + 19 / 21 * (C80 + 19 / 21 * (C82 + 19 / 21 * (C84 + 19 / 21 * (C86 + 19 / 21 * (C88 + 19 / 21 * (C90 + 19 / 21 * (C92 + 19 / 21 * (C94 + 19 / 21 * (C96 + 19 / 21 * (C98 + 19 / 21 * (C100 + 19 / 21 * (C102 + 19 / 21 * (C104 + 19 / 21 * (C106 + 19 / 21 * (C108 + 19 / 21 * (C110 + 19 / 21 * (C112 + 19 / 21 * (C114 + 19 / 21 * (C116 + 19 / 21 * (C118 + 19 / 21 * (C120 + 19 / 21 * (C122 + 19 / 21 * (C124 + 19 / 21 * (C126 + 19 / 21 * (C128 + 19 / 21 * (C130 + 19 / 21 * (C132 + 19 / 21 * (C134 + 19 / 21 * (C136 + 19 / 21 * (C138 + 19 / 21 * (C140)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) + .072169695 * (C2 + 3 / 4 * (C4 + 3 / 4 * (C6 + 3 / 4 * (C8 + 3 / 4 * (C10 + 3 / 4 * (C12 + 3 / 4 * (C14 + 3 / 4 * (C16 + 3 / 4 * (C18 + 3 / 4 * (C20 + 3 / 4 * (C22 + 3 / 4 * (C24 + 3 / 4 * (C26 + 3 / 4 * (C28 + 3 / 4 * (C30 + 3 / 4 * (C32 + 3 / 4 * (C34 + 3 / 4 * (C36 + 3 / 4 * (C38 + 3 / 4 * (C40 + 3 / 4 * (C42 + 3 / 4 * (C44 + 3 / 4 * (C46 + 3 / 4 * (C48 + 3 / 4 * (C50)))))))))))))))))))))))))

And crossing down would be the following.

.093840533 * (C + 7 / 8 * (C2 + 7 / 8 * (C4 + 7 / 8 * (C6 + 7 / 8 * (C8 + 7 / 8 * (C10 + 7 / 8 * (C12 + 7 / 8 * (C14 + 7 / 8 * (C16 + 7 / 8 * (C18 + 7 / 8 * (C20 + 7 / 8 * (C22 + 7 / 8 * (C24 + 7 / 8 * (C26 + 7 / 8 * (C28 + 7 / 8 * (C30 + 7 / 8 * (C32 + 7 / 8 * (C34 + 7 / 8 * (C36 + 7 / 8 * (C38 + 7 / 8 * (C40 + 7 / 8 * (C42 + 7 / 8 * (C44 + 7 / 8 * (C46 + 7 / 8 * (C48 + 7 / 8 * (C50 + 7 / 8 * (C52 + 7 / 8 * (C54 + 7 / 8 * (C56 + 7 / 8 * (C58 + 7 / 8 * (C60 + 7 / 8 * (C62 + 7 / 8 * (C64 + 7 / 8 * (C66 + 7 / 8 * (C68 + 7 / 8 * (C70 + 7 / 8 * (C72 + 7 / 8 * (C74 + 7 / 8 * (C76 + 7 / 8 * (C78 + 7 / 8 * (C80 + 7 / 8 * (C82 + 7 / 8 * (C84 + 7 / 8 * (C86 + 7 / 8 * (C88 + 7 / 8 * (C90 + 7 / 8 * (C92 + 7 / 8 * (C94 + 7 / 8 * (C96 + 7 / 8 * (C98 + 7 / 8 * (C100 + 7 / 8 * (C102)))))))))))))))))))))))))))))))))))))))))))))))))))) < .043995929 * (C + 19 / 21 * (C2 + 19 / 21 * (C4 + 19 / 21 * (C6 + 19 / 21 * (C8 + 19 / 21 * (C10 + 19 / 21 * (C12 + 19 / 21 * (C14 + 19 / 21 * (C16 + 19 / 21 * (C18 + 19 / 21 * (C20 + 19 / 21 * (C22 + 19 / 21 * (C24 + 19 / 21 * (C26 + 19 / 21 * (C28 + 19 / 21 * (C30 + 19 / 21 * (C32 + 19 / 21 * (C34 + 19 / 21 * (C36 + 19 / 21 * (C38 + 19 / 21 * (C40 + 19 / 21 * (C42 + 19 / 21 * (C44 + 19 / 21 * (C46 + 19 / 21 * (C48 + 19 / 21 * (C50 + 19 / 21 * (C52 + 19 / 21 * (C54 + 19 / 21 * (C56 + 19 / 21 * (C58 + 19 / 21 * (C60 + 19 / 21 * (C62 + 19 / 21 * (C64 + 19 / 21 * (C66 + 19 / 21 * (C68 + 19 / 21 * (C70 + 19 / 21 * (C72 + 19 / 21 * (C74 + 19 / 21 * (C76 + 19 / 21 * (C78 + 19 / 21 * (C80 + 19 / 21 * (C82 + 19 / 21 * (C84 + 19 / 21 * (C86 + 19 / 21 * (C88 + 19 / 21 * (C90 + 19 / 21 * (C92 + 19 / 21 * (C94 + 19 / 21 * (C96 + 19 / 21 * (C98 + 19 / 21 * (C100 + 19 / 21 * (C102 + 19 / 21 * (C104 + 19 / 21 * (C106 + 19 / 21 * (C108 + 19 / 21 * (C110 + 19 / 21 * (C112 + 19 / 21 * (C114 + 19 / 21 * (C116 + 19 / 21 * (C118 + 19 / 21 * (C120 + 19 / 21 * (C122 + 19 / 21 * (C124 + 19 / 21 * (C126 + 19 / 21 * (C128 + 19 / 21 * (C130 + 19 / 21 * (C132 + 19 / 21 * (C134 + 19 / 21 * (C136 + 19 / 21 * (C138)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) + .072169695 * (C + 3 / 4 * (C2 + 3 / 4 * (C4 + 3 / 4 * (C6 + 3 / 4 * (C8 + 3 / 4 * (C10 + 3 / 4 * (C12 + 3 / 4 * (C14 + 3 / 4 * (C16 + 3 / 4 * (C18 + 3 / 4 * (C20 + 3 / 4 * (C22 + 3 / 4 * (C24 + 3 / 4 * (C26 + 3 / 4 * (C28 + 3 / 4 * (C30 + 3 / 4 * (C32 + 3 / 4 * (C34 + 3 / 4 * (C36 + 3 / 4 * (C38 + 3 / 4 * (C40 + 3 / 4 * (C42 + 3 / 4 * (C44 + 3 / 4 * (C46 + 3 / 4 * (C48))))))))))))))))))))))))) AND .093840533 * (C2 + 7 / 8 * (C4 + 7 / 8 * (C6 + 7 / 8 * (C8 + 7 / 8 * (C10 + 7 / 8 * (C12 + 7 / 8 * (C14 + 7 / 8 * (C16 + 7 / 8 * (C18 + 7 / 8 * (C20 + 7 / 8 * (C22 + 7 / 8 * (C24 + 7 / 8 * (C26 + 7 / 8 * (C28 + 7 / 8 * (C30 + 7 / 8 * (C32 + 7 / 8 * (C34 + 7 / 8 * (C36 + 7 / 8 * (C38 + 7 / 8 * (C40 + 7 / 8 * (C42 + 7 / 8 * (C44 + 7 / 8 * (C46 + 7 / 8 * (C48 + 7 / 8 * (C50 + 7 / 8 * (C52 + 7 / 8 * (C54 + 7 / 8 * (C56 + 7 / 8 * (C58 + 7 / 8 * (C60 + 7 / 8 * (C62 + 7 / 8 * (C64 + 7 / 8 * (C66 + 7 / 8 * (C68 + 7 / 8 * (C70 + 7 / 8 * (C72 + 7 / 8 * (C74 + 7 / 8 * (C76 + 7 / 8 * (C78 + 7 / 8 * (C80 + 7 / 8 * (C82 + 7 / 8 * (C84 + 7 / 8 * (C86 + 7 / 8 * (C88 + 7 / 8 * (C90 + 7 / 8 * (C92 + 7 / 8 * (C94 + 7 / 8 * (C96 + 7 / 8 * (C98 + 7 / 8 * (C100 + 7 / 8 * (C102 + 7 / 8 * (C104)))))))))))))))))))))))))))))))))))))))))))))))))))) >= .043995929 * (C2 + 19 / 21 * (C4 + 19 / 21 * (C6 + 19 / 21 * (C8 + 19 / 21 * (C10 + 19 / 21 * (C12 + 19 / 21 * (C14 + 19 / 21 * (C16 + 19 / 21 * (C18 + 19 / 21 * (C20 + 19 / 21 * (C22 + 19 / 21 * (C24 + 19 / 21 * (C26 + 19 / 21 * (C28 + 19 / 21 * (C30 + 19 / 21 * (C32 + 19 / 21 * (C34 + 19 / 21 * (C36 + 19 / 21 * (C38 + 19 / 21 * (C40 + 19 / 21 * (C42 + 19 / 21 * (C44 + 19 / 21 * (C46 + 19 / 21 * (C48 + 19 / 21 * (C50 + 19 / 21 * (C52 + 19 / 21 * (C54 + 19 / 21 * (C56 + 19 / 21 * (C58 + 19 / 21 * (C60 + 19 / 21 * (C62 + 19 / 21 * (C64 + 19 / 21 * (C66 + 19 / 21 * (C68 + 19 / 21 * (C70 + 19 / 21 * (C72 + 19 / 21 * (C74 + 19 / 21 * (C76 + 19 / 21 * (C78 + 19 / 21 * (C80 + 19 / 21 * (C82 + 19 / 21 * (C84 + 19 / 21 * (C86 + 19 / 21 * (C88 + 19 / 21 * (C90 + 19 / 21 * (C92 + 19 / 21 * (C94 + 19 / 21 * (C96 + 19 / 21 * (C98 + 19 / 21 * (C100 + 19 / 21 * (C102 + 19 / 21 * (C104 + 19 / 21 * (C106 + 19 / 21 * (C108 + 19 / 21 * (C110 + 19 / 21 * (C112 + 19 / 21 * (C114 + 19 / 21 * (C116 + 19 / 21 * (C118 + 19 / 21 * (C120 + 19 / 21 * (C122 + 19 / 21 * (C124 + 19 / 21 * (C126 + 19 / 21 * (C128 + 19 / 21 * (C130 + 19 / 21 * (C132 + 19 / 21 * (C134 + 19 / 21 * (C136 + 19 / 21 * (C138 + 19 / 21 * (C140)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) + .072169695 * (C2 + 3 / 4 * (C4 + 3 / 4 * (C6 + 3 / 4 * (C8 + 3 / 4 * (C10 + 3 / 4 * (C12 + 3 / 4 * (C14 + 3 / 4 * (C16 + 3 / 4 * (C18 + 3 / 4 * (C20 + 3 / 4 * (C22 + 3 / 4 * (C24 + 3 / 4 * (C26 + 3 / 4 * (C28 + 3 / 4 * (C30 + 3 / 4 * (C32 + 3 / 4 * (C34 + 3 / 4 * (C36 + 3 / 4 * (C38 + 3 / 4 * (C40 + 3 / 4 * (C42 + 3 / 4 * (C44 + 3 / 4 * (C46 + 3 / 4 * (C48 + 3 / 4 * (C50)))))))))))))))))))))))))



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
4optrader
Posted : Friday, October 26, 2018 10:10:40 AM
Registered User
Joined: 3/22/2005
Posts: 88

Thank you, very much, Bruce.

Bruce_L
Posted : Friday, October 26, 2018 10:15:13 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.