X_1:=7;
X_2:=HHV(VOL,21)=VOL OR VOL/REF(VOL,1)>=5;
X_3:=BARSLAST(X_2);
X_4:=IF(X_2,CLOSE,REF(CLOSE,X_3));
X_5:=(3*CLOSE+LOW+OPEN+HIGH)/6;
X_6:=(20*X_5+19*REF(X_5,1)+18*REF(X_5,2)+17*REF(X_5,3)+16*REF(X_5,4)+15*REF(X_5,5)+14*REF(X_5,6)+13*REF(X_5,7)+12*REF(X_5,8)+11*REF(X_5,9)+10*REF(X_5,10)+9*REF(X_5,11)+8*REF(X_5,12)+7*REF(X_5,13)+6*REF(X_5,14)+5*REF(X_5,15)+4*REF(X_5,16)+3*REF(X_5,17)+2*REF(X_5,18)+REF(X_5,20))/210;
X_7:=X_6+4*STD(X_6,21);
X_8:=X_6-4*STD(X_6,21);
X_9:=X_7/X_8;
X_10:=REF(HIGH,X_1)=HHV(HIGH,2*X_1+1);
X_11:=FILTER(X_10,X_1);
X_12:=BACKSET(X_11,X_1+1);
X_13:=FILTER(X_12,X_1);
X_14:=REF(LOW,X_1)=LLV(LOW,2*X_1+1);
X_15:=FILTER(X_14,X_1);
X_16:=BACKSET(X_15,X_1+1);
X_17:=FILTER(X_16,X_1);
X_18:=(REF(LLV(LOW,2*X_1),1)+REF(HHV(HIGH,2*X_1),1))/2;
X_19:=(HIGH+LOW)/2;
X_20:=X_13 AND NOT(X_17 AND X_18>=X_19) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
X_21:=X_17 AND NOT(X_13 AND X_18<X_19);
X_22:=X_13 AND NOT(X_17 AND X_18>=X_19);
X_23:=REF(BARSLAST(X_20),1)+1;
X_24:=BACKSET(X_20 AND COUNT(X_21,X_23)>0,LLVBARS(IF(X_21,LOW,10000),X_23));
X_25:=X_24>REF(X_24,1);
X_26:=BACKSET(X_25,2);
X_27:=X_26>REF(X_26,1);
X_28:=X_27 OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
X_29:=REF(BARSLAST(X_28),1)+1;
X_30:=BACKSET(X_28 AND COUNT(X_22,X_29)>0,HHVBARS(IF(X_22,HIGH,0),X_29));
X_31:=X_30>REF(X_30,1);
X_32:=BACKSET(X_31,2);
X_33:=X_32>REF(X_32,1);
X_34:=BACKSET(BARSTATUS=2,BARSLAST(X_33)+1);
X_35:=X_34>REF(X_34,1);
X_36:=BACKSET(BARSTATUS=2,BARSLAST(X_27)+1);
X_37:=X_36>REF(X_36,1);
X_38:=BACKSET(X_35,REF(BARSLAST(X_33),1)+2);
X_39:=X_38>REF(X_38,1);
X_40:=BACKSET(X_37,REF(BARSLAST(X_27),1)+2);
X_41:=X_40>REF(X_40,1);
X_42:=BACKSET(X_41,REF(BARSLAST(X_27),1)+2);
X_43:=X_42>REF(X_42,1);
X_44:=BACKSET(X_43,REF(BARSLAST(X_27),1)+2);
X_45:=X_44>REF(X_44,1);
X_46:=BACKSET(X_39,REF(BARSLAST(X_33),1)+2);
X_47:=X_46>REF(X_46,1);
X_48:=BACKSET(X_47,REF(BARSLAST(X_33),1)+2);
X_49:=X_48>REF(X_48,1);
X_50:=IF(X_39,HIGH,REF(HIGH,BARSLAST(X_39)));
X_51:=IF(X_35,HIGH,REF(HIGH,BARSLAST(X_35)));
X_52:=IF(X_47,HIGH,REF(HIGH,BARSLAST(X_47)));
X_53:=IF(X_39,HIGH,REF(HIGH,BARSLAST(X_39)));
X_54:=IF(X_49,HIGH,REF(HIGH,BARSLAST(X_49)));
X_55:=IF(X_47,HIGH,REF(HIGH,BARSLAST(X_47)));
X_56:=IF(X_41,LOW,REF(LOW,BARSLAST(X_41)));
X_57:=IF(X_37,LOW,REF(LOW,BARSLAST(X_37)));
X_58:=IF(X_43,LOW,REF(LOW,BARSLAST(X_43)));
X_59:=IF(X_41,LOW,REF(LOW,BARSLAST(X_41)));
X_60:=IF(X_45,LOW,REF(LOW,BARSLAST(X_45)));
X_61:=IF(X_43,LOW,REF(LOW,BARSLAST(X_43)));
X_62:=X_50+(X_51-X_50)*BARSLAST(X_39)/(BARSLAST(X_39)-BARSLAST(X_35));
X_63:=X_52+(X_53-X_52)*BARSLAST(X_47)/(BARSLAST(X_47)-BARSLAST(X_39));
X_64:=X_54+(X_55-X_54)*BARSLAST(X_49)/(BARSLAST(X_49)-BARSLAST(X_47));
X_65:=CROSS(CLOSE,X_62) OR CROSS(CLOSE,X_63) OR CROSS(CLOSE,X_64);
X_66:=X_51+(X_50-X_56)*BARSLAST(X_19)/(BARSLAST(X_39)-BARSLAST(X_35));
X_67:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_68:=EMA(X_67,9);
X_69:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_70:=SMA(X_69,3,1);{分析家公式网www.fxjgsw.com}
X_71:=SMA(X_70,3,1);
X_72:=3*X_70-2*X_71;
X_73:=CROSS(X_67,X_68) OR X_67>X_68 AND X_67>REF(X_67,1) AND X_67>=HHV(X_67,21);
X_74:=CROSS(X_70,X_71) OR X_70>X_71 AND X_70>REF(X_70,1);
XG:CROSS(CLOSE,REF(X_4,1)) AND CROSS(CLOSE,X_66) AND X_9<=1.3 AND X_74 AND X_73 AND (X_65 OR COUNT(X_65,2)=1);
|