通达信公式(缠中说禅)_第1页
通达信公式(缠中说禅)_第2页
通达信公式(缠中说禅)_第3页
通达信公式(缠中说禅)_第4页
通达信公式(缠中说禅)_第5页
已阅读5页,还剩6页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、工作线主图技术指标(辅助判断)ma5:ma(c,5);ma10:ma(c,10);工作线:ema(ema(ema(c,13),3),3);mid:ma(close,26);upper:mid + 2*std(close,26);lower:mid - 2*std(close,26);底分型公式(选股及预警)v00:= highref(high,1) and lowref(low,1);v01:= highref(low,1);v02:= highref(high,1) and lowref(high,1) and lowref(low,1);v04:= ref(high,2) high and

2、 ref(low,2) ref(high,1) and ref(low,2) =1 and llvbars(low,3) = 1 and v03;v2:= count(v00,4)=1 and llvbars(low,4) = 2 and v04;v3:= count(v00,4)=1 and count(v01 or v02,4)=1 and llvbars(low,4) = 1 and v03;v4:= count(v00,5)=1 and count(v01 or v02,5)=2 and llvbars(low,5) = 2 and v04;xg:v1 or v2 or v3 or v

3、4; 笔底分型 (确保向下笔成立后的底分型)(选股 预警)v00:= highref(high,1) and lowref(low,1);v01:= highref(low,1);v02:= highref(high,1) and lowref(high,1) and lowref(low,1);v04:= ref(high,2) high and ref(low,2) ref(high,1) and ref(low,2) =3 and count(v01 or v02,5)=0 and llvbars(low,6) = 1 and hhvbars(high,6) = 5 and v03;v2

4、:= count(v00,7)=3 and count(v01 or v02,6)=1 and llvbars(low,7) = 2 and hhvbars(high,7) = 6 and v04;v3:= count(v00,7)=3 and count(v01 or v02,6)=1 and llvbars(low,7) = 1 and hhvbars(high,7) = 6 and v03;v4:= count(v00,8)=3 and count(v01 or v02,7)= 7 and v04;v5:= count(v00,8)=3 and count(v01 or v02,7)=

5、7 and v03;v6:= count(v00,9)=3 and count(v01 or v02,8)= 8 and v04;v7:= count(v00,9)=3 and count(v01 or v02,8)= 8 and v03;v8:= count(v00,10)=3 and count(v01 or v02,9)= 9 and v04;v9:= count(v00,10)=3 and count(v01 or v02,9)= 9 and v03;v10:= count(v00,11)=3 and count(v01 or v02,10)= 10 and v04;xg:v1 or

6、v2 or v3 or v4 or v5 or v6 or v7 or v8 or v9 or v10;动态翻译:v00赋值: 最高价昨日最高价 and 最低价昨日最低价v01赋值: 最高价昨日最低价v02赋值: 最高价昨日最高价 and 最低价昨日最高价 and 最低价昨日最低价v04赋值: 2日前的最高价 最高价 and 2日前的最低价 昨日最高价 and 2日前的最低价 =1 and 3日内最低价距今天数 = 1 and v03v2赋值: 统计4日中满足v00的天数=1 and 4日内最低价距今天数 = 2 and v04v3赋值: 统计4日中满足v00的天数=1 and 统计4日中满足

7、v01orv02的天数=1 and 4日内最低价距今天数 = 1 and v03v4赋值: 统计5日中满足v00的天数=1 and 统计5日中满足v01orv02的天数=2 and 5日内最低价距今天数 = 2 and v04输出xg:(v1 or v2 or v3 or v4)笔顶分型(确保向上笔成立后的顶分型 )( 选股 预警 )v00:= highref(high,1) and lowref(low,1);v01:= highref(low,1);v02:= highref(high,1) and lowref(low,1);v03:= highref(high,1) and low h

