//criteria = 0
// SHORT
TIMEFRAME(15 minutes)
indicator1 = Stochastic[5,2](close)
c1 = (indicator1 >= 80)
TIMEFRAME(1 hour)
indicator2 = MACDline[12,26,9](close)
c2 = (indicator2 <= 0)
TIMEFRAME(4 hours)
indicator3 = ExponentialAverage[9](MACDline[12,26,9](close))
indicator4 = MACDline[12,26,9](close)
c3 = (indicator3 >= indicator4)
TIMEFRAME(default)
short= c1 AND c2 AND c3
//LONG
TIMEFRAME(15 minutes)
indicator1 = Stochastic[5,2](close)
c1a = (indicator1 <=20)
TIMEFRAME(1 hour)
indicator2a = MACDline[12,26,9](close)
c2a = (indicator2a > 0)
TIMEFRAME(4 hours)
indicator3a = ExponentialAverage[9](MACDline[12,26,9](close))
indicator4a = MACDline[12,26,9](close)
c3a = (indicator3a <= indicator4a)
TIMEFRAME(default)
long= c1a AND c2a AND c3a
if long then
criteria=1
elsif short then
criteria=-1
endif
scREENER[long or short](criteria as "long or short?")