通达信条件选股 {红三兵选股等于强势股选股} MID:=MA(CLOSE,26),colorwhite; Uu:=MID + 2*STDDEV(CLOSE,26),coloryellow; Ll:=MID - 2*STDDEV(CLOSE,26),colorff00ff; v1:=STICKLINE(MID>=REF(MID,1),MID,REF(MID,1),5,1), colorYELLOW,LINETHICK2; v2:=STICKLINE(MID<REF(MID,1),MID,REF(MID,1),5,1),colorRED, LINETHICK2; K:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE>OPEN AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1) and v>ref(v,1) and ref(v,1)>ref(v,2) and (close-open)<0.05*ref(open,1) and (ref(close,1)-ref(open,1))<0.05*ref(open,2) and (ref(close,2)-ref(open,2))<0.05*ref(open,3); 红三兵:=if(K,1,0),colorred; vab:=uu>ref(uu,1) and mid>ref(mid,1) and c>ref(c,1) and c>uu; xg1:if(vab and 红三兵,1,0); 选股 K:REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE>OPEN AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1) and v>ref(v,1) and ref(v,1)>ref(v,2) and (close-open)<0.05*ref(open,1) and (ref(close,1)-ref(open,1))<0.05*ref(open,2) and (ref(close,2)-ref(open,2))<0.05*ref(open,3); |
|