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

通达信源码精选:谷神分时,强龙回头,波段密码

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

1、谷神分时

{谷神分时}

V1:=(C*2+H+L)/4*10; 
V2:=EMA(V1,13)-EMA(V1,34); V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5;
主力撤: IF(V4<=0,V4,0),COLORBLUE;
主力进: IF(V4>=0,V4,0),COLORFF00FF;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4; V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3); VB:=(V9-VA)/2;
大盘资金进场:IF(VB>=0,VB,0),COLORRED;
大盘资金撤走:IF(VB<=0,VB,0),COLORGREEN;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线: EMA(V11,3);
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备现金: STICKLINE(趋势线<=13,0,8,5,0),COLORCC9900;
AA:=(趋势线<=13) AND FILTER((趋势线<=13),15);
DRAWTEXT (AA,20,'准备'),COLORCC9900;
买入股票: STICKLINE(趋势线<=13 AND V12>13,0,16,5,0),COLOR0099FF;
BB:= 趋势线<=13 AND V12>13 AND FILTER((趋势线<=13 AND V12>13),10);
DRAWTEXT (BB,5,'买入'),COLORYELLOW;
卖临界: STICKLINE(趋势线>90 AND 趋势线>REF(趋势线,1),100,95,15,1),COLORFFFF00;
见顶清仓:FILTER(趋势线>90 AND 趋势线<REF(趋势线,1) AND 主力进<REF(主力进,1),8);
DRAWTEXT( 见顶清仓,90,'逃顶'),COLORYELLOW; CC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);
STICKLINE(大盘资金进场 AND 趋势线<13,0,30,10,0),COLORRED; STICKLINE(大盘资金撤走 AND 趋势线>90,0,30,10,0),COLORGREEN;
STICKLINE(主力进 AND 趋势线<13,0,40,10,0),COLORFF00FF; STICKLINE(主力撤 AND 趋势线>90,0,40,10,0),COLORBLUE;



2、强龙回头,捕捉强势回调股

