以下是长线指标(ZDH2副图 源码)
VAR1:=REF(CLOSE,1);
VAR2:=(SUM(VOL,2))/((HHV(HIGH,2)-LLV(LOW,2))*(100));
VAR3:=(CLOSE-VAR1)*(VAR2);
VAR4:=SUM(VAR3,0);
VAR5:=SMA(VAR4,15,1);
VAR6:=SMA(VAR4,20,1);
HMZJ:VAR5-VAR6,CulorStick,CoLor00FFFF;
长线:MA(VAR5-VAR6,15),CoLor008000;
短线:VAR5-VAR6,CoLor00FFFF;
长线向上:长线>ref(长线,1),PRECIS0,COLOR0000FF,linethick0;
短线向上:短线>ref(短线,1),PRECIS0,COLOR33CCFF,linethick0;
连续飘红:LAST(长线>0),PRECIS0,COLOR0000FF,linethick0;
十日飘红:COUNT(长线>0,10),PRECIS0,COLOR33CCFF,linethick0;