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

通达信源码:股价准备启动,港资持股,防空警报

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

股价准备启动:

 {股价准备启动 双重红箭头抢}

VAR1:=3;
VAR2:=(HIGH+LOW+CLOSE*2)/4;
VAR3:=EMA(VAR2,17);
VAR4:=STD(VAR2,17);
VAR5:=((VAR2-VAR3)/VAR4*100+200)/4;
VAR6:=(EMA(VAR5,5)-25)*1.56;
VAR7:=(HHV(HIGH,3)+LLV(LOW,3)+CLOSE*2)/4;
VAR8:=EMA(VAR7,25);
VAR9:=STD(VAR7,25);
VAR10:=((VAR7-VAR8)/VAR9*100+200)/4;
VAR11:=(EMA(VAR10,20)-25)*1.56;
VAR12:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR13:=EMA(VAR12,9);
VAR14:=(VAR12-VAR13)*2;
AK:EMA(VAR6,2)*1.22;
AD:EMA(AK,2);
AJ:3*AK-2*AD;
BK:EMA(VAR11,3)*1.22,COLORWHITE;
BD:EMA(BK,3),COLORLIBLUE;
BJ:3*BK-2*BD,COLORLIGREEN;
VAR15:=MA((3*CLOSE+LOW+OPEN+HIGH)/6,3);
IF(CLOSE>=SAR(4,2,20)*0.98,BD,DRAWNULL),COLORLIRED;
IF(CLOSE<=SAR(4,2,20)*0.98,BD,DRAWNULL),COLORBLUE;
VAR16:=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);
DRAWICON(CROSS(VAR15,SAR(4,2,20))=1,BD-10,7);
DRAWICON(CROSS(SAR(4,2,20),VAR15)=1,BD+10,8);
DRAWICON(CROSS(AD,AK),AD+10,2);
DRAWICON(CROSS(AK,AD) AND UPNDAY((OPEN+CLOSE)/2,1),AD-10,1);
DRAWICON(CROSS(AD,AK) AND AK<BK AND DOWNNDAY(MA(CLOSE,18),1),AD+15,12);
DRAWICON(CROSS(AK,AD) AND AK>BK AND UPNDAY(MA(CLOSE,18),1),AD-15,11);
LA:100;
LB:0;
LC:80;
LD:20;
IF(BD>=REF(BD,1) AND VAR14>=0,BD,DRAWNULL),STICK,COLORRED;
IF(BD<=REF(BD,1) AND VAR14<=0,BD,DRAWNULL),STICK,COLORBLUE;
股价准备启动:IF(CROSS(VAR16,VAR1),100,0),COLORRED;
DRAWTEXT_FIX(CLOSE>OPEN,0.05,0.05,0,6),COLORRED;



港资持股:

港资持股指标,直接导入

香港的外资资金持股很多都是打牛股,

用法:通达信软件,点击左上角的“系统”,再点击其下菜单里的“专业财务数据”,记得每天下载更新这个数据。

NOTEXT曲线:GPJYVALUE(6,1,1),COLORFFFF00;

IF((GPJYVALUE(6,1,1)/FINANCE(7))>0.01,NOTEXT曲线,DRAWNULL),LINETHICK1,COLORRED;

IF((GPJYVALUE(6,1,1)/FINANCE(7))=0,NOTEXT曲线,DRAWNULL),LINETHICK1,COLORWHITE;

IF((GPJYVALUE(6,1,1)/FINANCE(7))>0 AND (GPJYVALUE(6,1,1)/FINANCE(7))<0.01,NOTEXT曲线,DRAWNULL),LINETHICK1,COLORCYAN;

持股量:GPJYVALUE(6,1,1)/10000,COLORLIBLUE;

万股:DRAWNULL;

占流通比:(GPJYVALUE(6,1,1)/FINANCE(7))*100,NODRAW;

占总股比:(GPJYVALUE(6,1,1)/FINANCE(1))*100,NODRAW;

增减万股:(GPJYVALUE(6,1,1)-REF(GPJYVALUE(6,1,1),1))/10000;

