通达信异动K线主图原码
{M1:1.00,100.00,3.00}
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(均价线,M1);
均价线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
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;