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

通达信源码:会心分时主图,股市蛟龙狂升出水,哼哈波段

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

1、会心分时主图

{会心分时主图}
{主图叠加}
 
大单买量:=SUM(IF(CLOSE>REF(CLOSE,1) AND VOL>4000,VOL/1000,0),0);
大单卖量:=SUM(IF(CLOSE<REF(CLOSE,1) AND VOL>4000,VOL/1000,0),0);
买单总量:=SUM(IF(CLOSE>REF(CLOSE,1),VOL/1000,0),0);
卖单总量:=SUM(IF(CLOSE<REF(CLOSE,1),VOL/1000,0),0);
小单买量:=买单总量-大单买量;
小单卖量:=卖单总量-大单卖量;
TDXSTEP293:DRAWRECTREL(0,500,147,999.400024,IF(120,RGB(10,0,0),0));
大宗进:=大单买量;
大宗出:=大单卖量;
非大宗进:=小单买量;
非大宗出:=小单卖量;
主力净流入:=大单买量-大单卖量;
散户净流入:=小单买量-小单卖量;
净流入:=买单总量-卖单总量;
DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出)))));
TDXSTEP294:DRAWRECTREL(0,CONST(930-ABS(大宗进)*250/DAZHIV),35,950,IF(CONST(大宗进>0),RGB(255,0,0),RGB(0,255,0)));
TDXSTEP295:DRAWRECTREL(37,CONST(930-ABS(大宗出)*250/DAZHIV),72,950,IF(CONST(大宗出>0),RGB(0,255,0),RGB(255,0,0)));
TDXSTEP296:DRAWRECTREL(75,CONST(930-ABS(非大宗进)*250/DAZHIV),110,950,IF(CONST(非大宗进>0),RGB(150,0,0),RGB(0,150,150)));
TDXSTEP297:DRAWRECTREL(112,CONST(930-ABS(非大宗出)*250/DAZHIV),147,950,IF(CONST(非大宗出>0),RGB(0,150,150),RGB(150,0,0)));
TDXSTEP298:DRAWRECTREL(150,CONST(940-ABS(净流入)*250/DAZHIV)-20,190,950,IF(CONST(净流入>0),RGB(255,255,0),RGB(23,125,255)));
均价:SUM(VOL*CLOSE,0)/SUM(VOL,0),COLORYELLOW;
地:EMA(均价,50)/0.97,COLORGREEN,LINETHICK2;
TDXSTEP299:IF(地>REF(地,1),地,DRAWNULL),COLORRED,LINETHICK2;
平衡线:(均价+地)/2,POINTDOT,COLORGRAY;
买单次数:=COUNT(VOL>4000 AND CLOSE>REF(CLOSE,1),0);
黄次数:COUNT(VOL>DYNAINFO(16)*10 AND CLOSE>REF(CLOSE,1),0),NODRAW,COLORYELLOW;
TDXSTEP300:DRAWICON(买单次数>REF(买单次数,1) AND 黄次数>REF(黄次数,1) AND CROSS(CLOSE,地),CLOSE,7);
TDXSTEP301:DRAWICON(小单买量>小单卖量 AND 大单买量>小单买量 AND 小单卖量>大单卖量,均价,38);
TDXSTEP302:SUM(VOL*CLOSE,0)/SUM(VOL,0),COLORYELLOW;
TDXSTEP303:CLOSE,COLORWHITE;



2、股市蛟龙狂升出水

N:=27;
M:=8;
TYP:=(HIGH + LOW + CLOSE)/3;
CC1:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORFF00FF;
蛟龙: 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),LINETHICK2 , COLORYELLOW;
C1:=SMA(CC1,3,1);
C2:=SMA(C1,3,1);
龙宫:IF(CROSS(蛟龙,MA(蛟龙,10)) AND 蛟龙<=10,35,0),LINETHICK3,COLORMAGENTA;
蛟龙出宫:IF(CROSS(蛟龙,MA(蛟龙,10)) AND 蛟龙<35,70,0),LINETHICK3,COLORRED;
 C3:=3*C1-2*C2;
 CB1:=EMA(C3,5);
 CB2:=REF(CB1,1);
 VAR1:=DRAWICON(CROSS(蛟龙,62),68,1);
 VAR2:=DRAWICON(CROSS(蛟龙,72),70,1);
 LC:= REF(CLOSE,1);
 RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
 RSI:=(RSI1-50)*5,LINETHICK2,COLORFFFFFF;
 VAR3:=DRAWICON(CROSS(蛟龙,66),72,1);
 VAR4:=DRAWICON(CROSS(蛟龙,68),66,1);
 R1:=SMA(RSI,3,1);
 D1:=SMA(R1,3,1);
 J1:=3*R1-2*D1;
 VAR5:=DRAWICON(CROSS(76,蛟龙),70,2);
 VAR6:=DRAWICON(CROSS(68,蛟龙),84,2);
 RR1:=EMA(J1,5);
 RR2:=REF(RR1,1);
 RR:=RR1>RR2;
 VAR7:=DRAWICON(CROSS(66,蛟龙),80,2);
 VAR8:=DRAWICON(CROSS(64,蛟龙),70,2);
 RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 K:=SMA(RSV,3,1);
 K1:=(K-50)*5,COLOR00FF00;