增减:=GPJYVALUE(6,1,1)-REF(GPJYVALUE(6,1,1),1);

IF(增减<0,增减,DRAWNULL),STICK,LINETHICK4,COLORCYAN;

IF(增减=0,增减,DRAWNULL),STICK,LINETHICK4,COLORWHITE;

IF(增减>0,增减,DRAWNULL),STICK,LINETHICK4,COLORRED;




防空警报

适合手机版和PC版,黄色进,绿色出,拉响防空警报坚决出( 顶尖财经 股票学院: http://www.58188.com )

80,COLOR888888,;
QW1:=(HIGH+LOW+CLOSE*2)/4;
QW3:=EMA(QW1,10);
QW4:=STD(QW1,10);
QW5:=(QW1-QW3)*100/QW4;
QW6:=EMA(QW5,5);
RK7:=EMA(QW6,10);
涨:EMA(QW6,10)+100/2-5,LINETHICK1,COLORRED,;
跌:=EMA(涨,4),LINETHICK1,COLORFFFF34,;
多线:IF(CROSS(涨,跌) AND 跌<-10,30,0),LINETHICK1,COLORFF00FF,;
空线:IF(CROSS(跌,80),70,100),COLORFF9900,;
买1:=EMA(跌,4),COLORWHITE,;
买2:=EMA(买1,4),COLORGREEN,;
买M3:=EMA(买2,4);
买M4:=EMA(买M3,4);
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),0,0 ),COLORWHITE,;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),8,0 ),COLOR008800,;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),7,0 ),COLOR009900,;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),6,0 ),COLOR00AA00,;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),5,0 ),COLOR00BB00,;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),4,0 ),COLOR00CC00,;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),3,0 ),COLOR00DD00,;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),2,0 ),COLOR00EE00,;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),1,0 ),COLOR00FF00,;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),0,0) ,COLOR00BBFF,;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),8,0) ,COLOR0011FF,;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),7,0) ,COLOR0022FF,;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),6,0) ,COLOR0044FF,;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),5,0) ,COLOR0066FF,;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),4,0) ,COLOR0088FF,;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),3,0) ,COLOR0099FF,;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),2,0) ,COLOR00AAFF,;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),1,0) ,COLOR00BBFF,;
DRAWICON(多线,30,1); 
DRAWICON(CROSS(跌,80),70,2); 
VAR7B:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
DRAWTEXT(VAR7B>0,60,'★探底 '),COLORYELLOW; 
DRAWTEXT(CROSS(涨,跌) AND 跌<20 AND 跌>-10,40,'买入'),COLORCCFF99;
DRAWTEXT(多线>0,-20,'看涨'),COLOR0000FF;
VAR811:=SUMBARS(VOL,(7)*100);
VAR822:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
VAR883:=(CLOSE-VAR822)/VAR822*100;
VAR884:=HHV(VAR883,VAR811);
VAR885:=LLV(VAR883,VAR811);
VAR886:=(VAR883-VAR885)/(VAR884-VAR885)*100;
K:=SMA(VAR886,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
MA1:=MA(J,3);
STICKLINE(FILTER(J>MA1 AND J<=3,5)=1 AND 跌<0,涨,涨+20,6,0),COLORYELLOW,;
DRAWTEXT(FILTER(J>MA1 AND J<=3,5)=1 AND 跌<0,60,'考虑买进'),COLORFFFFFF; 
VAR2:=MA(CLOSE,194);VAR44:=REF(CLOSE,1);
VAR45:=SMA(MAX(CLOSE-VAR44,0),6,1)/SMA(ABS(CLOSE-VAR44),6,1)*100;
STICKLINE(CROSS(84,VAR45),0,VAR2*15+3,3,1),COLORGREEN;
DRAWTEXT(CROSS(84,VAR45),80,'防空警报'),COLORGREEN;

上一篇:通达信公式下载:九五至尊量柱,抓牛 牛1号,顶底主图

下一篇:通达信源码:探针,合并即涨,自用布林