【股票指标公式下载】-【通达信】成交堆积(堆积图、主图)

合集下载

通达信主力筹码一目了然副图指标

通达信主力筹码一目了然副图指标

通达信主力筹码一目了然副图指标这是一个用来监控主力动向很优秀的指标,有100线上下的柱线显示资金进出情况,20线上灰白柱线提示散户筹码,彩色柱线提示主力筹码运行,从吸货拉升到出货(由蓝-黄-红-绿),散兵坑予示底部,20线下深蓝柱提示关注,亮红柱提示建仓。

三根线与柱线综合观察分析,就可以获得极隹的买卖点。

指标源码:{价量线主线快线}价量: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乖离系数:资金流向}{红}XXX(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR0000A A;STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR0022C C;STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR0055FF ;{粉}XXX(XXX<0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORAA00B B;STICKLINE(TGLXS<0 ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORCC22B B;STICKLINE(TGLXS<0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFF55B B;{黄}XXX(TGLXS>0 ANDXXX<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR00A AFF;XXX(TGLXS>0 ANDXXX<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR00C CFF;XXX(TGLXS>0XXX<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR00FFFF; {蓝}XXX(XXX<0XXX<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORFF7700; XXX<0XXX<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORFFAA22 ;STICKLINE(TGLXS<0XXX<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFFFF55; STICKLINE(TGLXS=0 ANDREF(TGLXS,1)>=0,100,TGLXS+100,8,0),COLORBROWN;STI CKLINE(TGLXS=0 AND REF(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,NODR AW;{散户套牢筹码}XXX(C>0,ZSHTL,ZZLKP,2,0),COLOR;{散户筹码警戒}XXX(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLORC0C0C0;{主力控盘筹码}{粉}STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,2.5,0 ),COLORAA00BB;STICKLINE(ZZ LKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,1.5,0 ),COLORCC22BB;STICKLINE(ZZ LKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,0.5,0 ),COLOREE44BB;{蓝}XXX(ZZLKP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,2.5,0 ),COLORFF7700;STICKLINE(ZZL KP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,1.5,0 ),COLORFFAA22;STICKLINE(ZZL KP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,0.5 ,0 ),COLORFFFF55;{亮红} STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,2.5,0 ),COLOR131FFD;STICKLINE(ZZLK P>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,1.5,0 ),COLOR5050FF;STICKLINE(ZZLK P>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,0.5,0 ),COLOR7E7EFF;{深蓝}XXX(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,2.5,0 ),COLORAA0000;STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,1.5,0 ),COLORCC0000;STICKLINE(ZZLK P<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,0.5 ,0 ),COLORFF0000;{主力筹马警卫} {黄}STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2.5,0 ),C OLOR00AAFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,1.5,0 ),C OLOR00CCFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,0.5,0 ),C OLOR00FFFF;{红}XXX(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,2.5,0 ),COLOR0000AA;STICKLINE(Z ZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,1.5,0 ),COLOR0022CC;STICKLINE(Z ZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,0.5 ,0 ),COLOR0055FF;{红} XXX(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50ANDZZLJJ>REF(ZZLJJ,1),ZZLKP,50,2.5,0 ),COLOR0000AA;XXX(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50 ANDZZLJJ>REF(ZZLJJ,1),ZZLKP,50,1.5,0 ),COLOR0022CC;XXX(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>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;{散兵坑}XXX(ZZLKP<=10,ZZLKP,0,5,0),COLORDD00DD;100,COLORGREEN;80,COLORGREEN;{0,COLORGREEN;}{主线快线}价量,COLOR0CC0FF,LINETHICK2;主线,COLOR00FFAA,LINETHICK2;快线,LINESTICK,COLORFF68DD;100线高低的柱线,表现资金收支情形。

通达信指标公式源码 成交量 副图源码

通达信指标公式源码 成交量 副图源码

DRAWGBK(C>0, RGB(0,0,00),RGB(0,0,0),0,'H3',0);M1:=5; M2:=10;TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60, IF(PERIOD=5,240,1)))));MTIME:=MOD(FROMOPEN,TOTAL);CTIME:=IF(MTIME<0.5,TOTAL,MTIME);虚拟量:IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL),NODRAW; 成交量:VOL,NODRAW;五日均量:MA(成交量,M1);十日均量:MA(成交量,M2);大单动向:(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),COLORRED,N ODRAW;LC:=REF(CLOSE,1);RSI5:=(SMA(MAX(CLOSE-LC,0),3,1))/(SMA(ABS(CLOSE-LC),3,1))*100;WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;活跃度:(RSI5-WR10),COLORFFFF00,LINETHICK1,NODRAW;{--------VOL.量能饱和--------}N1:=34;N2:=N1*1.05;N3:=N1+3;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和度:IF(SAT>1,1,SAT)*100,COLOR0099FF,NODRAW;中点:=REF(REFDATE(HHV(V,60)/2,DATE),5);{量能饱和的变色切换} {中点:=REFDATE(HHV(V,240)/2,DATE);}STICKLINE(CURRBARSCOUNT=1 && (SETCODE=0 || SETCODE=1),虚拟量,0,-1,-1),COLOR00C0C0;STICKLINE("MACD.MACD">0,0,V,2.8,1),COLORRED;STICKLINE("MACD.MACD"<=0,0,V,2.8,1),COLORCYAN;VAR2:=CLOSE-REF(CLOSE,1);VAR3:=IF(CLOSE-REF(CLOSE,1)>=0,VAR2,0);VAR4:=REF(CLOSE,1)-CLOSE;VAR5:=IF(CLOSE-REF(CLOSE,1)<=0,VAR4,0);VAR6:=SUM(VAR3,16)/SUM(VAR5,16);VAR7:=100-100/(1+VAR6);VAR8:=EMA(VAR7,16);VAR9:=EMA(VAR8,8);VARA:=EMA(VAR8,45);MO:=(VAR8-VARA);ML:=(VAR9-VARA);VAR1A:=EMA(CLOSE,32);VAR2A:=MA(OPEN,32);趋势:=(VAR1A-VAR2A);STICKLINE(MO>ML AND 趋势<0 AND MO>REF(MO,3) AND 趋势>REF(趋势,3),VOL,0,2.5,0) COLORYELLOW;C1:=10000*CLOSE/INDEXC;O1:=10000*OPEN/INDEXO;H1:=10000*HIGH/INDEXH;L1:=10000*LOW/INDEXL;STICKLINE((C>O AND C1>O1) OR ((C<O OR C>REF(C,1)) AND(C1>O1)),0,VOL/3*2,2.5,0),COLOR000099;STICKLINE((C>O AND C1>O1) OR ((C<O OR C>REF(C,1)) AND(C1>O1)),0,VOL/3*2,1.3,0),COLOR0000CC;STICKLINE((C>O AND C1>O1) OR ((C<O OR C>REF(C,1)) AND(C1>O1)),0,VOL/3*2,0.1,0),COLOR9966FF;STICKLINE((C<O AND C1<O1) OR ((C>O OR C<REF(C,1)) AND(C1<O1)),0,VOL/3*2,2.5,0),COLORFF6600;STICKLINE((C<O AND C1<O1) OR ((C>O OR C<REF(C,1)) AND(C1<O1)),0,VOL/3*2,1.3,0),COLORFF9933;STICKLINE((C<O AND C1<O1) OR ((C>O OR C<REF(C,1)) AND(C1<O1)),0,VOL/3*2,0.1,0),COLORFFCC66;STICKLINE(活跃度>0,0,VOL/3,2.5,0),COLOR990099;STICKLINE(活跃度>0,0,VOL/3,1.3,0),COLORCC00CC;STICKLINE(活跃度>0,0,VOL/3,0.1,0),COLORFF66FF;STICKLINE(活跃度<0,0,VOL/3,2.5,0),COLOR009900;STICKLINE(活跃度<0,0,VOL/3,1.3,0),COLOR00CC33;STICKLINE(活跃度<0,0,VOL/3,0.1,0),COLOR99FF66;大单动向限制:=IF(大单动向>1,1,IF(大单动向<-1,-1,大单动向));流入:=IF(大单动向限制>0,大单动向限制,DRAWNULL);流出:=IF(大单动向限制<=0,大单动向限制*-1,DRAWNULL);STICKLINE(大单动向限制>0,0,VOL*流入,1,0),COLOR66CCFF;STICKLINE(大单动向限制<0,0,VOL*流出,1,0),COLORFF0000;{--------VOL.量能饱和--------}STICKLINE(CURRBARSCOUNT=N1,中点*1.8,中点*1.6,100,1),COLOR00DDDD; STICKLINE(CURRBARSCOUNT=N1,中点*1.79,中点*1.61,量能饱和度,0),COLOR0055FF;STICKLINE(CURRBARSCOUNT=N1,中点*1.76,中点*1.64,量能饱和度,0),COLOR0077FF;STICKLINE(CURRBARSCOUNT=N1,中点*1.73,中点*1.67,量能饱和度,0),COLOR0099FF;STICKLINE(CURRBARSCOUNT=N1,中点*1.7,中点*1.7,量能饱和度,0),COLOR00DDFF;DRAWTEXT(CURRBARSCOUNT=N3,中点*1.7,'量能饱和度'),COLORYELLOW;。

通达信成交量指标!

通达信成交量指标!

通达信成交量指标![通达信] 不拿绝活,不能快速升级!发个通达信成交量指标!不拿绝活,不能快速升级!发个通达信成交量指标!用途很多,大家细细体会!不好截图图片就不上了!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),COLORRED;成交量:VOL,NODRAW;流通比: CAPITAL/TOTALCAPITAL*100,NODRAW;多头成交口: STICKLINE(CLOSE>MA(H,20),0,VOL,3,1),COLORRED;空头成交口: STICKLINE(CLOSE<MA(L,20),0,VOL,3,1),COLORGREEN;没有趋势口: STICKLINE(CLOSE<MA(H,20) AND CLOSE>MA(L,20),0,VOL,3,1),COLORCYAN;向上攻击量: STICKLINE(VAR5>=VAR6 AND VAR5>=VAR7 AND CLOSE>OPEN,0,VAR5,2.5,0),COLORRED;向下攻击量: STICKLINE(VAR5>=VAR6 AND VAR5>=VAR7 AND CLOSE<OPEN,0,VAR5,2.5,0),COLORGREEN;上探量: STICKLINE(VAR6>VAR5 AND VAR6>VAR7,0,VAR6,2,0),COLORLIGRAY;下探量: STICKLINE(VAR7>VAR5 AND VAR7>VAR6,0,VAR7,2,0),COLORLICYAN;相对地量: STICKLINE(VAR8>2 AND VOL<MA(VOL,20)/2,0,VOL,3,0),COLORBLUE;放量: STICKLINE(VOL>(MA(VOL,20)*3),0,VOL,3,0),COLORWHITE;逢高出货: DRAWTEXT(VAR6>VAR5 AND VAR6>VAR7 AND CLOSE>MA(CLOSE,5)AND CLOSE>MA(CLOSE,34) AND HIGH>MA(CLOSE,55) AND VOL>MA5AND VAR6>MA(VOL,5),VOL,'$'),COLORRED;倍量:STICKLINE(VOL>REF( VOL,1)*2,0,VOL,1.1,0),COLORYELLOW,LI NETHICK1;M5: MA(VOL,5),COLORRED;MA40: MA(VOL,40),COLORGREEN;MA135: MA(VOL,135),COLORBLUE;发个我平时看盘的几个公式,这个就是其中的成交量公式!其他300楼放出!用法:1 成交量高度表示成交量的大小,外框表示成交量趋势,红色向上,绿色向下,蓝色无趋势!2成交量颜色表示,导入时看看解释很清楚了!盘面变化一目了然!。

【股票指标公式下载】-【通达信】分时大单(成交、大额线、大线位)

【股票指标公式下载】-【通达信】分时大单(成交、大额线、大线位)

【通达信】分时大单(成交、大额线、大线位)-指标公式源码TJ:=FILTER(C,239)>0,NODRAW;TJJ:=SUM(TJ,0),NODRAW;LTA:=FINANCE(7)+300000000;C1:=CLOSE;V1:=TIME;A1:=COUNT(BARSCOUNT(C)=1 AND TIME<102000 ,0 );T:=IF(V1<130000,(FLOOR(V1/10000)-9.5)*60+(FLOOR(V1/100)-100*FLOOR(V1/ 10000)),(FLOOR(V1/10000)-11)*60+(FLOOR(V1/100)-100*FLOOR(V1/10000))),NODRAW; 成交:AMOUNT,NODRAW;总:SUM(AMOUNT,T),NODRAW;VV3:=总/T;SS:=IF(CAPITAL>150000000,0.3,IF(CAPITAL>20000000,0.5,IF(CAPITAL>10000 000,0.8,IF(CAPITAL<200000,5,IF(CAPITAL<1000000,3,IF(CAPITAL<5000000,1.5,1)))))),NODRAW;VV5:=(REF(VV3,T-1)/CEILING(REF(VV3,T-1)/CAPITAL*10000+0.1))*SS,NODRAW;大额线:=IF(REF(VV3,T)=REF(VV3,T-1),VV5,REF(VV3,T)),NODRAW;大线位:大额线*100,COLOR00FFFF;初正1:=IF(T=1 AND DYNAINFO(4)>=DYNAINFO(3),总,0);初负1:=IF(T=1 AND DYNAINFO(4)<DYNAINFO(3),总,0);初正:=CONST(SUM(IF(初正1>=大额线 AND T=1,初正1,0),T)),NODRAW;初负:=CONST(SUM(IF(初负1>=大额线 AND T=1,初负1,0),T)),NODRAW;初正2:=CONST(SUM(IF(初正1<大额线 AND T=1,初正1,0),T)),NODRAW;初负2:=CONST(SUM(IF(初负1<大额线 AND T=1,初负1,0),T)),NODRAW;T00:=IF(C1>REF(C1,1),0.9,-0.9);T01:=IF(C1<REF(C1,1),-0.9,0.9);T02:=T00+T01,NODRAW;TT1:=BARSLAST(CROSS(T02,+1.5)),NODRAW;TT2:=BARSLAST(CROSS(-1.5,T02)),NODRAW;TT:=IF(T02=1.8,1,IF(T02=-1.8,-1,0));正V1:=IF(TT=1 OR (TT=0 AND TT1<TT2),成交,0),NODRAW;负V1:=IF(TT=-1 OR (TT=0 AND TT1>TT2),成交,0),NODRAW;正负0:=IF(成交!= 0 AND (正V1=0 AND 负V1=0),成交,0);正V0:=IF(正负0!= 0 AND REF(正V1,1)!= 0 ,正负0,0);负V0:=IF(正负0!= 0 AND REF(负V1,1)!= 0 ,正负0,0);正V11:=正V1+正V0;负V11:=负V1+负V0;正总1:=初正1+SUM(正V11,T),NODRAW,COLOR0000FF;负总1:=初负1+SUM(负V11,T),NODRAW,COLOR00FF00;正V:=IF(正V11>=大额线,正V11,0);负V:=IF(负V11>=大额线,负V11,0);正V2:=IF(正V11<大额线,正V11,0);负V2:=IF(负V11<大额线,负V11,0);大正总:=IF(TJJ<2,初正,0)+SUM(正V,T),NODRAW,COLOR0000FF;大负总:=IF(TJJ<2,初负,0)+SUM(负V,T),NODRAW,COLOR00FF00;大净_亿OR万:(大正总-大负总)/10000,NODRAW;差%:(大正总-大负总)/(大正总+大负总)*100,COLOR00FF00,NODRAW;正总2:=IF(TJJ<2,初正2,0)+SUM(正V2,T),NODRAW,COLOR0000FF;负总2:=IF(TJJ<2,初负2,0)+SUM(负V2,T),NODRAW,COLOR00FF00;小净_亿OR万:(正总2-负总2)/10000,NODRAW;小差%:(正总2-负总2)/(正总2+负总2)*100,COLOR00FF00,NODRAW; STICKLINE(TT=1 OR 正V0!= 0,0,AMOUNT*100,3,1),COLOR0000FF; STICKLINE(TT=-1 OR 负V0!= 0,0,AMOUNT*100,3,0),COLOR00FF00; STICKLINE(TT=0 AND TT1<TT2,0,AMOUNT*100,3,1),COLOR00FFFF; STICKLINE(TT=0 AND TT1>TT2,0,AMOUNT*100,3,0),COLORFF0000; STICKLINE(正V>大额线,0,AMOUNT*100,3,1),COLORFF00FF;STICKLINE(负V>大额线,0,AMOUNT*100,3,0),COLORFFFFFF;STICKLINE(T=1 AND 初正1>0,0,初正1*100,3,0),COLOR00FFFF; STICKLINE(T=1 AND 初负1>0,0,初负1*100,3,0),COLORFF0000; STICKLINE(T=1 AND 初正>0,0,初正*100,3,0),COLORFF00FF;STICKLINE(T=1 AND 初负>0,0,初负*100,3,0),COLORFFFFFF;((大正总+大负总)+(正总2+负总2))/10000,NODRAW;【通达信】分时大单(成交、大额线、大线位)-指标公式效果图(文档来源:若水财经社区)。

通达信指标公式源码 成交量和DDX叠加指标

通达信指标公式源码 成交量和DDX叠加指标

万手:VOL/10000,LINETHICK0;AA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);预测:AA/10000;BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LO W)),VOL/2));主买:主动买/10000,COLORRED;主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH -LOW),0-VOL/2));主卖:-主动卖/10000,COLORGREEN;差额:(主动买+主动卖)/10000;STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.5,0),COLORWHITE;STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,3.5,0),COLORRED;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3.5,0),COLORGREEN;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.5 , 0 ) , COLOR00FFFF ; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.2 , 0 ) , COLOR007777 ; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.7 , 0 ) , COLOR009999 ;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.1 , 0 ) , COLOR00BBBB ; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 1.5 , 0 ) , COLOR00DDEE ; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.9 , 0 ) , COLOR66FFFF ; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.2 , 0 ) , COLORFFFFFF ; STICKLINE(主动买>=0,VOL,-主动卖,3.2,0),COLOR000033;STICKLINE(主动买>=0,VOL,-主动卖,2.7,0),COLOR000066;STICKLINE(主动买>=0,VOL,-主动卖,2.1,0),COLOR000099;STICKLINE(主动买>=0,VOL,-主动卖,1.5,0),COLOR0000CC;STICKLINE(主动买>=0,VOL,-主动卖,0.9,0),COLOR0000FF;STICKLINE(主动买>=0,VOL,-主动卖,0.2,0),COLORCC66FF;STICKLINE(主动卖<=0,0,-主动卖,3.2,0),COLOR990000;STICKLINE(主动卖<=0,0,-主动卖,2.7,0),COLORCC0000;STICKLINE(主动卖<=0,0,-主动卖,2.1,0),COLORFF4400;STICKLINE(主动卖<=0,0,-主动卖,1.5,0),COLORFF8800;STICKLINE(主动卖<=0,0,-主动卖,0.9,0),COLORFFCC00;STICKLINE(主动卖<=0,0,-主动卖,0.2,0),COLORCYAN;持币:IF(SAR(10,2,20)>=H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORBLUE;持股:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORRED; WJ:=(H+L+C)/3;V1:=IF(H=L,1,H-MAX(O,C));V2:=IF(H=L,1,MAX(C,O)-WJ);V3:=IF(H=L,1,MIN(O,C)-L);V4:=IF(H=L,1,WJ-MIN(C,O));V5:=VOL/IF(H=L,4,H-L);V6:=(V1*V5);V7:=(V2*V5);V8:=(V3*V5);V9:=(V4*V5);买盘:=(V9+V8);卖盘:=(V6+V7);买卖差:=买盘-卖盘;DDX:=买卖差;DX:=MA(买卖差,5)*20;DDX1:SMA(DX,3,1),COLORFFFFFF;DDX2:SMA(DDX1,3,1),COLOR00FFFF;DDX3:(5*DDX2+4*REF(DDX2,1)+3*REF(DDX2,2)+2*REF(DDX2,3)+REF(DDX2,4))/15; {股}预警:DDX>0 AND MA(V,5)>MA(MA(V,5),5) AND CROSS(DDX1,DDX2),LINETHICK;天:=COUNT(DDX>0,5),COLORRED;DRAWTEXT(预警,DDX*1.06,'★'),LINETHICK3,COLOR00FFFF;。

【股票指标公式下载】-【通达信】成交量CT扫描(多头、空头、成交总量、买盘)

【股票指标公式下载】-【通达信】成交量CT扫描(多头、空头、成交总量、买盘)

【通达信】成交量CT扫描(多头、空头、成交总量、买盘)-指标公式源码■多头:0,COLOR0000FF;STICKLINE((CLOSE >MA(CLOSE,30)),0,VOL,3,1),COLOR0000FF;□空头:0,COLORFF937F;STICKLINE((CLOSE <MA(CLOSE,30)),0,VOL,3,1),COLORFF937F;VAR0:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));成交总量:VOL,POINTDOT;主买:IF(CLOSE>OPEN,VAR0*(HIGH-LOW),IF(CLOSE<OPEN,VAR0*((HIGH-OPEN)+(CLO SE-LOW)),VOL/2)),COLORRED,POINTDOT;VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));主买占%:买盘/100000,COLORRED,NODRAW;主卖:IF(CLOSE>OPEN,0-VAR0*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR0*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));主卖占%:-卖盘/100000,COLOR00FF00,POINTDOT,NODRAW;震动调整:=(买盘 + 卖盘);STICKLINE((震动调整 < 1),1,震动调整,3,0),COLOR70DB93;买卖量差%:(买盘+卖盘)/100000,COLORFF00FF;STICKLINE((买卖量差% < 0),0,买卖量差%,3,0),COLORWHITE,LINETHICK0;VAR2:=(HIGH - LOW);VAR3:=ABS((OPEN - CLOSE));VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);VAR6:=((VAR3 / VAR2) * VOL);VAR7:=((VAR4 / VAR2) * VOL);VAR8:=((VAR5 / VAR2) * VOL);STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),0,VAR6,2,0),COLORFF0000;STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,2,0),COLORFFFFFF;STICKLINE((买盘 > 0),买盘,0,2,0),COLOR0000FF;成交量大于3日:BETWEEN(V,MA(V,3)*1.1,MA(V,3)*3),POINTDOT,COLOR6699FF;【通达信】成交量CT扫描(多头、空头、成交总量、买盘)-指标公式效果图(文档来源:若水财经社区)。

