以下是通达信kmj密码源码和截图
通达信kmj主力密码源码:
VA6:=(2*CLOSE+HIGH+LOW)/4;VA8:=LLV(LOW,34);VARB:=HHV(HIGH,34);VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);生命线:=EMA(VARD,1);VAR1:=(HIGH+LOW+CLOSE*2)/4;VAR2:=EMA(VAR1,21);VAR3:=stD(VAR1,21);VAR4:=((VAR1-VAR2)/VAR3*100+200)/4;VAR5:=(EMA(VAR4,89)-25)*1.56;VAR6:=EMA(VAR5,5)*1.22;VAR7:=EMA(VAR6,3);VAR8:=3*VAR6-2*VAR7;VAR1A:=IF(CROSS(VAR6,VAR8)ANDCROSS(VAR7,VAR8)ANDCROSS(VAR7,VAR6),1,0);VAR1B:=EMA(CLOSE,3)-EMA(CLOSE,89);VAR1C:=EMA(VAR1B,21);VAR1D:=(VAR1B-VAR1C)*10;VAR1F:=POW(VAR1D,3)*0.1+POW(VAR1D,2);拉升:=IF(VAR1D 0.015,VAR1F,0)/45;VAR9:=EMA(CLOSE,2)-EMA(CLOSE,55);VAR10:=EMA(VAR9,13);VAR11:=2*(VAR9-VAR10);主力资金:=POW(VAR11,3)*0.1+POW(VAR11,1);:CROSS(主力资金,0)ANDCROSS(拉升资金,0.01)ANDVOL/MA(REF(VOL,1),5) 2ANDIF(CROSS(VARC,生命线)ANDVARC VARDANDVARC 55ANDC O,50,0);
HJ_1:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
HJ_2:=MOD(FROMOPEN,HJ_1);
HJ_3:=IF(HJ_2 0.5,HJ_1,HJ_2);
VVOL:IF(CURRBARSCOUNT=1,VOL*HJ_1/HJ_3,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1AND(SETCODE=0ORSETCODE=1),VVOL,0,(-1),(-1)),COLOR00C0C0;
主力密码:VOL,VOLSTICK;
HJ_4:=IF(CLOSE REF(CLOSE,1),VOL,-VOL);
HJ_5:=SUM(IF(CLOSE=REF(CLOSE,1),0,HJ_4),0);
HJ_6:=EMA(HJ_5,3)-MA(HJ_5,9);
HJ_7:=EMA(IF(HJ_6 0,HJ_6,0),3);
HJ_8:=MA(CLOSE,3);
STICKLINE(HJ_7 REF(HJ_7,1)ANDHJ_8 REF(HJ_8,1),0,HJ_7,0.3,1),COLORYELLOW;
HJ_9:=REF(CLOSE,1);
HJ_10:=SUM(VOL,2)/((HHV(HIGH,2)-LLV(LOW,2))*100);
HJ_11:=(CLOSE-HJ_9)*HJ_10;
HJ_12:=SUM(HJ_11,0);
HJ_13:=FORCAST(HJ_12,18);
HJ_14:=FORCAST(HJ_12,36);
资金强弱:HJ_13-HJ_14;
资金:MA(资金强弱,10),COLORWHITE;
额:AMOUNT/10000000,NODRAW;
VAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
流入亿:IF(CLOSE OPEN,VAR1*(HIGH-LOW),IF(CLOSE OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED,NODRAW;
流出亿:IF(CLOSE OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-VAR1*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00,NODRAW;
差:(流入亿+流出亿),NODRAW;
强:=EMA((CLOSE-REF(CLOSE,1))/CLOSE*10,2);
主力:=EMA(差,1),COLORFF00FF,LINETHICK5;
差A:3*EMA(EMA(EMA(EMA(强,2),2),2),2),NODRAW;
净流:3*EMA(EMA(EMA(EMA(差A,1),2),2),2),COLORRED,NODRAW;
STICKLINE(净流 0,0,净流,4,0),COLORFF6600;
STICKLINE(净流 0,0,净流,3,0),COLORFF9900;
STICKLINE(净流 0,0,净流,1.5,0),COLORFFCC00;
STICKLINE(净流 0,0,净流,0.5,0),COLORCYAN;
STICKLINE(净流 0,0,净流,4,0),COLOR000099;
STICKLINE(净流 0,0,净流,3,0),COLOR0000CC;
STICKLINE(净流 0,0,净流,1.5,0),COLOR0000FF;
STICKLINE(净流 0,0,净流,0.5,0),COLORCC66FF;
STICKLINE(净流 REF(净流,1)AND净流 0,0,净流,4,0),COLOR009999;
STICKLINE(净流 REF(净流,1)AND净流 0,0,净流,3,0),COLOR00BBBB;
STICKLINE(净流 REF(净流,1)AND净流 0,0,净流,2,0),COLOR00DDDD;
STICKLINE(净流 REF(净流,1)AND净流 0,0,净流,1,0),COLOR00FFFF;
STICKLINE(净流 REF(净流,1)AND净流 0,0,净流,4,0),COLOR000099;
STICKLINE(净流 REF(净流,1)AND净流 0,0,净流,3,0),COLOR0000BB;
STICKLINE(净流 REF(净流,1)AND净流 0,0,净流,1.5,0),COLOR0000DD;
STICKLINE(净流 REF(净流,1)AND净流 0,0,净流,0.5,0),COLOR0000FF;
DRAWTEXT(CROSS(0,净流),0+0,'空'),COLORGREEN;
DRAWTEXT(CROSS(REF(净流,1),净流),净流-0,'注意'),COLORFFFF00;
DRAWTEXT(CROSS(净流,0),0,'关注资金介入'),COLOR00FFFF;
通达信kmj主力密码截图