X_1:=ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*180/3.141159;
X_2:=MA(X_1,5);
X_3:=PLOYLINE(crOSS(X_1,X_2),X_2);
X_4:=PLOYLINE(CROSS(X_2,X_1),X_1);
XG:COUNT(CROSS(X_1,X_2),X_3REF(X_4,5)),COLORYELLOW;
X_1:=ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*180/3.141159;
X_2:=MA(X_1,5);
X_3:=PLOYLINE(crOSS(X_1,X_2),X_2);
X_4:=PLOYLINE(CROSS(X_2,X_1),X_1);
XG:COUNT(CROSS(X_1,X_2),X_3REF(X_4,5)),COLORYELLOW;