通达信指标公式源码 多彩筹码峰主图指标

通达信指标公式源码 多彩筹码峰主图指标

DA1:=IF(130>TOTALBARSCOUNT,TOTALBARSCOUNT,130);DA:=IF(CURRBARSCOUNT>DA1,0,DA1);HI:=REFDATE(HHV(H,DA),DATE);LO:=REFDATE(LLV(L,DA),DATE);C1:=IF(CURRBARSCOUNT<=DA,C,DRAWNULL);GZ:=EXP(LN(HI/LO)/10);LH1:=SUM(IF(C1>=(HI/GZ),V,0),DA);LH2:=SUM(IF(C1>=(HI/POW(GZ,2)) AND C1<(HI/GZ),V,0),DA);LH3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA); LH4:=SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA); LH5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA); LH6:=SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA); LH7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA); LH8:=SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA); LH9:=SUM(IF(C1>=(LO*GZ) AND C1<LO*POW(GZ,2),V,0),DA);LH10:=SUM(IF(C1>=LO AND C1<LO*GZ,V,0),DA);L1:=REFDATE(HHV(LH1,DA),DATE);L2:=REFDATE(HHV(LH2,DA),DATE);L3:=REFDATE(HHV(LH3,DA),DATE);L4:=REFDATE(HHV(LH4,DA),DATE);L5:=REFDATE(HHV(LH5,DA),DATE);L6:=REFDATE(HHV(LH6,DA),DATE);L7:=REFDATE(HHV(LH7,DA),DATE);L8:=REFDATE(HHV(LH8,DA),DATE);L9:=REFDATE(HHV(LH9,DA),DATE);L10:=REFDATE(HHV(LH10,DA),DATE);SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);STICKLINE(CEILING(DA*L1/SS)*3>=CURRBARSCOUNT,HI*99/100,HI/GZ,9,0),,COLOR002288,LINETHICK3;STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*99/100,HI/POW(GZ,2),9,0),COLOR800600,LINETHICK3;STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*99/100,HI/POW(GZ,3),9,0),COLOR808300,LINETHICK3;STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*99/100,HI/POW(GZ,4),9,0),COLOR883D88,LINETHICK3;STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*99/100,HI/POW(GZ,5),9,0),COLOR777700,LINETHICK3;STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*99/100,HI/POW(GZ,6),9,0),COLOR804000,LINETHICK3;STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*99/100,HI/POW(GZ,7),9,0),COLOR003377,LINETHICK3;STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3) *99/100,9,0),COLORLICYAN,LINETHICK3;STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2) *99/100,9,0),COLORLIMAGENTA,LINETHICK3;STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)*99/100,9,0) ,COLORBROWN,LINETHICK3;DRAWKLINE(H,O,L,C);STICKLINE(C>=O,C,O,4,0),COLOR0000AA;STICKLINE(C>=O,C,O,3.5,0),COLOR0000BB;STICKLINE(C>=O,C,O,3,0),COLOR0000CC;STICKLINE(C>=O,C,O,2.5,0),COLOR0000DD;STICKLINE(C>=O,C,O,2,0),COLOR0000EE;STICKLINE(C>=O,C,O,1.5,0),COLOR0000FF;STICKLINE(C>=O,C,O,1,0),COLOR0000FF;STICKLINE(C>=O,H,L,0.5,0),COLORRED;STICKLINE(C<=O,C,O,4,0),COLORAAAA00;STICKLINE(C<=O,C,O,3.5,0),COLORBBBB00;STICKLINE(C<=O,C,O,3,0),COLORCCCC00;STICKLINE(C<=O,C,O,2.5,0),COLORDDDD00;STICKLINE(C<=O,C,O,2,0),COLOREEEE00;STICKLINE(C<=O,C,O,1.5,0),COLORFFFF00;STICKLINE(C<=O,C,O,1,0),COLORFFFF00;STICKLINE(C<=O,H,L,0.5,0),COLORFFFF00;STICKLINE(C/REF(C,1)>1.05,(C+O)/2,C,3,0),COLOR00AAAA;STICKLINE(C/REF(C,1)>1.05,(C+O)/2,C,2,0),COLOR00CCCC;STICKLINE(C/REF(C,1)>1.05,(C+O)/2,C,1,0),COLOR00EEEE; STICKLINE(C/REF(C,1)>1.05,(C+O)/2,C,0.5,0),COLORYELLOW; DH:=(((CLOSE-REF(CLOSE,1))/REF(CLOSE,1))*100); STICKLINE(DH<=-4,(C+O)/2,C,3,0),COLORAA0000; STICKLINE(DH<=-4,(C+O)/2,C,2,0),COLORCC0000; STICKLINE(DH<=-4,(C+O)/2,C,1,0),COLOREE0000; STICKLINE(DH<=-4,(C+O)/2,C,0.5,0),COLORFF0000;。

