当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信公式多角度监测主力资金异动,换手量能饱和和谐源码,超牛智能指标

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

多角度监测主力资金异动:

多角度监测主力资金异动(通达信公式 副图 源码 测试图)没未来函数

 
 
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,colorred;
卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,colorcyan;
进出量:=买量+卖量,COLOR00FFFF;
STICKLINE(进出量<0,0,进出量,8,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,进出量,8,0),COLOR000099;
STICKLINE(进出量>0,0,进出量,3,0),COLOR0000CC;
STICKLINE(进出量>0,0,进出量,1.5,0),COLOR0000FF;
STICKLINE(进出量>0,0,进出量,0.5,0),COLORCC66FF;
N:=5;
M:=13;
N日内净流入:SUM(进出量,N),LINETHICK2,colorgreen;
流入:IF(N日内净流入>REF(N日内净流入,1),N日内净流入,N),colorred,LINETHICK2;
连红天:BARSCOUNT(进出量>0);
M日内翻红天:COUNT(进出量>0,M),colorred;
走熊天:BARSCOUNT(N日内净流入<0),colorcyan;
走牛天:BARSCOUNT(N日内净流入>0),colorred;
强势天:BARSCOUNT((N日内净流入>REF(N日内净流入,1))>0 AND
N日内净流入>0);
弱势天:BARSCOUNT((N日内净流入<REF(N日内净流入,1))>0 AND
N日内净流入<0);




换手量能饱和,和谐源码:

{换手量能饱和}

{副图}
 
