用drawicon图标输出函数,可作提示标记,你也可以将k线重画,用不同颜色进行标记区分;value:=ref(close,3)/ref(open,3)>1.025 and ref(close,2)<ref(open,2) and ref(close,1)<ref(open,1) and ref(low,3)<ref(low,2) and ref(low,3)<ref(low,1) and ref(high,2)>=ref(high,1);第一种:drawicon(value,l*0.98,7);第二种:stickline(value,open,close,-1,0),coloryellow; 20210311
编写一个股票公式第一天涨幅3%以上,然后5天内任意一天缩量至第一天的50%以内。tj1:=barslast(c/ref(c,1)>1.03);tj2:=v<=ref(v,1)*0.5;xg: count(tj2,tj1)=1 and tj2 and tj1<=5;这样的选股经常会碰到第二天就缩量的情况。
选股周期自行选用。(cross(kd.k,kd.d) or (ref(kd.k,2)>ref(kd.k,1) and kd.k>ref(kd.k,1))) and macd.macd>ref(macd.macd,1) and range(cci.cci,-100,100) and cci.cci>ref(cci.cci,1);