Registered User Joined: 9/13/2014 Posts: 11
|
Hi Bruce,
I would like to create following PCF and your help would be appreciated.
Please look first on following link for better understanding:
http://www.weinotic.com/TC2000/rs.htm
Conditions:
*) Max high of last 10 bars
*) At least 1 bar should test the max. high of last 9 bars
*) Some bars should be close to max high of last 10 bars (+- 0.08%)
*) Lows from all bars shouldn't cross down exponential moving average 9 (EMA9)
*) EMA9 should be taken as "support line" - see condition above
*) C should be lower (min 0.05%) from max high
Thanks in advance for your support
Rainer
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The following Condition Formula checks for at least two bars to have highs within 0.08% of the highest high of the most recent 10 bars, the lows of the most recent 10 bars to all be at or above the 9-period exponential moving average at the time and all of the closes over the period being at least 0.05% lower than the highest high of the most recent 10 bars.
ABS(H >= .9992 * MAXH10) - (H1 >= .9992 * MAXH10) - (H2 >= .9992 * MAXH10) - (H3 >= .9992 * MAXH10) - (H1 >= .9992 * MAXH10) - (H1 >= .9992 * MAXH10) - (H1 >= .9992 * MAXH10) - (H1 >= .9992 * MAXH10) - (H1 >= .9992 * MAXH10) - (H1 >= .9992 * MAXH10) > 1 AND L >= XAVGC9 AND L1 >= XAVGC9.1 AND L2 >= XAVGC9.2 AND L3 >= XAVGC9.3 AND L4 >= XAVGC9.4 AND L5 >= XAVGC9.5 AND L6 >= XAVGC9.6 AND L7 >= XAVGC9.7 AND L8 >= XAVGC9.8 AND L9 >= XAVGC9.9 AND MAXC10 <= .9995 * MAXH10
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 9/13/2014 Posts: 11
|
Bruce as always - your are the best!
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|