StockFetcher Forums · Filter Exchange · Bullish Abandoned Baby<< >>Post Follow-up
Underworlds
30 posts
msg #90995
Ignore Underworlds
4/9/2010 9:16:51 PM

It appears to me that the built in "Bullish Abandoned Baby" filter is incorrect. I ran the filter and it returned 14 results. In those results, the upper shadow for nearly every doji star on the second day overlapped with the lower shadow on either the first day, the third day, or both. In a few of the results, the second day was more of a long legged doji or a four price doji instead of a star doji.

I have been trying to write a filter that generates a Bullish Abandoned Baby more along the lines of the stricter definition given at candlesticker.com. Below is what I have got so far. The only problem is that I ran a backtest on the filter as far back as StockFetcher would allow me to go and my filter couldn't find anything.

Note that the following are the primary criteria given at candlesticker.com for the Bullish Abandoned Baby which I have tried to incorporate into this filter -

a) First day is a "long" black candlestick
b) Second day is a "star" doji
c) Third day is a white candlestick
d) A gap exists between the low of the first day and the high of the second day
e) A gap exists between the high of the second day and the low of the third day
f) The pattern is found at the bottom of a downtrend

Any suggestions on how to twek this filter will be most appreciated.

Fetcher[/* Bullish Abandoned Baby */

/* Long Black Candlestick */
set{blk_long, Open 2 days ago * 0.02}
set{blk_bodymin, Open 2 days ago - blk_long}

Open 2 days ago is greater than Close 2 days ago
and High 2 days ago is greater than Open 2 days ago
and Close 2 days ago is greater than Low 2 days ago
and Close 2 days ago is less than blk_bodymin

/* Doji Star */
/* set{shad_max, Open 1 day ago * 0.005} */
set{shad_height, High 1 day ago - Low 1 day ago}
set{shad_thirds, shad_height / 3}
set{shad_twothirds, shad_thirds * 2}
set{open_max, High 1 day ago - shad_thirds}
set{open_min, High 1 day ago - shad_twothirds}

and Open 1 day ago equals Close 1 day ago
and Open 1 day ago is less than open_max
and Open 1 day ago is greater than open_min
/* and shad_height is less than shad_max */
and High 1 day ago is greater than Open 1 day ago
and Low 1 day ago is less than Close 1 day ago

/* White Candlestick */
and Close is greater than Open
and High is greater than Close
and Open is greater than Low

/* Position Candlesticks */
and High 1 day ago is less than Low 2 days ago
and Low is greater than High 1 day ago

/* Downtrend */
and MACD Fast Line(12,26) is approaching MACD Slow Line(12,26) from below
]



chetron
2,817 posts
msg #91027
Ignore chetron
4/10/2010 8:17:13 PM

SOMETHING I LIKE TO DO WHEN I GET FEW OR NO RESULTS IS CLICK THE DEBUG TAB. WHEN YOU DO, YOU WILL SEE A COLUMN OF %'S TO THE RIGHT. THIS TELLS YOU HOW MUCH EACH LINE AFFECTS YOUR RESULTS. ANY LINE THAT TAKES OUT MORE THAN 50 % OF THE PRECEDING LINE'S %, TRY REMOVING IT UNTIL YOU GET SOME RESULTS TO REVIEW AND MAYBE MAKE SOME ALTERATIONS TO YOUR CODE.


HTH


WHAT I SAW.....

Fetcher[

/* I DON'T KNOW HOW IMPORTANT THE LAST FEW LINES I MOVED BUT THEY WERE KILLING THE RESULTS */
/* Bullish Abandoned Baby */

/* Long Black Candlestick */
set{blk_long, Open 2 days ago * 0.02}
set{blk_bodymin, Open 2 days ago - blk_long}

Open 2 days ago is greater than Close 2 days ago
and High 2 days ago is greater than Open 2 days ago
and Close 2 days ago is greater than Low 2 days ago
and Close 2 days ago is less than blk_bodymin

/* Doji Star */
/* set{shad_max, Open 1 day ago * 0.005} */
set{shad_height, High 1 day ago - Low 1 day ago}
set{shad_thirds, shad_height / 3}
set{shad_twothirds, shad_thirds * 2}
set{open_max, High 1 day ago - shad_thirds}
set{open_min, High 1 day ago - shad_twothirds}

and Open 1 day ago is less than open_max
and Open 1 day ago is greater than open_min
/* and shad_height is less than shad_max */
and High 1 day ago is greater than Open 1 day ago
and Low 1 day ago is less than Close 1 day ago

/* White Candlestick */
and Close is greater than Open
and High is greater than Close
and Open is greater than Low

/* Position Candlesticks */
and Low is greater than High 1 day ago

/* Downtrend */
and MACD Fast Line(12,26) is approaching MACD Slow Line(12,26) from below


/*

THESE LINES KILL YOUR OUTPUT.....

and High 1 day ago is less than Low 2 days ago
and Open 1 day ago equals Close 1 day ago

*/

]



neals952@hotmail.com
3 posts
msg #135845
Ignore neals952@hotmail.com
5/11/2017 11:12:25 AM

I agree the Abandoned baby is really a morning star with Doji, I was so happy to see your filter, do you have this working yet? I was thinking of a Bullish island and making the middle a Doji, if that would work?
Thank you so much, Neal

StockFetcher Forums · Filter Exchange · Bullish Abandoned Baby<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.