ZX:=DYNAINFO(3);
價位軸:ZX,COLORLICYAN;
DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:= EMA(DIFF,9);
攻擊:=2*(DIFF-DEA)*2, COLORSTICK;
STICKLINE(攻擊>REF(攻擊,1) AND DIFF>DEA,攻擊+ZX,ZX,1,0),COLORRED;
STICKLINE(攻擊<REF(攻擊,1) AND 攻擊>0,攻擊+ZX,ZX,1,0),COLORGREEN;
STICKLINE(攻擊<REF(攻擊,1) AND 攻擊<0,攻擊+ZX,ZX,1,0),COLORGREEN;
STICKLINE(攻擊>REF(攻擊,1) AND 攻擊<0,攻擊+ZX,ZX,1,0),COLORYELLOW;
分時頂:HHV(H,480),COLORRED,LINETHICK2;
現(xiàn)價:C,COLORWHITE,LINETHICK2;
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
{均線5:MA(C,5)LINETHICK1,COLORCYAN;}
均價線:SUM(現(xiàn)價*V,240)/SUM(V,240),COLORYELLOW;
分時壓力:MA(REF(HHV(C,30),1),2),COLORMAGENTA;
分時支撐:MA(REF(LLV(C,30),1),2),COLORBLUE;
DRAWICON(W4 AND COUNT(W4,5)=1,分時壓力,9);
STICKLINE(FILTER(CROSS(C,REF(分時頂,1)),10) AND C>REF(分時頂,1),C*0.99,C,4,0),COLORMAGENTA;