MA1:MA(CLOSE,10)COLORWHITE,LINETHICK1;MA2:MA(CLOSE,20)COLORYELLOW,LINETHICK1;MA3:MA(CLOSE,55),LINETHICK1;MA4:MA(CLOSE,251)COLORGREEN,LINETHICK1;MA5:MA(CLOSE,500)COLORRED,LINETHICK1;HIGHN:=10;AA:=REF(C,HIGHN)=HHV(C,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND C=HHV(C,HIGHN+1);DDD:=BARSLAST(CC);GD:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(C,DDD),C);DINGBU1:=REF(DINGBU,DDD+1);DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+10);LOWN:=10;AA1:=RE