A5:=EMA((L+H+C*2)/4,5);
A13:=EMA((L+H+C*2)/4,13);
A21:=EMA((L+H+C*2)/4,21);
A55:=EMA((L+H+C*2)/4,55);
TJ1:=A5<A13 AND A5<=REF(A5,1) AND A13<REF(A13,1);
TJ2:=A13>A55 AND A21>=REF(A55,1) AND A55>REF(A55,1);
XG:REF(TJ1 AND NOT(TJ2),1) AND TJ2 AND NOT(TJ1);