九毛八公式指标
本人愚钝,请老师写个选股公式,要求2个条件满足其中之一的选股 条件1: variable:p1=0; p2:=intpart(ref(cyc(5),1)*100)/100; p3:=intpart(ref(cyc(5),1)*0.96*100)/100; vv:=intpart(min(capital*0.05,ref(ma(vol,34),1))/100); p40:=intpart(maxcyc*100)/100; p41:=intpart(ref(MAXCYC,1)*100)/100; p40:=intpart(maxcyc*100)/100; p41:=intpart(ref(MAXCYC,1)*100)/100; p4:=p1=0 and c>p2 or (ref(vol/100,1)公式模块:
variable:p1=0;
p2:=intpart(ref(cyc(5),1)*100)/100; p3:=intpart(ref(cyc(5),1)*0.96*100)/100; vv:=intpart(min(capital*0.05,ref(ma(vol,34),1))/100); p40:=intpart(maxcyc*100)/100; p41:=intpart(ref(MAXCYC,1)*100)/100; p40:=intpart(maxcyc*100)/100; p41:=intpart(ref(MAXCYC,1)*100)/100; p4:=p1=0 and c>p2 or (ref(VOL/100,1)<vv and c>intpart(p2*0.98*100)/100 and vol>min(capital*0.05,ref(ma(vol,34),1))); p5:=p1=1 and c<min(p3,p41); p1:=if(p4=1,1,if(p5=1,0,ref(p1,1))); 条件1:=cross(p1,0); DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4; DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4; 条件2:=CROSS(DA-DB,0); XG:条件1 OR 条件2;