VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5),COLORWHITE,LINETHICK2;
AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13),COLORGREEN,,LINETHICK2;
VAR3:=MA(AK1,5)COLORYELLOW;
XG:=EXIST(AK1<AK,3) AND crOSS(AK1,VAR3);
红箭头:XG;