New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.
Scan results seem to be incorrect
I ran a very simple scan for Bollinger Bands and set it with "Starting 14 trading days before the Last Market Close (8 Feb). But what I get are some stocks that do NOT meet the scan's conditions 14 days ago (Jan 18th). I also changed the number of 'trading days ago' (like 5, 7, etc) and again it seems the engine produces incorrect results. Here is the scan:
[type = stock]
and [country = us]
and [group is not ETF]
and [Close > 10] and
and [Volume > 100000]
and [Min(1,BB Width(20,2)) < 5]
and [%B(20,2) < .8]
and [%B(20,2) > .2]
Specifically, the [Min(1,BB Width(20,2)) < 5] is not met in many of the scan results for Jan 18th (it shows the BB Width value to be > 5.
Any idea why? Am I missing something?
Thx, George
0
Answers
Min(1,..) would be the indicator value itself for the curent period, so it's not necessary to use min( ). It may be that the min() condition is programmed to expect min(2, ) or greater, so that line, even though it doesn't trigger a syntax error, may not be executing as expected. Just a thought.
No difference! same stocks, same # of hits and still many violate the BB Width(20,2) < 5 (some also violate the %BB range).
Examples of stocks not meeting the scan?
gord - many thanks! ... lesson learned: ALWAYS RUN THE "Check Syntax", which I missed so many times (:
markd - thanks for the insight on making sure that " ... the scan and the charts are set to the same last update"; I sure learned that lesson long ago (one being set to Intraday and the other to EOD).
Imkwin - thanks to you too for responding and trying to help.
Appreciate ALL OF YOU !!!