大智慧L2源码:顶忙!底忙!中间两头(附图+说明+通达信,飞狐源码)
-
相关简介:C/C++ Code 复制内容到剪贴板 {中间两头} {理想估界文编写:中间两头都忙,分界转红介入转绿退出,粉色底消失后抄底,白色顶消失后逃顶,背离信号与走势配合} G1:=AMOUNT/VOL/1000;G2:=(3*H+L+O+2*C)/7; G3:=SUM(AMOUNT,13)/G1/1000;G4:=DMA(G2,VOL/G3); G5:=(H+L+C)/3;G6:=(G5-MA(G5,14))/(0.015*AVEDEV(G5,14)); J1:= MACD.D
-
文章来源:择股网作者:股海网发布时间:2009-09-23浏览次数:
C/C++ Code复制内容到剪贴板
- {中间两头}
- {理想估界文编写:中间两头都忙,分界转红介入转绿退出,粉色底消失后抄底,白色 顶消失后逃顶,背离信号与走势配合}
- G1:=AMOUNT/VOL/1000;G2:=(3*H+L+O+2*C)/7;
- G3:=SUM(AMOUNT,13)/G1/1000;G4:=DMA(G2,VOL/G3);
- G5:=(H+L+C)/3;G6:=(G5-MA(G5,14))/(0.015*AVEDEV(G5,14));
- J1:="MACD.DIFF"(12,26,9);J2:="MACD.DEA"(12,26,9);
- J3:="KDJ.K"(9,3,3);J4:="KDJ.D"(9,3,3);
- J5:="RSI.RSI1"(6,12,24);J6:="RSI.RSI2"(6,12,24);
- A1:=BARSLAST(REF(CROSS(J1,J2),1));
- B1:=REF(C,A1+1)>C AND REF(J1,A1+1)<J1 AND CROSS(J1,J2);
- A2:=BARSLAST(REF(CROSS(J3,J4),1));
- B2:=REF(C,A2+1)>C AND REF(J3,A2+1)<J3 AND CROSS(J3,J4);
- A3:=BARSLAST(REF(CROSS(J5,J6),1));
- B3:=REF(C,A3+1)>C AND REF(J5,A3+1)<J5 AND CROSS(J5,J6);
- C1:=BARSLAST(REF(CROSS(J2,J1),1));
- D1:=REF(C,C1+1)<C AND REF(J1,C1+1)>J1 AND CROSS(J2,J1);
- C2:=BARSLAST(REF(CROSS(J4,J3),1));
- D2:=REF(C,C2+1)<C AND REF(J3,C2+1)>J3 AND CROSS(J4,J3);
- C3:=BARSLAST(REF(CROSS(J6,J5),1));
- D3:=REF(C,C3+1)<C AND REF(J5,C3+1)>J5 AND CROSS(J6,J5);
- 趋势:(C-G4)/G4*1000,COLOR00A0A0,LINETHICK2;
- PARTLINE(趋势,趋势>0),COLOR0000DD,LINETHICK2;
- PARTLINE(趋势,趋势<0),COLOR00A0A0,LINETHICK2;
- FILLRGN(0,趋势,趋势>=0),COLOR0000DD;
- FILLRGN(0,趋势,趋势<0),COLORFF3300;
- FILLRGN(-200,趋势,趋势<-200),COLORDD22DD;
- FILLRGN(200,趋势,趋势>=200),COLORDDDDDD;
- {底}
- MACD底背离:=FILTER(B1>0,5);
- STICKLINE(MACD底背离,-220,-150,1,0),COLORYELLOW;
- DRAWTEXT(MACD底背离,-180,'MACD底背离'),COLORYELLOW;
- KDJ底背离:=FILTER(B2>0,5);
- STICKLINE(KDJ底背离,-220,-50,1,0),COLORWHITE;
- DRAWTEXT(KDJ底背离,-220,'KDJ底背离'),COLORWHITE;
- RSI底背离:=FILTER(B3>0,5);
- STICKLINE(RSI底背离,-160,-100,1,0),COLORFFCC66;
- DRAWTEXT(RSI底背离,-140,'RSI底背离'),COLORFFCC66;
- {顶}
- MACD顶背离:=FILTER(D1>0,5);
- STICKLINE(MACD顶背离,220,150,1,0),COLOR0066FF;
- DRAWTEXT(MACD顶背离,180,'MACD顶背离'),COLOR0066FF;
- KDJ顶背离:=FILTER(D2>0,5);
- STICKLINE(KDJ顶背离,220,50,1,0),COLOR0000FF;
- DRAWTEXT(KDJ顶背离,220,'KDJ顶背离'),COLOR0000FF;
- RSI顶背离:=FILTER(D3>0,5);
- STICKLINE(RSI顶背离,160,100,1,0),COLORFF00FF;
- DRAWTEXT(RSI顶背离,140,'RSI顶背离'),COLORFF00FF;
- 顺势:G6,COLOR0088F5,LINETHICK2;分界:0,COLORWHITE;
- 底背离:(MACD底背离 OR KDJ底背离 OR RSI底背离),LINETHICK0,COLORRED;
- 顶背离:(MACD顶背离 OR KDJ顶背离 OR RSI顶背离),LINETHICK0,COLORYELLOW;
飞狐、大智慧L2、通达信6X源码请下载源码文件
下载链接:( 说明:股海资源如需解压密码的请输入本站域名:www.guhai.com.cn请仔细输入!)
|
上一篇:主力进场,大智慧新一代,副图,无未来
下一篇:送给喜欢短线的朋友