M:=3;
VAR1N:=1990131;
U1:=IF((DATE <= VAR1N),1,0);
TR1:=SUM(MAX(MAX((HIGH - LOW),Abs((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=(SUM(IF(((HD > 0) AND (HD > LD)),HD,0),5) * U1);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),5);
神偷线1:=(((DMP * U1) * 100) / TR1);
神偷线:=神偷线1,COLOR00FFFF;
辅助线:=((DMM * 100) / TR1);
动向趋势线:=(MA(((ABS((辅助线 - 神偷线1)) / (辅助线 + 神偷线1)) * 100),M) * U1);
预警:(IF(((动向趋势线 > 88) AND (神偷线1 < 5.8)),20,0) * U1),LINETHICK1,COLORFF00FF;