Registered User Joined: 1/27/2013 Posts: 17
|
Am having a problem with a Condition Scan for 3 Bull Days increasing in price each day and then a Doji Gap Up today. When I run a scan 'All Common Stocks', the code I am using produces 3 returns in the scan. Synbol HILL is what I am looking for. Symbol NUW shows a Bull candle 2 days ago, a Bear candle 1 day ago and a Doji today that is a gap up above yesterday's Bear candle open. The Symbol HPT.C shows a Bull candle 2 days ago, a Bear candle yesterday with a double bottom matching 2 days ago and a Doji gap up above the Bear candle open yesterday . Can you offer any suggestions, please? - Those bear candles should be Bull and no double bottoms. (C3>O3) AND (O2>O3)*.50 AND (C2>O2) AND (O1>O2)*.50 AND (O>C1) AND (O=C)*.95 AND (H>C) AND (L<O) Thanks, WayneWM 4-8-13 (Using 4-5-13 closing prices.)
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I have no idea why you are multiplying booleans by values and then ANDing them together. Assuming you want the close of three bars ago to be above the open of three bars ago, the open of two bars ago to be above the open of three bars ago, the close of two bars ago to above the open of two bars ago, the open of one bar ago to be above the open of two bars ago, the current open to be above the previosu close and equal to the current close and the body of the candle to not be at either the top or bottom of the current candle, you would just get:
C3 > O3 AND O2 > O3 AND C2 > O2 AND O1 > O2 AND O > C1 AND O = C AND H > C AND C > O
If you have something else specific in mind, you need to describe the exact pattern you wish to identify without using terms that can have multiple meanisgs just as bull days.
Boolean PCFs for Candlestick Patterns
-Bruce Personal Criteria Formulas TC2000 Support Articles
|