VAR1:=EMA(CLOSE,20);
VAR2:=REF(VAR1,1);
廿日均线斜率:(VAR1-VAR2)/VAR2*100,NODRAW;
VAR3:=(HIGH+LOW+CLOSE)/3;
VAR4:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
VAR5:=VAR4*(VAR3-MIN(CLOSE,OPEN));
VAR6:=VAR4*(MIN(OPEN,CLOSE)-LOW);
VAR7:=VAR4*(HIGH-MAX(OPEN,CLOSE));
VAR8:=VAR4*(MAX(CLOSE,OPEN)-VAR3);
VAR9:=25;
VAR10:=AMOUNT/CLOSE/(HHV(AMOUNT,20)/HHV(CLOSE,20));
VAR11:=11;
VAR12:=VOL/CAPITAL*100;
VAR13:=SUM(VAR12,VAR11);
VAR14:=100*(CLOSE-REF(CLOSE,VAR11))/REF(CLOSE,VAR11);
VAR15:=MA(CLOSE,13);
VAR16:=MA(CLOSE,75);
VAR17:=REF(CLOSE,1);
VAR18:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);
VAR19:=SMA(VAR18,3,1);
VAR20:=3*VAR18-2*VAR19;
VAR21:=DYNAINFO(17)*REF(MA(VOL,5),1);
VAR22:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;
VAR23:=IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR21,VAR22);
VAR24:=IF(VOL>=VAR23 AND PERIOD=5,VOL,VAR23);
VAR25:=VAR24/VOL;
VAR26:=DYNAINFO(23)*VAR25;
VAR27:=DYNAINFO(22)*VAR25;
VAR28:=MA(CLOSE,26)+2*STD(CLOSE,26);
VAR29:=EMA((INDEXC-LLV(INDEXL,11))/(HHV(INDEXH,25)-LLV(INDEXL,11))*4,8)+1;
VAR30:=POW(VAR29,2)-10;
VAR31:=EMA((CLOSE-LLV(LOW,11))/(HHV(HIGH,25)-LLV(LOW,11))*4,8)+1;
VAR32:=IF(1=1,POW(VAR31,2)-10,DRAWNULL);
VAR33:=SUM(VAR12,3);
VAR34:=(CLOSE-REF(CLOSE,3))/REF(CLOSE,3)*100;
VAR35:=CAPITAL*CLOSE;
VAR36:=REF(CLOSE,1);
VAR37:=SMA(MAX(CLOSE-VAR36,0),7,1)/SMA(ABS(CLOSE-VAR36),7,1)*100;
VAR38:=WINNER(CLOSE)*100;
VAR39:=100-VAR36;
VAR40:=ABS(VAR36-VAR37);
VAR41:=BACKSET(ISLASTBAR,1);
VAR42:=IF(EMA(CLOSE,3)>MAX(EMA(CLOSE,13),EMA(CLOSE,55)),1,IF(EMA(CLOSE,3)<MIN(EMA(CLOSE,13),EMA(CLOSE,55)),(-1),0));
DRAWBAND(100,RGB(50,50,0),0,RGB(0,0,0));
庄净入:IF(VAR5-VAR6>0,VAR5-VAR6,0)/10000,NODRAW,COLORRED;
庄净出:IF(VAR5-VAR6<0,VAR5-VAR6,0)/10000,NODRAW,COLORGREEN;
散净入:IF(VAR7-VAR8>0,VAR7-VAR8,0)/10000,NODRAW,COLORGREEN;
散净出:IF(VAR7-VAR8<0,VAR7-VAR8,0)/10000,NODRAW,COLORRED;
量能饱和度:IF(VAR10>1,1,VAR10)*100,NODRAW,COLORYELLOW;
预计换手:IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,MAX(VOL,DYNAINFO(17)*REF(MA(VOL,5),1))/CAPITAL*100,0),NODRAW;
十日换手平均:MA(VAR12,10),NODRAW;
活跃度:IF(DATE>1000101,(MA(VOL,11)+MA(VOL,11*2)+MA(VOL,11*3)+MA(VOL,11*4))/4/CAPITAL*1000,1),NODRAW;
STICKLINE(VAR41,VAR38,0,5,0),COLORRED;
STICKLINE(VAR41,VAR39,0,3,0),COLORYELLOW;
STICKLINE(VAR41,VAR40,0,1,0),COLORMAGENTA;
牛:IF(VAR42=1 AND VOL>1,12,0),COLORRED,LINETHICK4;
熊:STICKLINE(VAR42=(-1) AND VOL>1,0,4,2,0),COLORYELLOW;
马:STICKLINE(VAR42=0 AND VOL>1,0,4,2,0),COLORMAGENTA;
STICKLINE(VAR42=1 AND VOL>1,0,4,2,0),COLORRED;
STICKLINE(CURRBARSCOUNT=VAR9,30*1.9,30*1.5,100,1),COLOR00DDDD;
STICKLINE(CLOSE>OPEN AND CURRBARSCOUNT=VAR9,30*1.88,30*1.52,量能饱和度,0),COLOR0033FF;
STICKLINE(CLOSE>OPEN AND CURRBARSCOUNT=VAR9,30*1.82,30*1.58,量能饱和度,0),COLOR0077FF;
STICKLINE(CLOSE>OPEN AND CURRBARSCOUNT=VAR9,30*1.76,30*1.64,量能饱和度,0),COLOR0099FF;
STICKLINE(CLOSE>OPEN AND CURRBARSCOUNT=VAR9,30*1.7,30*1.7,量能饱和度,0),COLOR00DDFF;
STICKLINE(CLOSE<OPEN AND CURRBARSCOUNT=VAR9,30*1.88,30*1.52,量能饱和度,0),COLORFF7700;
STICKLINE(CLOSE<OPEN AND CURRBARSCOUNT=VAR9,30*1.82,30*1.58,量能饱和度,0),COLORFF9900;
STICKLINE(CLOSE<OPEN AND CURRBARSCOUNT=VAR9,30*1.76,30*1.64,量能饱和度,0),COLORFFBB00;
STICKLINE(CLOSE<OPEN AND CURRBARSCOUNT=VAR9,30*1.71,30*1.69,量能饱和度,0),COLORCYAN;
DRAWTEXT(VAR12<=2 AND ISLASTBAR,50,180);
DRAWTEXT(VAR12>2 AND VAR12<3 AND ISLASTBAR,50,181);
DRAWTEXT(VAR12>3 AND VAR12<5 AND ISLASTBAR,50,182);
DRAWTEXT(VAR12>5 AND VAR12<8 AND ISLASTBAR,50,183);
DRAWTEXT(VAR12>8 AND VAR12<15 AND ISLASTBAR,50,184);
DRAWTEXT(VAR12>15 AND VAR12<25 AND ISLASTBAR,50,185);
DRAWTEXT(VAR12>=25 AND ISLASTBAR,50,186);
DRAWTEXT(VAR13>3*VAR11 AND VAR14>3*VAR11 AND ISLASTBAR,30,187);
DRAWTEXT(VAR13<0.5*VAR11 AND VAR14<VAR11 AND ISLASTBAR,30,188);
DRAWTEXT(VAR13<0.5*VAR11 AND VAR14>(-VAR11) AND VAR14>0 AND ISLASTBAR,10,189);
DRAWTEXT(VAR13>3*VAR11 AND VAR14<(-3)*VAR11 AND ISLASTBAR,30,190);
DRAWTEXT(VAR13>3*VAR11 AND VAR14<VAR11 OR (VAR13<0.5*VAR11 AND VAR14>3*VAR11) OR (VAR13>3*VAR11 AND VAR14>(-VAR11) AND VAR14<0) OR (VAR13<0.5*VAR11 AND VAR14<(-3)*VAR11) AND ISLASTBAR,5,191);
STICKLINE(CURRBARSCOUNT=53,100,0,88,0),COLOR333344;
DRAWTEXT(VOL/CAPITAL>0.075 AND CURRBARSCOUNT=59,80,192),COLORCYAN;
DRAWTEXT(VAR34>0 AND CURRBARSCOUNT=59,90,193);
DRAWTEXT(VAR34<=0 AND CURRBARSCOUNT=59,90,194);
DRAWTEXT(CURRBARSCOUNT=59,60,195),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,50,196),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,40,197),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,20,198),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,10,199),COLORGREEN;
DRAWTEXT(活跃度>=41 AND ISLASTBAR,80,200),COLORGREEN;
DRAWTEXT(活跃度>20 AND 活跃度<=40 AND ISLASTBAR,80,201),COLORGREEN;
DRAWTEXT(活跃度<=20 AND ISLASTBAR,80,202),COLORGREEN;




