Registered User Joined: 3/30/2013 Posts: 8
|
Hi Bruce,
Can you help me to write a PCF for the following or direct me to a link where it was done before:
open is less than the Exponential Moving Average 21
open is less than the Exponential Moving Average 8
open is less than the Exponential Moving Average 4
close is greater than the Exponential Moving Average 21
close is greater than the Exponential Moving Average 8
close is greater than the Exponential Moving Average 4
close is greater than open
close from 3 bars ago is less than Exponential Moving Average 21
close from 5 bars ago is less than close from 3 bars ago
Thanks.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
QUOTE (KennedyG) open is less than the Exponential Moving Average 21
O < XAVGC21
QUOTE (KennedyG) open is less than the Exponential Moving Average 8
O < XAVGC8
QUOTE (KennedyG) open is less than the Exponential Moving Average 4
O < XAVGC4
QUOTE (KennedyG) close is greater than the Exponential Moving Average 21
C > XAVGC21
QUOTE (KennedyG) close is greater than the Exponential Moving Average 8
C > XAVGC8
QUOTE (KennedyG) close is greater than the Exponential Moving Average 4
C > XAVGC4
QUOTE (KennedyG) close is greater than open
C > O
QUOTE (KennedyG) close from 3 bars ago is less than Exponential Moving Average 21
C3 < XAVGC21.3
QUOTE (KennedyG) close from 5 bars ago is less than close from 3 bars ago
C5 > C3
Combining these into a single Condition Formula would result in:
O < XAVGC21 AND O < XAVGC8 AND O < XAVGC4 AND XAVGC4 < C AND XAVGC8 < C AND XAVGC21 < C AND C5 < C3 AND C3 < XAVGC21.3
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|