A request was made on the french proscreener forum to create two screeners based on the Guppy indicator and its 12 ema’s, one detecting the 6 fast and 6 slow ema’s getting closer, the other detecting their cross.
https://www.prorealcode.com/topic/creation-dun-screener-gmma/
Based on Nicolas proposals, using biggest of fast ema and biggest of slow ema for getting closer:
//PRC Resserrement de MA en pourcentage sur x périodes
//25.03.2021
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
period = 5
percentage = 0.25
a = exponentialaverage[15](close)
c = exponentialaverage[60](close)
upper = max(a,c)
lower = min(a,c)
d = ((upper - lower) / close) *100
e = summation[period](d <= percentage)=period
SCREENER[e]
and for the cross:
//PRC screener Guppy cross fast ema and slow ema
//24.03.2021
//Noobywan @ www.prorealcode.com
//Sharing ProRealTime knowledge
c6 = ExponentialAverage[15](close)
c12 = ExponentialAverage[60](close)
croisement = (c6 crosses over c12) or (c6 crosses under c12)
screener[croisement]