Registered User Joined: 10/16/2005 Posts: 27
|
I have been trying to write a Daily PCF to find stocks where a Spinning Top (preferrably a Doji) opens within 0.010 of a moving average, such as the 20 SMA - with no luck. My Spinnig Top PCF is:
38<=(((C+O)/2)-L)/(H-L)*100 AND (((C+O)/2)-L)/(H-L)*100<=62 AND ABS(C-O)/(H-L)*100<35 AND ABS(O/AVGC20-1)<=.010
I am stuck, any help would be appreciated.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
What specifically don't you like about the results?
Your base condition for a spinning top checks for the body of the candle to be less than 35% of the entire candle and for the top and bottom of the body to be at least 38% of the entire candle away from the top or bottom of the candle.
Your addition checks for the open to be within 1% (not of the candle but of the value of the moving average) away from the closing value of the 20 period simple moving average.
If you wanted to check for it to be within 1% of the value of the 20 period simple moving average at the open, you would want to use the following instead.
38<=(((C+O)/2)-L)/(H-L)*100 AND (((C+O)/2)-L)/(H-L)*100<=62 AND ABS(C-O)/(H-L)*100<35 AND ABS(O/((O+19*AVGC19.1)/20)-1)<=.01
There are lots of other things you might want changed. I'm not really going to guess any further at this point. I'll wait on response to my original question to clarify what you actually want.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|