超牛智能(顶尖财经:股票学院 http://www.58188.com):

Z1:=STRCAT(HYBLOCK,' ');

 Z2:=STRCAT(Z1,DYBLOCK);
 Z3:=STRCAT(Z2,' ');
 DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED;
 HAN:=DATE<1141230;
 当前获利筹码:=IF(WINNER(CLOSE),WINNER(CLOSE)*100,0);
 DRAWKLINE(H,O,L,C);
 九十成本集中:=(COST(95)-COST(5))/(COST(95)+COST(5))*100;
 成本价:COST(九十成本集中),LINETHICK2,COLORMAGENTA;
 入1:IF(成本价>REF(成本价,1),成本价,DRAWNULL),COLORRED,LINETHICK2;
 出1:IF(成本价<REF(成本价,1),成本价,DRAWNULL),COLORGREEN,LINETHICK2;
 STICKLINE(成本价>LOW AND 成本价<HIGH,成本价,MIN(MIN(OPEN,CLOSE),成本价),3.2,0)*HAN,COLOR0077FF;
 STICKLINE(成本价>LOW AND 成本价<HIGH,成本价,MIN(MIN(OPEN,CLOSE),成本价),2.5,0)*HAN,COLOR0099FF;
 STICKLINE(成本价>LOW AND 成本价<HIGH,成本价,MIN(MIN(OPEN,CLOSE),成本价),1.9,0)*HAN,COLOR00BBFF;
 STICKLINE(成本价>LOW AND 成本价<HIGH,成本价,MIN(MIN(OPEN,CLOSE),成本价),1.2,0)*HAN,COLOR00DDFF;
 STICKLINE(成本价>LOW AND 成本价<HIGH,成本价,MIN(MIN(OPEN,CLOSE),成本价),0.3,0)*HAN,COLOR00FFFF;
 STICKLINE(成本价>MIN(C,O) AND 成本价<MAX(C,O),成本价,MIN(OPEN,CLOSE),3.2,0)*HAN,COLOR0077FF;
 STICKLINE(成本价>MIN(C,O) AND 成本价<MAX(C,O),成本价,MIN(OPEN,CLOSE),2.5,0)*HAN,COLOR0099FF;
 STICKLINE(成本价>MIN(C,O) AND 成本价<MAX(C,O),成本价,MIN(OPEN,CLOSE),1.9,0)*HAN,COLOR00BBFF;
 STICKLINE(成本价>MIN(C,O) AND 成本价<MAX(C,O),成本价,MIN(OPEN,CLOSE),1.2,0)*HAN,COLOR00DDFF;
 STICKLINE(成本价>MIN(C,O) AND 成本价<MAX(C,O),成本价,MIN(OPEN,CLOSE),0.3,0)*HAN,COLOR00FFFF;
 STICKLINE(成本价>HIGH,CLOSE,OPEN,3.2,0)*HAN,COLOR0077FF;
 STICKLINE(成本价>HIGH,CLOSE,OPEN,2.5,0)*HAN,COLOR0099FF;
 STICKLINE(成本价>HIGH,CLOSE,OPEN,1.9,0)*HAN,COLOR00BBFF;
 STICKLINE(成本价>HIGH,CLOSE,OPEN,1.2,0)*HAN,COLOR00DDFF;
 STICKLINE(成本价>HIGH,CLOSE,OPEN,0.3,0)*HAN,COLOR00FFFF;
 STICKLINE(成本价>HIGH,HIGH,LOW,0,0),COLORGREEN;
 DF2:=(C-REF(C,1))/REF(C,1)*100>5;
 DF3:=(C-O)/O*100>4;
 当天涨幅:(C-O)/O*100,NODRAW;
 V型反转:=L<成本价 AND DF2;
 V型反转2:=CROSS(C,成本价) AND DF2;
 V型反转3:=L<成本价 AND DF3;
 DRAWTEXT(V型反转,L*0.98,'↖狙击'),COLORCYAN;
 DRAWTEXT(V型反转2,L*0.98,'↖狙击'),COLORCYAN;
 DRAWTEXT(V型反转3,L*0.98,'↖狙击'),COLORCYAN;
 STICKLINE(V型反转=1,C,O,3.2,0),COLORRED;
 STICKLINE(V型反转2=1,C,O,3.2,0),COLORRED;
 STICKLINE(V型反转3=1,C,O,3.2,0),COLORRED;

上一篇:通达信发现猛牛出击,多空线DKX主图,ZMACD指标

下一篇:通达信主力骗钱点,底部选股,优化MACD主图指标