{ 通达信神偷线副图指标源码 }
M:=3;N:=3;N1:=2;QQ:=3;
VAR1N:=1990131;
U1:=IF((DATE <= VAR1N),1,0);
TRX:=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);
神偷线:(((DMP * U1) * 100) / TRX);
辅助线:=((DMM * 100) / TR);
动向趋势线:(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),M) * U1);
ADXR:=((动向趋势线 + REF(动向趋势线,M)) / 2);
VAR1:=MA(LOW,1);
VAR2:=MA(HIGH,2);
VAR3:=MA(CLOSE,2);
VAR7:=REF(VAR3,1);
【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 - VAR7)),5,1)) * 100);
预警:(IF(((动向趋势线 > 88) AND (神偷线 < 5.8)),80,0) * U1),LINETHICK3,COLORFF00FF;
标签:LD,U1,神偷,通达信,源码,LOW,REF,HD From: https://www.cnblogs.com/zhibiao/p/18063019