Hi Everybody!
it’s my first stock screener. A simple screener that finds stock that MACD crosses over Zero line and make a break-out of last 10 High within next 6 candlesticks. Oder MACD crosses under Zero line and make a break-down of last 10 low within next 6 candlesticks.
i think may be useful to filter a lot of MACD signal and finds the strong signals.
The “Criteria” column suggest 1 = break-up and -1 break-down
It could be implemented with a Volume filter.
Any improvement is welcome!!
once direction =0
a = macd[12,26,9]
c1= a crosses over 0
c2 = a crosses under 0
m = summation[6](c1)>0
n = summation[6](c2)>0
b1 = close crosses over highest[10](high)[1]
b2 = close crosses under Lowest[10](low)[1]
if m and b1 then
direction=1
endif
if n and b2 then
direction=-1
endif
screener [(m and b1) or (n and b2)](direction as "trend direction")