简单KD指标及抄底、加仓信号和选股公式源码
-
相关简介:{副图源码} 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(kref(k,1),5)=5,1) AND COUNT(K30,5)=2 AND COUNT(J0,3)0 AND CROSS(J,0),90,50),color00ffff; tj00:=BARSLAST(ref(
-
文章来源:股海网作者:股海网发布时间:2014-04-18浏览次数:
{副图源码}
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;
{抄底选股}
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);
{加仓选股}
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);