Registered User Joined: 12/7/2004 Posts: 6
|
how do I write a PCF for price closes 5 days in a row or more below the 50d smava and then going up thorugh the 50 day smva?
also the rsi period 20 avg 1 below 50 for 5 days and then crossing through the 50 value?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following:
Price below SMA5 for 5-Periods and then xUp:
C > AVGC50 AND C1 < AVGC50.1 AND C2 < AVGC50.2 AND C3 < AVGC50.3 AND C4 < AVGC50.4 AND C5 < AVGC50.5
Unsmoothed RSI20 below 50 for 5-Periods and then xUp:
RSI20 > 50 AND RSI20.1.1 < 50 AND RSI20.1.2 < 50 AND RSI20.1.3 < 50 AND RSI20.1.4 < 50 AND RSI20.1.5 < 50
A Wilders Smoothed version of the RSI formula would be significantly longer (I haven't figured out if it is too long to be practical or not). You may wish to review the following:
How to create a Personal Criteria Forumula (PCF)
Moving Average PCF Templates
Things to check if your moving averages don't "seem right" or "seem to match"
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|