{公式名称: 强龙回头副图

公式描述:
参数数量: 4
参数1: 连板数, 最小: 0, 最大: 9, 缺省: 2
参数2: 涨停数, 最小: 0, 最大: 9, 缺省: 3
参数3: 涨幅至少, 最小: 0, 最大: 10, 缺省: 4
参数4: 龙身涨幅, 最小: 0, 最大: 100, 缺省: 40
公式类型: 技术指标公式-其他类型
画线方法: 副图
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
公式源码:}
连板数:=2;
涨停数:=3;
涨幅至少:=4;
龙身涨幅:=40;
VAR1:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH AND LOW<HIGH;
VAR2:=COUNT(VAR1,2)=连板数;
VAR3:=BARSLAST(VAR2);
VAR4:=BETWEEN(VAR3,3,15);
VAR5:=REF(COUNT(VAR1,20)>=涨停数,3);
VAR6:=REF(HHVBARS(HIGH,11),3)+3;
VAR7:=(REF(HIGH,VAR6)-LLV(LOW,VAR6))/REF(HIGH,VAR6)*100;
VAR8:=(REF(HIGH,VAR6)-REF(LOW,30))/REF(LOW,30)*100;
VAR9:=VAR1 OR ((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>=涨幅至少 AND CLOSE>REF(CLOSE,VAR3)) OR ((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>=涨幅至少 OR (CLOSE-OPEN)/OPEN*100>=涨幅至少+1 AND CLOSE>MA(CLOSE,5));
组合:VAR4 AND VAR5 AND VAR9 AND VAR7>=10 AND VAR7<=30 AND VAR8>=龙身涨幅 AND LOW<=REF(HIGH,VAR6)*0.95 AND VAR6>=3 AND REF(EVERY(CLOSE<MA(CLOSE,5),3),1);
NODRAW,COLORRED;
 
 
{强龙回头选股
参数数量: 4
参数1: 连板数, 最小: 0, 最大: 9, 缺省: 2
参数2: 涨停数, 最小: 0, 最大: 9, 缺省: 3
参数3: 涨幅至少, 最小: 0, 最大: 10, 缺省: 4
参数4: 龙身涨幅, 最小: 0, 最大: 100, 缺省: 40}
连板数:=2;
涨停数:=3;
涨幅至少:=4;
龙身涨幅:=40;
VAR1:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH AND LOW<HIGH;
VAR2:=COUNT(VAR1,2)=连板数;
VAR3:=BARSLAST(VAR2);
VAR4:=BETWEEN(VAR3,3,15);
VAR5:=REF(COUNT(VAR1,20)>=涨停数,3);
VAR6:=REF(HHVBARS(HIGH,11),3)+3;
VAR7:=(REF(HIGH,VAR6)-LLV(LOW,VAR6))/REF(HIGH,VAR6)*100;
VAR8:=(REF(HIGH,VAR6)-REF(LOW,30))/REF(LOW,30)*100;
VAR9:=VAR1 OR ((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>=涨幅至少 AND CLOSE>REF(CLOSE,VAR3)) OR ((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>=涨幅至少 OR (CLOSE-OPEN)/OPEN*100>=涨幅至少+1 AND CLOSE>MA(CLOSE,5));
组合:VAR4 AND VAR5 AND VAR9 AND VAR7>=10 AND VAR7<=30 AND VAR8>=龙身涨幅 AND LOW<=REF(HIGH,VAR6)*0.95 AND VAR6>=3 AND REF(EVERY(CLOSE<MA(CLOSE,5),3),1);
 



3、波段密码

波段密码(通达信公式 副图 源码 测试图)无未来函数
 
一共6个公式,主图副图和4个选股公式
计数的开始,就意味着一个转向 的开始;
底部计数开始一个新的平台,是潜伏期( 股 民 学 院 : http://www.58188.net )
平台上移并计数代表股价要脱离吸筹区将要起涨
平台继续上移形成第三次计数,这时候白线托底绿线殿后股价进入强势阶段;
当顶部出现紫柱子上半部分空心并计数,小心逃顶。

 
{潜伏追涨停 副图源码}
X_1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
X_2:=SMA(X_1,9,1)+100;
X_3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_4:=SMA(X_3,3,1);
X_5:=SMA(X_4,3,1)+100;
X_6:=X_5-X_2;
X_7:=IF(X_6>45,X_6-45,0);
X_8:=IF(CLOSE>OPEN,CLOSE,OPEN);
X_9:=IF(CLOSE>OPEN,OPEN,CLOSE);
X_10:=LLV(X_8,4);
X_11:=HHV(X_9,4);
X_12:=X_8>=X_10 AND X_9<=X_10 AND X_8>=X_11 AND X_9<=X_11;
X_13:=REF(X_8,1)>=X_10 AND REF(X_9,1)<=X_10 AND REF(X_8,1)>=X_11 AND REF(X_9,1)<=X_11;
X_14:=REF(X_8,2)>=X_10 AND REF(X_9,2)<=X_10 AND REF(X_8,2)>=X_11 AND REF(X_9,2)<=X_11;
X_15:=REF(X_8,3)>=X_10 AND REF(X_9,3)<=X_10 AND REF(X_8,3)>=X_11 AND REF(X_9,3)<=X_11;
X_16:=X_12 AND X_13 AND X_14 AND X_15;
X_17:=REF(X_11,BARSLAST(X_16));
X_18:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_19:=(REF(OPEN,5)+REF(CLOSE,5))/2;
X_20:=(HIGH+LOW+CLOSE+OPEN)/4;
X_21:=MAX(X_19,MAX(X_20,HHV(HIGH,5)));
X_22:=MIN(X_19,MIN(X_20,LLV(LOW,5)));
X_23:=X_21=X_19;
X_24:=X_23;
X_25:=REF(X_21,BARSLAST(X_24));
X_26:=CLOSE>X_25;
X_27:=EMA(EMA(EMA(OPEN,5),5),5);
X_28:=ATAN((X_27/REF(X_27,1)-1)*100)*57.299999;
X_29:=EVERY(X_28>10 AND X_27>REF(X_27,1),2);
X_30:=EMA(CLOSE,5)-EMA(CLOSE,55);
X_31:=EMA(X_30,10);
X_32:=X_30-X_31;
X_33:=MA(LOW+(HIGH-LOW)/2,26)*1.15;
X_34:=MA(LOW+(HIGH-LOW)/2,26)*0.95;
X_35:=(X_33+X_34)/2;
X_36:=(MA(CLOSE,5)+MA(OPEN,5))/2*1.06;
X_37:=(MA(CLOSE,5)+MA(OPEN,5))/2*0.98;
X_38:=(X_36+X_37)/2;
X_39:=X_36>X_34;
X_40:=X_36>X_35;
X_41:=X_36>X_33;
X_42:=X_38>X_34;
X_43:=X_38>X_35;
X_44:=X_38>X_33;
X_45:=X_37>X_34;
X_46:=X_37>X_35;
X_47:=X_37>X_33;
X_48:=X_39+X_40+X_41+X_42+X_43+X_44+X_45+X_46+X_47;
X_49:=X_48>0 AND X_7>1 AND EXIST(X_16>0,13) AND EXIST(X_48<2,50) AND X_29 AND CLOSE>X_17 AND X_32>0 AND X_26;
FILTER(X_49,9);
 
 {波段密码}{副图源码}
X_1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;

X_2:=IF(CLOSE>OPEN,CLOSE,OPEN);
X_3:=IF(CLOSE>OPEN,OPEN,CLOSE);
X_4:=LLV(X_2,4);
X_5:=HHV(X_3,4);
X_6:=X_2>=X_4 AND X_3<=X_4 AND X_2>=X_5 AND X_3<=X_5;
X_7:=REF(X_2,1)>=X_4 AND REF(X_3,1)<=X_4 AND REF(X_2,1)>=X_5 AND REF(X_3,1)<=X_5;
X_8:=REF(X_2,2)>=X_4 AND REF(X_3,2)<=X_4 AND REF(X_2,2)>=X_5 AND REF(X_3,2)<=X_5;
X_9:=REF(X_2,3)>=X_4 AND REF(X_3,3)<=X_4 AND REF(X_2,3)>=X_5 AND REF(X_3,3)<=X_5;
X_10:=X_6 AND X_7 AND X_8 AND X_9;
X_11:=REF(X_5,BARSLAST(X_10));
X_12:=(REF(OPEN,5)+REF(CLOSE,5))/2;
X_13:=(HIGH+LOW+CLOSE+OPEN)/4;
X_14:=MAX(X_12,MAX(X_13,HHV(HIGH,5)));
X_15:=MIN(X_12,MIN(X_13,LLV(LOW,5)));
DRAWKLINE(X_14,X_12,X_15,X_13);
X_16:=X_14=X_12;
X_17:=X_16;
X_18:=REF(X_14,BARSLAST(X_17));
X_19:=EMA(CLOSE,5)-EMA(CLOSE,55);
X_20:=EMA(X_19,10);
X_21:=X_19-X_20;
X_22:=CLOSE>X_18 AND X_21>0;
STICKLINE(X_22,X_14,X_15,3.2,1),COLORMAGENTA;
STICKLINE(X_22,X_12,X_13,3.2,0),COLORMAGENTA;
STICKLINE(X_22,X_12,X_13,3,0),COLORMAGENTA;
STICKLINE(X_22,X_12,X_13,1.9,0),COLORMAGENTA;
STICKLINE(X_22,X_12,X_13,1.1,0),COLORMAGENTA;
STICKLINE(X_22,X_12,X_13,0.3,1),COLORMAGENTA;
STICKLINE(X_22<1,X_14,X_15,3.2,1),COLORLIBLUE;
STICKLINE(X_22<1,X_12,X_13,3.2,0),COLORLIBLUE;
STICKLINE(X_22<1,X_12,X_13,2,0),COLORLIBLUE;
STICKLINE(X_22<1,X_12,X_13,1,1),COLORLIBLUE;
X_23:=X_15=REF(X_15,1) AND X_14<REF(X_14,1) AND X_16;
X_24:=X_15=REF(X_15,1) AND X_15=REF(X_15,2) AND X_15=REF(X_15,3) AND X_15=REF(X_15,4);
STICKLINE(X_24,X_14,X_15,3.2,1),COLORGREEN;
STICKLINE(X_24,X_12,X_15,2.6,0),COLORGREEN;
STICKLINE(X_24,X_12,X_13,2.6,0),COLORGREEN;
STICKLINE(X_24,X_12,X_15,0.5,1),COLORGREEN;
X_25:=X_1>=9.84 AND REF(X_1<9.84,1) AND REF(X_1<9.84,2);
STICKLINE(X_1>=9.84,X_12*1.05,X_13*0.95,3.4,0),COLOR00AAFF;
STICKLINE(X_1>=9.84,X_12*1.05,X_13*0.95,2,0),COLOR00CCFF;
STICKLINE(X_1>=9.84,X_12*1.05,X_13*0.95,0.5,0),COLORYELLOW;
STICKLINE(X_25,X_12*1.05,X_13*0.95,0.5,0),COLORRED;
STICKLINE(CLOSE,X_18-X_18*0.0035,X_18,3,0),COLORGREEN,LINETHICK3;
X_26:=(HIGH-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_27:=X_26>9.85匒ND NOT(OPEN=CLOSE) AND X_1>4;
X_28:=X_26>9.85 AND NOT(OPEN=CLOSE) AND X_1>4 AND X_1<9.3;
X_29:=REF(HIGH,BARSLAST(X_28));
X_30:=REF(LOW,BARSLAST(X_28));
STICKLINE(HIGH,X_29-X_29*0.003,X_29,3,0),COLORWHITE;
X_31:=MA(OPEN,20);
X_32:=OPEN>MA(OPEN,5);
X_33:=MA(OPEN,5)>MA(OPEN,10);
X_34:=OPEN>MA(OPEN,10);
X_35:=MA(OPEN,5)>MA(OPEN,20);
X_36:=OPEN>MA(OPEN,20);
X_37:=REF(X_31,1);
X_38:=X_31>X_37;
X_39:=IF(X_32,10,0-10)+IF(X_33,10,0-10)+IF(X_34,10,0-10)+IF(X_35,10,0-10)+IF(X_36,10,0-10)+IF(X_38,10,0-10);
X_40:=MA(CLOSE,5)>REF(MA(CLOSE,5),1) AND MA(CLOSE,10)>REF(MA(CLOSE,10),1) AND MA(CLOSE,20)>REF(MA(CLOSE,20),1) AND MA(CLOSE,60)>REF(MA(CLOSE,60),1);
X_41:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,20)>MA(CLOSE,60);
X_42:=LOW<MA(CLOSE,5) AND LOW<MA(CLOSE,10) AND CLOSE>MA(CLOSE,5) AND CLOSE>MA(CLOSE,10);
X_43:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
WWW58188COM:=X_43>9.85 AND X_24;
X_44:=X_43>9.85 AND X_24;
X_45:=X_26>9.85 AND NOT(OPEN=CLOSE) AND X_1>4 AND X_1<9.3;
X_46:=(CLOSE-REF(CLOSE,BARSLAST(X_45)))/REF(CLOSE,BARSLAST(X_45))*100;
B:REF(X_5,BARSLAST(X_10)),NODRAW;
A:REF(HIGH,BARSLAST(X_28)),NODRAW;
S:REF(X_14,BARSLAST(X_17)),NODRAW;
涨停力度S:X_15/S,NODRAW;
涨停力度A:X_15/A,NODRAW;
涨停力度B:X_15/B,NODRAW;
BS:ABS(S-B)/B,NODRAW;
AB:ABS(A-B)/B,NODRAW;
AS:ABS(A-S)/S,NODRAW;
X_47:=B=REF(B,1);
X_48:=BARSLAST(NOT(X_47));
STICKLINE(X_5,X_11-X_11*0.003,X_11,3,0),COLORYELLOW,LINETHICK3;
DRAWNUMBER(X_47>0,B*0.99,X_48),COLORYELLOW;
DRAWICON(X_39>40 AND X_22 AND EXIST(X_10,12),X_11*0.9,89);
X_49:=EMA(EMA(EMA(X_14,5),5),5);

上一篇:通达信公式下载:趋势起妖,妖王起涨,轩辕剑金钻

下一篇:通达信公式下载:潜龙出海+抄底神器二合一指标,YISHU周易之梅花六数卦象