通达信25种涨停基因公式源码,要的下载使用
通达信25种涨停基因公式源码,要的下载使用
公式名称: 涨停基因盲选
参数数量: 6
参数1: 峰谷虚实, 最小: 0, 最大: 1, 缺省: 1
参数2: 峰谷周期, 最小: 5, 最大: 365, 缺省: 5
参数3: 高量周期, 最小: 5, 最大: 160, 缺省: 11
参数4: M周期内, 最小: 1, 最大: 250, 缺省: 9
参数5: 等于或大于, 最小: 0, 最大: 1, 缺省: 1
参数6: N个基因, 最小: 1, 最大: 38, 缺省: 10
公式类型: 条件选股公式-其他类型
公式版本: 0
公式源码:}
XA_1:=1999231;{这里是修改使用期限的}
XA_2:=TESTSKIP(DATE>XA_1);
XA_3:=REF(CLOSE,1);
XA_4:=ISLASTBAR AND CLOSE<500;
XA_5:=VOL;
XA_6:=MA(VOL,5);
XA_7:=XA_5<=LLV(XA_5,100)*1;
XA_8:=COUNT(XA_7,5)>=3 OR XA_6<=LLV(XA_6,100) AND XA_5>0 AND BARSCOUNT(XA_5)>=100;
XA_9:=VOL>=REF(VOL,1)*1.9 AND CLOSE>XA_3;
XA_10:=HIGH<0.382*HHV(HIGH,240) OR LOW<1.382*LLV(LOW,240);
XA_11:=VOL<0.382*HHV(VOL,240) AND MA(VOL,5)<=MA(VOL,40);
XA_12:=XA_11 AND XA_10;
XA_13:=VOL/REF(VOL,1)>=1.1;
XA_14:=CLOSE>OPEN AND BETWEEN(VOL/REF(VOL,1),1.1,2.5);
XA_15:=CLOSE>REF(CLOSE,1) AND REFX(LLV(MIN(CLOSE,OPEN),3),3)>=LOW;
XA_16:=XA_13 AND XA_15;
XA_17:=XA_16 AND XA_12;
XA_18:=LLV(MIN(OPEN,CLOSE),3);
XA_19:=0.97*MA(VOL,3)<=REF(VOL,3);
XA_20:=REF(CLOSE>XA_3 AND VOL>1.1*REF(VOL,1),3) AND CLOSE>=REF(CLOSE,3) AND REF(CLOSE>=OPEN,3) AND XA_18>=REF(OPEN,3) AND XA_19;
XA_21:=REFX(XA_20,3);
XA_22:=CLOSE>OPEN AND CLOSE<REFX(OPEN,1) AND REFX(XA_15,1);
XA_23:=BARSLAST(XA_20);
XA_24:=REF(XA_18,XA_23);
XA_25:=REF(CLOSE,XA_23+3);
XA_26:=REF(OPEN,XA_23+3);
XA_27:=50/IF(CLOSE>=1,10000,100000);
XA_28:=1.1*XA_3-XA_27;
XA_29:=1.05*XA_3-XA_27;
XA_30:=0.9*XA_3+XA_27;
XA_31:=0.95*XA_3+XA_27;
XA_32:=NAMELIKE(4) OR NAMELIKE(5);
XA_33:=IF(XA_32,CLOSE>=XA_29,CLOSE>=XA_28);
XA_34:=CLOSE<OPEN AND (CLOSE<=XA_31 OR CLOSE<0.95*OPEN+XA_27) OR (CLOSE>1000 AND CLOSE<=XA_3*0.975);
XA_35:=XA_34;
XA_36:=BARSLAST(FILTER(XA_35,3));
XA_37:=REF(OPEN,XA_36);
XA_38:=LOW>REF(HIGH,1);
XA_39:=峰谷周期;
XA_40:=IF(峰谷虚实=0,HIGH,MAX(CLOSE,OPEN));
XA_41:=5;
XA_42:=XA_41*1;
XA_43:=BARSLAST(FILTER(BACKSET(FILTER(REF(XA_40,XA_42)=HHV(XA_40,2*XA_42+1),XA_42),XA_42+1),XA_42));
XA_44:=REF(XA_40,XA_43);
XA_45:=XA_41*2;
XA_46:=BARSLAST(FILTER(BACKSET(FILTER(REF(XA_40,XA_45)=HHV(XA_40,2*XA_45+1),XA_45),XA_45+1),XA_45));
XA_47:=REF(XA_40,XA_46);
XA_48:=XA_41*4;
XA_49:=BARSLAST(FILTER(BACKSET(FILTER(REF(XA_40,XA_48)=HHV(XA_40,2*XA_48+1),XA_48),XA_48+1),XA_48));
XA_50:=REF(XA_40,XA_49);
XA_51:=XA_41*8;
XA_52:=BARSLAST(FILTER(BACKSET(FILTER(REF(XA_40,XA_51)=HHV(XA_40,2*XA_51+1),XA_51),XA_51+1),XA_51));
XA_53:=REF(XA_40,XA_52);
XA_54:=1+0/100;
XA_55:=CROSS(CLOSE,XA_54*XA_44);
XA_56:=XA_55 AND REF(HHV(XA_40,XA_43),1)<=XA_44;
XA_57:=CROSS(CLOSE,XA_54*XA_47);
XA_58:=XA_57 AND REF(HHV(XA_40,XA_46),1)<=XA_47;
XA_59:=CROSS(CLOSE,XA_54*XA_50);
XA_60:=XA_59 AND REF(HHV(XA_40,XA_49),1)<=XA_50;
XA_61:=CROSS(CLOSE,XA_54*XA_53);
XA_62:=XA_61 AND REF(HHV(XA_40,XA_52),1)<=XA_53;
XA_63:=XA_56 OR XA_60 OR XA_60 OR XA_62;
XA_64:=IF(XA_56,XA_43,IF(XA_58,XA_46,IF(XA_60,XA_49,XA_52)));
XA_65:=REF(XA_40,XA_64);
XA_66:=IF(峰谷虚实=0,LOW,MIN(CLOSE,OPEN));
XA_67:=FILTER(BACKSET(FILTER(REF(XA_66,XA_39)=LLV(XA_66,2*XA_39+1),XA_39),XA_39+1),XA_39);
XA_68:=BARSLAST(XA_67);
XA_69:=REF(XA_66,XA_68);
XA_70:=0.002*LOW+0.005;
XA_71:=XA_5/HHV(XA_5,20)<=0.618;
XA_72:=HIGH>LOW AND (CLOSE/REF(CLOSE,1)<=0.96 OR CLOSE/OPEN<=0.96) AND XA_71;
XA_73:=HIGH>LOW AND (CLOSE/REF(CLOSE,1)>=1.04 OR CLOSE/OPEN>=1.04) AND XA_71;
XA_74:=LOW*0.005;
XA_75:=LOW<=LLV(LOW,3);
XA_76:=ABS(LOW-REF(XA_24,1))<=XA_74 OR ABS(LOW-REF(XA_24,XA_23+1))<=XA_74 AND LOW<=LLV(MIN(OPEN,CLOSE),XA_23);
XA_77:=ABS(LOW-REF(XA_25,1))<=XA_74 OR ABS(LOW-REF(XA_25,XA_23+1+3))<=XA_74;
XA_78:=ABS(LOW-REF(XA_26,1))<=XA_74 OR ABS(LOW-REF(XA_26,XA_23+1+3))<=XA_74;
XA_79:=ABS(LOW-REF(XA_65,1))<=XA_74 OR ABS(LOW-REF(XA_65,XA_64+1))<=XA_74;
XA_80:=ABS(LOW-REF(XA_69,1))<=XA_74 OR ABS(LOW-REF(XA_69,XA_68+1))<=XA_74;
XA_81:=ABS(LOW-REF(XA_37,1))<=XA_74 AND XA_36>=1;
XA_82:=XA_75 AND (XA_76 OR XA_79 OR XA_80 OR XA_81 OR XA_77 OR XA_78);
XA_83:=CLOSE>OPEN AND CLOSE<REF(CLOSE,1);
XA_84:=CLOSE<OPEN AND CLOSE>REF(CLOSE,1);
- 上一篇公式:通达信九转序列指标 附使用方法
- 下一篇公式:通达信九转序列公式