相关简介: 通达信自用的空中加油选股公式 源码概况:通达信自用的空中加油选股公式 指标类别:通达信自用的空中加油选股公式 授权方式:免费版 指标评级:★★★★★ 指标分类:策略 画线方法:副图/主图通达信自用的空中加油选股公式未来函数检测结果: 暂未发现存在未来函数通达信自用的空中加油选股公式源码: MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA20:=MA(CLOSE,20);MA30:=MA(CLOSE,30);N1:=BARSLAST(CROSS(MA5,MA10));N2:=BARSLAST(CROSS(MA10,MA5));多:=IF(N1 N2,N1+1,0);QSXS:=MA5 MA20ANDMA10 MA20ANDMA20 REF(MA20,1)ANDMA30 REF(MA30,1);启动:=多*QSXS;HKFJ:=HHV(多,5) =2ANDQSXSANDMA5 REF(MA5,1)ANDMA5 MA10;航空飞机:=HKFJ*多;空中加油:启动 0AND航空飞机=0; ma5:=MA(CLOSE,5); MA10:=MA(CLOSE,10); MA20:=MA(CLOSE,20); MA30:=MA(CLOSE,30); MA250:=MA(CLOSE,250),COLORRED; N1:=BArslAst(crOSS(MA5,MA10)); N2:=BARSLAST(CROSS(MA10,MA5)); 多:=IF(N1 N2,N1+1,0); 空:=IF(N2 N1,N2+1,0); QSXS:=MA5 MA20ANDMA10 MA20ANDMA20 REF(MA20,1) ANDMA30 REF(MA30,1); 启动:多*QSXS,COLORRED,LINETHICK0; 跑道:空*QSXS,COLORFFFF00,LINETHICK0; HKFJ:=HHV(多,5) =2ANDQSXSANDMA5 REF(MA5,1)ANDMA5 MA10; 航空飞机:HKFJ*多,COLORFF00FF,LINETHICK2; HKSJ:=BARSLAST(航空飞机 0ANDNOT(REF(航空飞机,1)))+1; 高度:(C/REF(C,HKSJ)-1)*100,COLOR00FFFF; 空中加油:启动 0AND航空飞机=0,COLOR00FF00,POINTDOT,LINETHICK0; N3:=BARSLAST(空中加油)+1; K5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.14159; JXGD1:=K5 REF(K5,1)ANDREF(K5,1) REF(K5,2); JXGD2:=MA5 REF(MA5,1)ANDREF(MA5,1) REF(MA5,2); 加速远航:FILTER((JXGD1ORJXGD2) ANDC MA5ANDHKFJ,3),COLOR00FFFF,POINTDOT,LINETHICK0; N4:=BARSLAST(加速远航); {以下设置副图显示方式} STICKLINE(空中加油,0,启动/10+1,4,1),COLOR00FF00; STICKLINE(N4 0ANDN4 =5,REF(启动,N4+1),REF(启动,N4+1),4,0),COLORFFFFFF; DRAWTEXT(加速远航,启动, ▲ ),COLOR00FFFF; XA_2:=TESTSKIP(DATE XA_1); XA_3:=REF(CLOSE,1); XA_4:=ISLASTBARANDCLOSE XA_5:=VOL; XA_6:=MA(VOL,5); XA_7:=XA_5 =LLV(XA_5,100)*1; XA_8:=COUNT(XA_7,5) =3ORXA_6 =LLV(XA_6,100)ANDXA_5 0ANDBARSCOUNT(XA_5) =100; XA_9:=VOL =REF(VOL,1)*1.9ANDCLOSE XA_3; XA_10:=HIGH 0.382*HHV(HIGH,240)ORLOW 1.382*LLV(LOW,240); XA_11:=VOL 0.382*HHV(VOL,240)ANDMA(VOL,5) =MA(VOL,40); XA_12:=XA_11ANDXA_10; XA_13:=VOL/REF(VOL,1) =1.1; XA_14:=CLOSE OPENANDBETWEEN(VOL/REF(VOL,1),1.1,2.5); XA_15:=CLOSE REF(CLOSE,1)ANDREFX(LLV(MIN(CLOSE,OPEN),3),3) =LOW; XA_16:=XA_13ANDXA_15; XA_17:=XA_16ANDXA_12; XA_18:=LLV(MIN(OPEN,CLOSE),3); XA_19:=0.97*MA(VOL,3) =REF(VOL,3); XA_20:=REF(CLOSE XA_3ANDVOL 1.1*REF(VOL,1),3)ANDCLOSE =REF(CLOSE,3)ANDREF(CLOSE =OPEN,3)ANDXA_18 =REF(OPEN,3)ANDXA_19; XA_21:=REFX(XA_20,3); XA_22:=CLOSE OPENANDCLOSE REFX(OPEN,1)ANDREFX(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)ORNAMELIKE(5); XA_33:=IF(XA_32,CLOSE =XA_29,CLOSE =XA_28); XA_34:=CLOSE OPENAND(CLOSE =XA_31ORCLOSE 0.95*OPEN+XA_27)OR(CLOSE 1000ANDCLOSE =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_55ANDREF(HHV(XA_40,XA_43),1) =XA_44; XA_57:=CROSS(CLOSE,XA_54*XA_47); XA_58:=XA_57ANDREF(HHV(XA_40,XA_46),1) =XA_47; XA_59:=CROSS(CLOSE,XA_54*XA_50); XA_60:=XA_59ANDREF(HHV(XA_40,XA_49),1) =XA_50; XA_61:=CROSS(CLOSE,XA_54*XA_53); XA_62:=XA_61ANDREF(HHV(XA_40,XA_52),1) =XA_53; XA_63:=XA_56ORXA_60ORXA_60ORXA_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 LOWAND(CLOSE/REF(CLOSE,1) =0.96ORCLOSE/OPEN =0.96)ANDXA_71; XA_73:=HIGH LOWAND(CLOSE/REF(CLOSE,1) =1.04ORCLOSE/OPEN =1.04)ANDXA_71; XA_74:=LOW*0.005; XA_75:=LOW =LLV(LOW,3); XA_76:=ABS(LOW-REF(XA_24,1)) =XA_74ORABS(LOW-REF(XA_24,XA_23+1)) =XA_74ANDLOW =LLV(MIN(OPEN,CLOSE),XA_23); XA_77:=ABS(LOW-REF(XA_25,1)) =XA_74ORABS(LOW-REF(XA_25,XA_23+1+3)) =XA_74; XA_78:=ABS(LOW-REF(XA_26,1)) =XA_74ORABS(LOW-REF(XA_26,XA_23+1+3)) =XA_74; XA_79:=ABS(LOW-REF(XA_65,1)) =XA_74ORABS(LOW-REF(XA_65,XA_64+1)) =XA_74; XA_80:=ABS(LOW-REF(XA_69,1)) =XA_74ORABS(LOW-REF(XA_69,XA_68+1)) =XA_74; XA_81:=ABS(LOW-REF(XA_37,1)) =XA_74ANDXA_36 XA_82:=XA_75AND(XA_76ORXA_79ORXA_80ORXA_81ORXA_77ORXA_78); XA_83:=CLOSE OPENANDCLOSE REF(CLOSE,1); XA_84:=CLOSE OPENANDCLOSE REF(CLOSE,1); XA_85:=AMOUNT/VOL/100; XA_86:=CLOSE OPENANDXA_85 REF(CLOSE,1)ANDCLOSE =REF(CLOSE,1)ANDXA_85 =HIGH; XA_87:=XA_84ORXA_86; XA_88:=CLOSE OPENANDCLOSE XA_3ANDVOL REF(VOL,1); XA_89:=REF(VOL,1) =VOL*1.9ANDREF(CLOSE REF(CLOSE,1),1); XA_90:=COUNT(XA_9,3)=1ANDXA_89; XA_91:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100; XA_92:=SUM(XA_91,3) =(-5); XA_93:=CLOSE OPENANDCLOSE REF((OPEN+CLOSE)/2,1); XA_94:=REF(XA_92,1)ANDXA_93; XA_95:=MIN(CLOSE,OPEN) REF(MAX(CLOSE,OPEN),1); XA_96:=COUNT(XA_95,3)=3; XA_97:=HIGH=LOW; XA_98:=COUNT(XA_97,3)=3=0ANDXA_97=0; XA_99:=XA_96ANDXA_98; XA_100:=COUNT(CLOSE =XA_3,3)=3ANDREF(COUNT(VOL =REF(VOL,1),2)=2,1); XA_101:=(CLOSE-OPEN)/OPEN*100 XA_102:=BETWEEN(MIN(CLOSE,OPEN),REF(OPEN+(CLOSE-OPEN)*0.6,1),REF(CLOSE,1))ANDCLOSE XA_3; XA_103:=VOL/REF(VOL,1) =0.71; XA_104:=REF(XA_101,1)ANDXA_102ANDXA_103; XA_105:=4; XA_106:=IF(峰谷虚实=1,MIN(CLOSE,OPEN),LOW); XA_107:=BARSLAST(XA_9); XA_108:=LLV(XA_106,XA_107) =REF(XA_106,XA_107)ANDXA_107 =XA_105; XA_109:=FILTER(BACKSET(FILTER(REF(VOL,XA_39)=HHV(VOL,2*XA_39+1),XA_39),XA_39+1),XA_39); XA_110:=BARSLAST(XA_109); XA_111:=LLV(XA_106,XA_110) =REF(XA_106,XA_110)ANDXA_110 =XA_105ANDXA_110 =高量周期; XA_112:=LOW REF(HIGH,1); XA_113:=BARSLAST(XA_9); XA_114:=LLV(LOW,XA_113) REF(HIGH,XA_113+1)ANDXA_113 =XA_105; XA_115:=XA_108ORXA_111ORXA_114; XA_116:=MIN(CLOSE,OPEN); XA_117:=MAX(CLOSE,OPEN); XA_118:=HIGH-LOW; XA_119:=CLOSE =1.0497*REF(CLOSE,1)-XA_27; XA_120:=RANGE(ABS(CLOSE-OPEN)/XA_118,0,0.8)AND(HIGH-XA_117)/XA_118 =0.1AND(XA_116-LOW)/XA_118 =0.1; XA_121:=LLV(XA_116,2) =REF(0.5*(XA_117+XA_116),2); XA_122:=HHV(VOL,2) REF(VOL,2); XA_123:=REF(XA_119,2)ANDCOUNT(XA_120,2)=2ANDXA_121ANDXA_122; XA_124:=LLV(XA_116,3); XA_125:=(CLOSE-OPEN)/OPEN =5/100ORXA_91 XA_126:=20; XA_127:=(XA_116-LLV(XA_116,4))/LLV(XA_116,4) 3/100; XA_128:=LLV(XA_116,5)=LLV(XA_116,XA_126)ANDBARSCOUNT(CLOSE) =XA_126; XA_129:=0; XA_130:=IF(XA_129=1,CLOSE =OPENANDREF(XA_125=0ORCLOSE OPEN,1)ANDCLOSE REF(XA_117,1),1); XA_131:=XA_125OR(BETWEEN(XA_91,3,5)ANDXA_9)ANDXA_130ANDXA_127; XA_132:=BARSLAST(XA_131 XA_133:=REF(XA_132,1)+1; XA_134:=LLV(MIN(CLOSE,OPEN),XA_133); XA_135:=XA_134 =REF(LOW,XA_133); XA_136:=COUNT(XA_131 0,13)=2; XA_137:=REF(OPEN,XA_133); XA_138:=ABS(OPEN-XA_137)/XA_137 10/100; XA_139:=1*(XA_131ANDXA_136ANDXA_138ANDREF(XA_135,1)ANDBETWEEN(XA_133,4,13)); XA_140:=(MIN(OPEN,CLOSE)-LOW)/CLOSE =0.02AND(MIN(OPEN,CLOSE)-LOW)/(HIGH-LOW) 0.5 =0.02; XA_141:=REF((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW),1) 0.5ANDREF((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW),1) 0.5ANDXA_140ANDHIGH REF(HIGH,1)ANDVOL REF(VOL,1)*1; XA_142:=3; XA_143:=3; XA_144:=HHV(HIGH,240)-LLV(LOW,240); XA_145:=IF(XA_144 =1,0,IF(XA_144 =5,0.02,2.5/1000*XA_144)+0.005); XA_146:=VOL =REF(VOL,1)*1.1ORCLOSE OPEN*IF(CLOSE 500,1.03,1.01); XA_147:=REFX(LLV(LOW,XA_143),XA_143); XA_148:=XA_146ANDLOW =XA_147; XA_149:=REF(HHV(HIGH,XA_142),1); XA_150:=REF(HHV(MAX(CLOSE,OPEN),XA_142),1); XA_151:=XA_148ANDABS(XA_149-XA_147) =XA_145; XA_152:=XA_148ANDABS(XA_150-XA_147) =XA_145; XA_153:=REFX(LLV(MIN(CLOSE,OPEN),XA_143),XA_143); XA_154:=XA_146ANDLOW =XA_153; XA_155:=XA_154ANDABS(XA_149-XA_153) =XA_145; XA_156:=XA_154ANDABS(XA_150-XA_153) =XA_145; XA_157:=XA_151ORXA_152ORXA_155ORXA_156; XA_158:=LOW OPEN*0.96ANDXA_10ANDMA(CLOSE,60) =REF(MA(CLOSE,60),1); XA_159:=BARSLAST(XA_158); XA_160:=REF(OPEN,XA_159) =HHV(MAX(CLOSE,OPEN),XA_159)ANDREF(LOW,XA_159) =1.01*LLV(MIN(CLOSE,OPEN),XA_159); XA_161:=XA_160ANDXA_159 =5ANDMA(VOL,5) MA(VOL,60); XA_162:=XA_67ANDABS(XA_69-REF(XA_69,1)) =XA_70ANDREF(XA_68,1) XA_163:=XA_67ANDABS(XA_69-REF(XA_65,XA_64+1)) =XA_70; XA_164:=BETWEEN(XA_40,XA_65*0.995,XA_65*1.001); XA_165:=COUNT(XA_164,10) =3ANDHHV(HIGH,XA_64) =XA_65*1.001; XA_166:=IF(COUNT(XA_33,M周期内),1,0); XA_167:=IF(COUNT(XA_8,M周期内),1,0); XA_168:=IF(COUNT(XA_17,M周期内),1,0); XA_169:=IF(COUNT(XA_20,M周期内),1,0); XA_170:=IF(COUNT(XA_22,M周期内),1,0); XA_171:=IF(COUNT(XA_63,M周期内),1,0); XA_172:=IF(COUNT(XA_90,M周期内),1,0); XA_173:=IF(COUNT(XA_72,M周期内),1,0); XA_174:=IF(COUNT(XA_73ANDCLOSE LOW,M周期内),1,0); XA_175:=IF(COUNT(XA_161,M周期内),1,0); XA_176:=IF(COUNT(XA_82,M周期内),1,0); XA_177:=IF(COUNT(XA_38,M周期内),1,0); XA_178:=IF(COUNT(XA_141,M周期内),1,0); XA_179:=IF(COUNT(XA_87,M周期内),1,0); XA_180:=IF(COUNT(XA_88,M周期内),1,0); XA_181:=IF(COUNT(XA_157,M周期内) =1,1,0); XA_182:=IF(COUNT(XA_162ORXA_163,M周期内),1,0); XA_183:=IF(COUNT(XA_94,M周期内),1,0); XA_184:=IF(COUNT(XA_104,M周期内),1,0); XA_185:=IF(COUNT(XA_99,M周期内),1,0); XA_186:=IF(COUNT(XA_100,M周期内),1,0); XA_187:=IF(COUNT(XA_165,M周期内),1,0); XA_188:=IF(COUNT(XA_115,M周期内),1,0); XA_189:=IF(COUNT(XA_123,M周期内),1,0); XA_190:=IF(COUNT(XA_139,M周期内),1,0); XA_191:=XA_166+XA_167+XA_168+XA_169+XA_170+XA_171+XA_172+XA_173+XA_174+XA_175+XA_176+XA_178+XA_179+XA_180+XA_177+XA_181+XA_182+XA_183+XA_185+XA_184+XA_186+XA_187+XA_188+XA_189+XA_190; XA_192:=IF(BARSCOUNT(CLOSE) =M周期内,XA_191,0); XA_193:=XA_192; XG:IF(等于或大于=0,XA_193=N个基因,XA_193 =N个基因)ANDDYNAINFO(8) [源码注释]通达信自用的空中加油选股公式公式解读 MA5赋值:收盘价的5日简单移动平均 MA10赋值:收盘价的10日简单移动平均 MA20赋值:收盘价的20日简单移动平均 MA30赋值:收盘价的30日简单移动平均 N1赋值:上次MA5上穿MA10距今天数 N2赋值:上次MA10上穿MA5距今天数 多赋值:如果N1 ,返回?,否则返回? N2,N1+1,0) QSXS赋值:MA5 MA20ANDMA10 MA20ANDMA20 1日前的MA20ANDMA30 1日前的MA30 启动赋值:多*QSXS HKFJ赋值:5日内多的最高值 =2ANDQSXSANDMA5 1日前的MA5ANDMA5 MA10 航空飞机赋值:HKFJ*多 输出空中加油:启动 0AND航空飞机=0 MA5赋值:收盘价的5日简单移动平均 MA10赋值:收盘价的10日简单移动平均 MA20赋值:收盘价的20日简单移动平均 MA30赋值:收盘价的30日简单移动平均 MA250赋值:收盘价的250日简单移动平均,画红色 N1赋值:上次MA5上穿MA10距今天数 N2赋值:上次MA10上穿MA5距今天数 多赋值:如果N1 N2,返回N1+1,否则返回0 空赋值:如果N2 N1,返回N2+1,否则返回0 QSXS赋值:MA5 MA20ANDMA10 MA20ANDMA20 1日前的MA20ANDMA30 1日前的MA30 输出启动:多*QSXS,画红色,线宽为0 输出跑道:空*QSXS,COLORFFFF00,线宽为0 HKFJ赋值:5日内多的最高值 =2ANDQSXSANDMA5 1日前的MA5ANDMA5 MA10 输出航空飞机:HKFJ*多,COLORFF00FF,线宽为2 HKSJ赋值:上次航空飞机 0ANDNOT(1日前的航空飞机)距今天数+1 输出高度:(收盘价/HKSJ日前的收盘价-1)*100,COLOR00FFFF 输出空中加油:启动 0AND航空飞机=0,COLOR00FF00,POINTDOT,线宽为0 N3赋值:上次空中加油距今天数+1 K5赋值:(MA5/1日前的MA5-1)*100的反正切*180/3.14159 JXGD1赋值:K5 1日前的K5ANDREF(K5,1) 2日前的K5 JXGD2赋值:MA5 1日前的MA5ANDREF(MA5,1) 2日前的MA5 输出加速远航:(JXGD1ORJXGD2)ANDC MA5ANDHKFJ的3日过滤,COLOR00FFFF,POINTDOT,线宽为0 N4赋值:上次加速远航距今天数 当满足条件空中加油时,在0和启动/10+1位置之间画柱状线,宽度为4,1不为0则画空心柱.,COLOR00FF00 当满足条件N4 0ANDN4 =5时,在N4+1日前的启动和N4+1日前的启动位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLORFFFFFF 当满足条件加速远航时,在启动位置书写文字,COLOR00FFFF XA_2赋值:如果满足条件日期 ,公式返回 XA_1) XA_3赋值:1日前的收盘价 XA_4赋值:ISLASTBARANDCLOSE XA_5赋值:成交量(手) XA_6赋值:成交量(手)的5日简单移动平均 XA_7赋值:XA_5 =100日内XA_5的最低值*1 XA_8赋值:统计5日中满足XA_7的天数 =3ORXA_6 =100日内XA_6的最低值ANDXA_5 0ANDBARSCOUNT(XA_5) =100 XA_9赋值:成交量(手) =1日前的成交量(手)*1.9ANDCLOSE XA_3 XA_10赋值:最高价 0.382*240日内最高价的最高值ORLOW 1.382*240日内最低价的最低值 XA_11赋值:成交量(手) 0.382*240日内成交量(手)的最高值ANDMA(成交量(手),5) =成交量(手)的40日简单移动平均 XA_12赋值:XA_11ANDXA_10 XA_13赋值:成交量(手)/1日前的成交量(手) =1.1 XA_14赋值:收盘价 OPENANDBETWEEN(成交量(手)/1日前的成交量(手),1.1,2.5) XA_15赋值:收盘价 1日前的收盘价ANDREFX(3日内收盘价和开盘价的较小值的最低值,3) =最低价 XA_16赋值:XA_13ANDXA_15 XA_17赋值:XA_16ANDXA_12 XA_18赋值:3日内开盘价和收盘价的较小值的最低值 XA_19赋值:0.97*成交量(手)的3日简单移动平均 =3日前的成交量(手) XA_20赋值:?日前的收盘价 XA_3ANDVOL 1.1*1日前的成交量(手),3)ANDCLOSE =3日前的收盘价ANDREF(收盘价 =开盘价,3)ANDXA_18 =3日前的开盘价ANDXA_19 XA_21赋值:3日后的XA_20 XA_22赋值:收盘价 OPENANDCLOSE 1日后的开盘价ANDREFX(XA_15,1) XA_23赋值:上次XA_20距今天数 XA_24赋值:XA_23日前的XA_18 XA_25赋值:XA_23+3日前的收盘价 XA_26赋值:XA_23+3日前的开盘价 XA_27赋值:50/如果收盘价 ,返回?,否则返回? =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赋值:模糊匹配品种名称ORNAMELIKE(5) XA_33赋值:如果XA_32,返回收盘价 ,否则返回? =XA_29,收盘价 =XA_28) XA_34赋值:收盘价 OPENAND(收盘价 =XA_31ORCLOSE 0.95*开盘价+XA_27)OR(收盘价 1000ANDCLOSE =XA_3*0.975) XA_35赋值:XA_34 XA_36赋值:上次XA_35的3日过滤距今天数 XA_37赋值:XA_36日前的开盘价 XA_38赋值:最低价 1日前的最高价 XA_39赋值:峰谷周期 XA_40赋值:如果峰谷虚实=0,返回最高价,否则返回收盘价和开盘价的较大值 XA_41赋值:5 XA_42赋值:XA_41*1 XA_43赋值:上次若XA_42日前的XA_40=2*XA_42+1日内XA_40的最高值的XA_42日过滤则将最近XA_42+1周期置为1的XA_42日过滤距今天数 XA_44赋值:XA_43日前的XA_40 XA_45赋值:XA_41*2 XA_46赋值:上次若XA_45日前的XA_40=2*XA_45+1日内XA_40的最高值的XA_45日过滤则将最近XA_45+1周期置为1的XA_45日过滤距今天数 XA_47赋值:XA_46日前的XA_40 XA_48赋值:XA_41*4 XA_49赋值:上次若XA_48日前的XA_40=2*XA_48+1日内XA_40的最高值的XA_48日过滤则将最近XA_48+1周期置为1的XA_48日过滤距今天数 XA_50赋值:XA_49日前的XA_40 XA_51赋值:XA_41*8 XA_52赋值:上次若XA_51日前的XA_40=2*XA_51+1日内XA_40的最高值的XA_51日过滤则将最近XA_51+1周期置为1的XA_51日过滤距今天数 XA_53赋值:XA_52日前的XA_40 XA_54赋值:1+0/100 XA_55赋值:收盘价上穿XA_54*XA_44 XA_56赋值:XA_55ANDREF(XA_43日内XA_40的最高值,1) =XA_44 XA_57赋值:收盘价上穿XA_54*XA_47 XA_58赋值:XA_57ANDREF(XA_46日内XA_40的最高值,1) =XA_47 XA_59赋值:收盘价上穿XA_54*XA_50 XA_60赋值:XA_59ANDREF(XA_49日内XA_40的最高值,1) =XA_50 XA_61赋值:收盘价上穿XA_54*XA_53 XA_62赋值:XA_61ANDREF(XA_52日内XA_40的最高值,1) =XA_53 XA_63赋值:XA_56ORXA_60ORXA_60ORXA_62 XA_64赋值:如果XA_56,返回XA_43,否则返回如果XA_58,返回XA_46,否则返回如果XA_60,返回XA_49,否则返回XA_52 XA_65赋值:XA_64日前的XA_40 XA_66赋值:如果峰谷虚实=0,返回最低价,否则返回收盘价和开盘价的较小值 XA_67赋值:若XA_39日前的XA_66=2*XA_39+1日内XA_66的最低值的XA_39日过滤则将最近XA_39+1周期置为1的XA_39日过滤 XA_68赋值:上次XA_67距今天数 XA_69赋值:XA_68日前的XA_66 XA_70赋值:0.002*最低价+0.005 XA_71赋值:XA_5/20日内XA_5的最高值 =0.618 XA_72赋值:最高价 LOWAND(收盘价/1日前的收盘价 =0.96ORCLOSE/开盘价 =0.96)ANDXA_71 XA_73赋值:最高价 LOWAND(收盘价/1日前的收盘价 =1.04ORCLOSE/开盘价 =1.04)ANDXA_71 XA_74赋值:最低价*0.005 XA_75赋值:最低价 =3日内最低价的最低值 XA_76赋值:最低价-1日前的XA_24的绝对值 =XA_74ORABS(最低价-XA_23+1日前的XA_24) =XA_74ANDLOW =XA_23日内开盘价和收盘价的较小值的最低值 XA_77赋值:最低价-1日前的XA_25的绝对值 =XA_74ORABS(最低价-XA_23+1+3日前的XA_25) =XA_74 XA_78赋值:最低价-1日前的XA_26的绝对值 =XA_74ORABS(最低价-XA_23+1+3日前的XA_26) =XA_74 XA_79赋值:最低价-1日前的XA_65的绝对值 =XA_74ORABS(最低价-XA_64+1日前的XA_65) =XA_74 XA_80赋值:最低价-1日前的XA_69的绝对值 =XA_74ORABS(最低价-XA_68+1日前的XA_69) =XA_74 XA_81赋值:最低价-1日前的XA_37的绝对值 =XA_74ANDXA_36 XA_82赋值:XA_75AND(XA_76ORXA_79ORXA_80ORXA_81ORXA_77ORXA_78) XA_83赋值:收盘价 OPENANDCLOSE 1日前的收盘价 XA_84赋值:收盘价 OPENANDCLOSE 1日前的收盘价 XA_85赋值:成交额(元)/成交量(手)/100 XA_86赋值:收盘价 OPENANDXA_85 1日前的收盘价ANDCLOSE =1日前的收盘价ANDXA_85 =最高价 XA_87赋值:XA_84ORXA_86 XA_88赋值:收盘价 OPENANDCLOSE XA_3ANDVOL 1日前的成交量(手) XA_89赋值:1日前的成交量(手) =成交量(手)*1.9ANDREF(收盘价 1日前的收盘价,1) XA_90赋值:统计3日中满足XA_9的天数=1ANDXA_89 XA_91赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100 XA_92赋值:XA_91的3日累和 =(-5) XA_93赋值:收盘价 OPENANDCLOSE 1日前的(开盘价+收盘价)/2 XA_94赋值:1日前的XA_92ANDXA_93 XA_95赋值:收盘价和开盘价的较小值 1日前的收盘价和开盘价的较大值 XA_96赋值:统计3日中满足XA_95的天数=3 XA_97赋值:最高价=最低价 XA_98赋值:统计3日中满足XA_97的天数=3=0ANDXA_97=0 XA_99赋值:XA_96ANDXA_98 XA_100赋值:统计?日中满足收盘价 的天数 =XA_3,3)=3ANDREF(统计?日中满足成交量(手) 的天数 =1日前的成交量(手),2)=2,1) XA_101赋值:(收盘价-开盘价)/开盘价*100 XA_102赋值:收盘价和开盘价的较小值位于1日前的开盘价+(收盘价-开盘价)*0.6和1日前的收盘价之间ANDCLOSE XA_3 XA_103赋值:成交量(手)/1日前的成交量(手) =0.71 XA_104赋值:1日前的XA_101ANDXA_102ANDXA_103 XA_105赋值:4 XA_106赋值:如果峰谷虚实=1,返回收盘价和开盘价的较小值,否则返回最低价 XA_107赋值:上次XA_9距今天数 XA_108赋值:XA_107日内XA_106的最低值 =XA_107日前的XA_106ANDXA_107 =XA_105 XA_109赋值:若XA_39日前的成交量(手)=2*XA_39+1日内成交量(手)的最高值的XA_39日过滤则将最近XA_39+1周期置为1的XA_39日过滤 XA_110赋值:上次XA_109距今天数 XA_111赋值:XA_110日内XA_106的最低值 =XA_110日前的XA_106ANDXA_110 =XA_105ANDXA_110 =高量周期 XA_112赋值:最低价 1日前的最高价 XA_113赋值:上次XA_9距今天数 XA_114赋值:XA_113日内最低价的最低值 XA_113+1日前的最高价ANDXA_113 =XA_105 XA_115赋值:XA_108ORXA_111ORXA_114 XA_116赋值:收盘价和开盘价的较小值 XA_117赋值:收盘价和开盘价的较大值 XA_118赋值:最高价-最低价 XA_119赋值:收盘价 =1.0497*1日前的收盘价-XA_27 XA_120赋值:收盘价-开盘价的绝对值/XA_118位于0和0.8之间AND(最高价-XA_117)/XA_118 =0.1AND(XA_116-最低价)/XA_118 =0.1 XA_121赋值:2日内XA_116的最低值 =2日前的0.5*(XA_117+XA_116) XA_122赋值:2日内成交量(手)的最高值 2日前的成交量(手) XA_123赋值:2日前的XA_119ANDCOUNT(XA_120,2)=2ANDXA_121ANDXA_122 XA_124赋值:3日内XA_116的最低值 XA_125赋值:(收盘价-开盘价)/开盘价 =5/100ORXA_91 XA_126赋值:20 XA_127赋值:(XA_116-4日内XA_116的最低值)/4日内XA_116的最低值 3/100 XA_128赋值:5日内XA_116的最低值=XA_126日内XA_116的最低值ANDBARSCOUNT(收盘价) =XA_126 XA_129赋值:0 XA_130赋值:如果XA_129=1,返回收盘价 ,否则返回? =OPENANDREF(XA_125=0ORCLOSE 开盘价,1)ANDCLOSE 1日前的XA_117,1) XA_131赋值:XA_125OR(XA_91位于3和5之间ANDXA_9)ANDXA_130ANDXA_127 XA_132赋值:上次XA_131 距今天数 XA_133赋值:1日前的XA_132+1 XA_134赋值:XA_133日内收盘价和开盘价的较小值的最低值 XA_135赋值:XA_134 =XA_133日前的最低价 XA_136赋值:统计?日中满足XA_131 的天数 0,13)=2 XA_137赋值:XA_133日前的开盘价 XA_138赋值:开盘价-XA_137的绝对值/XA_137 10/100 XA_139赋值:1*(XA_131ANDXA_136ANDXA_138ANDREF(XA_135,1)ANDBETWEEN(XA_133,4,13)) XA_140赋值:(开盘价和收盘价的较小值-最低价)/收盘价 =0.02AND(开盘价和收盘价的较小值-最低价)/(最高价-最低价) 0.5 =0.02 XA_141赋值:1日前的(最高价-收盘价和开盘价的较大值)/(最高价-最低价) 0.5ANDREF((最高价-收盘价和开盘价的较大值)/(最高价-最低价),1) 0.5ANDXA_140ANDHIGH 1日前的最高价ANDVOL 1日前的成交量(手)*1 XA_142赋值:3 XA_143赋值:3 XA_144赋值:240日内最高价的最高值-240日内最低价的最低值 XA_145赋值:如果XA_144 ,返回?,否则返回? =1,0,如果XA_144 ,返回?,否则返回? =5,0.02,2.5/1000*XA_144)+0.005) XA_146赋值:成交量(手) =1日前的成交量(手)*1.1ORCLOSE 开盘价*如果收盘价 ,返回?,否则返回? 500,1.03,1.01) XA_147赋值:XA_143日后的XA_143日内最低价的最低值 XA_148赋值:XA_146ANDLOW =XA_147 XA_149赋值:1日前的XA_142日内最高价的最高值 XA_150赋值:1日前的XA_142日内收盘价和开盘价的较大值的最高值 XA_151赋值:XA_148ANDABS(XA_149-XA_147) =XA_145 XA_152赋值:XA_148ANDABS(XA_150-XA_147) =XA_145 XA_153赋值:XA_143日后的XA_143日内收盘价和开盘价的较小值的最低值 XA_154赋值:XA_146ANDLOW =XA_153 XA_155赋值:XA_154ANDABS(XA_149-XA_153) =XA_145 XA_156赋值:XA_154ANDABS(XA_150-XA_153) =XA_145 XA_157赋值:XA_151ORXA_152ORXA_155ORXA_156 XA_158赋值:最低价 开盘价*0.96ANDXA_10ANDMA(收盘价,60) =1日前的收盘价的60日简单移动平均 XA_159赋值:上次XA_158距今天数 XA_160赋值:XA_159日前的开盘价 =XA_159日内收盘价和开盘价的较大值的最高值ANDREF(最低价,XA_159) =1.01*XA_159日内收盘价和开盘价的较小值的最低值 XA_161赋值:XA_160ANDXA_159 =5ANDMA(成交量(手),5) 成交量(手)的60日简单移动平均 XA_162赋值:XA_67ANDABS(XA_69-1日前的XA_69) =XA_70ANDREF(XA_68,1) XA_163赋值:XA_67ANDABS(XA_69-XA_64+1日前的XA_65) =XA_70 XA_164赋值:XA_40位于XA_65*0.995和XA_65*1.001之间 XA_165赋值:统计10日中满足XA_164的天数 =3ANDHHV(最高价,XA_64) =XA_65*1.001 XA_166赋值:如果统计M周期内日中满足XA_33的天数,返回1,否则返回0 XA_167赋值:如果统计M周期内日中满足XA_8的天数,返回1,否则返回0 XA_168赋值:如果统计M周期内日中满足XA_17的天数,返回1,否则返回0 XA_169赋值:如果统计M周期内日中满足XA_20的天数,返回1,否则返回0 XA_170赋值:如果统计M周期内日中满足XA_22的天数,返回1,否则返回0 XA_171赋值:如果统计M周期内日中满足XA_63的天数,返回1,否则返回0 XA_172赋值:如果统计M周期内日中满足XA_90的天数,返回1,否则返回0 XA_173赋值:如果统计M周期内日中满足XA_72的天数,返回1,否则返回0 XA_174赋值:如果统计?日中满足XA_73ANDCLOSE 的天数,返回?,否则返回? 最低价,M周期内),1,0) XA_175赋值:如果统计M周期内日中满足XA_161的天数,返回1,否则返回0 XA_176赋值:如果统计M周期内日中满足XA_82的天数,返回1,否则返回0 XA_177赋值:如果统计M周期内日中满足XA_38的天数,返回1,否则返回0 XA_178赋值:如果统计M周期内日中满足XA_141的天数,返回1,否则返回0 XA_179赋值:如果统计M周期内日中满足XA_87的天数,返回1,否则返回0 XA_180赋值:如果统计M周期内日中满足XA_88的天数,返回1,否则返回0 XA_181赋值:如果统计M周期内日中满足XA_157的天数 ,返回?,否则返回? =1,1,0) XA_182赋值:如果统计M周期内日中满足XA_162ORXA_163的天数,返回1,否则返回0 XA_183赋值:如果统计M周期内日中满足XA_94的天数,返回1,否则返回0 XA_184赋值:如果统计M周期内日中满足XA_104的天数,返回1,否则返回0 XA_185赋值:如果统计M周期内日中满足XA_99的天数,返回1,否则返回0 XA_186赋值:如果统计M周期内日中满足XA_100的天数,返回1,否则返回0 XA_187赋值:如果统计M周期内日中满足XA_165的天数,返回1,否则返回0 XA_188赋值:如果统计M周期内日中满足XA_115的天数,返回1,否则返回0 XA_189赋值:如果统计M周期内日中满足XA_123的天数,返回1,否则返回0 XA_190赋值:如果统计M周期内日中满足XA_139的天数,返回1,否则返回0 XA_191赋值:XA_166+XA_167+XA_168+XA_169+XA_170+XA_171+XA_172+XA_173+XA_174+XA_175+XA_176+XA_178+XA_179+XA_180+XA_177+XA_181+XA_182+XA_183+XA_185+XA_184+XA_186+XA_187+XA_188+XA_189+XA_190 XA_192赋值:如果收盘价的有效数据周期数 ,返回?,否则返回? =M周期内,XA_191,0) XA_193赋值:XA_192 输出XG:如果等于或大于=0,返回XA_193=N个基因,否则返回XA_193 =N个基因)ANDDYNAINFO(8) 0