Registered User Joined: 12/17/2004 Posts: 3
|
I am looking to write a scan for a cross over with a DEMA and a SMA, any ideas on how to do it.. thanks in advance.
kirby
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The formula for a DEMA is:
(2*n-day EMA)-(n-day EMA of EMA)
So, the following formula would return True if the 6-Period Simple Moving Average crossed up through the 5-Period DEMA:
AVGC6 > 2 * XAVGC5 - XAVG(XAVGC5,5) AND AVGC6.1 <= 2 * XAVGC5.1 - XAVG(XAVGC5.1,5)
Your formula would depend on your specific settings and the direction of the crossover. You may wish to review the following:
How to create a Personal Criteria Forumula (PCF) Using EasyScan to find stocks that meet your own criteria Handy PCF example formulas to help you learn the syntax of PCFs! ZERO LAG EMA
-Bruce Personal Criteria Formulas TC2000 Support Articles
|