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...??
|
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.
|
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!
|