8、igh and ref(low,2) low and ref(high,2) ref(high,1) and ref(low,2) =3 and count(v01 or v02,5)=0 and hhvbars(high,6) = 1 and llvbars(low,6) = 5 and v03;v2:= count(v00,7)=3 and count(v01 or v02,6)=1 and hhvbars(high,7) = 2 and llvbars(low,7) = 6 and v04;v3:= count(v00,7)=3 and count(v01 or v02,6)=1 and

9、 hhvbars(high,7) = 1 and llvbars(low,7) = 6 and v03;v4:= count(v00,8)=3 and count(v01 or v02,7)= 7 and v04;v5:= count(v00,8)=3 and count(v01 or v02,7)= 7 and v03;v6:= count(v00,9)=3 and count(v01 or v02,8)= 8 and v04;v7:= count(v00,9)=3 and count(v01 or v02,8)= 8 and v03;v8:= count(v00,10)=3 and cou

10、nt(v01 or v02,9)= 9 and v04;v9:= count(v00,10)=3 and count(v01 or v02,9)= 9 and v03;v10:= count(v00,11)=3 and count(v01 or v02,10)= 10 and v04;xg:xg: v1 or v2 or v3 or v4 or v5 or v6 or v7 or v8 or v9 or v10;动态翻译:v00赋值: 最高价昨日最高价 and 最低价昨日最低价v01赋值: 最高价昨日最低价v02赋值: 最高价昨日最高价 and 最低价昨日最低价v03赋值: 最高价昨日最高价

11、and 最低价 最高价 and 2日前的最低价 最低价 and 2日前的最高价 昨日最高价 and 2日前的最低价 =3 and 统计5日中满足v01orv02的天数=0 and 6日内最高价距今天数 = 1 and 6日内最低价距今天数 = 5 and v03v2赋值: 统计7日中满足v00的天数=3 and 统计6日中满足v01orv02的天数=1 and 7日内最高价距今天数 = 2 and 7日内最低价距今天数 = 6 and v04v3赋值: 统计7日中满足v00的天数=3 and 统计6日中满足v01orv02的天数=1 and 7日内最高价距今天数 = 1 and 7日内最低价距

12、今天数 = 6 and v03v4赋值: 统计8日中满足v00的天数=3 and 统计7日中满足v01orv02的天数= 7 and v04v5赋值: 统计8日中满足v00的天数=3 and 统计7日中满足v01orv02的天数= 7 and v03v6赋值: 统计9日中满足v00的天数=3 and 统计8日中满足v01orv02的天数= 8 and v04v7赋值: 统计9日中满足v00的天数=3 and 统计8日中满足v01orv02的天数= 8 and v03v8赋值: 统计10日中满足v00的天数=3 and 统计9日中满足v01orv02的天数= 9 and v04v9赋值: 统计1

13、0日中满足v00的天数=3 and 统计9日中满足v01orv02的天数= 9 and v03v10赋值: 统计11日中满足v00的天数=3 and 统计10日中满足v01orv02的天数= 10 and v04输出xg:v1 or v2 or v3 or v4 or v5 or v6 or v7 or v8 or v9 or v10顶分型 (预警)v00:= highref(high,1) and lowref(low,1);v01:= highref(high,1) and low high and ref(low,2) low and ref(high,2) ref(high,1) an

