{红蓝三角选股}
XA_1:=REF(HIGH,3)=HHV(HIGH,2*3+1);
XA_2:=FILTER(XA_1,3);
XA_3:=BACKSET(XA_2,3+1);
XA_4:=FILTER(XA_3,3);
XA_5:=REF(LOW,3)=LLV(LOW,2*3+1);
XA_6:=FILTER(XA_5,3);
XA_7:=BACKSET(XA_6,3+1);
XA_8:=FILTER(XA_7,3);
XA_9:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
XA_10:=(HIGH+LOW)/2;
XA_11:=XA_4 AND NOT(XA_8 AND XA_9>=XA_10) OR BARSTATUS OR BARSCOUNT(CLOSE)=1;
XA_12:=XA_8 AND NOT(XA_4 AND XA_9<XA_10);
XA_13:=XA_4 AND NOT(XA_8 AND XA_9>=XA_10);
XA_14:=REF(BARSLAST(XA_11),1)+1;
XA_15:=BACKSET(XA_11 AND COUNT(XA_12,XA_14)>0,LLVBARS(IF(XA_12,LOW,10000),XA_14));
XA_16:=XA_15>REF(XA_15,1);
XA_17:=BACKSET(XA_16,2);
XA_18:=XA_17>REF(XA_17,1);
XA_19:=XA_18 OR BARSTATUS OR BARSCOUNT(CLOSE)=1;
XA_20:=REF(BARSLAST(XA_19),1)+1;
XA_21:=BACKSET(XA_19 AND COUNT(XA_13,XA_20)>0,HHVBARS(IF(XA_13,HIGH,0),XA_20));
XA_22:=XA_21>REF(XA_21,1);
XA_23:=BACKSET(XA_22,2);
XA_24:=XA_23>REF(XA_23,1);
XA_25:=BACKSET(BARSTATUS,BARSLAST(XA_18)+1);
XA_26:=XA_25>REF(XA_25,1);
XA_27:=BACKSET(BARSTATUS,BARSLAST(XA_24)+1);
XA_28:=XA_27>REF(XA_27,1);
XA_29:=REF(LOW,BARSLAST(XA_26));
XA_30:=REF(HIGH,BARSLAST(XA_28));
选股:CROSS(CLOSE,XA_30);
p201831116225922510.jpg
|