// The following code is related to this timescale:10 minutes
TIMEFRAME(2 minutes)
c1 = (close > close[1])
MySMA2m = Average[8](close)
c2 = (close > MySMA2m)
c22 = (close crosses over MySMA2m )
TIMEFRAME(10 minutes)
c3 = (close > close[1])
MySMA10mn = Average[8](close)
c4 = (close > MySMA10mn)
// The following code is related to this timescale:1 hour
TIMEFRAME(1 hour)
c5 = (close > close[1])
MySMA1hr = Average[8](close)
c6 = (close > MySMA1hr)
//DownTrend
TIMEFRAME(2 minutes)
c7 = (close < close[1])
MySMA2m = Average[8](close)
c8 = (close < MySMA2m)
c88 = (close crosses under MySMA2m)
TIMEFRAME(10 minutes)
c9 = (close < close[1])
MySMA10mn = Average[8](close)
c10 = (close < MySMA10mn)
// The following code is related to this timescale:1 hour
TIMEFRAME(1 hour)
c11 = (close < close[1])
MySMA1hr = Average[8](close)
c12 = (close < MySMA1hr)
// The following code is related to this timescale:DEFAULT
TIMEFRAME(DEFAULT)
SCREENER[(c1 AND c2 AND c22 AND c3 AND c4 AND c5 AND c6) OR (c7 and c8 and c88 AND c9 and c10 and c11 and c12)] (Variation AS “%Chg prev bar”)