以下是大智慧主力成交量指标公式源码和使用说明

大智慧主力量成交量指标公式源码:

   {价量线主线快线}

   价量:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)

   -2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)

   ,COLOR00CCFF,NODRAW;

   主线:(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25)

   ,COLORCYAN,NODRAW;

   快线:(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25)

   ,COLOR55AAFF,NODRAW;

   RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;

   K1:=SMA(RSV,3,1);

   D1:=SMA(K1,3,1);

   KK:=INTPART(K1);

   DD:=INTPART(D1);

   TFXXS:=KK+DD;{变异KD风险系数}

   TGLXS:=(TFXXS-REF(TFXXS,1));{变异KD乖离系数:资金流向}

   {红}

   STICKLINE(TGLXS>0ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR0000AA;

   STICKLINE(TGLXS>0ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR0022CC;

   STICKLINE(TGLXS>0ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR0055FF;

   {粉}

   STICKLINE(TGLXS<0ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORAA00BB;

   STICKLINE(TGLXS<0ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORCC22BB;

   STICKLINE(TGLXS<0ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFF55BB;

   {黄}

   STICKLINE(TGLXS>0ANDTGLXS<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR00AAFF;

   STICKLINE(TGLXS>0ANDTGLXS<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR00CCFF;

   STICKLINE(TGLXS>0ANDTGLXS<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR00FFFF;

   {蓝}

   STICKLINE(TGLXS<0ANDTGLXS<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORFF7700;

   STICKLINE(TGLXS<0ANDTGLXS<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORFFAA22;

   STICKLINE(TGLXS<0ANDTGLXS<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFFFF55;

   STICKLINE(TGLXS=0ANDREF(TGLXS,1)>=0,100,TGLXS+100,8,0),COLORBROWN;

   STICKLINE(TGLXS=0ANDREF(TGLXS,1)<0,100,TGLXS+100,8,0),COLORWHITE;

   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;{主力控盘筹码系数}

   ZSHJJ:=EMA(ZSHTL,55);{散户警戒}

   ZZLJJ:=EMA(ZZLKP,55);{主力警戒}

   散兵坑:IF(ZZLKP<=10,ZZLKP,ZZLKP),COLORMAGENTA,NODRAW;

   {散户套牢筹码}

   STICKLINE(C>0,ZSHTL,ZZLKP,2,0),COLOR808080;

   {散户筹码警戒}

   STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLORC0C0C0;

   {主力控盘筹码}

   {粉}

   STICKLINE(ZZLKP>REF(ZZLKP,1)ANDZZLKP>20,ZZLKP,20,2.5,0),COLORAA00BB;

   STICKLINE(ZZLKP>REF(ZZLKP,1)ANDZZLKP>20,ZZLKP,20,1.5,0),COLORCC22BB;

   STICKLINE(ZZLKP>REF(ZZLKP,1)ANDZZLKP>20,ZZLKP,20,0.5,0),COLOREE44BB;

   {蓝}

   STICKLINE(ZZLKP<=REF(ZZLKP,1)ANDZZLKP>20,ZZLKP,20,2.5,0),COLORFF7700;

   STICKLINE(ZZLKP<=REF(ZZLKP,1)ANDZZLKP>20,ZZLKP,20,1.5,0),COLORFFAA22;

   STICKLINE(ZZLKP<=REF(ZZLKP,1)ANDZZLKP>20,ZZLKP,20,0.5,0),COLORFFFF55;

   {亮红}

   STICKLINE(ZZLKP>REF(ZZLKP,1)ANDZZLKP<20,ZZLKP,0,2.5,0),COLOR131FFD;

   STICKLINE(ZZLKP>REF(ZZLKP,1)ANDZZLKP<20,ZZLKP,0,1.5,0),COLOR5050FF;

   STICKLINE(ZZLKP>REF(ZZLKP,1)ANDZZLKP<20,ZZLKP,0,0.5,0),COLOR7E7EFF;

   {深蓝}

   STICKLINE(ZZLKP<=REF(ZZLKP,1)ANDZZLKP<20,ZZLKP,0,2.5,0),COLORAA0000;

   STICKLINE(ZZLKP<=REF(ZZLKP,1)ANDZZLKP<20,ZZLKP,0,1.5,0),COLORCC0000;

   STICKLINE(ZZLKP<=REF(ZZLKP,1)ANDZZLKP<20,ZZLKP,0,0.5,0),COLORFF0000;

   {主力筹码警戒}

   {黄}

   STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2.5,0),COLOR00AAFF;

   STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,1.5,0),COLOR00CCFF;

   STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,0.5,0),COLOR00FFFF;

   {红}

   STICKLINE(ZZLKP>ZZLJJANDZZLJJ>50,ZZLKP,ZZLJJ,2.5,0),COLOR0000AA;

   STICKLINE(ZZLKP>ZZLJJANDZZLJJ>50,ZZLKP,ZZLJJ,1.5,0),COLOR0022CC;

   STICKLINE(ZZLKP>ZZLJJANDZZLJJ>50,ZZLKP,ZZLJJ,0.5,0),COLOR0055FF;

   {红}

   STICKLINE(ZZLKP>ZZLJJANDZZLJJ<50ANDZZLKP>50

   ANDZZLJJ>REF(ZZLJJ,1),ZZLKP,50,2.5,0),COLOR0000AA;

   STICKLINE(ZZLKP>ZZLJJANDZZLJJ<50ANDZZLKP>50

   ANDZZLJJ>REF(ZZLJJ,1),ZZLKP,50,1.5,0),COLOR0022CC;

   STICKLINE(ZZLKP>ZZLJJANDZZLJJ<50ANDZZLKP>50

   ANDZZLJJ>REF(ZZLJJ,1),ZZLKP,50,0.5,0),COLOR0055FF;

   {铸顶风险区}

   {绿}

   STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,2.5,0),COLOR00AA00;

   STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,1.5,0),COLOR00CC00;

   STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,0.5,0),COLOR00FF00;

   {散兵坑}

   STICKLINE(ZZLKP<=10,ZZLKP,0,5,0),COLORDD00DD;

   100,COLORGREEN;

   80,COLORGREEN;

   {0,COLORGREEN;}

   {主线快线}

   价量,COLOR0CC0FF,LINETHICK2;

   主线,COLOR00FFAA,LINETHICK2;

   快线,LINESTICK,COLORFF68DD;

   vol;

   换手率:VOL/CAPITAL*100,LINETHICK0;

   Var1:=HIGH-LOW;

   Var2:=ABS(OPEN-CLOSE);

   Var3:=HIGH-IF(CLOSE>OPEN,CLOSE,OPEN);

   Var4:=IF(CLOSE>OPEN,OPEN,CLOSE)-LOW;

   Var5:=Var2/Var1*VOL;

   Var6:=Var3/Var1*VOL;

   Var7:=Var4/Var1*VOL;

   Var8:=IF(VOL/CAPITAL>0.001,1,EXP(ABS(LOG(VOL/CAPITAL*100))));

   MA5:=MA(VOL,5){,COLORyellow};

   MA10:=MA(VOL,10){,COLORff00ff};

   MA3:MA(VOL,3),COLORyellow;

   MA24:MA(VOL,24),COLORff00ff;

   多头成交口:STICKLINE(CLOSE>MA(CLOSE,30),0,VOL,8,1),COLORRED;

   空头成交口:STICKLINE(CLOSE<MA(CLOSE,30),0,VOL,8,1),COLORGREEN;

   向上攻击量:STICKLINE(Var5>=Var6ANDVar5>=Var7ANDCLOSE>OPEN,0,Var5,8,0),COLORRED;

   向下攻击量:STICKLINE(Var5>=Var6ANDVar5>=Var7ANDCLOSE<OPEN,0,Var5,8,0),COLORGREEN;

   放量:STICKLINE(VOL>MA(VOL,5)*3,0,VOL,2.5,0),COLORWHITE;

   逢高出货:DRAWTEXT(Var6>Var5ANDVar6>Var7ANDCLOSE>MA(CLOSE,5)

   ANDCLOSE>MA(CLOSE,30)ANDHIGH>MA(CLOSE,60)ANDVOL>MA5

   ANDVar6>MA(VOL,5),VOL,’逢高出货’),COLORRED;

   上探量:STICKLINE(Var6>Var5ANDVar6>Var7,0,Var6,8,0),COLORCCCC66;

   下探量:STICKLINE(Var7>Var5ANDVar7>Var6,0,Var7,8,0),COLORFF6633;

   相对地量:STICKLINE(Var8>2ANDVOL<MA(VOL,5)/2,0,VOL,2.5,0),COLORMAGENTA;

   流通盘:=CAPITAL/100;

   业绩:=FINANCE2(33);

   净资产:=FINANCE2(34);

   DRAWTEXTABS(0,0,’流通盘:’+流通盘),coloryellow;

   DRAWTEXTABS(80,0,’业绩(元/股):’+业绩),coloryellow;

   DRAWTEXTABS(180,0,’净资产(元/股):’+净资产),coloryellow;

   {DRAWTEXTABS(300,0,’机构评级:’+selfstring(‘评级’)),coloryellow;};

   IF(WINNER(CLOSE),WINNER(CLOSE)*100,20),volstICK;

   TX80:80,POINTDOTCOLORYELLOW;

   DX20:20,POINTDOTCOLORGREEN;

   VAR1:=LLV(LOW,21);

   VAR2:=HHV(HIGH,21);

   K:Ema((CLOSE-VAR1)/(VAR2-VAR1)*100,6),COLORRED;

   D:EMA(0.667*REF(K,1)+0.333*K,2),COLORGREEN;

   VAR3:=LLV(LOW,55);

   VAR4:=HHV(HIGH,34);

   VAR5:=EMA((CLOSE-VAR3)/(VAR4-VAR3)*100,3);

   VAR6:=(K+VAR5)/2;

   VAR7:=EMA(0.667*REF(VAR5,1)+0.333*K,2);

   VAR8:=EMA(VAR6,5);

   VAR9:EMA(0.667*REF(VAR8,1)+0.333*VAR8,2);

   DRAWICON(LONGcrOSS(D,K,0.1),D,2),COLORRED;

   DRAWICON(LONGCROSS(K,D,0.1),K,1),COLORGREEN;

大智慧主力量成交量指标公式截图

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。