boll:ma(close,20);ub:boll+2*std(close,20);lb:boll-2*std(close,20);zdf:=(c-ref(c,1))/ref(c,1)*100;{有需要私信}xg:if(cross(c,ub) and zdf>=4,lb/2,0);编写公式,修改公式。盘中预警,条件选股。公式解密,去除时间限制。 20210311
c>ma(c,30) and c>ref(ma(c,30),1) and c/ref(c,1)>=1.02 and ma(c,5)>ma(c,10) and ma(c,10)>ma(c,20);{股价连续2日占在30日均线上,股价当日涨幅2%以上,5日均线10日均线20日均线多头排列已测试,复制可直接引用,如果回答满意,请记得给采纳}
x:=(close-ref(close,1))/ref(close,1)*100;涨停:=x>9.94;{求助者自己定义的} 五十天之内:=if(currbarscount,c,draw**);x1:=const(ref(c,1));x2:=ref(llv(if((五十天之内)>x1 and 涨停,c,date),50),1);上穿:cross(c,x2)and 涨停;
a:=between(close,3,8);b:=finance(55)>1;eps:=(finance(33)-ref(finance(33),1))/(finance(33),1)>1;tcst:=if(inblock('st板块'),1,0)=0;xuangu:a and b and eps and tcst;已经通过测试。