Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Spinning Top on a moving average Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
bogeys
Posted : Thursday, February 11, 2016 4:25:01 PM
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.

 

Bruce_L
Posted : Thursday, February 11, 2016 4:50:33 PM


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
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.