14、d ref(low,2) =2 and hhvbars(high,4) = 1 and v01;v2:= count(v00,5)=2 and hhvbars(high,5) = 2 and v02;v3:= count(v00,5)=2 and hhvbars(high,5) = 1 and v01;v4:= count(v00,6)=2 and hhvbars(high,6) = 2 and v02;xg: v1 or v2 or v3 or v4;短线底部(预警选股)快金yxg:=if(troughbars(3,6,1)=0 and highlow+0.1,2,0) and (index

15、c-ma(indexc,70)/ma(indexc,70)=dxl and ref(动向流,1)ref(dxl,3) and ref(动向流,1)low+0.01;xg: bias50 and macdref(macd,1),macd,0);macdhx:=if(macd0 and macdref(macd,1),macd,0);macdlx:=if(macd0 and macdref(macd,1),macd,0);macdls:=if(macdref(macd,1),macd,0);stickline(macdhs0,0,macd,7,0),color0000ee;stickline(ma

16、cdhs0,0,macd,6,0),color0000ff;stickline(macdhs0,0,macd,5,0),color0033ff;stickline(macdhs0,0,macd,4,0),color3355ff;stickline(macdhs0,0,macd,3,0),color6677ff;stickline(macdhs0,0,macd,2,0),color8888ff;stickline(macdhs0,0,macd,1,0),color9999ff;stickline(macdhx0,0,macd,7,0),color0099cc;stickline(macdhx0,

17、0,macd,6,0),color00aadd;stickline(macdhx0,0,macd,5,0),color00bbdd;stickline(macdhx0,0,macd,4,0),color00ccee;stickline(macdhx0,0,macd,3,0),color00ddee;stickline(macdhx0,0,macd,2,0),color00eeff;stickline(macdhx0,0,macd,1,0),color00ffff;stickline(macdlx0,macd,0,7,0),color990000;stickline(macdlx0,macd,0

18、,6,0),coloraa2200;stickline(macdlx0,macd,0,5,0),colorbb4400;stickline(macdlx0,macd,0,4,0),colorcc7700;stickline(macdlx0,macd,0,3,0),colordd9900;stickline(macdlx0,macd,0,2,0),coloreebb00;stickline(macdlx0,macd,0,1,0),colorffcc00;stickline(macdls0,macd,0,7,0),color005500;stickline(macdls0,macd,0,6,0),