通达信成交量资金流指标公式

通达信成交量资金流指标公式

通达信成交量资金流指标公式V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);HY1:=REF(EMA(V1,3),1);多空趋势:=(MA((CLOSE - HY1) * 10,2))*0.1;操盘4:STICKLINE(多空趋势>=0 AND 多空趋势>=REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORRED;减仓4:STICKLINE(多空趋势>=0 AND 多空趋势< REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0), COLORRED;反弹4:STICKLINE(多空趋势<0 AND 多空趋势>=REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORGREEN;寻底4:STICKLINE(多空趋势<0 AND 多空趋势< REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(多空趋势>=0,6,6.3),' 多空'),COLORWHITE;换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;成交量:V,COLORWHITE,NODRAW;主力能量:(主力-均量)COLORMAGENTA,NODRAW;大户能量:(大户-均量)COLORYELLOW,NODRAW;中户能量:(中户-均量)COLORLIBLUE,NODRAW;散户能量:(散户-均量)COLORBLUE,NODRAW;操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORYELLOW;减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORRED;反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,4.2,4.8),' 机构'),COLORMAGENTA;操盘1:STICKLINE(大户能量>=0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1.5,0),COLORWHITE;减仓1:STICKLINE(大户能量>=0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1.5,0),COLORRED;反弹1:STICKLINE(大户能量<0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;寻底1:STICKLINE(大户能量<0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(大户能量>=0,2.7,3.3),' 大户'),COLORYELLOW;操盘2:STICKLINE(中户能量>=0 AND 中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORRED;减仓2:STICKLINE(中户能量>=0 AND 中户能量< REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORRED;反弹2:STICKLINE(中户能量<0 AND 中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORGREEN;寻底2:STICKLINE(中户能量<0 AND 中户能量< REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(中户能量>=0,1.2,1.8),' 中户'),COLORLIBLUE;操盘3:STICKLINE(散户能量>=0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORRED;减仓3:STICKLINE(散户能量>=0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORRED;反弹3:STICKLINE(散户能量<0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;寻底3:STICKLINE(散户能量<0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),' 散户'),COLORBLUE;JZ:=V/(ABS(主力能量)+ABS(大户能量)+ABS(中户能量)+ABS(散户能量));ZLCJ:=JZ*ABS(主力能量);DHCJ:=JZ*ABS(大户能量);ZHCJ:=JZ*ABS(中户能量);SHCJ:=JZ*ABS(散户能量);机构量:ZLCJ,COLORMAGENTA,NODRAW;大户量:DHCJ,COLORYELLOW,NODRAW;中户量:ZHCJ,COLORLIBLUE,NODRAW;散户量:SHCJ,COLORBLUE,NODRAW;。

【股票指标公式下载】-【通达信】能量公式(成交、买盘、卖盘)

【股票指标公式下载】-【通达信】能量公式(成交、买盘、卖盘)

【通达信】能量公式(成交、买盘、卖盘)-指标公式源码{N 1.00 100.00 15.0}M1:=5;M2:=10;M3:=20;M4:=60;SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100>100,100,(AMOUNT/C)/(H HV(AMOUNT,N)/HHV(C,N))*100);能量:=SAT,VOLSTICK;DRAWTEXT(FILTER(SAT>=100,100),VOL*1.06,'爆'),COLORRED;DRAWTEXT(SAT=100 AND ISLASTBAR,VOL*1.03,'发'),COLORYELLOW;VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));成交:=VOL;买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) +(OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));买卖差:=(买盘 + 卖盘);STICKLINE((买卖差 < 0),0,买卖差,3,0),LINETHICK3,COLOR339933; STICKLINE((买卖差 < 0),0,买卖差,2,0),LINETHICK3,COLOR33AA33; STICKLINE((买卖差 < 0),0,买卖差,1,0),LINETHICK3,COLOR33DD33; STICKLINE((买卖差 < 0),0,买卖差,0.5,0),LINETHICK3,COLOR33FF33;量比1:=(VOL / MA(VOL,5));VAR10:=买盘;VAR20:=卖盘;JX1:=BARSSINCE(买盘);JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);VAR30:=MA(VOL,JY2);动神:=买盘;鬼力:=VAR20;神比:=(动神 / VAR30);鬼比:=(鬼力 / VAR30);VAR2:=(HIGH - LOW);VAR3:=ABS((OPEN - CLOSE));VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);VAR6:=((VAR3 / VAR2) * VOL);VAR7:=((VAR4 / VAR2) * VOL);VAR8:=((VAR5 / VAR2) * VOL);VAR9:=IF(((VOL / CAPITAL) > 0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60)));VARC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30))); VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),6,1) / SMA(ABS((CLOSE - VARD)),6,1)) * 100);VAR40:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),VAR6,动神) + 动神) / 2);VAR41:=((IF(((VAR7 > VAR6) AND (VAR7 > VAR8)),VAR7,动神) + 动神) / 2); VAR42:=((IF(((VAR8 > VAR6) AND (VAR8 > VAR7)),VAR8,动神) + 动神) / 2); VAR50:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),VAR6,鬼力) + 鬼力) / 2);三日上攻:=MA((((VAR40 + VAR41) + VAR42) / 3),JY2);三日下攻:=MA(VAR50,JY2);多头:STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,3,0),COLOR000088; STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,2,0),COLOR0000AA;STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,1,0),COLOR0000DD;STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,0.5,0),COLOR0000FF;空头:STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,3,0),COLOR008800; STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,2,0),COLOR00AA00;STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,1,0),COLOR00DD00;STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,0.5,0),COLOR00FF00; STICKLINE((鬼力 > 0),鬼力,0,4,0),COLORFF3399;加仓:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE > OPEN)),0,VAR6,3,0),COLOR880088;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE > OPEN)),0,VAR6,2,0),COLORAA00AA;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE > OPEN)),0,VAR6,1,0),COLORDD00DD;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE > OPEN)),0,VAR6,0.5,0),COLORFF00FF;减仓:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE < OPEN)),0,VAR6,3,0),COLOR880000;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE < OPEN)),0,VAR6,2,0),COLORBB0000;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE < OPEN)),0,VAR6,1,0),COLORDD0000;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE < OPEN)),0,VAR6,0.5,0),COLORFF0000;洗盘:STICKLINE(((VAR8 > VAR6) AND (VAR8 >VAR7)),0,VAR8,3,0),COLOR999999;STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,2,0),COLORAAAAAA; STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,1,0),COLORDDDDDD; STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,0.6,0),COLORFFFFFF; 高卖:STICKLINE(((VAR7 > VAR6) AND (VAR7 >VAR8)),0,VAR7,3,0),COLOR008888;STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,2,0),COLOR00AAAA; STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,1,0),COLOR00DDDD; STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,0.5,0),COLOR00FFFF; 相对地量:=STICKLINE(((VAR9 > 2) AND (VOL < (MA(VOL,5) / 2))),0,VOL,3,0); 白进:1,LINETHICK0,COLORWHITE;黄警:1,NODRAW,COLOR00FFFF;粉追:2,NODRAW,COLORFF00FF;兰绿卖:3,NODRAW,COLOR00FF00;MAV1:MA(V,M1),LINETHICK1,COLOR00FFFF;MAV2:=MA(V,M2),LINETHICK1,COLORFF00FF;IF(MA(V,5)>=REF(MA(V,5),1),MA(V,5),DRAWNULL),COLORRED,LINETHICK2;【通达信】能量公式(成交、买盘、卖盘)-指标公式效果图(文档来源:若水财经社区)。

