I'm curious if anyone has reverse engineered the code stockcharts.com uses for candlesticks on their site? When I uses stockcharts predefined scans for something like "bullish engulfing" I get a different (smaller usually) list then what I get from my own code...
Sure. Try a basic bearish engulfing candlestick. Might look something like this: [exchange is NYSE] and [group is not ETF] and [today's open > today's EMA(10, close)] and [yesterday's close > yesterday's open] and [today's high > yesterday's close] and [today's close < today's open] and [today's open > yesterday's close] and [today's close < yesterday's open] Now compare that to the predefined scan on stockcharts for bearish engulfing (on NYSE). They have some additional rules I'm missing which return less results... Let me know how you do
[today's open > yesterday's close] implies [today's high > yesterday's close] therefore [today's high > yesterday's close] is useless.
I think you are missing the rule that the first candle should have a "small body". Per StochCharts.com: "The first day is characterized by a small body, followed by a day whose body completely engulfs the previous day's body and closes in the opposite direction of the trend." Here's how I defined it in my Candlestick Genetic Evolver, and based on some quick analysis runs it seems to have questionable value
Good suggestion, but if we add the generic instruction and [yesterday short Body is true] it reduces our scan results to 3 tickers, whereas stockcharts predefined scan returns 12 (from Friday - NYSE)
This is a useful and obvious command I missed which gets us closer to the predefined scan and [Daily SMA(20,Daily Volume) > 40000] still not there yet though...
I've still got BURL, MSM, and WMT showing up in my Bearish Engulfing scan for Friday Nov 8 2019, but these tickers do not show up on stockcharts predefined scan. Can anyone tell what might disqualify these as bearish engulfing?