通达信简单KD指标及抄底和加仓信号选股源码
把复杂的简化,把传统的优化,舍弃复杂元素,促进实用效果,我想是这是指标人的目的和宗旨。现将我的一个简单实用的简单KD指标奉献出来。作为我对2010年的期待和祝福!指标为通用,祝愿指标区越办越好,同学们越炒越精!提前祝大家新年快乐!{牛牛指标网提供:www.tdx001.com}
指标的原理很简单,信号是根据传统KDJ来写的,总结+经验,成功率我是不曾测试过的,盘感+心态,就是运用的最好前提,用法自己体会吧!
复制内容到剪贴板
- RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
- K:SMA(RSV,3,1),COLORWHITE;
- D:SMA(K,3,1),COLORfff111;
- J:=3*K-2*D;
- 抄底:if(REF(COUNT(k<ref(k,1),5)>=5,1) AND COUNT(K<30,5)>=2 AND COUNT(J<0,3)>0 AND CROSS(J,0),90,50),color00ffff;
-
- tj00:=BARSLAST(ref(cross(k,d) and ref(k,1)<35,1));
- tj11:=c<ref(c,tj00+1)*1.1 and ref(k,1)<60 and (tj00+1)<25 and (tj00+1)>5 and k>ref(k,tj00+1) and cross(k,d);
- 加仓:if(tj11,35,0),color1111ff;
复制内容到剪贴板
- 选股1如下:
-
- RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
- K:=SMA(RSV,3,1);
- D:=SMA(K,3,1);
- J:=3*K-2*D;
- 抄底:REF(COUNT(k<ref(k,1),5)>=5,1) AND COUNT(K<30,5)>=2 AND COUNT(J<0,3)>0 AND CROSS(J,0);
复制内容到剪贴板
- 选股2如下:
- RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
- K:=SMA(RSV,3,1);
- D:=SMA(K,3,1);
- J:=3*K-2*D;
- tj00:=BARSLAST(ref(cross(k,d) and ref(k,1)<35,1));
- 加仓:c<ref(c,tj00+1)*1.1 and ref(k,1)<60 and (tj00+1)<25 and (tj00+1)>5 and k>ref(k,tj00+1) and cross(k,d);
|