通达信资金叠加成交量主图指标公式

通达信资金叠加成交量主图指标公式

通达信资⾦叠加成交量主图指标公式套盘:=(1-WINNER(C))*100,COLORGREEN,NODRAW;TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1))))); MTIME:=MOD(FROMOPEN,TOTAL);CTIME:=IF(MTIME<0.5,TOTAL,MTIME);VVOL:=IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL),NODRAW;虚拟换:IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME/CAPITAL*100,DRAWNULL),COLORGREEN,NODRAW;换⼿:VOL/CAPITAL*100,POINTDOT,NODRAW,COLORMAGENTA;STICKLINE(CURRBARSCOUNT=1 && (SETCODE=0 || SETCODE=1),VVOL,0,-1,-1),COLOR00C0C0;超B:=L2_AMO(0,2)/10000.0;⼤B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;⼩B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;⼤S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;⼩S:=L2_AMO(3,3)/10000.0;净流⼊:(超B+⼤B+中B+⼩B)-(超S+⼤S+中S+⼩S),NODRAW;N:=30;ZJD:=HHV(净流⼊,N);ZJX:=LLV(净流⼊,N);CJ:=HHV(V,N);BEIS:=CJ/(ZJD-ZJX);值:=CONST(CJ+ABS(ZJX)*BEIS);STICKLINE(净流⼊>0 ,值,值+净流⼊*BEIS,2,0),COLOR0000AA;STICKLINE(净流⼊<=0 ,值,值+净流⼊*BEIS,2,0),COLOR00AA00;DRAWTEXT(ISLASTBAR=1 AND 净流⼊<=0,值*1.12,' 净流⼊'),COLORGREEN;DRAWTEXT(ISLASTBAR=1 AND 净流⼊>0,值*0.88,' 净流⼊'),COLORRED;VOLUME:VOL,VOLSTICK;V1:=MA(VOLUME,5);V2:=MA(VOLUME,10);V3:=MA(VOLUME,30);{空中加油}STICKLINE(C<O AND C>REF(C,1),0,V,2,0),COLORMAGENTA;量倍:V/REF(V,1),NODRAW,COLOR0000DD;STICKLINE(IF(V>REF(HHV(V,239),1),0.99,1)<1,V,0,-1,1),COLORDD00DD;STICKLINE(IF(V>REF(HHV(V,239),1),0.99,1)<1 AND O>C,V,0,-1,0),COLORDD00DD;STICKLINE(IF(V<REF(LLV(V,119),1),0.99,1)<1,V,0,-1,0),COLOR00DD00;STICKLINE(IF(V<REF(LLV(V,239),1),0.99,1)<1,V,0,-1,0),COLORDD0000;STICKLINE(V/REF(V,1)>2 ,0,V/2,2,0),COLORYELLOW;DRAWICON(LAST(V>REF(V,1),2,0),V/3,1);TESTSKIP(NOT(超B OR ⼤B OR 中B OR ⼩B OR 超S OR ⼤S OR 中S OR ⼩S)!=0);超⼤单:=(超B)-(超S);⼤单:=(⼤B)-(⼤S);中单:=(中B)-(中S);⼩单:=(⼩B)-(⼩S);DAZHI:=CONST(MAX(ABS(净流⼊),MAX(ABS(超⼤单),MAX(ABS(⼤单),MAX(ABS(中单),ABS(⼩单)))))),NODRAW;近3净⼊:=SUM(净流⼊,3);近3超:=SUM(超⼤单,3);近3⼤:=SUM(⼤单,3);近3中:=SUM(中单,3),;近3⼩:=SUM(⼩单,3);近5净⼊:=SUM(净流⼊,5);近5超:=SUM(超⼤单,5);近5⼤:=SUM(⼤单,5);近5中:=SUM(中单,5);近5⼩:=SUM(⼩单,5);近10净⼊:=SUM(净流⼊,10);近10超:=SUM(超⼤单,10);近10⼤:=SUM(⼤单,10);近10中:=SUM(中单,10),;近10⼩:=SUM(⼩单,10);流⼊:=ABS(超B+⼤B+中B+⼩B)*1000/VOL;流出:=ABS(超S+⼤S+中S+⼩S)*1000/VOL;近3流⼊:=ABS(SUM(超B,3)+SUM(⼤B,3)+SUM(中B,3)+SUM(⼩B,3))*1000/VOL;近3流出:=ABS(SUM(超S,3)+SUM(⼤S,3)+SUM(中S,3)+SUM(⼩S,3))*1000/VOL;近5流⼊:=ABS(SUM(超B,5)+SUM(⼤B,5)+SUM(中B,5)+SUM(⼩B,5))*1000/VOL;近5流出:=ABS(SUM(超S,5)+SUM(⼤S,5)+SUM(中S,5)+SUM(⼩S,5))*1000/VOL;近10流⼊:=ABS(SUM(超B,10)+SUM(⼤B,10)+SUM(中B,10)+SUM(⼩B,10))*1000/VOL;近10流出:=ABS(SUM(超S,10)+SUM(⼤S,10)+SUM(中S,10)+SUM(⼩S,10))*1000/VOL;{ 当⽇ }DRAWRECTREL(0,0,240,999.2,IF(120,RGB(10,0,0),0));{DRAWTEXT_FIX(CURRBARSCOUNT=1,0.0,0.001,0,'单位(万元)'),COLORDDDDDD;} DRAWRECTREL(0,ABS(CONST(480-(ABS(净流⼊)*300/DAZHI))),44,480,IF(CONST(净流⼊)>0,RGB(100,0,0),RGB(0,50,0)));DRAWRECTREL(48,ABS(CONST(480-(ABS(超⼤单)*300/DAZHI))),94,480,IF(CONST(超⼤单)>0,RGB(100,0,0),RGB(0,50,0)));DRAWRECTREL(98,ABS(CONST(480-(ABS(⼤单)*300/DAZHI))),142,480,IF(CONST(⼤单)>0,RGB(100,0,0),RGB(0,50,0)));DRAWRECTREL(146,ABS(CONST(480-(ABS(中单)*300/DAZHI))),190,480,IF(CONST(中单)>0,RGB(100,0,0),RGB(0,50,0)));DRAWRECTREL(194,ABS(CONST(480-(ABS(⼩单)*300/DAZHI))),238,480,IF(CONST(⼩单)>0,RGB(100,0,0),RGB(0,50,0)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.0,0.001,0,'当⽇'),COLORFFFFFF; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.005,0.49,0,'净流'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.055,0.49,0,'超⼤'),COLOR00FFFF; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.100,0.49,0,'⼤单'),COLOR00FFFF; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.150,0.49,0,'中单'),COLOR00FFFF; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.197,0.49,0,'⼩单'),COLOR00FFFF; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.0,0.40,0,CEILING(净流⼊)),COLORFFFFFF; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.051,0.40,0,CEILING(超⼤单)),COLORFFFFFF; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.097,0.40,0,CEILING(⼤单)),COLORFFFFFF; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.151,0.40,0,CEILING(中单)),COLORFFFFFF; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.200,0.40,0,CEILING(⼩单)),COLORFFFFFF; {3⽇ }DRAWRECTREL(240,0,445,999.2,IF(120,RGB(10,0,0),0));DRAWRECTREL(0,CONST(940-(ABS(近3净⼊)*10/DAZHI)),42,999,IF(CONST(近3净⼊)>0,RGB(100,0,0),RGB(0,50,0)));DRAWRECTREL(47,CONST(940-(ABS(近3超)*10/DAZHI)),94,999,IF(CONST(近3超)>0,RGB(100,0,0),RGB(0,50,0)));DRAWRECTREL(98,CONST(940-(ABS(近3⼤)*10/DAZHI)),142,999,IF(CONST(近3⼤)>0,RGB(100,0,0),RGB(0,50,0)));DRAWRECTREL(146,CONST(940-(ABS(近3中)*10/DAZHI)),190,999,IF(CONST(近3中)>0,RGB(100,0,0),RGB(0,50,0)));DRAWRECTREL(194,CONST(940-(ABS(近3⼩)*10/DAZHI)),238,999,IF(CONST(近3⼩)>0,RGB(100,0,0),RGB(0,50,0)));DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.001,0.89,0,CEILING(近3净⼊))COLORFFFFFF; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.058,0.89,0,CEILING(近3超))COLORFFFFFF; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.106,0.89,0,CEILING(近3⼤))COLORFFFFFF; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.155,0.89,0,CEILING(近3中))COLORFFFFFF; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.200,0.89,0,CEILING(近3⼩))COLORFFFFFF; { 5}DRAWRECTREL(240,ABS(CONST(480-(ABS(近5超)*50/DAZHI))),285,480,IF(CONST(近5超)>0,RGB(100,0,0),RGB(0,50,0)));DRAWRECTREL(290,ABS(CONST(480-(ABS(近5⼤)*50/DAZHI))),335,480,IF(CONST(近5⼤)>0,RGB(100,0,0),RGB(0,50,0)));DRAWRECTREL(341,ABS(CONST(480-(ABS(近5中)*50/DAZHI))),386,480,IF(CONST(近5中)>0,RGB(100,0,0),RGB(0,50,0)));DRAWRECTREL(395,ABS(CONST(480-(ABS(近5⼩)*50/DAZHI))),440,480,IF(CONST(近5⼩)>0,RGB(100,0,0),RGB(0,50,0)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.245,0.49,0,'绝对超'),COLORFF8000; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.294,0.49,0,'绝对⼤'),COLORFF8000; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.343,0.49,0,'绝对中'),COLORFF8000; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.394,0.49,0,'绝对⼩'),COLORFF8000; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.244,0.40,0,CEILING(近5超)),COLORFFFFFF; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.295,0.40,0,CEILING(近5⼤)),COLORFFFFFF; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.350,0.40,0,CEILING(近5中)),COLORFFFFFF; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.395,0.40,0,CEILING(近5⼩)),COLORFFFFFF;{ 10 }DRAWRECTREL(240,ABS(CONST(970-(ABS(近10超)*10/DAZHI))),289,999,IF(CONST(近10超)>0,RGB(100,0,0),RGB(0,50,0)));DRAWRECTREL(293,ABS(CONST(970-(ABS(近10⼤)*10/DAZHI))),337,999,IF(CONST(近10⼤)>0,RGB(100,0,0),RGB(0,50,0)));DRAWRECTREL(341,ABS(CONST(970-(ABS(近10中)*10/DAZHI))),386,999,IF(CONST(近10中)>0,RGB(100,0,0),RGB(0,50,0)));DRAWRECTREL(395,ABS(CONST(970-(ABS(近10⼩)*10/DAZHI))),440,999,IF(CONST(近10⼩)>0,RGB(100,0,0),RGB(0,50,0)));DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.244,0.90,0,CEILING(近10超)),COLORFFFFFF; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.295,0.90,0,CEILING(近10⼤)),COLORFFFFFF; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.350,0.90,0,CEILING(近10中)),COLORFFFFFF; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.395,0.90,0,CEILING(近10⼩)),COLORFFFFFF;⼤宗进:=(超B)+(⼤B),NODRAW;⼤宗出:=(超S)+(⼤S),NODRAW;⾮⼤宗进:=(中B)+(⼩B),NODRAW;⾮⼤宗出:=(中S)+(⼩S),NODRAW;⼤宗进限制:=IF((超B+⼤B)=0,0,⼤宗进);⼤宗出限制:=IF((超S+⼤S)=0,0,⼤宗出);⾮⼤宗进限制:=IF(中B+⼩B=0,0,⾮⼤宗进);⾮⼤宗出限制:=IF(中S+⼩S=0,0,⾮⼤宗出);主⼒净流⼊:=(超B+⼤B)-(超S+⼤S),COLORRED,NODRAW;散户净流⼊:=(中B+⼩B)-(中S+⼩S),COLORRED,NODRAW;⼤单流⼊:=(超B+⼤B)/(超B+⼤B+超S+⼤S)*100,NODRAW;⼤单流⼊限制:=IF((超B+⼤B+超S+⼤S)=0,0,⼤单流⼊);⼤单流出⽐:=(超S+⼤S)/(超B+⼤B+超S+⼤S)*100,NODRAW;⼤单流出限制:=IF((超B+⼤B+超S+⼤S)=0,0,⼤单流出⽐);总流⼊⽐:=(超B+⼤B+中B+⼩B)/(超B+⼤B+中B+⼩B+超S+⼤S+中S+⼩S)*100,NODRAW;总流出⽐:=(超S+⼤S+中S+⼩S)/(超B+⼤B+中B+⼩B+超S+⼤S+中S+⼩S)*100,NODRAW;成交总量:=(超B+⼤B+中B+⼩B+超S+⼤S+中S+⼩S),NODRAW;机构参与度:=(超B+超S+⼤B+⼤S)/成交总量*100,COLORYELLOW,NODRAW;⼤单强度:=(超B+⼤B-超S-⼤S)/成交总量*100,COLORYELLOW,NODRAW;⼤单强度限制:=IF(⼤单强度=0,-100,⼤单强度);⼤单强度⽐:=IF(⼤单强度>=0,(⼤单强度限制+100)/2,100-ABS((⼤单强度限制-100)/2)),NODRAW;超单强度:=(超B-超S)/(超B+超S)*100,COLORYELLOW,NODRAW;超单强度限制:=IF(超单强度=0,-100,超单强度);超单强度⽐:=IF(超单强度>0,(超单强度限制+100)/2,IF(超单强度<0,100-ABS((超单强度限制-100)/2),0)),NODRAW;资⾦流向买:=⼤宗进限制+⾮⼤宗进限制;资⾦流向卖:=⼤宗出限制+⾮⼤宗出限制;流⼊⽐:=净流⼊*1000000/AMOUNT,NODRAW;⼤宗净流⼊:=(超B+⼤B)-(超S+⼤S),NODRAW;⼤宗流⼊⽐:=⼤宗净流⼊*1000000/AMOUNT,NODRAW;DRAWRECTREL(00,0,240,95,RGB(0,100,0));DRAWRECTREL(00,0,120,95,RGB(0,100,0));DRAWRECTREL(00,0,20+CONST(总流⼊⽐*160/100),95,RGB(100,0,0));DRAWTEXT_FIX(1,0.00,0.01,0,STRCAT(STRCAT('今⽇流向 ',CON2STR(资⾦流向买,0)),'')),COLORYELLOW;DRAWTEXT_FIX(1,0.17,0.01,0,STRCAT(STRCAT(' ',CON2STR(资⾦流向卖,0)),' ')),COLORYELLOW; DRAWRECTREL(00,570,285,661,RGB(0,100,0));DRAWRECTREL(00,570,285,661,RGB(0,100,0));DRAWRECTREL(00,570,150+CONST(⼤宗流⼊⽐*160/100),661,RGB(100,0,0));DRAWTEXT_FIX(1,0.1,0.58,1,STRCAT(STRCAT('机构介⼊度 ',CON2STR(⼤宗流⼊⽐,0)),' ')),COLORYELLOW;DRAWRECTREL(240,570,443,661,RGB(0,100,0));DRAWRECTREL(240,570,360,661,RGB(0,100,0));DRAWRECTREL(240,570,270+CONST(流⼊⽐*160/100),661,RGB(100,0,0));DRAWTEXT_FIX(1,0.35,0.58,1,STRCAT(STRCAT('资⾦介⼊度 ',CON2STR(流⼊⽐,0)),'')),COLORYELLOW;主买A:=ACTINVOL,COLORRED,NODRAW;主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;主买:主买A*100/(主买A+主卖A),NODRAW,COLORRED;主卖:主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN;DRAWRECTREL(240,0,443,95,RGB(0,100,0));DRAWRECTREL(240,0,443,95,RGB(0,100,0));DRAWRECTREL(240,0,280+CONST(主买*160/100),95,RGB(100,0,0));DRAWTEXT_FIX(1,0.25,0.01,0,STRCAT(STRCAT('主动买卖⽐ ',CON2STR(主买,2)),'%')),COLORYELLOW;。

