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.
Can you specify an index (e.g. $INDU) in the parameters on a technical indicator scan?
I'm trying to setup a scan using CCI, Slow Stoch %K, and %B. The scan for equities is working just fine. I now want to add one additional condition to it. I only want it to return long signals when Slow Stoch %K for $INDU is about %D, and only want it to return short signals when the opposite is true. Is there any way to add that check? I haven't found any way to specify that I want the Slow Stoch indicator to apply specifically to $INDU. (Hope that makes sense.)
Yes, I know I can do this manually by setting up a long scan and a short scan, and run one or the other based on the current chart. I'm trying to backtest, though, and being able to include it in the scan itself will greatly simplify the backtesting.
Thanks!
-- Ron
0
Answers
If ekwong is around, he might have other/better ideas.
[type = stock] AND [country = US] AND [Min(126,Daily Volume) > 1000000] and [[exchange is NYSE] or [exchange is Nasdaq] or [exchange is Amex]]
and [[Close > 9.99] and [Close < 70.0]]
and [ATR(10) < Close*.035]
and [close > yesterday's close]
That returns 43 symbols.
To that scan, I added the following:
and [[favorites list is 12] // $INDU
and [close < yesterday's close]]
Now, since the market did indeed close down, if the theory worked, that would return the same 43 symbols. Unfortunately, it returns 0.
Seeing it on paper, it makes sense, because the "and" clause at the start would have restricted the entire scan to just that chartlist.
It looks like you have to do 2 scans, one for the $INDU condition, and if it returns a positive result, then run the stocks scan for that date. But that's probably what you were trying to avoid.
Instead of a list you can use [symbol = "$INDU] as in
[symbol = "$INDU"]
and [close < 3 days ago close]
then use the calendar to specify the number of days back.
If you want to do just one scan, what is the result if you use an "or" operator instead of "and"?
I think if both conditions were true, $INDU would be in the result list. But that's off the top of my head again...
[symbol = '$INDU'] AND [Min(126,Daily Volume) > 1000000]
and [[Close > 9.99] and [Close < 70.0]]
and [ATR(10) < Close*.035]
and [close > yesterday's close]
If you want just indexes, you can do this:
[type = index] AND [Min(126,Daily Volume) > 1000000]
and [[Close > 9.99] and [Close < 70.0]]
and [ATR(10) < Close*.035]
and [close > yesterday's close]
Kevo, I'm not trying to run a scan just on the indexes. I'm ultimately trying to include the value of an index's technical indicator as part of an overall scan. I have a scan that returns symbols based on Slow Stochastic, CCI, and %B conditions that I've set. I'm hoping to also include a Slow Stochastic condition for an index in that set of conditions. I just haven't found a way to do it.
Thanks for spending so much time on this one!