19、color007700;stickline(macdls0,macd,0,5,0),color009900;stickline(macdls0,macd,0,4,0),color00bb00;stickline(macdls0,macd,0,3,0),color00dd00;stickline(macdls0,macd,0,2,0),color00ee00;stickline(macdls0,macd,0,1,0),color00ff00;绿柱面积:if (macd0),0),linethick0,colorred;红柱面积:if (macd0,sum(macd,barslast(macd0

20、and macd=0 ,hhv(macd,8),+ref(红柱面积,1),colorred;drawtext(ref(macd,1)=0 ,llv(macd,4),+ref(abs(绿柱面积),1),color00ff00;drawtext(islastbar=2 and macd0,hhv(macd,4),+abs(红柱面积),colorred;macd底背离公式(选股)diff:=ema(close,12) - ema(close,26);dea:=ema(diff,9);macd:=2*(diff-dea);qzq:=barslast(ref(macd,1)0);qm:=llvbars(

21、macd,qzq+20);mqdz:=if(qmqzq,ref(macd,qm),0);xg1:=macdmqdz and close=llv(close,qzq+20) and mqdzref(macd,1);macd双底背离公式(选股)diff:=ema(close,12) - ema(close,26);dea:=ema(diff,9);macd:=2*(diff-dea);qzq:=barslast(ref(macd,1)0);qm:=llvbars(macd,qzq+20);mqdz:=if(qmqzq,ref(macd,qm),0);qf:=llvbars(diff,qzq+20)

22、;dqdz:=if(qfqzq,ref(diff,qf),0);xg1:=macdmqdz and diffdqdz and close=llv(close,qzq+20) and mqdz0 and dqdzref(macd,1);顶底辅助判断动向流 (参数n:4,2,20)动向流:(ma(close,2)-ref(ma(close,2),n)/ref(ma(close,2),n),colorffff00;ployline(1,ma(动向流,2),colorffff00;ployline(1,ma(动向流,4),colorffd800;ployline(1,ma(动向流,6),colorff

23、a600;ployline(1,ma(动向流,8),colorff6800;ployline(1,ma(动向流,10),colorff3800;ployline(1,ma(动向流,12),colord1ff00;ployline(1,ma(动向流,14),colorabff00;ployline(1,ma(动向流,16),color68ff00;ployline(1,ma(动向流,18),color3eff00;ployline(1,ma(动向流,20),colorff8cff;ployline(1,ma(动向流,22),colorc88cff;ployline(1,ma(动向流,24),co

24、lorc854ff;ployline(1,ma(动向流,26),color7354ff;ployline(1,ma(动向流,28),color7f00ff;ployline(1,ma(动向流,30),color0000ff;一阳穿两线(选股)m1:=ma(c,5);m2:=ma(c,13);一阳1:=om1;一阳2:=om2;一阳穿二线:一阳1+一阳21;一阳穿三线(选股)m1:=ma(c,5);m2:=ma(c,18);m3:=ma(c,34);一阳1:=om1;一阳2:=om2;一阳3:=om3;一阳穿三线:一阳1+一阳2+一阳32;缠论第三买点(选股)a1:=hhv(h,ls*0.7)t

25、ufendou;a2:=hhv(h,ls*4)tufendou;a3:=ref(hhv(h,ls*4),ls*0.7)tufendou;a4:=llv(l,ls/10)tufendou;选股:tufendoua1=a2 and a1=a3*1.2 and a4a3;波浪底抓黑马(选股)a1:=3*sma(c-llv(l,55)/(hhv(h,55)-llv(l,55)*100,5,1)-2*sma(c-llv(l,55)/(hhv(h,55)-llv(l,55)*100,5,1);黑马线:=ema(a1,5);a4:=(c-llv(l,21)/(hhv(h,21)-llv(l,21)*100;

26、趋势线:=(ma(3*sma(a4,6,1)-2*sma(sma(a4,5,1),5,1),2);大黑马:cross(趋势线,0) and 黑马线a2 or 波段买入a3 and cross(c,zx) and vol0,10,0);企稳向上(选股)ema13:=ema(c,13);ema34:=ema(c,34);ema55:=ema(c,55);ar1:=ema55ema34 and ema34ema13;ar2:=barslast(c-ema13)/ema13*100=ref(ema13,2);ar4:=count(cross(c,ema13),ar2)=1;ar5:=ar1 and a

27、r2 and ar3 and ar4;企稳向上:ar5 and filter(ar5,10);一阴破三(选股)m1:=ma(c,5);m2:=ma(c,18);m3:=ma(c,34);一阴1:=om1 and cm1;一阴2:=om2 and cm2;一阴3:=om3 and cm3;一阴破三线:一阴1+一阴2+一阴3open and close=high,gtyx,0)2.5;波段王(选股)量能饱和度:if(amount/c)/(hhv(amount,20)/hhv(c,20)*100100,100,(amount/c)/(hhv(amount,20)/hhv(c,20)*100),nod

28、raw;aa10:ma(close,8),color0000ff;aa12:ma(close,12),color0000ff;bb10:=(atan(aa10 - ref(aa10,1) * 3.1416) * 10);bb12:=(atan(aa12 - ref(aa12,1) * 3.1416) * 10);ma13:=ma(close,13);drawband(aa10,rgb(150,50,50),aa12,rgb(0,100,50);x1:=(c+l+h)/3;bb13:=atan(ema(x1,13)-ref(ema(x1,13),1)*3.1416*10;ema8:=ema(c,

29、8);drawtext(filter(bb131 and ema(x1,13)ref(ema(x1,8),1),10),ema8,45上升),colorwhite;压力:ma(ref(hhv(c,30),1),2),color9dffff;支撑:ma(ref(llv(c,30),1),2),colorabff46;aa1:=amount/v;bb1:=l1.2;dd1:=lma(c,5)*0.921;ee1:=vma(v,5)*1.5;ff1:=bb1 and cc1 and dd1 and ee1;drawtext(ff1,(low* 0.99),老鼠仓),color4080ff;a51:=

30、3*sma(c-llv(l,55)/(hhv(h,55)-llv(l,55)*100,5,1)-2*sma(c-llv(l,55)/(hhv(h,55)-llv(l,55)*100,5,1);黑码线:=ema(a51,5);a54:=(c-llv(l,21)/(hhv(h,21)-llv(l,21)*100;趋势线:=(ma(3*sma(a54,6,1)-2*sma(sma(a54,5,1),5,1),2);drawtext(cross(趋势线,0)and 黑码线40,(high* 0.97),大黑码),coloryellow;lc:=ref(close,1);rsi:=(sma(max(cl

31、ose - lc),0),3,1) / sma(abs(close - lc),3,1) * 100);ff:=ema(close,3);ma15:=ema(close,21);drawtext(cross(ff,ma15),(low * 0.99),底背离),colora6e500;drawtext(cross(88,rsi),(high * 1.02),顶背离),color1880ff;var2:=llv(low,27);var3:=hhv(high,34);var4:=ema(close-var2)/(var3-var2)*4,4)*25;注意买:=if(var410),80,100);

32、rsv:=(c-llv(l,9)/(hhv(h,9)-llv(l,9)*100;k:=sma(rsv,3,1);d:=sma(k,3,1);j:=3*k-2*d;超跌:=if(j0,10,0);bddd:=llv(j,2)=llv(j,8);买入:=if(cross(j,ref(j+0.01,1) and bddd and j20,30,0);drawtext(买入 and 注意买=100 and 超跌=0,low,短线),color8000ff;mtm:=c-ref(c,1);dx:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);买:=if(llv

33、(dx,2)=llv(dx,7) and count(dxopen,open,low,0,0 ),color0000ff;stickline(closeopen,close,high,0,0 ),color0000ff;stickline(open=close,close,low,0,0 ),color00ff00;stickline(open=close,open,high,0,0 ),color00ff00;stickline(open=close ,close ,open,3,0 ),colorff8800;stickline(open=close ,close ,open,2,0 ),

34、colorffaa00;stickline(open=close ,close ,open,1,0 ),colorffcc00;stickline(open=close ,close ,open,0,0 ),colorffee00;stickline(closeopen,close,open,3,0) ,color000066;stickline(closeopen,close,open,2,0) ,color000088;stickline(closeopen,close,open,1,0) ,color0000aa;stickline(closeopen,close,open,0,0) ,

35、color0000cc;var9q:=c=hhv(c,4) and (ref(c,1)=ref(c,2) or ref(c,1)=ref(c,3) or ref(c,1)=hhv(c,4) and close=ref(c,2) or ref(c,2)=hhv(c,4) and ref(c,3)=llv(c,4) and c=ref(c,1) or ref(c,3)=hhv(c,4) and c=ref(c,1) and c=ref(c,2);stickline(var9q,c,(o+c)/2,3,0),color000066;stickline(var9q,c,(o+c)/2,2,0),col

36、or000088;stickline(var9q,c,(o+c)/2,1,0),color0000aa;stickline(var9q,c,(o+c)/2,0,0),color0000cc;varaq:=c=hhv(c,4) and ref(c,1)=llv(c,4);stickline(varaq,c,(o+c)/2,3,0),colorff22ff;stickline(varaq,c,(o+c)/2,2,0),colorff44ff;stickline(varaq,c,(o+c)/2,1,0),colorff66ff;stickline(varaq,c,(o+c)/2,0,0),colorff88ff;varbq:=c=llv(c,4) and (ref(c,1)ref(c,2) or ref(c,1)ref(c,3) or ref(c,1)=llv(c,4) and chhv(c,4) or ref(c,1)hhv(c,4) and cref(c,1) or ref(c,3)=llv(c,4) and cref(c,1) and c=ref(c,2) or ref(c,2)=llv(c,4) and ref(c,1)=ref(c,3) and ref(c,2)=ref(c,1);stickline(varcq,o,(

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论