通达信主力筹码一目了然副图指标

通达信主力筹码一目了然副图指标

通达信主力筹码一目了然副图指标{价量线主线快线}价量: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>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR0000AA;STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR0022CC;STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR0055FF;{粉}STICKLINE(TGLXS<0 ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORAA00BB;STICKLINE(TGLXS<0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORCC22BB;STICKLINE(TGLXS<0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFF55BB;{黄}STICKLINE(TGLXS>0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR00AAFF;STICKLINE(TGLXS>0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR00CCFF;STICKLINE(TGLXS>0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR00FFFF;{蓝}STICKLINE(TGLXS<0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORFF7700;STICKLINE(TGLXS<0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORFFAA22;STICKLINE(TGLXS<0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFFFF55;STICKLINE(TGLXS=0 AND REF(TGLXS,1)>=0,100,TGLXS+100,8,0),COLORBROWN;STICKLINE(TGLXS=0 AND REF(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),COLORC0C 0C0;{主力控盘筹码}{粉}STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,2.5,0 ),COLORAA00BB;STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,1.5,0 ),COLORCC22BB;STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,0.5,0 ),COLOREE44BB;{蓝}STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,2.5,0 ),COLORFF7700;STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,1.5,0 ),COLORFFAA22;STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,0.5 ,0 ),COLORFFFF55;{亮红}STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,2.5,0 ),COLOR131FFD;STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,1.5,0 ),COLOR5050FF;STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,0.5,0 ),COLOR7E7EFF;{深蓝}STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,2.5,0 ),COLORAA0000;STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,1.5,0 ),COLORCC0000;STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,0.5 ,0 ),COLORFF0000;{主力筹码警戒}{黄}STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2.5,0 ),COLOR00A AFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,1.5,0 ),COLOR00C CFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,0.5,0 ),COLOR00F FFF;{红}STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,2.5,0 ),COLOR0000AA;STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,1.5,0 ),COLOR0022CC;STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,0.5 ,0 ),COLOR0055FF;{红}STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50AND ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,2.5,0 ),COLOR0000AA;STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50AND ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,1.5,0 ),COLOR0022CC;STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50AND ZZLJJ>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;100线上下的柱线,显示资金进出情况。

通达信量堆公式源码

通达信量堆公式源码

通达信量堆公式源码
以下是通达信量堆公式源码:
```
V5:=MA(V,5);
V10:=MA(V,10);
D1:=V>REF(HHV(V,2),1) AND RANGE(V5,V10,V) AND UPNDAY(V5,2) AND UPNDAY(V10,2);
D2:=H>REF(HHV(H,2),1);
KMAX:=MAX(C,O);
D3:=KMAX>REF(HHV(KMAX,2),1);
DA:=D1 AND D2 AND D3;
P1:=BARSLAST(DA=1);
P2:=REF(REF(H,1),P1);
DB:=IF(DA,0,IF(C<P2,1,0));
STICKLINE(DB,C,O,3,0),COLORYELLOW;
```
这个公式主要用于画出量堆的图形,其中:
- V5和V10分别表示5日和10日的成交量均线;
- D1表示当前成交量大于前两天的最高成交量,且成交量在5日和10日之间波动;
- D2表示最高价大于前两天的最高价;
- KMAX表示收盘价和开盘价的较大值;
- D3表示KMAX大于前两天的最高KMAX值;- DA表示所有条件D1、D2、D3同时满足;- P1表示DA满足的最后一个时间点的距离;- P2表示P1天前的最高价;
- DB表示当天是阴线的条件。

通达信量堆公式源码

通达信量堆公式源码

通达信量堆公式源码通达信是一种常用的股票分析软件,而量堆公式是其中一项重要的指标计算工具。

本文将从通达信量堆公式的原理、源码实现以及相关应用等方面,对该任务进行详细解答。

首先,我们需要了解量堆公式的原理。

量堆公式是通过计算当前成交量与前几个交易日成交量之间的差距,来衡量买卖双方力量的强弱。

其计算公式为:量堆=(当日成交量-前几日成交量的平均值) / 前几日成交量的平均值。

通过量堆值的正负和大小,可以判断市场的短期买卖力度,进而指导投资决策。

接下来,我们将介绍通达信量堆公式的源码实现。

在通达信软件中,用户可以自定义指标公式,实现量堆公式的计算。

首先,我们需要打开通达信软件,在“系统”菜单下选择“参数设置”,然后进入“自定义指标公式”选项卡。

在该选项卡中,我们可以点击“新建”按钮,创建一个新的指标公式。

接着,我们需要定义指标的计算周期,可以选择“日线”、“周线”或“月线”等。

