REM In 4 hr timeframe, check that the price has closed above the 60 period simple moving average
TIMEFRAME(4 hours)
indicator4h = Average[60](close)
c1 = close > indicator4h
REM In 1 hr timeframe, check that the price has closed above the 60 period simple moving average
TIMEFRAME(1 hour)
indicator1h = Average[60](close)
c2 = close > indicator1h
REM In 5 min timeframe, check that the price has closed above the 60 period simple moving average
TIMEFRAME(5 minutes)
indicator5m = Average[60](close)
c3 = close > indicator5m
Highest20 = Highest[20](high)
REM check if the close is above the highest of last 20 candles
c4 = close => Highest20
myStoc = Stochastic[12,3]
REM The following code is related to this timescale:DEFAULT
TIMEFRAME(DEFAULT)
SCREENER[c1 AND c2 AND c3 AND c4] SORT BY myStoc