Registered User Joined: 10/20/2012 Posts: 68
|
I am looking for a pcf that returns me stocks like these where the last candle is between to MAs before it might breakout to the upside
http://screencast.com/t/m2s5psIzNrLn
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If just the current price needs to be between the 20 and 50 period simple moving averages:
AVGC20 + AVGC50 - ABS(AVGC20 - AVGC50) <= 2 * C AND 2 * C <= AVGC20 + AVGC50 + ABS(AVGC20 - AVGC50)
If just the body of the candle needs to be between the 20 and 50 period simple moving averages:
AVGC20 + AVGC50 - ABS(AVGC20 - AVGC50) <= O + C - ABS(O - C) AND O + C + ABS(O - C) <= AVGC20 + AVGC50 + ABS(AVGC20 - AVGC50)
If the entire candle needs to be between the 20 and 50 period simple moving averages:
AVGC20 + AVGC50 - ABS(AVGC20 - AVGC50) <= 2 * L AND 2 * H <= AVGC20 + AVGC50 + ABS(AVGC20 - AVGC50)
The above formulas can be simplified if the 50 period simple moving average needs to be above the 20 period simple moving average as well:
Just the price becomes:
AVGC20 <= C AND C <= AVGC50
Just the body becomes:
2 * AVGC20 <= O + C - ABS(O - C) AND O + C + ABS(O - C) <= 2 * AVGC50
And the entire candle becomes:
AVGC20 <= L AND H <= AVGC50
Min Max PCFs
-Bruce Personal Criteria Formulas TC2000 Support Articles
|