再次点击“确定”按钮后,会跳转到公式编辑器界面。

在公式编辑器界面中,我们可以编写量堆公式的源码。

首先,我们需要定义所需的变量和参数。

例如,我们可以定义一个变量"V"表示成交量,以及一个参数"N"表示前几日的交易日数。

接着,我们可以使用通达信软件提供的函数和运算符进行计算。

例如,我们可以使用"SMA(V, N)"函数计算前几日成交量的平均值,然后使用"V-SMA(V, N)"计算当前成交量与前几日成交量平均值的差值。

最后,我们使用"(V-SMA(V, N))/SMA(V, N)"计算量堆值,并将其赋值给指标变量。

完成公式的编写后,我们需要点击“保存”按钮保存该指标公式。

在通达信软件中,用户可以根据自己的需求进行量堆指标的计算和展示。

首先,我们需要进入通达信软件的股票行情界面。

然后,点击“指标”按钮,在弹出的指标选择对话框中选择“自定义”选项卡。

【股票指标公式下载】-【通达信】成交堆积(堆积图、主图)

【股票指标公式下载】-【通达信】成交堆积(堆积图、主图)

【通达信】成交堆积(堆积图、主图)-指标公式源码DA1:=IF(130>TOTALBARSCOUNT,TOTALBARSCOUNT,130);DA:=IF(CURRBARSCOUNT>DA1,0,DA1);HI:=REFDATE(HHV(H,DA),DATE);LO:=REFDATE(LLV(L,DA),DATE);C1:=IF(CURRBARSCOUNT<=DA,C,DRAWNULL);GZ:=EXP(LN(HI/LO)/10);LH1:=SUM(IF(C1>=(HI/GZ),V,0),DA);LH2:=SUM(IF(C1>=(HI/POW(GZ,2)) AND C1<(HI/GZ),V,0),DA);LH3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA);LH4:=SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA);LH5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA);LH6:=SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA);LH7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA);LH8:=SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA);LH9:=SUM(IF(C1>=(LO*GZ) AND C1<LO*POW(GZ,2),V,0),DA);LH10:=SUM(IF(C1>=LO AND C1<LO*GZ,V,0),DA);L1:=REFDATE(HHV(LH1,DA),DATE),LINETHICK0;L2:=REFDATE(HHV(LH2,DA),DATE),LINETHICK0;L3:=REFDATE(HHV(LH3,DA),DATE),LINETHICK0;L4:=REFDATE(HHV(LH4,DA),DATE);L5:=REFDATE(HHV(LH5,DA),DATE);L6:=REFDATE(HHV(LH6,DA),DATE);L7:=REFDATE(HHV(LH7,DA),DATE);L8:=REFDATE(HHV(LH8,DA),DATE);L9:=REFDATE(HHV(LH9,DA),DATE);L10:=REFDATE(HHV(LH10,DA),DATE);SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);{堆积图代码}STICKLINE(CEILING(DA*L1/SS)*3>=CURRBARSCOUNT,HI*99/100,HI/GZ,9,0)COLO R3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*99/100,HI/P OW(GZ,2),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*99/100,HI/P OW(GZ,3),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*99/100,HI/P OW(GZ,4),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*99/100,HI/P OW(GZ,5),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*99/100,HI/P OW(GZ,6),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*99/100,HI/P OW(GZ,7),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3 )*99/100,9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2 )*99/100,9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)*99/100, 9,0)COLOR3C3C3A,LINETHICK3;DRAWKLINE(H,O,L,C);【通达信】成交堆积(堆积图、主图)-指标公式效果图(文档来源:若水财经社区)。

通达信彩带成交量主图指标公式

通达信彩带成交量主图指标公式

通达信彩带成交量主图指标公式DRAWBAND(MA(CLOSE,60),RGB(25,0,25),MA(CLOSE,90),RG B(16,16,16));DRAWBAND(MA(CLOSE,20),RGB(255,255,0),MA(CLOSE,30),R GB(0,0,0));DRAWBAND(MA(CLOSE,10),RGB(255,0,0),MA(CLOSE,20),RG B(0,0,0));MA5:MA(CLOSE,5),COLORFFFFFF;MA10:MA(CLOSE,10),COLOR00FFFF;MA20:MA(C,20),COLORFF00FF;MA30:MA(C,30),COLOR00FF00;MA60:MA(CLOSE,60),COLORFF9988;MA90:MA(CLOSE,90),COLOR0000FF;DRAWKLINE(HIGH,OPEN,LOW,CLOSE);BDGD:=C=HHV(C,13);GDSJ:=BARSLAST(FILTER(CROSS(0.8,BDGD),2))+1;高点:REF(C,GDSJ),COLORFF00FF,POINTDOT;突破:CROSS(C,REF(高点,1)),COLOR00FFFF,POINTDOT,NODRAW;STICKLINE(GDSJ<=6,高点,高点,3,0),COLORFF00FF;DRAWTEXT(突破,LOW,'↑'),COLOR00FFFF;BDDD:=C=LLV(C,13);DDSJ:=BARSLAST(FILTER(CROSS(0.8,BDDD),2))+1;低点:REF(C,DDSJ),COLOR00FF00,POINTDOT;STICKLINE(DDSJ<=6,低点,低点,3,0),COLOR00FF00;{}高点1:=REFDATE(HHV(H,140),DATE);调整:=0.99;{这里是避免跟信息地雷冲突}DRAWTEXT(CURRBARSCOUNT=140,高点1*调整,'主营收入(万):');{CURRBARSCOUNT=N根据自已的初始K线来调,我的初始K 线为140根}DRAWNUMBER(CURRBARSCOUNT=123,高点1*调整,FINANCE(20)/10000);DRAWTEXT(CURRBARSCOUNT=110,高点1*调整,'主营利润(万):');DRAWNUMBER(CURRBARSCOUNT=93,高点1*调整,FINANCE(21)/10000);DRAWTEXT(CURRBARSCOUNT=80,高点1*调整,'每股收益(元):');DRAWNUMBER(CURRBARSCOUNT=63,高点1*调整,FINANCE(33));DRAWTEXT(CURRBARSCOUNT=55,高点1*调整,'每股净资产(元):');DRAWNUMBER(CURRBARSCOUNT=35,高点1*调整,FINANCE(34));{}{KS:IF(MAA10>MAA30,MAA10,MAA30),COLORBLUE;}{股旁网-股票公式网站 }A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A4:=SMA(A3,3,1);A5:=SMA(A4,3,1);A6:=3*A4-2*A5;A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORYELLOW;STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;{}XS:=MA(LOW,5)*(1-5/100),LINETHICK0;XS1:=MA(HIGH,5)*(1+5/100);DRAWTEXT(CROSS(XS1,C),H*1.01,'砸'),COLORWHITE;{}VAR2:=(2*CLOSE+HIGH+LOW)/4;VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);小股民:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;庄家:=EMA(0.667*REF(小股民,1)+0.333*小股民,2)*VAR3;DRAWTEXT(CROSS(小股民,庄家) AND 小股民<30,L-0.05,'←低吸'),COLORLIRED;DRAWTEXT(CROSS(庄家,小股民) AND 小股民>70,H+0.05,'←高抛');{}B1:=REF(CLOSE,1);WR:=-100*(HHV(HIGH,28)-CLOSE)/(HHV(HIGH,28)-LLV(LOW,28));DRAWICON(FILTER(CROSS(WR,(0 - 81)),10),B1,13);DRAWICON(FILTER(CROSS((0 -19),WR),10),H*1.02,15);DRAWTEXT(FILTER(CROSS(WR,(0 - 81)),21),L*0.99,' W&R'),COLORRED;DRAWTEXT(FILTER(CROSS(0 -19,WR),21),H*1.01,' W&R'),COLORGREEN;MA18:=MA(C,18);跟:=IF(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),1,0);DRAWTEXT(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),LOW*0.96,'跟'),COLOR7F52AF;买价:=((C-REF(MA5,1))/5+MA5)*1.004;买条件:=CROSS(C,买价) AND 买价>REF(买价,1);醉白K买进:IF(买条件,L,H),COLORWHITE,POINTDOT;STICKLINE(买条件,H,L,0,1),COLORWHITE,LINETHICK2;STICKLINE(买条件,O,C,4,1),COLORWHITE,LINETHICK2;加码价:=((C-REF(MA10,1))/20+MA10)*1.004;加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);醉黄K加码:IF(加码条件,L,H),COLORYELLOW,POINTDOT;STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2;STICKLINE(加码条件,O,C,4,1),COLORYELLOW,LINETHICK2;HH0:=CONST(HHV(H,120))*1;LL0:=CONST(LLV(L,120))*1;MM0:=CONST((HH0+LL0)/2);HH1:=IF(CONST(C)<MM0,LL0-(HH0-LL0)*0.4,LL0-(HH0-LL0)*0.4),COLORRED;LL1:=LL0;HLMAX:=MAX(HH1,LL1);HLMIN:=MIN(HH1,LL1);HLMN1:=(HLMAX+HLMIN)/2;HLMN2:=(HLMAX-HLMIN);HLMN3:=HHV(V,250)/2;HLMN4:=HHV(V,250);VZ:=(V-HLMN3)*HLMN2/HLMN4+HLMN1;STICKLINE(C>=O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2.5,1),COLORRED;STICKLINE(C<O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2.5,0),COLORCYAN;(MA(V,5)-HLMN3)*HLMN2/HLMN4+HLMN1,COLORFFFFFF;(MA(V,10)-HLMN3)*HLMN2/HLMN4+HLMN1,COLOR00FFFF;T:=V=LLV(V,20);DRAWICON(T,(V-HLMN3)*HLMN2/HLMN4+HLMN1,1);STICKLINE(C/REF(C,1)>1.099,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2,0),COLORRED;STICKLINE(C/REF(C,1)<0.901,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2,0),COLORGREEN;VY:=(0-HLMN3)*HLMN2/HLMN4+HLMN1;STICKLINE(V>=2*REF(V,1),VZ,VY,0.3,0),COLORWHITE;STICKLINE(V>=3*REF(V,1),VZ,VY,0.3,0),COLORYELLOW;MA13:=MA(C,3);UU:=1,V<=LLV(V,13) AND MA13>REF(MA13,1);TJ:=1,REF(V,1)<=LLV(V,13) AND MA13>REF(MA13,1),COLORRED,LINETHICK3;DRAWTEXT(TJ=1,(V-HLMN3)*HLMN2/HLMN4+HLMN1+0.2,'买')COLORMAGENTA;BIAS11:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS12:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;BIAS13:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;BIAS1:=(C-MA(C,6))/MA(C,6)*100;BIAS2:=(C-MA(C,12))/MA(C,12)*100;BIAS3:=(C-MA(C,24))/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离:=MA(BIAS,3);。

通达信堆量指标公式

通达信堆量指标公式

通达信堆量指标公式通达信堆量指标是一种技术分析工具,用于衡量市场的买卖力量和趋势强度。

它是根据市场成交量和价格的关系来计算的,可以帮助投资者判断市场的走势和交易机会。

下面将介绍通达信堆量指标的计算公式和应用。

