公式源码:
{}
{}
ZX:=DYNAINFO(3);
价位轴:ZX,COLORLICYAN;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
攻击:=2*(DIFF-DEA)*2,COLORSTICK;
STICKLINE(攻击 REF(攻击,1)ANDDIFF 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;
现价: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(现价*V,240)/SUM(V,240),COLORYELLOW;
分时压力:MA(REF(HHV(C,30),1),2),COLORMAGENTA;
分时支撑:MA(REF(LLV(C,30),1),2),COLORBLUE;
DRAWICON(W4ANDCOUNT(W4,5)=1,分时压力,9);