資源描述:
《最牛通達(dá)信量化副圖指標(biāo)公式源碼.doc》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。
1、.最牛通達(dá)信量化副圖指標(biāo)公式源碼M1:=5;M2:=10;ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力籌碼估算}SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//小籌碼估算}ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//小股民套牢籌碼比率}ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盤籌碼比率}ZCMZL:=MA(ZLCM+SHCM,13);{//市場籌碼總量}ZZNTS:=BARS
2、LAST(ZSHTL90);{//走牛天數(shù)}ZSHJJ:=EMA(ZSHTL,89);{//小股民警戒}ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//資金流入強度}SH8:=EMA(ZSHTL,8);DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);{//------【數(shù)值顯示】}散戶套牢系數(shù):INTPART(ZSHTL),NODRAW;主力控盤系數(shù):INTPART(ZZLKP),CO
3、LOR4080FF,NODRAW;資金流入強度:ZJLRQD,NODRAW,COLOR00FFFF;{☆精確風(fēng)險}{【參數(shù)定義】}..RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;K1:=SMA(RSV,10,1);D1:=SMA(K1,5,1);KK:=INTPART(K1);DD0:=INTPART(D1);TFXXS:=KK+DD0;{//變異KD風(fēng)險系數(shù)}TGLD:=MOD(TFXXS,10);{//踏浪漲停概率點}TGLXS:=(TFX
4、XS-REF(TFXXS,1))*10;{//變異KD乖離系數(shù)}TYCFX:=TFXXS+TGLXS;{//變異KD預(yù)測風(fēng)險}乖離系數(shù):TGLXS,LINETHICK0,COLORGREEN,NODRAW;{【圖解模板】}{級別拐點}{乖離系數(shù)}STICKLINE(TGLXS>0,100,100+TGLXS,3,0),COLOR000088;STICKLINE(TGLXS>0,100,100+TGLXS,2.5,0),COLOR000099;STICKLINE(TGLXS>0,100,100+TGLXS,2,0
5、),COLOR0000AA;STICKLINE(TGLXS>0,100,100+TGLXS,1.5,0),COLOR0000BB;{STICKLINE(TGLXS>0,100,100+TGLXS,1.2,0),COLOR0000CC;}STICKLINE(TGLXS>0,100,100+TGLXS,1.0,0),COLOR0000DD;..{STICKLINE(TGLXS>0,100,100+TGLXS,0.8,0),COLOR0000EE;}STICKLINE(TGLXS>0,100,100+TGLXS,0.
6、5,0),COLOR0000FF;{//紅柱}STICKLINE(TGLXS<0,100,100+TGLXS,3,0),COLOR008800;{STICKLINE(TGLXS<0,100,100+TGLXS,2.8,0),COLOR009900;}STICKLINE(TGLXS<0,100,100+TGLXS,2.5,0),COLOR00AA00;STICKLINE(TGLXS<0,100,100+TGLXS,2,0),COLOR00BB00;{STICKLINE(TGLXS<0,100,100+TGLXS,
7、1.8,0),COLOR00CC00;}STICKLINE(TGLXS=0,100,100+TGLXS,8,0),COLORRED;STICKLINE(TGLXS=0ANDREF(TGLXS,1)REF(ZCMZL,1)ANDDKB=0);T3:=CONST(ZCMZL=REF(ZCMZL,1));T4:=CONST(ZCMZL50ANDTFXXS=REF(TFXXS,1)ANDTFXXS>100);T10:=CONST(TFXXS>50ANDTFXXS100);T11:=CONST(TFXXS>50ANDTF
8、XXSREF(ZCMZL,1));T15:=CONST(CROSS(ZCMZL,ZZLKP)ANDZZLKP>ZZLJJANDZZLKP10ANDZZLJJ>REF(ZZLJJ,1)ANDZCMZL>REF(ZCMZL,1));T16:=CONST(CROSS(ZCMZL,ZSHTL)ANDZSHTL>ZZLKPAND..ZCMZL>REF(ZCMZL,1));T17:=CONST(C