当前位置:→ 公式网 > 大智慧公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是资金能动+顶底背离(无未来,源码)(无源码的请下载附件导入)
C/C++ Code复制内容到剪贴板
- A1:=BARSLAST(ref(cross("macd.diff"(12,26,9),"macd.dea"(12,26,9)),1));
- B1:=ref(c,A1+1)>c and ref("macd.diff"(12,26,9),A1+1)<"macd.diff"(12,26,9) and cross("macd.diff"(12,26,9),"macd.dea"(12,26,9));
- MACD底背离:STICKLINE(FILTER(B1>0,5),0,2,3,0),COLORGREEN;
- DRAWTEXT(FILTER(B1>0,5),2,'MACD底'),COLORGREEN;
- A2:=BARSLAST(ref(cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)),1));
- B2:=ref(c,A2+1)>c and ref("kdj.k"(9,3,3),A2+1)<"kdj.k"(9,3,3) and cross("kdj.k"(9,3,3),"kdj.d"(9,3,3));
- KDJ底背离:STICKLINE(FILTER(B2>0,5),0,2,3,0),COLORYELLOW;
- DRAWTEXT(FILTER(B2>0,5),2,'KDJ底'),COLORYELLOW;
- A3:=BARSLAST(ref(cross("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
- B3:=ref(c,A3+1)>c and ref("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) and cross("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
- RSI底背离:STICKLINE(FILTER(B3>0,5),0,2,3,0),COLORFFCC66;
- DRAWTEXT(FILTER(B3>0,5),2,'RSI底'),COLORFFCC66;
- 0,COLORRED;
- C1:=BARSLAST(ref(cross("macd.dea"(12,26,9),"macd.diff"(12,26,9)),1));
- D1:=ref(c,C1+1)<c and ref("macd.diff"(12,26,9),C1+1)>"macd.diff"(12,26,9) and cross("macd.dea"(12,26,9),"macd.diff"(12,26,9));
- MACD顶背离:STICKLINE(FILTER(D1>0,5),0,-2,3,0),COLOR0066FF;
- DRAWTEXT(FILTER(D1>0,5),-2,'MACD顶'),COLOR0066FF;
- C2:=BARSLAST(ref(cross("kdj.d"(9,3,3),"kdj.k"(9,3,3)),1));
- D2:=ref(c,C2+1)<c and ref("kdj.k"(9,3,3),C2+1)>"kdj.k"(9,3,3) and cross("kdj.d"(9,3,3),"kdj.k"(9,3,3));
- KDJ顶背离:STICKLINE(FILTER(D2>0,5),0,-2,3,0),COLORRED;
- DRAWTEXT(FILTER(D2>0,5),-2,'KDJ顶'),COLORRED;
- C3:=BARSLAST(ref(cross("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
- D3:=ref(c,C3+1)<c and ref("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) and cross("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
- RSI顶背离:STICKLINE(FILTER(D3>0,5),0,-2,3,0),COLORFF00FF;
- DRAWTEXT(FILTER(D3>0,5),-2,'RSI顶'),COLORFF00FF;
- REFLINE:0;
- DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
- DEA:=EMA(DIFF,5);
- MACD := 2*(DIFF-DEA);
- X1:=EMA(DIFF,5)*5;
- X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*5;
- CROSS(X2,X1) OR (REF(X2<0,1) AND X2>0);
- X3:IF(X2>0,X2,0),POINTDOT,COLORRED;
- X4:IF(X2<0,X2,0),POINTDOT,COLORGREEN;
- STICKLINE(X2>0,0,X2,2.8,0),COLORRED;
- STICKLINE(X2>0,0,X2,2.8,0),COLOR000088;
- STICKLINE(X2>0,0,X2,2.6,0),COLOR000099;
- STICKLINE(X2>0,0,X2,2.4,0),COLOR0000AA;
- STICKLINE(X2>0,0,X2,2.2,0),COLOR0000BB;
- STICKLINE(X2>0,0,X2,2,0),COLOR0000CC;
- STICKLINE(X2>0,0,X2,1.8,0),COLOR0000DD;
- STICKLINE(X2>0,0,X2,1.5,0),COLOR0000EE;
- STICKLINE(X2>0,0,X2,1.0,0),COLOR0000FF;
- STICKLINE(X2>0,0,X2,0.0,0),COLOR0000FF;
- STICKLINE(X2<0,0,X2,2.8,0),COLORGREEN;
- STICKLINE(X2<0,0,X2,2.8,0),COLOR007700;
- STICKLINE(X2<0,0,X2,2.6,0),COLOR008800;
- STICKLINE(X2<0,0,X2,2.6,0),COLOR009900;
- STICKLINE(X2<0,0,X2,2.4,0),COLOR00BB00;
- STICKLINE(X2<0,0,X2,2.0,0),COLOR00CC00;
- STICKLINE(X2<0,0,X2,1.8,0),COLOR00DD00;
- STICKLINE(X2<0,0,X2,1.5,0),COLOR00EE00;
- STICKLINE(X2<0,0,X2,1,0),COLOR00FF00;
- STICKLINE(X2<0,0,X2,0,0),COLOR00FF00;
- 资金动能A:X2,COLORYELLOW,LINETHICK2;
- 资金动能B:X1,COLORFFFF00,LINETHICK2;
- DRAWICON((CROSS(资金动能A,资金动能B) AND 资金动能B<-0.25),资金动能B,1);
- DRAWICON((CROSS(资金动能B,资金动能A) AND 资金动能A>0.25),资金动能A,2);
上一篇:大智慧L2超级主力预警指标 下一篇:操盘手的BS 两条线 源码