buy stocks that oversold (ie traded outside Ketler lower channel (21,3,0,21) any day over the past

dryan33
dryan33 ✭
edited November 2020 in Scanning
Hi team
following on from previous - i am also having a problem with the below:

In brief - I am looking to buy stocks that oversold (ie traded outside Ketler lower channel (21,3,0,21) any day over the past 4 days. My buy trigger is when the Full Stoch emerges from <20 to >20

For example - when i ran the below scan - the security " SOLG.L" came up in the result.

The below scan generates results whereby the Keltnr rule is not observed.

Welcome any help or guidance.



[[Group is ETFNOUI] // include ETF's BUT EXCLUDE Ultras and inverse ETF's
OR
[favorites list is 17] // $ - Investment Universe in "Following the Trend" Nov20
or [favorites list is 42] // 0.101 AA - Complete Asset Class Analysis - All Asset Classes
OR [favorites list is 41] // 0.105 - Week Disc - KEY NB NB - Securities to monitor weekly
or [favorites list is 38] // 0.201 Cristina / Dylan / Brorley stocks
or [favorites list is 39] // 0.203 - Weekly -Cristina /DCR - Stocks to MONITOR weekly with a view to BUY
or [favorites list is 5] // 003.8 PHOENIX PHOENIX P/F - July16
or [favorites list is 24] // A - S&P Sectors Nov20
or [favorites list is 2] // Greenlight Capital+Pershing Square + TCI
or [favorites list is 14] // Puru Saxena Tech Stocks Oct20
or [favorites list is 25] // TCI Long Portfolio - 31 Dec 2019
or [favorites list is 46]] // AH-ETF 0100 ETF Master Daily rename

AND [[today's full stoch %k(14,3) > 20]

AND [Yesterday's full stoch %k(14,3) < 20]
Or [2 days ago full stoch %k(14,3) < 20]
or [3 days ago full stoch %k(14,3) < 20]]

AND
[[today's Daily Close < Daily Upper Kelt Chan(21,3.0,21) ]
OR [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) ] ]



AND
[[today's full stoch %k(14,3) > 20]
AND[today's full stoch %k(14,3) < 25]]



// end universe section

Comments


  • You could re-write yourStoch K conditions as

    and [Full Stoch %K(14,3,3) < 25]
    and [Full Stoch %K(14,3,3) x 20]
    and [1 day ago max(3, Full Stoch %K(14,3,3)) < 20]

    that says, today, K is less than 25 and today K crossed above 20, and for the prior 3 days it was below 20.

    For the Kelt conditions, you need to modify the each instance of Kelt to match the daily close offset

    e.g.

    or [2 days ago close < 2 days ago Upper Kelt Chan(21,3.0,21)]