通达信指标公式源码异动K线指标公式
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,5);
VAR3:=HHV(HIGH,5);
VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,6);
MA1:=MA(VAR4,2);
AA:=STICKLINE(VAR4>MA1,VAR4,MA1,3,1),COLORRED;
均价线:=AMOUNT/V/100;
均价线2:MA(均价线,3);
均价线5:MA(均价线,5);
均价线10:MA(均价线,10);
均价线30:MA(均价线,30);
突破:=C>均价线2 AND 均价线2<REF(均价线2,1) AND REF(均价线2,1)<REF(均价线2,2) AND REF(均价线2,2)<REF(均价线2,3) AND VAR4>MA1;
STICKLINE(突破,H,L,5,0),LINETHICK1,COLORRED;
STICKLINE(突破,H,L,0.2,0),COLORYELLOW;
STICKLINE(突破,O,C,2,0),LINETHICK1,COLORYELLOW;
STICKLINE(突破,L*0.99,L*0.92,0.02,0),LINETHICK1,COLORYELLOW;
DRAWTEXT(突破,L*0.9,'异动');
STICKLINE(均价线 AND (C-O)/O*100>3,均价线,均价线,3,1),COLORGREEN;
{STICKLINE(J<=REF(J,1),J,W,0,0),COLORLIGREEN;
JJ:IF(J>REF(J,1) AND C>O,J+DYNAINFO(17)+DYNAINFO(14),J),COLORWHITE;
DRAWBAND(JJ,RGB(255,255,0),J,20);
DRAWICON(CROSS(JJ,W),J,26);
DRAWICON(CROSS(JJ,CONST(REF(HHV(J,3),2))),J,26);
DRAWICON(CROSS(JJ,10) AND DYNAINFO(17)>2,J,26);
DRAWICON(CROSS(JJ,20) AND DYNAINFO(17)>2,J,26);
DRAWICON(CROSS(JJ,30) AND DYNAINFO(17)>2,J,26);
DRAWICON(CROSS(JJ,40) AND DYNAINFO(17)>2,J,26);
DRAWICON(CROSS(JJ,50) AND DYNAINFO(17)>2,J,26);
DRAWICON(CROSS(JJ,60) AND DYNAINFO(17)>2,J,26);
DRAWICON(CROSS(JJ,70) AND DYNAINFO(17)>2,J,26);
DRAWICON(CROSS(JJ,80) AND DYNAINFO(17)>2,J,26);
DRAWICON(CROSS(JJ,90) AND DYNAINFO(17)>2,J,26);};
风险提示:本指标公式仅作为知识分享,不构成任何投资建议,不作投资依据。
=====================