股票-指标源代码;_第1页
股票-指标源代码;_第2页
股票-指标源代码;_第3页
股票-指标源代码;_第4页
股票-指标源代码;_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

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

文档简介

1、jmacddif:ema(close,7) - ema(close,19),colorgreen;dea:ema(dif,9);macd:(dif-dea)*2,colorstick,color0000ff;var3:=hhv(high,60);var4:=llv(low,30);var5:=(close-ma(close,32)/ma(close,32)*100;var6:=(var3+var4+var5)/3;var7:=ema(var6,5);k:=ema(var7,5)*2, colorff00ff;d:=ema(k,5), colorwhite;j:=k*3-d*2, colorye

2、llow;enterlong:=cross(k,d);exitlong:=cross(d,k);b:=(if(troughbars(3,15,1)=1 and highlow+0.01,20,-1)/50,coloryellow ,linethick1;b1:=(drawicon(zig(3,5)ref(zig(3,5),1) and (ref(zig(3,5),1)=ref(zig(3,5),2) and (ref(zig(3,5),2)=ref(zig(3,5),3),l*0.98,1)*d*2/3;q:=(if(peakbars(3,15,1)=1,80,0)/200,colorgree

3、n,linethick1;q1:=(drawicon(zig(3,5)=ref(zig(3,5),2)and (ref(zig(3,5),2)=ref(zig(3,5),3),h*1.01,2)*d*2/3;notext强:if(difma(dif,2),dif,drawnull),colorred;vab0:=531;vab1:=1510000;vab2:=vab0 + vab1; vab3:=if(date vab2,0,1);lc:=ref(close,1);sg:=ema(hhv(high,1),8);x1:=ema(close,8);x30:=(x1 ref(x1,1) and (c

4、lose x1);x31:=if(sg ref(sg,1) or x30),1,0);操作线:=sma(max(close-lc,0),2,1)/sma(abs(close-lc),2,1)*100,colorred,linethick2;震仓线:=45,colormagenta;抄底线:=20,colorgreen;pp:=操作线震仓线 ;pp3:=操作线抄底线*vab3;drawtext(currbarscount=129,0.5,【www.55188.com】),color889999;抓牛:(count(x31 = 1),4) = 3) and (x31 = 0)and o0.085)

5、*89) =89)or(c-ref(c,1)/ref(c,1)0.085 and (ref(pp3,1) or ref(pp,1) and vab3=1)/2,stick,colorlired,linethick4;drawtext(抓牛,抓牛*-1.11,b),colorlired;超b:=l2_amo(0,2)/10000.0;大b:=l2_amo(1,2)/10000.0;中b:=l2_amo(2,2)/10000.0;小b:=l2_amo(3,2)/10000.0;超s:=-l2_amo(0,3)/10000.0;大s:=-l2_amo(1,3)/10000.0;中s:=-l2_amo

6、(2,3)/10000.0;小s:=-l2_amo(3,3)/10000.0;资金净流入万:(超b+大b+中b+小b)+(超s+大s+中s+小s),nodraw,colorwhite;买进:b,stick,linethick2,coloryellow;卖出:q,stick,linethick2,colorgreen;涨家数:indexadv,color0080ff,nodraw;跌家数:indexdec,colorgreen,nodraw; tj1:=(c+0.01-ref(c,1)/ref(c,1)*100;tj2:=(c-0.01-ref(c,1)/ref(c,1)*100;tj3:=(c

7、-ref(c,1)/ref(c,1)*100;q1:=if(tj110.05,1,0);q2:=if(tj2=9.95,1,0);涨停板:if(q1 or q2,0.5,0),colorff00ff;tt:=240/fromopen;比:=tt;促进指数:=(high-low)*1000000/(vol*比),colorred;ay2:=ema(close,12)-ema(close,26);az2:=ema(ay2,9);lt2:=(ay2-az2);l211:=if(lt2,llv(l,21),drawnull),color217158,circledot;zgd:=hhv(h,80)*0

8、.99;zgd2:=const(zgd);zdd:=llv(l211,80);zdd2:=const(zdd);yya4:=ma(close,20);yya5:=(close ma(close,5);yya6:=(ma(close,5) ma(close,10);yya7:=(close ma(close,10);yya8:=(ma(close,5) ma(close,20);yya9:=(close ma(close,20);yya10:=ref(yya4,1);yya11:=(yya4 yya10);yyavx:=(if(yya5,10,(0 - 10) + if(yya6,10,(0 -

9、 10) + if(yya7,10,(0 - 10) + if(yya8,10,(0 - 10) + if(yya9,10,(0 - 10) + if(yya11,10,(0 - 10);dslx:=(close / indexc);dslx1:=ma(dslx,5);dslx2:=ma(dslx,10);yyv1:=ma(vol,5);yyv2:=ma(vol,10);j1:=const(if( yyavx 0,200,100);j2:=const(if( yyavx 0,00,100);j3:=const(if( yyavx 0,100,100);zgd3:=zgd2;zdd3:=zdd2

10、;zgd4:=zgd2;情况1:=const(if(cross(yyavx,1) and (yyv1 = yyv2) and (dslx = dslx1),1,0),nodraw;情况2:=const(if(cross(yyavx,1) and (yyv1 = dslx1),1,0);情况3:=const(if(cross(yyavx,1) and (yyv1 yyv2) and (dslx dslx1),1,0);情况4:=const(if(cross(yyavx,1) and (yyv1 = yyv2) and (dslx = yyv2) and (dslx = dslx1),1,0);情

11、况6:=const(if(cross(1,yyavx) and (yyv1 = dslx1),1,0);情况7:=const(if(cross(1,yyavx) and (yyv1 = yyv2) and (dslx dslx1),1,0);情况8:=const(if(cross(1,yyavx) and (yyv1 yyv2) and (dslx = 1) and (ref(yyavx,1) 0) and (yyv1 = yyv2) and (dslx = dslx1),1,0);情况10:=const(if(yyavx = 1) and (ref(yyavx,1) 0) and (yyv1

12、 = dslx1),1,0);情况11:=const(if(yyavx = 1) and (ref(yyavx,1) 0) and (yyv1 = yyv2) and (dslx = 1) and (ref(yyavx,1) 0) and (yyv1 yyv2) and (dslx dslx1),1,0);情况13:=const(if(yyavx 1) and (ref(yyavx,1) = yyv2) and (dslx = dslx1),1,0);情况14:=const(if(yyavx 1) and (ref(yyavx,1) 0) and (yyv1 = dslx1),1,0);情况1

13、5:=const(if(yyavx 1) and (ref(yyavx,1) = yyv2) and (dslx dslx1),1,0);情况16:=const(if(yyavx 1) and (ref(yyavx,1) 0) and (yyv1 yyv2) and (dslx = yyv2),1,0);大盘2:=const(if(cross(yyavx,1) and (yyv1 = yyv2),1,0);大盘4:=const(if(cross(1,yyavx) and (yyv1 = 1) and (ref(yyavx,1) 0) and (yyv1 = yyv2),1,0);大盘6:=co

14、nst(if(yyavx = 1) and (ref(yyavx,1) 0) and (yyv1 yyv2),1,0);大盘7:=const(if(yyavx 1) and (ref(yyavx,1) = yyv2),1,0);大盘8:=const(if(yyavx 1) and (ref(yyavx,1) 0) and (yyv1 =hhv(var2,n)=1,var2,var2ref(var2,1);stickline(var2=var3 and var20 and var2var3,var2,0),25);var5:=sum(if(var30 and var3var2,var3,0),2

15、5);var6:=var4*100/var1;var7:=var5*100/var1;var8:=ma(abs(var7-var6)/(var7+var6)*100,15);var9:=(var8+ref(var8,15)/2;a:=(var7var6 and var725 and var625);b:zig(3,50/5)*100,colorwhite;g:ma(b,2),coloryellow;d:=cross(b,g)*1000,colorred;w:=cross(g,b)*1000,colorblue;e:=ref(indexc,1);f:=sma(max(indexc-e,0),3,1)/sma(abs(i

温馨提示

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

评论

0/150

提交评论