| | | |
通达信公式QF三合一指标公式副图源码
X_1:=(CLOSE+HIGH+LOW)/3;
X_2:=EMA(X_1,9);
X_3:=REF(X_2,1);
X_4:=X_2<X_3;
X_5:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_6:=VOL/REF(MA(VOL,5),1);
X_7:=VOL/REF(MA(VOL,5),1);
X_8:=BARSLASTCOUNT(CLOSE<OPEN)=2 AND SUM(X_5,2)<(-8);
X_9:=EMA(CLOSE,9);
X_10:=EMA(X_9,3);
X_11:=EMA(X_9,13);
X_12:=REF(X_5,1)<(-8) AND X_5>ABS(REF(X_5,1)/2) AND X_6>1.2;
X_13:=X_2>X_3 AND NOT(REF(X_4,1) AND CLOSE<OPEN) OR X_12 AND NOT(X_8);
X_14:=X_2>X_3 AND NOT(REF(X_4,1) AND CLOSE<OPEN) OR X_12 AND NOT(X_8) AND NOT(REF(X_13,1)<1 AND (CLOSE-HIGH)/HIGH<(-0.023));
X_15:=CROSS(X_9,X_11) OR X_9=X_11;
X_16:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
X_17:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
X_18:=EMA(EMA(X_16,5),5)*6;
X_19:=X_18>0 AND X_18<REF(X_18,1) AND X_14;
X_20:=LLV(X_17,3)<X_17;
X_21:=CROSS(SMA(CLOSE,2,1),SMA(LOW,5,1));
X_22:=SMA(HIGH,21,2)*1.05*1.05;
X_23:=IF(X_21,X_22,SMA(LOW,5,1));
X_24:=CROSS(SMA(CLOSE,2,1),SMA(HIGH,21,2)*1.05);
X_25:=IF(X_24,SMA(HIGH,21,2)*1.05*1.1,SMA(LOW,21,2)*0.95);
X_26:=X_23>SMA(LOW,5,1) AND CROSS(CLOSE,REF(MA(CLOSE,13),13/2+1)) AND VOL>0;
X_27:=REF(HIGH/OPEN<1.02,1) AND REF(CLOSE<OPEN,1);
X_28:=FILTER(X_25>SMA(LOW,21,2)*0.95 OR X_26 AND X_27,5);
X_29:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
X_30:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
X_31:=X_29<REF(X_30,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
X_32:=X_31 AND COUNT(X_31,30)=1;
X_33:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
X_34:=SMA(X_33,3,1);
X_35:=SMA(X_34,3,1);
X_36:=BARSLASTCOUNT(CLOSE<OPEN)=3;
X_37:=(2*CLOSE+HIGH+LOW+OPEN)/5;
X_38:=EMA(EMA(EMA(X_37,4),4),4);
X_39:=(X_38-REF(X_38,1))/REF(X_38,1)*100;
X_40:=MA(X_39,2);
X_41:=MA(X_39,1);
X_42:=CROSS(X_41,X_40) AND X_41<0;
X_43:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
X_44:=(EMA(X_43,3)+EMA(X_43,6)+EMA(X_43,12)+EMA(X_43,24))/4;
X_45:=EMA(X_44,2);
X_46:=EMA(X_45,2);
X_47:=EMA(X_46,2);
X_48:=EMA(X_47,2);
X_49:=EMA(X_48,2);
X_50:=CROSS(X_45,X_49);
X_51:=(CLOSE-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100;
X_52:=SMA(X_51,4,1);
X_53:=SMA(X_52,4,1);
X_54:=4*X_52-3*X_53;
X_55:=CLOSE/REF(CLOSE,1);
X_56:=REF((MA(CLOSE,5)-CLOSE)/CLOSE>0.04 AND (MA(CLOSE,10)-MA(CLOSE,5))/MA(CLOSE,5)>0.04,1) AND CLOSE>=MA(CLOSE,3);
X_57:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
X_58:=SMA(X_57,2,1);
X_59:=X_58>REF(X_58,1) AND REF(X_58,1)<REF(X_58,2) AND X_58<23 AND CLOSE>=MA(CLOSE,3);
X_60:=MA(CLOSE,34);
X_61:=MA(X_60*0.82,5);
X_62:=CLOSE<X_61;
X_63:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,125)/MA(VOL,125)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100)<(-0.4);
X_64:=X_63 AND X_62;
X_65:=(CLOSE-REF(CLOSE,24))/REF(CLOSE,24)*100;
X_66:=CROSS(X_65,MA(X_65,12)) AND OPEN<CLOSE AND OPEN/REF(CLOSE,1)<=0.97 AND CLOSE/OPEN>=1.05 AND X_65<(-25);
X_67:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
X_68:=SMA(X_67,6,1);
X_69:=IF(LLV(X_68,5)<10 AND (CLOSE=LLV(CLOSE,10) OR LOW=LLV(LOW,10)) AND CLOSE>REF(CLOSE,1)*0.618,40,0);
X_70:=COUNT(X_69=40,2)>=1 AND X_54-REF(X_54,1)>=0 AND CLOSE>=OPEN;
X_71:=X_14 AND REF(X_14,1)=0 AND NOT((CLOSE-HIGH)/HIGH<(-0.02)) AND X_5>=1 AND X_6<1.6 AND CLOSE>MA(CLOSE,10) AND MA(CLOSE,13)>MA(CLOSE,25) AND REF(CLOSE>OPEN,1);
X_72:=BETWEEN(X_35,76,98) AND ROUND(X_35)-ROUND(REF(X_35,1))>=0;
X_73:=NOT(X_36) AND COUNT(X_5>2,5)>=1 AND (X_6>0.5 OR X_5>=8) AND CLOSE>=MA(CLOSE,8) AND COUNT(CLOSE>=OPEN,8)>=4 AND ROUND(X_35)>=88 AND ROUND(REF(X_35,1))>=88 AND REF(X_35,2)>=86;
X_74:=X_71 OR (X_42 AND X_50 AND X_54-REF(X_54,1)>0 AND CLOSE>MA(CLOSE,8) AND BETWEEN(X_55,1.02,1.04));
X_75:=X_59 OR X_56;
X_76:=REF(NOT((CLOSE-HIGH)/HIGH<(-0.03)),1);
X_77:=X_64 AND X_6<1.6 AND X_54-REF(X_54,1)>0 AND NOT((CLOSE-HIGH)/HIGH<(-0.026));
X_78:=X_70 OR X_66 OR (X_64 AND X_6<1.6 AND (X_7>=0.9 OR (CLOSE>MA(CLOSE,8) AND X_7>=0.6) OR (CLOSE>MA(CLOSE,8) AND CLOSE=OPEN) OR (REF(X_6,1)>2 AND CLOSE>=OPEN)) AND NOT((CLOSE-HIGH)/HIGH<(-0.026)) AND X_54-REF(X_54,1)>0 AND COUNT(X_77,3)<=2);
三合一XXXG:X_78*X_75*X_20;
|
| | | | |
|