Registered User Joined: 3/16/2010 Posts: 6
|
Hi,
Can you pl help me with the PCF for the following code.
INPUT EMA=13;
def above13high=close>ExpAverage(high,EMA);
def neutral=close<expaverage(high,EMA)&& close>expaverage(low,EMA);
def below13Low=close<expaverage(low,EMA);
Also , I would like to scan for Close[1] > above13high and Close[1] <below13low
Thanks
Subbu
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
QUOTE (subbias) def above13high=close>ExpAverage(high,EMA);
All of these are guesses as I am not familiar with the language being used:
C > XAVGH13
QUOTE (subbias) def neutral=close<expaverage(high,EMA)&& close>expaverage(low,EMA);
C < XAVGH13 AND C > XAVGL13
QUOTE (subbias) def below13Low=close<expaverage(low,EMA);
C < XAVGL13
QUOTE (subbias) Close[1] > above13high
C1 > XAVGH13
Or possibly:
C1 > XAVGH13.1
QUOTE (subbias) Close[1] <below13low
C1 < XAVGL13
Or possibly:
C1 < XAVGL13.1
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 3/16/2010 Posts: 6
|
That worked, thanks Bruce.
-Subbu
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|