通达信堆量指标的计算公式如下:1. 计算每个交易日的堆量指标值:堆量指标 = (当日成交量 - 前n个交易日的平均成交量) / 前n个交易日的平均成交量2. 计算堆量指标的移动平均值:堆量指标MA = MA(堆量指标, m)其中,n为计算堆量指标的天数,m为计算堆量指标移动平均值的天数。

通达信堆量指标的应用主要有以下几个方面:1. 判断市场的买卖力量:通过计算堆量指标,可以了解市场的买卖力量。

当堆量指标为正值时,表示买盘力量较强,市场可能会上涨;当堆量指标为负值时,表示卖盘力量较强,市场可能会下跌。

投资者可以根据堆量指标的变化来判断市场的买卖力量,从而做出相应的交易决策。

2. 确定市场的趋势强度:通达信堆量指标还可以用来确定市场的趋势强度。

当堆量指标的绝对值较大时,表示市场的趋势较强;当堆量指标的绝对值较小时,表示市场的趋势较弱。

投资者可以通过观察堆量指标的变化来判断市场的趋势强度,从而选择适合的交易策略。

3. 寻找交易机会:通达信堆量指标可以帮助投资者寻找交易机会。

当堆量指标出现明显的正向或负向突破时,表示市场的买卖力量发生了较大的变化,可能会出现较大的涨跌行情。

投资者可以根据堆量指标的突破情况来选择适合的买入或卖出时机,以获取更好的投资收益。

总之,通达信堆量指标是一种重要的技术分析工具,可以帮助投资者判断市场的买卖力量和趋势强度,寻找交易机会。

投资者可以根据堆量指标的计算公式和应用方法,结合其他技术指标和基本面分析,制定合理的投资策略,提高投资成功的概率。

但需要注意的是,技术分析工具只是辅助决策的工具,投资者还需要结合自身的风险承受能力和市场情况,做出理性的投资决策。

通达信智慧趋势主图指标公式

通达信智慧趋势主图指标公式

通达信智慧趋势主图指标公式每天早上9:30分准时更新--最新股票指标,期待您的阅读评价强弱线:REF(ma(COst(80),2),1),COLORWHITE,DOTLINE;X_3:=强弱线;均线:(EMA(EMA(EMA(C,15),3),3)),COLORWHITE;DRAWKLINE(H,O,L,C);DRAWBAND(强弱线,RGB(118,118,118),均线,RGB(118,118,118));压力:REF(MA(COST(80),2),1),COLORWHITE,DOTLINE;支撑:(EMA(EMA(EMA(C,15),3),3)),COLORWHITE;{止损下限}B1:=MA(C,1);B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1);SMA2:=MA(B2,3);止损下限:IF(LLV(MA(B2,8),3)<B2,LLV(MA(B2,8),3),B2);IF(B2>SMA2,B2,DRAWNULL),COLORRED,LINETHICK2;IF(B2<SMA2,B2,DRAWNULL),COLORGREEN,LINETHICK2;{红色K}STICKLINE(((C >= 均线) AND (C >= O)),H,L,0,1),COLORRED;STICKLINE(((C >= 均线) AND (C >= O)),O,C,3,1),COLORRED;STICKLINE(((C >= 均线) AND (C <= O)),H,L,0,0),COLORRED;STICKLINE(((C >= 均线) AND (C <= O)),O,C,3,0),COLORRED;{绿色K}STICKLINE(((C < 均线) AND (C >= O)),H,L,0,0),COLORGREEN;STICKLINE(((C < 均线) AND (C >= O)),O,C,3,0),COLORGREEN;STICKLINE(((C < 均线) AND (C <= O)),H,L,0,0),COLORGREEN;STICKLINE(((C < 均线) AND (C <= O)),O,C,3,0),COLORGREEN;{涨停K}ZT:=C/REF(C,1)>1.0993 AND C=H;STICKLINE(ZT,C,O,3,0),COLORDD00DD; STICKLINE(ZT,C,O,2,0),COLORFF00FF; STICKLINE(ZT,C,O,1.5,0),COLORFF00FF; STICKLINE(ZT,C,O,0.5,0),COLORFABBFF;阅读后把下面的在看和赞点亮,并且设定为星标系统才会给你主动推荐最新指标。

通达信筹码堆积有未来函数

通达信筹码堆积有未来函数

通达信筹码堆积有未来函数筹码堆积公式,有未来函数。

观察红色筹码,一旦是某一天突然减少才是抄底机会,但需要自己研判,最好多结合别的指标来做共振参考。

其余用法,比如买点等需要多观察过去案例。

未来函数并不是一无是处,对会用的人来说,未来函数也是宝贝,就看你怎么去使用他。

