Gold Customer
Joined: 6/23/2015 Posts: 20
|
Hi Bruce,
Can you create a PCF for the following
1. Price opening below 50 MA and then closing above 50 MA with the close also being above the 8 EMA.
2.Can we also add a condition that the stockastics crossing from the oversold area.
3. Previous day close was a doji.
Regards,
MK
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Pleaes try the following condition formula. It assumes the 50 MA is simple, a doji requires the body to be 5% of the candle or less, and that you are interested in the simple stochastic 12,3 %K crossing up through 20.
20 * ABS(O1 - C1) <= H1 - L1 AND XUP(STOC12.3, 20) AND C > AVGC50 AND AVGV50 > O AND C > XAVGC8
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 9/30/2011 Posts: 788
|
The following formula does not generate any signal Up !
20 * ABS (O1 - C1) <= H1 - L1 AND XUP (STOC12.3, 20) AND C> AVGC50 AND AVGV50> OR AND C> XAVGC8
Thank you for your attention and I greet you cordially.
Raider45
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Your formula has significant enough changes that it is not functionally the same thing. There is a space between XUP and its opening parenthesis which should not be there. O (which is for Open in this case) got changed to OR when it needs to remain unchanged.
That said, the formula is pretty restrictive and would not have returned any results in a daily time frame when scanning the US Common Stocks WatchList.
Let's break it down into 3 sections.
A - Yesterday was a Doji.
20 * ABS(O1 - C1) <= H1 - L1
B - Stochastics crossed up from oversold.
XUP(STOC12.3, 20)
C - Price opened below but closed above SMA50 and is also above EMA8.
C > AVGC50 AND AVGV50 > O AND C > XAVGC8
A was true for 704 symbols.
B was true for 514 symbols.
C was true for 998 symbols.
But A and B only had 48 symbols in common.
A and C only had 116 symbols in common.
B and C only had 56 symbols in common.
And A, B, and C had no symbols in common.
Each requirement on its own isn't a problem, but the combination is was too restrictive to return any symbols from the US Common Stocks WatchList using yesterday's daily data.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 9/30/2011 Posts: 788
|
Thanks for the clarifications !
Sincerely !
|
Gold Customer
Joined: 6/23/2015 Posts: 20
|
QUOTE (Bruce_L)
Pleaes try the following condition formula. It assumes the 50 MA is simple, a doji requires the body to be 5% of the candle or less, and that you are interested in the simple stochastic 12,3 %K crossing up through 20.
20 * ABS(O1 - C1) <= H1 - L1 AND XUP(STOC12.3, 20) AND C > AVGC50 AND AVGV50 > O AND C > XAVGC8
Thank you Bruce, appreciate it.
Regards,
MK
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|