need help writing a simple slow stochastic crossover scan

I am trying to write a scan to find stocks,etf's and indices that have a daily slow stochastic 10,4 crossover. I want to include all US stocks, over 500,000 volume. I'm not sure how to write the scan so that it looks at stocks, etf's and indices together. Here is what I have so far:
[group is SP500] AND [Daily SMA(20,Daily Volume) > 500000]
and [Slow Stoch %K(10,4) x 20.0]
and [Slow Stoch %D(10,4) x 20.0]

any help would be appreciated - it's probably something very simple!
J Miller

Answers

  • try just using the K or the D line. Having BOTH cross, same day, is highly unlikely. You can put a // in front of any line that you want to exclude or skip, instead of deleting the line. You may want to use the other line instead. Then you would take the // off the front of the line you want and add the // to the front of the line you don't.
  • markd
    markd mod
    edited January 2019
    Try this for selecting symbols. Also, as @lmkwin suggests, looking for just one crossover will get you more results. If you DO want both, change the "or" between K and D to "and".


    [
    [[country is US] and [type is stock] and [volume > 500000]]

    or

    [group is etf]

    or

    [favorites list is mylistnumber]
    ]
    and

    [

    [Slow Stoch %K(10,4) x 20.0]

    or

    [Slow Stoch %D(10,4) x 20.0]

    ]