VAR1:=13;VAR2:=30;VAR3:=(CLOSE+OPEN+LOW+HIGH)/4;VAR4:=WINNER(VAR3*1.04)*100;VAR5:=WINNER(VAR3*0.96)*100;A04:VAR5,NODRAW;A08:VAR4-VAR5,NODRAW;A06:100-VAR4,NODRAW;STICKLINE(1,100,VAR4,2,1),COLORGREEN;STICKLINE(1,0,A08,2,0),COLOR000080;STICKLINE(1,0,A04,2,0),COLORRED;中轴:50,DOTLINE,COLORGREEN;VAR6:=EMA(CLOSE,60)-EMA(CLOSE,300);VAR7:=EMA(VAR6,300);VAR8:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;买入线:SMA(VAR8,2,1),COLORWHITE;卖出线:SMA(买入线,2,1),COLORGREEN;VAR9:=CLOSE/REF(CLOSE,3)>=1.1;VAR10:=BACKSET(VAR9,3);大涨买:IF(VAR10 AND COUNT(VAR10,3)=1,50,0),LINETHICK0;DRAWTEXT(大涨买,50,5);STICKLINE(FILTER(大涨买,5)=1,0,20,3,0),COLORYELLOW;DRAWTEXT(大涨买 AND 大涨买,LOW*0.8,6),COLORWHITE;VAR11:=PEAKBARS(3,15,1)<10;VAR12:=IF(VAR11=1,50,0);VAR13:=IF(VAR12=50,100,0);卖:IF(VAR13>REF(VAR13,1),50,0),LINETHICK0;STICKLINE(FILTER(卖,5)=1,0,20,3,0),COLORFF8800;DRAWTEXT(卖 AND 卖,LOW*0.6,7),COLORWHITE;VAR14:=TROUGHBARS(3,15,1)<10;VAR15:=IF(VAR14=1,50,0);VAR16:=IF(VAR15=50,50,0);买:IF(VAR16>REF(VAR16,1),40,0),LINETHICK0;DRAWTEXT(买,40,8);{分析家公式网}STICKLINE(FILTER(买,5)=1,0,20,2,0),COLOR999999;DRAWTEXT(买 AND 买,LOW*0.2,9),COLORWHITE;DRAWRECTREL(323,999,0,632.400024,IF(120,RGB(0,20,0),0));VAR17:=L2_AMO(0,2)/10000;VAR18:=L2_AMO(1,2)/10000;VAR19:=L2_AMO(2,2)/10000;VAR20:=L2_AMO(3,2)/10000;VAR21:=(-L2_AMO(0,3))/10000;VAR22:=(-L2_AMO(1,3))/10000;VAR23:=(-L2_AMO(2,3))/10000;VAR24:=(-L2_AMO(3,3))/10000;VAR25:=VAR17+VAR18+VAR19+VAR20+(VAR21+VAR22+V AR23+VAR24);VAR26:=VAR19+VAR23;VAR27:=VAR17+VAR18+(VAR21+VAR22);VAR28:=SUM(VAR27,3);VAR29:=SUM(VAR27,10);VAR30:=VAR17+VAR21;VAR31:=VAR18+VAR22;VAR32:=VAR20+VAR24;VAR33:=VAR17+VAR18;VAR34:=VAR21+VAR22;VAR35:=VAR19+VAR20;VAR36:=VAR23+VAR24;VAR37:=SUM(VAR25,3);VAR38:=SUM(VAR25,10);VAR39:=LARGEINTRDVOL*100/VOL;VAR40:=LARGEOUTTRDVOL*100/VOL;VAR41:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0);VAR42:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0);VAR43:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*100/CAPITAL;DRAWRECTREL(100,910,2,805,IF(CONST(VAR41)>0,RGB(192, 17,127),RGB(0,100,0)));DRAWRECTREL(207,910,115,805,IF(CONST(VAR42)>0,RGB(1 92,17,27),RGB(0,100,0)));DRAWRECTREL(324,910,219,805,IF(CONST(VAR43)>0,RGB(1 92,17,27),RGB(0,100,0)));DRAWTEXT_FIX(1,0.003,0.807,0,STRCAT(10,CON2STR(VAR41 ,2))),COLOR00AA00;DRAWTEXT_FIX(1,0.118,0.807,0,STRCAT(11,CON2STR(VAR42 ,2))),COLORWHITE;DRAWTEXT_FIX(1,0.223,0.807,0,STRCAT(12,CON2STR(VAR43 ,2))),COLORWHITE;VAR44:=IF(VAR41>0 AND REF(VAR41,1)<0,1,0);VAR45:=IF(VAR41>0 AND REF(VAR41,1)>0 AND REF(VAR41,2)<0,2,VAR44);VAR46:=IF(VAR41>0 AND REF(VAR41,1)>0 AND REF(VAR41,2)>0 AND REF(VAR41,3)<0,3,VAR45);VAR47:=IF(VAR41>0 AND REF(VAR41,1)>0 AND REF(VAR41,2)>0 AND REF(VAR41,3)>0 AND REF(VAR41,4)<0,4,VAR46);VAR48:=IF(VAR41>0 AND REF(VAR41,1)>0 AND REF(VAR41,2)>0 AND REF(VAR41,3)>0 AND REF(VAR41,4)>0 AND REF(VAR41,5)<0,5,VAR47);VAR49:=IF(VAR41>0 AND REF(VAR41,1)>0 AND REF(VAR41,2)>0 AND REF(VAR41,3)>0 AND REF(VAR41,4)>0 AND REF(VAR41,5)>0 AND REF(VAR41,6)<0,6,VAR48);VAR50:=IF(VAR41>0 AND REF(VAR41,1)>0 AND REF(VAR41,2)>0 AND REF(VAR41,3)>0 AND REF(VAR41,4)>0 AND REF(VAR41,5)>0 AND REF(VAR41,6)>0 AND REF(VAR41,7)<0,7,VAR49);VAR51:=IF(VAR41>0 AND REF(VAR41,1)>0 AND REF(VAR41,2)>0 AND REF(VAR41,3)>0 AND REF(VAR41,4)>0 AND REF(VAR41,5)>0 AND REF(VAR41,6)>0 AND REF(VAR41,7)>0 AND REF(VAR41,8)<0,8,VAR50);VAR52:=IF(VAR41>0 AND REF(VAR41,1)>0 AND REF(VAR41,2)>0 AND REF(VAR41,3)>0 AND REF(VAR41,4)>0 AND REF(VAR41,5)>0 AND REF(VAR41,6)>0 AND REF(VAR41,7)>0 AND REF(VAR41,8)>0 AND REF(VAR41,9)<0,9,VAR51);VAR53:=IF(VAR41>0 AND REF(VAR41,1)>0 AND REF(VAR41,2)>0 AND REF(VAR41,3)>0 AND REF(VAR41,4)>0 AND REF(VAR41,5)>0 AND REF(VAR41,6)>0 AND REF(VAR41,7)>0 AND REF(VAR41,8)>0 AND REF(VAR41,9)>0,10,VAR52);DRAWTEXT_FIX(1,0.075,0.803,0,STRCAT(STRCAT(13,CON2STR(VAR53,0)),14)),COLORWHITE;VAR54:=IF(VAR42>0 AND REF(VAR42,1)<0,1,0);VAR55:=IF(VAR42>0 AND REF(VAR42,1)>0 AND REF(VAR42,2)<0,2,VAR54);VAR56:=IF(VAR42>0 AND REF(VAR42,1)>0 AND REF(VAR42,2)>0 AND REF(VAR42,3)<0,3,VAR55);VAR57:=IF(VAR42>0 AND REF(VAR42,1)>0 AND REF(VAR42,2)>0 AND REF(VAR42,3)>0 AND REF(VAR42,4)<0,4,VAR56);VAR58:=IF(VAR42>0 AND REF(VAR42,1)>0 AND REF(VAR42,2)>0 AND REF(VAR42,3)>0 AND REF(VAR42,4)>0 AND REF(VAR42,5)<0,5,VAR57);VAR59:=IF(VAR42>0 AND REF(VAR42,1)>0 AND REF(VAR42,2)>0 AND REF(VAR42,3)>0 AND REF(VAR42,4)>0 AND REF(VAR42,5)>0 AND REF(VAR42,6)<0,6,VAR58);VAR60:=IF(VAR42>0 AND REF(VAR42,1)>0 AND REF(VAR42,2)>0 AND REF(VAR42,3)>0 AND REF(VAR42,4)>0 AND REF(VAR42,5)>0 AND REF(VAR42,6)>0 AND REF(VAR42,7)<0,7,VAR59);VAR61:=IF(VAR42>0 AND REF(VAR42,1)>0 AND REF(VAR42,2)>0 AND REF(VAR42,3)>0 AND REF(VAR42,4)>0 AND REF(VAR42,5)>0 AND REF(VAR42,6)>0 AND REF(VAR42,7)>0 AND REF(VAR42,8)<0,8,VAR60);VAR62:=IF(VAR42>0 AND REF(VAR42,1)>0 AND REF(VAR42,2)>0 AND REF(VAR42,3)>0 AND REF(VAR42,4)>0 AND REF(VAR42,5)>0 AND REF(VAR42,6)>0 AND REF(VAR42,7)>0 AND REF(VAR42,8)>0 AND REF(VAR42,9)<0,9,VAR61);VAR63:=IF(VAR42>0 AND REF(VAR42,1)>0 AND REF(VAR42,2)>0 AND REF(VAR42,3)>0 AND REF(VAR42,4)>0REF(VAR42,7)>0 AND REF(VAR42,8)>0 AND REF(VAR42,9)>0,10,VAR62);DRAWTEXT_FIX(1,0.183,0.803,0,STRCAT(STRCAT(13,CON2ST R(VAR63,0)),14)),COLORWHITE;VAR64:=IF(VAR43>0 AND REF(VAR43,1)<0,1,0);VAR65:=IF(VAR43>0 AND REF(VAR43,1)>0 AND REF(VAR43,2)<0,2,VAR64);VAR66:=IF(VAR43>0 AND REF(VAR43,1)>0 AND REF(VAR43,2)>0 AND REF(VAR43,3)<0,3,VAR65);VAR67:=IF(VAR43>0 AND REF(VAR43,1)>0 AND REF(VAR43,2)>0 AND REF(VAR43,3)>0 AND REF(VAR43,4)<0,4,VAR66);VAR68:=IF(VAR43>0 AND REF(VAR43,1)>0 AND REF(VAR43,2)>0 AND REF(VAR43,3)>0 AND REF(VAR43,4)>0 AND REF(VAR43,5)<0,5,VAR67);VAR69:=IF(VAR43>0 AND REF(VAR43,1)>0 AND REF(VAR43,2)>0 AND REF(VAR43,3)>0 AND REF(VAR43,4)>0 AND REF(VAR43,5)>0 AND REF(VAR43,6)<0,6,VAR68);VAR70:=IF(VAR43>0 AND REF(VAR43,1)>0 AND REF(VAR43,2)>0 AND REF(VAR43,3)>0 AND REF(VAR43,4)>0 AND REF(VAR43,5)>0 AND REF(VAR43,6)>0 AND REF(VAR43,7)<0,7,VAR69);VAR71:=IF(VAR43>0 AND REF(VAR43,1)>0 AND REF(VAR43,2)>0 AND REF(VAR43,3)>0 AND REF(VAR43,4)>0 AND REF(VAR43,5)>0 AND REF(VAR43,6)>0 AND REF(VAR43,7)>0 AND REF(VAR43,8)<0,8,VAR70);VAR72:=IF(VAR43>0 AND REF(VAR43,1)>0 AND REF(VAR43,2)>0 AND REF(VAR43,3)>0 AND REF(VAR43,4)>0 AND REF(VAR43,5)>0 AND REF(VAR43,6)>0 ANDREF(VAR43,9)<0,9,VAR71);VAR73:=IF(VAR43>0 AND REF(VAR43,1)>0 AND REF(VAR43,2)>0 AND REF(VAR43,3)>0 AND REF(VAR43,4)>0 AND REF(VAR43,5)>0 AND REF(VAR43,6)>0 AND REF(VAR43,7)>0 AND REF(VAR43,8)>0 AND REF(VAR43,9)>0,10,VAR72);DRAWTEXT_FIX(1,0.285,0.803,0,STRCAT(STRCAT(13,CON2ST R(VAR73,0)),14)),COLORWHITE;VAR74:=LARGEINTRDVOL-LARGEOUTTRDVOL;VAR75:=LARGEINTRDVOL-LARGEOUTTRDVOL;VAR76:=(LARGEINTRDVOL+LARGEOUTTRDVOL)*10000/(2* FINANCE(7));VAR77:=(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/10000;DRAWRECTREL(100,765,2,668,IF(CONST(VAR77)>0,RGB(192, 17,27),RGB(0,50,150)));DRAWTEXT_FIX(1,0.005,0.665,0,STRCAT(15,CON2STR(VAR77 ,2))),COLORWHITE;DRAWRECTREL(207,765,115,668,IF(CONST(VAR75)>0,RGB(1 92,17,27),RGB(0,50,150)));DRAWRECTREL(324,765,219,668,IF(CONST(DRAWTEXT_FIX( 1,0.118,0.665,0,STRCAT(16,CON2STR(VAR76,2))),COLORWHITE)> 0,RGB(192,17,27),RGB(0,50,150)));DRAWTEXT_FIX(1,0.223,0.665,0,STRCAT(STRCAT(17,CON2ST R(VAR73,0)),18)),COLORYELLOW;DRAWRECTREL(304,632,0,0.4,IF(120,RGB(0,20,0),0));VAR78:=ACTINVOL;VAR79:=ACTOUTVOL;VAR80:=VAR78*100/(VAR78+VAR79);VAR81:=VAR79*100/(VAR78+VAR79);买卖差:VAR78+VAR79,NODRAW,COLORCYAN;DRAWTEXT_FIX(1,0.005,0,0,STRCAT(STRCAT(19,CON2STR(VA R78,1)),20)),COLORRED;DRAWTEXT_FIX(1,0.005,0.2,0,STRCAT(STRCAT(21,CON2STR( VAR79,1)),20)),COLORGREEN;DRAWRECTREL(100,90,90+CONST(VAR80*300/100),20,RGB( 250,0,0));DRAWRECTREL(100,290,90+CONST(VAR81*300/100),220,R GB(0,250,0));VAR82:=ACTINVOL-ACTOUTVOL;VAR83:=(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/10000;DRAWTEXT_FIX(1,0.005,0.35,0,STRCAT(STRCAT(22,CON2STR (VAR83,1)),23)),COLORRED;DRAWTEXT_FIX(1,0.15,0.35,0,STRCAT(STRCAT(24,CON2STR( VAR27,1)),23)),COLORRED;DRAWTEXT_FIX(1,0.005,0.5,0,STRCAT(STRCAT(25,CON2STR( VAR74,1)),26)),COLORWHITE;DRAWTEXT_FIX(1,0.15,0.5,0,STRCAT(STRCAT(27,CON2STR(V AR82,1)),26)),COLORWHITE;注意:指标是参考,决策在自己。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

【通达信】成交堆积(堆积图、主图)-指标公式源码
DA1:=IF(130>TOTALBARSCOUNT,TOTALBARSCOUNT,130);
DA:=IF(CURRBARSCOUNT>DA1,0,DA1);
HI:=REFDATE(HHV(H,DA),DATE);
LO:=REFDATE(LLV(L,DA),DATE);
C1:=IF(CURRBARSCOUNT<=DA,C,DRAWNULL);
GZ:=EXP(LN(HI/LO)/10);
LH1:=SUM(IF(C1>=(HI/GZ),V,0),DA);
LH2:=SUM(IF(C1>=(HI/POW(GZ,2)) AND C1<(HI/GZ),V,0),DA);
LH3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA);
LH4:=SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA);
LH5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA);
LH6:=SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA);
LH7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA);
LH8:=SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA);
LH9:=SUM(IF(C1>=(LO*GZ) AND C1<LO*POW(GZ,2),V,0),DA);
LH10:=SUM(IF(C1>=LO AND C1<LO*GZ,V,0),DA);
L1:=REFDATE(HHV(LH1,DA),DATE),LINETHICK0;
L2:=REFDATE(HHV(LH2,DA),DATE),LINETHICK0;
L3:=REFDATE(HHV(LH3,DA),DATE),LINETHICK0;
L4:=REFDATE(HHV(LH4,DA),DATE);
L5:=REFDATE(HHV(LH5,DA),DATE);
L6:=REFDATE(HHV(LH6,DA),DATE);
L7:=REFDATE(HHV(LH7,DA),DATE);
L8:=REFDATE(HHV(LH8,DA),DATE);
L9:=REFDATE(HHV(LH9,DA),DATE);
L10:=REFDATE(HHV(LH10,DA),DATE);
SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);
{堆积图代码}
STICKLINE(CEILING(DA*L1/SS)*3>=CURRBARSCOUNT,HI*99/100,HI/GZ,9,0)COLO R3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*99/100,HI/P OW(GZ,2),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*99/100,HI/P OW(GZ,3),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*99/100,HI/P OW(GZ,4),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*99/100,HI/P OW(GZ,5),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*99/100,HI/P OW(GZ,6),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*99/100,HI/P OW(GZ,7),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3 )*99/100,9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2 )*99/100,9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)*99/100, 9,0)COLOR3C3C3A,LINETHICK3;
DRAWKLINE(H,O,L,C);
【通达信】成交堆积(堆积图、主图)-指标公式效果图
(文档来源:若水财经社区)。

相关文档
最新文档