Registered User Joined: 12/10/2004 Posts: 14
|
Can a PCF be written to scan for Commodity Channel Index(12) crossing over its 9 day EMA? Maybe an excellent buy signal. Thanks for any help, Jon
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I really can't think of a way to make the Personal Criteria Formula short enough to be practical in TeleChart (it is fairly simple to check for this in StockFinder). You would need to substitute the appropriate Bars Ago versions of:
(H + L + C - AVGH12 - AVGL12 - AVGC12) * 2400 / 3 / (ABS(H + L + C - AVGH12 - AVGL12 - AVGC12) + ABS(H1 + L1 + C1 - AVGH12 - AVGL12 - AVGC12) + ABS(H2 + L2 + C2 - AVGH12 - AVGL12 - AVGC12) + ABS(H3 + L3 + C3 - AVGH12 - AVGL12 - AVGC12) + ABS(H4 + L4 + C4 - AVGH12 - AVGL12 - AVGC12) + ABS(H5 + L5 + C5 - AVGH12 - AVGL12 - AVGC12) + ABS(H6 + L6 + C6 - AVGH12 - AVGL12 - AVGC12) + ABS(H7 + L7 + C7 - AVGH12 - AVGL12 - AVGC12) + ABS(H8 + L8 + C8 - AVGH12 - AVGL12 - AVGC12) + ABS(H9 + L9 + C9 - AVGH12 - AVGL12 - AVGC12) + ABS(H10 + L10 + C10 - AVGH12 - AVGL12 - AVGC12) + ABS(H11 + L11 + C11 - AVGH12 - AVGL12 - AVGC12) + .000001)
Into the following formula 31 times to replace all of the Cs:
.200198266760174 * (C + .8 * (C1 + .8 * (C2 + .8 * (C3 + .8 * (C4 + .8 * (C5 + .8 * (C6 + .8 * (C7 + .8 * (C8 + .8 * (C9 + .8 * (C10 + .8 * (C11 + .8 * (C12 + .8 * (C13 + .8 * (C14 + .8 * (C15 + .8 * (C16 + .8 * (C17 + .8 * (C18 + .8 * (C19 + .8 * (C20 + .8 * (C21 + .8 * (C22 + .8 * (C23 + .8 * (C24 + .8 * (C25 + .8 * (C26 + .8 * (C27 + .8 * (C28 + .8 * (C29 + .8 * (C30)))))))))))))))))))))))))))))))
And you would need to do this both for today and for yesterday so you could compare it to both the current and previous values (for a total of 64 instances of the CCI12 formula). The resulting formula would be quite long.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|