通达信懒人买点副图+选股预警指标公式源码
以下是通达信懒人买点副图指标公式源码:
X_1:=88;
X_2:=6;
X_3:=(CLOSE-LLV(LOW,40))/(HHV(HIGH,40)-LLV(LOW,40))*100;
X_4:=REF(CLOSE,2);
X_5:=SMA(MAX(CLOSE-X_4,0),7,1)/SMA(ABS(CLOSE-X_4),7,1)*100;
X_6:=REF(CLOSE,1);
X_7:=SMA(MAX(CLOSE-X_6,0),7,1)/SMA(ABS(CLOSE-X_6),7,1)*100;
X_8:=IF(X_5<12,23,12);
X_9:=IF(X_7<12,30,12);
X_10:=MA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100;
X_11:=(-100)*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6))+100;
X_12:=EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100;
X_13:=MA(LOW,20)*1.2;
X_14:=MA(LOW,20)*1.1;
X_15:=MA(HIGH,20)*0.9;
X_16:=MA(HIGH,20)*0.8;
X_17:=IF(CLOSE>X_14,IF(CLOSE>X_13,4,3),IF(CLOSE>X_15 AND CLOSE<X_14,2,IF(CLOSE<X_16,0,1)));
X_18:=(CLOSE-X_16)/X_16*100;
X_19:=SMA(MAX(CLOSE-REF(CLOSE,1),0),8,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),8,1)*100;
X_20:=EMA(X_19,5);
X_21:=IF(X_20<25 AND X_20>=20,50,25);
X_22:=IF(X_20<20 AND X_20>=15,35,25);
X_23:=IF(X_20<15,37,25);
X_24:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100;
X_25:=REF(X_24,1)<REF(X_24,2) AND X_24<(-30) AND X_24>=REF(X_24,1) OR (REF(CROSS((-30),X_24),1) AND CROSS(X_24,(-30))) OR X_24=(-30);
X_26:=IF(X_25,65,12);
X_27:=REF(X_24,1)<REF(X_24,2) AND X_24<(-20) AND X_24>(-25) AND X_24>=REF(X_24,1) OR (REF(CROSS((-20),X_24),1) AND CROSS(X_24,(-20)));
X_28:=IF(X_27,58,12);
X_29:=REF(X_24,1)<REF(X_24,2) AND X_24<(-25) AND X_24>(-30) AND X_24>=REF(X_24,1) OR (REF(CROSS((-25),X_24),1) AND CROSS(X_24,(-25)));
X_30:=EMA(EMA(EMA(CLOSE,2),2),2);
X_31:=MA(X_30,13)*0.99;
X_32:=MA(X_30,13)*0.999;
X_33:=MAX(MAX(HIGH-LOW,ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
X_34:=MA(X_33,13);
X_35:=REF(CLOSE,1)-REF(X_34,1);
X_36:=HHV(X_35,12);
X_37:=EMA(AMOUNT/VOL/100,3);
X_38:=EMA(X_37,X_1);
X_39:=EMA(X_37,X_1)*0.85;
X_40:=X_39*0.87;
X_41:=(CLOSE-X_39)/X_39*100;
X_42:=REF(LOW,1);
X_43:=SMA(ABS(LOW-X_42),13,1)/SMA(MAX(LOW-X_42,0),13,1)*4;
X_44:=EMA(X_43,13);
X_45:=LLV(LOW,34);
X_46:=EMA(IF(LOW<=X_45,X_44,0),3);
X_47:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_48:=SMA(X_3,18,1);
X_49:=SMA(X_48,3,1);
X_50:=3*X_48-2*X_49;
X_51:=X_50<25 AND X_49<25 AND X_50-(X_48-1)<0.02;
X_52:=IF(NAMELIKE(2),1,0)=0;
X_17<=1 AND X_12<12 AND X_41>0 AND X_41<5 AND X_46>REF(X_46,1) AND BETWEEN(X_47,9.5,(-9.5)) AND X_51 AND X_52;
以下是通达信懒人买点选股预警指标公式源码:
X_1:=88;
X_2:=6;
X_3:=(CLOSE-LLV(LOW,40))/(HHV(HIGH,40)-LLV(LOW,40))*100;
X_4:=REF(CLOSE,2);
X_5:=SMA(MAX(CLOSE-X_4,0),7,1)/SMA(ABS(CLOSE-X_4),7,1)*100;
X_6:=REF(CLOSE,1);
X_7:=SMA(MAX(CLOSE-X_6,0),7,1)/SMA(ABS(CLOSE-X_6),7,1)*100;
X_8:=IF(X_5<12,23,12);
X_9:=IF(X_7<12,30,12);
X_10:=MA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100;
X_11:=(-100)*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6))+100;
X_12:=EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100;
X_13:=MA(LOW,20)*1.2;
X_14:=MA(LOW,20)*1.1;
X_15:=MA(HIGH,20)*0.9;
X_16:=MA(HIGH,20)*0.8;
X_17:=IF(CLOSE>X_14,IF(CLOSE>X_13,4,3),IF(CLOSE>X_15 AND CLOSE<X_14,2,IF(CLOSE<X_16,0,1)));
X_18:=(CLOSE-X_16)/X_16*100;
X_19:=SMA(MAX(CLOSE-REF(CLOSE,1),0),8,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),8,1)*100;
X_20:=EMA(X_19,5);
X_21:=IF(X_20<25 AND X_20>=20,50,25);
X_22:=IF(X_20<20 AND X_20>=15,35,25);
X_23:=IF(X_20<15,37,25);
X_24:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100;
X_25:=REF(X_24,1)<REF(X_24,2) AND X_24<(-30) AND X_24>=REF(X_24,1) OR (REF(CROSS((-30),X_24),1) AND CROSS(X_24,(-30))) OR X_24=(-30);
X_26:=IF(X_25,65,12);
X_27:=REF(X_24,1)<REF(X_24,2) AND X_24<(-20) AND X_24>(-25) AND X_24>=REF(X_24,1) OR (REF(CROSS((-20),X_24),1) AND CROSS(X_24,(-20)));
X_28:=IF(X_27,58,12);
X_29:=REF(X_24,1)<REF(X_24,2) AND X_24<(-25) AND X_24>(-30) AND X_24>=REF(X_24,1) OR (REF(CROSS((-25),X_24),1) AND CROSS(X_24,(-25)));
X_30:=EMA(EMA(EMA(CLOSE,2),2),2);
X_31:=MA(X_30,13)*0.99;
X_32:=MA(X_30,13)*0.999;
X_33:=MAX(MAX(HIGH-LOW,ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
X_34:=MA(X_33,13);
X_35:=REF(CLOSE,1)-REF(X_34,1);
X_36:=HHV(X_35,12);
X_37:=EMA(AMOUNT/VOL/100,3);
X_38:=EMA(X_37,X_1);
X_39:=EMA(X_37,X_1)*0.85;
X_40:=X_39*0.87;
X_41:=(CLOSE-X_39)/X_39*100;
X_42:=REF(LOW,1);
X_43:=SMA(ABS(LOW-X_42),13,1)/SMA(MAX(LOW-X_42,0),13,1)*4;
X_44:=EMA(X_43,13);
X_45:=LLV(LOW,34);
X_46:=EMA(IF(LOW<=X_45,X_44,0),3);
X_47:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_48:=SMA(X_3,18,1);
X_49:=SMA(X_48,3,1);
X_50:=3*X_48-2*X_49;
X_51:=X_50<25 AND X_49<25 AND X_50-(X_48-1)<0.02;
X_52:=IF(NAMELIKE(2),1,0)=0;
X_17<=1 AND X_12<12 AND X_41>0 AND X_41<5 AND X_46>REF(X_46,1) AND BETWEEN(X_47,9.5,(-9.5)) AND X_51 AND X_52;