想编一个条件选股公式.条件是选出底部线的数值比昨天大的股票.也就是底部线向上走的所有股票.不知哪位大哥可以给小弟编一个,先谢了~ X1:=(3*C+L+O+H)/6; X2:=(20*X1+19*REF(X1,1)+18*REF(X1,2)+17*REF(X1,3)+16*REF(X1,4)+15*REF(X1,5)+14*REF(X1,6)+13* REF(X1,7)+12*REF(X1,8)+11*REF(X1,9)+10*REF(X1,10)+9*REF(X1,11)+8*REF(X1,12)+7*REF(X1,13)+6* REF(X1,14)+5*REF(X1,15)+4*REF(X1,16)+3*REF(X1,17)+2*REF(X1,18)+REF(X1,20))/210; AA:=MA(X1,3),COLORFFFFFF; BB:= SMA(AA,3,1),COLORFFFF00; 拉升:HHV(AA,13),COLORYELLOW,LINETHICK2; ; 底部:LLV(MA(L,3),13),COLORWHITE; ZSX1 := MAX(MAX((H-L),ABS(REF(C,1)-H)),ABS(REF(C,1)-L)); ZSX2 :=MA(ZSX1,13); ZSX3:=REF(C,1)-REF(ZSX2,1); 止损:HHV(ZSX3,13){,CIRCLEDOT},COLOR006200,LINETHICK1; L1:=HHV(H ,1 ); L2:=FORCAST(L1,3); L3:= (EMA(C,5)*7+EMA(C,5)*3)/10; L4:= MA(C,13); 持股:STICKLINE(L3>L4 AND C>O,C,O,3,0),COLORRED; 持币:STICKLINE(L3O,C,O,3,0),COLORCYAN; 警戒:STICKLINE(L4 STICKLINE(L4关注:STICKLINE(L4>O AND C>L4 AND O STICKLINE(L4>O AND C>L4,L,L*0.99,0,1),COLORYELLOW; {CLOSE,CIRCLEDOT,COLORBLACK;} DKX1:= EMA(C,5); STICKLINE(C>O,C,O,8,0),COLOR0000AA; STICKLINE(CSTICKLINE(C>O,C,O,5,0),COLOR0000CC; STICKLINE(C>O,C,O,3,0),COLOR0000DD; STICKLINE(C>O,H,L,0,0),COLOR0000FF; STICKLINE(CSTICKLINE(CSTICKLINE(C画分段线(AA>=拉升,拉升),Color0000FF; 画分段线(AA<=BB,AA),ColorFF0000; |