当前位置:→ 公式网 > 通达信公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是大道至尊(无源码的请下载附件导入)
研究指标多年,回头一看,也就是那几个常用指标而已-----k线.均线.成交量.macd.kdj.ccl。以前我发过两个不错指标,一个是主图,另一个是ccl合成指标,个人认为再加上目前这个指标,股道任我行。声明一下,指标都是理想论坛的,本人优化一下。阁下若用本人指标赚得金玉满堂,功德属于理想,若你不小心亏了,说明你是新手,还需修炼,所谓玉不琢不成器。[大道至尊】
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 50;
- RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
- K:SMA(RSV,3,1),COLORWHITE;
- D:SMA(K,3,1),COLORYELLOW;
- J:3*K-2*D,COLORYELLOW;
- IF(K<REF(K,1),K,DRAWNULL),COLORGREEN,LINETHICK1;
- IF(D<REF(D,1),D,DRAWNULL),COLORGREEN,LINETHICK1;
- IF(J<REF(J,1),J,DRAWNULL),COLORFFFF00,LINETHICK1;
- IF(K>REF(K,1),K,DRAWNULL),COLORRED,LINETHICK1;
- IF(D>REF(D,1),D,DRAWNULL),COLORRED,LINETHICK1;
- IF(J>REF(J,1),J,DRAWNULL),COLORFF00FF,LINETHICK1;
- SG:=EMA(HHV(HIGH,1),8);
- X1:=EMA(CLOSE,8);
- X30:=((X1 < REF(X1,1)) AND (CLOSE < X1));
- X31:=IF(((SG < REF(SG,1)) OR X30),1,0);
- 全仓出击:=((((COUNT((X31 = 1),4) = 3) AND (X31 = 0)) AND (((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) > 0.085)) * 89);
- STICKLINE(全仓出击,50,0,3,1),COLORMAGENTA;
- DRAWICON((全仓出击 >= 50),全仓出击,0);
- DRAWTEXT((全仓出击 >= 50),50,'--阻击');STICKLINE(CROSS(J,(0 - 5)),0,10,6,0),COLORRED;
- DRAWTEXT(CROSS(J,(0 - 5)),(0 - 4),'。低吸'),COLORYELLOW;
- A:=250;
- 分开一:C>0,COLOR000000;
- DIFIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
- DEAEA1:=EMA(DIFIF1,9);
- MACD1:=2*(DIFIF1-DEAEA1),STICK;
- MACD2:=EMA(MACD1,3);
- STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1,0),COLORRED;
- STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1,0),COLORGREEN;
- STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLORCBCBC0;
- STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;
- DIFIF1,COLOR33FF33,LINETHICK2;
- DEAEA1,COLORYELLOW,LINETHICK2;
- MACD:MACD1,NODRAW,COLORMAGENTA;
- DRAWICON(CROSS(DIFIF1,DEAEA1),DIFIF1+0.1,1);
- DRAWICON(CROSS(DEAEA1,DIFIF1),-0.5,2);
- DRAWTEXT(CROSS(DIFIF1,DEAEA1),DIFIF1,'买'),LINETHICK3, COLORRED;
- JH:=HHV(MAX(K,MAX(D,J)),A);
- DH:=HHV(MAX(DIFIF1,DEAEA1),A);
- SH:=INTPART(JH/DH)/2;
- 分开二:C>0,COLOR000000;
- DIFF50:SH*DIFIF1+50,COLORFFFF00;
- DEA50:SH*DEAEA1+50,COLORBLUE;
- STICKLINE(DIFF50>DEA50,0,1.5*(DIFF50-DEA50),0,0),COLORRED;
- STICKLINE(DIFF50<DEA50,0,1.5*(DIFF50-DEA50),0,0),COLORCYAN;
- 强:IF(DIFF50>=DEA50,DIFF50,DRAWNULL),COLORRED,LINETHICK2;
- 弱:IF(DEA50>=DIFF50,DEA50,DRAWNULL),COLORFF9900,LINETHICK2;
- 短线:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*150,LINETHICK0,COLORYELLOW;
- 中线:(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*150,LINETHICK0,COLORWHITE;
- 红柱:SMA(短线,3,1),LINETHICK0,COLOR0000FF;
- 蓝柱:SMA(中线,3,1),COLORSTICK,COLORFFFF00;
- {蓝柱}
- STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,1,0),COLORLIRED;
- STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,1,1),COLORMAGENTA;
- STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,1,0),COLORRED;
- VAR53:=PEAKBARS(3,15,1)<10;
- VAR55:=IF(VAR53=1,2,0);
- 顶:= IF(VAR55=2,2,0);
- 顶A:IF(顶>REF(顶,1),60,0),COLORCYAN;
- DRAWTEXT(顶A=60,90,'高抛'),COLOR00FF00;
- 小获且退: ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG
- (3,10),2),COLORYELLOW,LINETHICK2;
- DRAWTEXT(小获且退=1,90.3,'卖'),COLORLICYAN;