收到“飘红1957”求助
麻烦老师帮忙写一个kdj指标回调整理时 K 值没有死叉 D 值拐头向上冲过左侧高点数值的选股公式,要求是: 一达到图片当中的条件K值回调不死叉D值拐头向上超过回调是的左侧高点数值立即出信号; 二 剔除ST和停牌的股票; 三 流通盘小于10亿,{不知道我陈述的说法是否清楚?说白了就是椭圆中的过程写一个选股公式}O(∩_∩)O谢谢
指标只是帮助您在技术形态上缩小选股范围。出票后还要根据基本面 消息面和大盘氛围甄别一下是否建仓布局。
所有思路都是按照求助者本意而写。考虑KDJ的J值过高为了防止站岗。自作主张添加J至范围(其实还可以降低参数)。
六月初票截图两张
{主图}
T:=BARSLAST(CROSS(KDJ.D,KDJ.K));
T1:=BARSLAST(CROSS(KDJ.K,KDJ.D));
A1:=COUNT(T1=0,T)=1;
A2:=EVERY(KDJ.K>KDJ.D,T1);
A3:=KDJ.K=HHV(KDJ.K,T1) AND COUNT(KDJ.K<REF(KDJ.K,1),T1)>0 AND T1>2 AND KDJ.J<95;
A4:=RANGE(REF(KDJ.K,T),20,50) AND RANGE(REF(KDJ.K,T1),20,50) AND REF(KDJ.K,T)>REF(KDJ.K,T1);
A5:=NOT(NAMELIKE('ST')) AND NOT(NAMELIKE('S')) AND NOT(NAMELIKE('*')) AND DYNAINFO(17)>0;
XG:=CROSS(COUNT(A1 AND A2 AND A3 AND A4,T1+1)=1,0.5) AND A5 AND CAPITAL/1000000<10;
DRAWICON(XG,L*0.95,1);
STICKLINE(XG,C,O,1.5,0),COLORYELLOW;
STICKLINE(XG,H,L,0,0),COLORYELLOW;
{选股}
T:=BARSLAST(CROSS(KDJ.D,KDJ.K));
T1:=BARSLAST(CROSS(KDJ.K,KDJ.D));
A1:=COUNT(T1=0,T)=1;
A2:=EVERY(KDJ.K>KDJ.D,T1);
A3:=KDJ.K=HHV(KDJ.K,T1) AND COUNT(KDJ.K<REF(KDJ.K,1),T1)>0 AND T1>2 AND KDJ.J<95;
A4:=RANGE(REF(KDJ.K,T),20,50) AND RANGE(REF(KDJ.K,T1),20,50) AND REF(KDJ.K,T)>REF(KDJ.K,T1);
A5:=NOT(NAMELIKE('ST')) AND NOT(NAMELIKE('S')) AND NOT(NAMELIKE('*')) AND DYNAINFO(17)>0;
XG:CROSS(COUNT(A1 AND A2 AND A3 AND A4,T1+1)=1,0.5) AND A5 AND CAPITAL/1000000<10;
617599365.jpg
61855021.jpg
618133723.png
|