Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

20SMA>40SMA>100SMA>200SMA = Sytax Error Found... Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
samody
Posted : Saturday, November 12, 2005 2:06:41 AM
Registered User
Joined: 10/7/2004
Posts: 43
I have tried to use this formula:
20SMA>40SMA>100SMA>200SMA

but it still giving me a syntax errors. Pleaes tell me how to correct this error...??
Bucket_Shop
Posted : Saturday, November 12, 2005 3:23:28 AM

Registered User
Joined: 11/16/2004
Posts: 105
samody,
You will need to add a price condition to the moving averages you want to place.And add the logical operator "and". If you want yesterday's closing price above these MA in an uptrend for example try:

C1 > AVGC20 AND AVGC20 > AVGC40 AND AVGC40 > AVGC100 AND AVGC100 > AVGC200

In your editing formulas window double click the function to adjust a criteria such as price or moving ave.

Craig_S
Posted : Saturday, November 12, 2005 6:39:55 AM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
The correct way to write "20SMA>40SMA>100SMA>200SMA" in the PCF syntax:

AVGC20 > AVGC40 AND AVGC40 > AVGC100 AND AVGC100 > AVGC200

be sure to check out this topic:

Handy PCF example formulas to help you learn the syntax of PCFs!

- Craig
Here to Help!
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.