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.

ETF's where todays Full Stoch closes below 80, and close > Keltner

I am looking for ETF,s and indices where
the Daily Full stoch closes below 80
and
yesterday close was above 80
or
2 days ago clos was above 80
or
3 days ago was above 80

and
[yesterday's Daily Close > Daily Upper Kelt Chan(21,3.0,21) ]
or [2 days ago Daily Close > Daily Upper Kelt Chan(21,3.0,21) ]
OR [3 days ago Daily Close > Daily Upper Kelt Chan(21,3.0,21) ]
OR [4 days ago Daily Close > Daily Upper Kelt Chan(21,3.0,21) ]

i have written the following scan but it doesnt appear to work !
welcome help!

thank you
=========


// ASIDE TO ENSURE SPEED OF SCAN PROCESSING, SET UP SCAN IN THE FOLLOWING ORDER

// Fantastic SCAN inst link stockcharts.com/docs/doku.php?id=scans:advanced_scan_syntax



// TYPE DCR insert here if relevant AND [type is stock]}

// GROUP



[type is index]
OR

[Group is ETFNOUI] // include ETF's BUT EXCLUDE Ultras and inverse ETF's

OR

[Exchange is CME]
OR
[[exchange is LSE] and [market cap > 100000]]



AND


[group is not Sp600] // this is probably irrelevant as I have stated above Mkt cap > 2000


AND [group is not Sp400]
AND [country is not canada]
AND [group is NOT TSE300]


and [exchange is NOT NSE]
and [exchange is NOT OTCMKT]
and [exchange is not TSE]


// COUNTRY

and [country is not Canada] // this is probably irrelevant as I have stated above "exchange is not TSE"



// STARTS/ENDS/CONTAINS


// AND [Daily SMA(20,Daily Volume) > 40000] this is excluded as it would mean that indices would be ignored


AND
[2 days ago Daily Close > Daily Upper Kelt Chan(21,3.0,21) ]
OR [3 days ago Daily Close > Daily Upper Kelt Chan(21,3.0,21) ]
OR [4 days ago Daily Close > Daily Upper Kelt Chan(21,3.0,21) ]



AND [today's full stoch %k(14,3) < 80] AND [Yesterday's full stoch %k(14,3) > 81] AND [2 days ago full stoch %k(14,3) > 82] AND [3 days ago full stoch %k(14,3) > 83]






// This identifies a Slo Sto that has had a positive crossover the "80" Line BUT is less than "75" in order to reduce the number of results

OR[today's full stoch %k(14,3) < 80]
AND[today's full stoch %k(14,3) > 75]



// end universe section

Comments

  • You are getting superfluous results because your brackets are wrong. You need to simplify the scan to see where the brackets should go.

    So re-write the scan asking only for what you want - which looks to be indexes and some etfs trading only on certain exchanges ( is that right?)

    If you specify the exchanges you want, you don't have to exclude the others.

    If you are looking only for indexes and etfs, you don't have to exclude other groups, like sp400, 600 etc. Those groups do not contain indexes or etfs - only stocks.

    It looks like you should bracket your scan like this

    [ type is index ]

    OR

    [ // begin etf bracket

    [ group is etfnoui ]

    and

    [ // begin exchange bracket

    [ exchange is this]

    or

    [exchange is that ]

    ] // end exchange bracket

    ] // end etf bracket

    and

    [ // begin conditions bracket

    [ // begin first group bracket
    [ condition 1]
    and [ condition 2]
    and [ cond...etc. ]

    ] // end first group bracket

    or

    [ //begin second group bracket

    [ condition 1 ]
    and [condition 2]

    ] // end second group bracket

    ] // end conditions bracket
Sign In or Register to comment.