X_1:=REF(HIGH,3)=HHV(HIGH,笔周期*3+1);
X_2:=FILTER(X_1,3);
X_3:=BACKSET(X_2,3+1);
X_4:=FILTER(X_3,3);
X_5:=REF(LOW,3)=LLV(LOW,笔周期*3+1);
X_6:=FILTER(X_5,3);
X_7:=BACKSET(X_6,3+1);
X_8:=FILTER(X_7,3);
X_9:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
X_10:=(HIGH+LOW)/2;
X_11:=X_4 AND NOT(X_8 AND X_9>=X_10) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
X_12:=X_4 AND NOT(X_8 AND X_9>=X_10);
X_13:=X_8 AND NOT(X_4 AND X_9=X_10);
X_14:=REF(BARSLAST(X_11),1)+1;
X_15:=BACKSET(X_11 AND COUNT(X_13,X_14)>0,LLVBARS(IF(X_13,LOW,10000),X_14));
X_16:=X_15>REF(X_15,1);
X_17:=BACKSET(X_16,2);
X_18:=X_17>REF(X_17,1);
X_19:=X_18 OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
X_20:=REF(BARSLAST(X_19),1)+1;
X_21:=BACKSET(X_19 AND COUNT(X_12,X_20)>0,HHVBARS(IF(X_12,HIGH,0),X_20));
X_22:=X_21>REF(X_21,1);
X_23:=BACKSET(X_22,2);
X_24:=X_23>REF(X_23,1);
X_25:=BACKSET(BARSTATUS=2,MIN(BARSLAST(X_24),BARSLAST(X_18))+1);
X_26:=X_25>REF(X_25,1);
X_27:=HIGH;
X_28:=REF(HIGH,REF(BARSLAST(X_24),1)+1)>REF(HIGH,REF(BARSLAST(X_24),1)+2+REF(BARSLAST(X_24),REF(BARSLAST(X_24),1)+2));
X_29:=X_27 AND X_28 AND X_24;
X_30:=BACKSET(X_29,REF(BARSLAST(X_24),1)+2);
X_31:=X_30>REF(X_30,1);
X_32:=LOW>REF(LOW,REF(BARSLAST(X_18),1)+1);
X_33:=REF(LOW,REF(BARSLAST(X_18),1)+1);
X_34:=X_32 AND X_33 AND X_18;
X_35:=BACKSET(X_34,REF(BARSLAST(X_18),1)+2);
X_36:=X_35>REF(X_35,1);
X_37:=X_31 OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
X_38:=REF(BARSLAST(X_37),1)+1;
X_39:=BACKSET(X_37 AND COUNT(X_36,X_38)>0,LLVBARS(IF(X_36,LOW,POW(10,20)),X_38));
X_40:=X_39>REF(X_39,1);
X_41:=BACKSET(X_40,2);
X_42:=X_41>REF(X_41,1);
X_43:=X_42 OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
X_44:=REF(BARSLAST(X_43),1)+1;
X_45:=BACKSET(X_43 AND COUNT(X_31,X_44)>0,HHVBARS(IF(X_31,HIGH,-POW(10,20)),X_44));
X_46:=X_45>REF(X_45,1);
X_47:=BACKSET(X_46,2);
X_48:=X_47>REF(X_47,1);
X_49:=BACKSET(BARSTATUS=2,MIN(BARSLAST(X_48),BARSLAST(X_42))+1);
X_50:=X_49>REF(X_49,1);
X_51:=BACKSET(BARSTATUS=2,BARSLAST(X_18)+1);
X_52:=X_51>REF(X_51,1);
X_53:=BACKSET(X_52,REF(BARSLAST(X_18),1)+2);
X_54:=X_53>REF(X_53,1);
X_55:=BACKSET(X_54,REF(BARSLAST(X_18),1)+2);
X_56:=X_55>REF(X_55,1);
X_57:=BACKSET(BARSTATUS=2,BARSLAST(X_24)+1);
X_58:=X_57>REF(X_57,1);
X_59:=BACKSET(X_58,REF(BARSLAST(X_24),1)+2);
X_60:=X_59>REF(X_59,1);
X_61:=BACKSET(X_60,REF(BARSLAST(X_24),1)+2);
X_62:=X_61>REF(X_61,1);
X_63:=BACKSET(X_62,REF(BARSLAST(X_24),1)+2);
X_64:=X_63>REF(X_63,1);
X_65:=DRAWLINE(X_60,HIGH,X_58,HIGH,1);
X_66:=BARSLAST(X_56>0);
X_67:=BARSLAST(X_62>0);
X_68:=REF(LOW,BARSLAST(X_52));
X_69:=REF(HIGH,BARSLAST(X_58));
X_70:=REF(LOW,BARSLAST(X_54));
X_71:=REF(HIGH,BARSLAST(X_60));
X_72:=IF(X_67>X_66,REF(LOW,BARSLAST(X_56)),0);
X_73:=IF(X_67<X_66,REF(HIGH,BARSLAST(X_62)),0);
X_74:=X_68-(X_68-X_69);
X_75:=HIGH<REF(HIGH,1) AND LOW<REF(LOW,1);
X_76:=HIGH<REF(HIGH,1) AND LOW>REF(LOW,1);
X_77:=HIGH>REF(HIGH,1) AND LOW<REF(LOW,1);
X_78:=HIGH>REF(HIGH,1) AND LOW>REF(LOW,1);
X_79:=REF(HIGH,2)<HIGH AND REF(LOW,2)<LOW AND REF(HIGH,2)>REF(HIGH,1) AND REF(LOW,2)<REF(LOW,1);
X_80:=COUNT(X_75,3)>=1 AND LLVBARS(LOW,3)=1 AND X_78;
X_81:=COUNT(X_75,4)>=1 AND LLVBARS(LOW,4)=2 AND X_79;
X_82:=COUNT(X_75,4)>=1 AND COUNT(X_76 OR X_77,4)=1 AND LLVBARS(LOW,4)=1 AND X_78;
X_83:=COUNT(X_75,5)>=1 AND COUNT(X_76 OR X_77,5)=2 AND LLVBARS(LOW,5)=2 AND X_79;
X_84:=X_80 OR X_81 OR X_82 OR X_83;
X_85:=CLOSE>REF(HIGH,1);
X_86:=X_84 AND X_85;
三买:X_68>X_71 AND X_74>X_68 AND X_86>0 AND CLOSE>OPEN;
|