Registered User Joined: 9/28/2009 Posts: 135
|
I watched one of the vids and to find resistance the person used the formula:
c=max120 AND c>(maxc120.60)*.99 AND c<(maxc120.60)*1.01
Can you explain the what maxc120.60 does?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I'm going to guess that the c=max120 section is actually C = MAXC120 as max120 is completely meaningless in the Personal Criteria Formula Language.
C is the current price or closing price of the current bar.
MAXC120 is the highest closing price in the most recent 120 bars.
MAXC120.60 is the highest closing price of the 120 bars ending 60 bars ago.
So the Condition Formula given is designed to check that the current price is the highest closing price is the most recent 120 bars and within 1% of the highest closing price it the 120 bars ending 60 bars ago.
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|