Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

PCF for EMA 13 Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
subbias
Posted : Tuesday, October 18, 2011 12:24:08 PM
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
Bruce_L
Posted : Tuesday, October 18, 2011 12:37:34 PM


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
subbias
Posted : Tuesday, October 18, 2011 1:17:53 PM
Registered User
Joined: 3/16/2010
Posts: 6
That worked, thanks Bruce.

-Subbu
Bruce_L
Posted : Tuesday, October 18, 2011 1:20:36 PM


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.