买入警戒:IF(蛟龙<=10,30,0),STICK,COLORFFA2AE,LINETHICK5; 
买入信号:IF(CROSS(蛟龙,10),45,0),STICK,COLORRED,LINETHICK4; 
 K2:=SMA(K1,3,1);
 D2:=SMA(K2,3,1);
 J2:=3*K2-2*D2;
 DRAWTEXT(买入信号,40,'关注') , COLORYELLOW; 
 BB1:=EMA(J2,5);
卖出警戒:STICKLINE(蛟龙>=90,70,40,4,0) , COLORGREEN;
蛟龙出现:RR AND NOT(REF(RR,1)) AND  (RR1<-100 AND BB1<-100) AND CB1<-100,COLORFF0080;
卖出信号:IF(CROSS(84,蛟龙),100,0),STICK,COLOR77AAFF,LINETHICK5;
 STICKLINE(蛟龙出现,80,1,2,0),COLOR800040;
 STICKLINE(蛟龙出现,80,1,1.5,0),COLORFF0080;
 WWW58188COM:=(HIGH+LOW+CLOSE*2)/4;
 DRAWTEXT(卖出信号,98,'逃!') ,COLOR77AAFF ; 
蛟龙二:MA(蛟龙,9),LINETHICK2 ,COLORFF0000;
 STICKLINE(蛟龙出现,80,1,1,0),COLOR800080;
 STICKLINE(蛟龙出现,80,1,0.3,0),COLORFF00FF;
 IF(CROSS(蛟龙,MA(蛟龙,6)) AND 蛟龙二 <45,蛟龙二,0),COLORCCB3E2 ,LINETHICK3 ;
 DRAWTEXT(蛟龙出现,50,' 蛟龙出现'),COLORFF0080;
 DRAWICON(蛟龙出现>0,83,9); 
 



3、哼哈波段,波段指标有买卖指示( 股 民 学 院 : http://www.58188.com )

{哼哈波段}
 
VAR1:=IF(KDJ.J(27,3,3)<0,10,0);
VAR2:=CROSS(9.9,VAR1);
VAR3:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,5);
VAR6:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,5);
VAR7:=IF(DATETODAY(DATE)<11699,1,DRAWNULL);
VAR8:=MA(VAR6,2)*VAR7;
AA:STICKLINE(VAR6>VAR8,VAR6,VAR8,3,1)*VAR7,COLORRED;
VAR9:=IF(1<2442.459961*500,1,DRAWNULL);
AAA:IF(VAR6>VAR8,VAR6,VAR8),COLORRED;
VAR10:=STICKLINE(VAR6>VAR8 AND REF(VAR6,1)<30,VAR6,VAR8,3,1);
STICKLINE(VAR6<=VAR8,VAR6,VAR8,3,1)*VAR9,COLORFFCC66;
DRAWICON(CROSS(9.9,VAR1),VAR6-12,5)*VAR9;
STICKLINE(CROSS(9.9,VAR1),VAR6+5,VAR8-4,3,1)*VAR9,COLORYELLOW;
VAR11:=STICKLINE(VAR10,VAR6+5,VAR8-4,3,1)*VAR7;
STICKLINE(FILTER(VAR11,5),VAR6+5,VAR8-4,3,1)*VAR9,COLORYELLOW;
V20:20,COLORGREEN;
V50:50,COLORGREEN;
V80:80,COLORGREEN;
VAR12:=IF(KDJ.J(27,3,3)>100,90,100);
DRAWICON(CROSS(VAR12,99.900002),VAR6+12,6)*VAR7;
VAR13:=VAR6>VAR8 AND REF(VAR6,1)>70;
STICKLINE(CROSS(VAR12,99.900002),VAR6,VAR8-9,3,1)*VAR7,COLORGREEN;
VAR14:=STICKLINE(VAR13,VAR6+5,VAR8-4,3,1);
STICKLINE(FILTER(VAR14,5),VAR6+5,VAR8-4,3,1),COLORGREEN;
DRAWICON(FILTER(VAR10,5),VAR6-8,34);
DRAWICON(FILTER(VAR13,5),VAR6+8,35);

上一篇:通达信源码:一招断牛熊,优化后的超级MACD公式,涨停回马枪主副图

下一篇:通达信源码:空中加油组合,清泉子低位进,超牛高位逃顶