通达信清北竞价绝杀2022版 竞价排序指标公式源码

[复制链接]
查看102 | 回复0 | 2022-7-8 05:48:12 | 显示全部楼层 |阅读模式

最近看见朋友们都在热情于竞价选股,尤其是那个清北,其实没有什么指标是能够100%的,只是做一个概率问题,竞价选股说白了就是赌,赌第二日溢价,所以我一直权朋友可以小赌一下怡情,在说一下我理解的竞价的要点,1:热点,2:还是热点板块,3:热点板块的前排/呵呵,你可能觉得我在搞笑,其实就是这么简单,合理运用指标,结合指标特性才是重点。

2020322297.png

2020322297.png

 

 

 

X_1:=DYNAINFO(15)/OPEN/100;
X_2:=(DYNAINFO(4)/DYNAINFO(3)-1)*100;
X_3:=IF(CAPITAL<100000,100000,CAPITAL);
X_4:=X_1/REF(MA(VOL,5),1)*240;
竞价绝杀:X_2*X_1/X_3*10000/100;
X_5:=7;
X_6:=10;
X_7:=0;
X_8:=0;
X_9:=DAY!=REF(DAY,1);
X_10:=BARSLAST(X_9)+1;
X_11:=VOL*(CLOSE+LOW+HIGH)/3;
X_12:=SUM(X_11,X_10)/SUM(VOL,X_10);
X_13:=IF(X_9<=CONST(X_10),X_12,DRAWNULL);
X_14:=EMA(INDEXC,120)/EMA(CLOSE,120);
X_15:=IF(CLOSE<500 AND SETCODE<=2,(INDEXC/X_14+0.812*REF(INDEXC/X_14,1)+0.618*REF(INDEXC/X_14,2)+0.382*REF(INDEXC/X_14,3)+0.191*REF(INDEXC/X_14,4))/3.003,DRAWNULL);
X_16:=X_13>X_15;
X_17:=(EMA(CLOSE,12)/EMA(CLOSE,26)-1)*1000;
X_18:=(EMA(INDEXC,12)/EMA(INDEXC,26)-1)*1000;
X_19:=EMA(X_17,5);
X_20:=EMA(X_18,5);
X_21:=X_19-REF(X_19,1);
X_22:=X_20-REF(X_20,1);
X_23:=IF(X_21-X_22>0,(X_21-X_22)*5,0);
X_24:=X_23-REF(X_23,1);
X_25:=MA(CLOSE,20);
X_26:=BARSLASTCOUNT(CLOSE<X_25);
X_27:=BACKSET((X_26>=4)*X_26,X_26);
X_28:=BARSLASTCOUNT(CLOSE>X_25);
X_29:=BACKSET((X_28>=4)*X_28,X_28);
X_30:=BARSLASTCOUNT(NOT(X_27 OR X_29));
X_31:=BARSLASTCOUNT(REF(X_27>0,X_30));
X_32:=BARSLASTCOUNT(REF(X_29>0,X_30));
X_33:=IF(X_7=1,0,FILTERX(LLV(LOW,X_31)=LOW,X_31));
X_34:=IF(X_8=1,0,FILTERX(HHV(HIGH,X_32)=HIGH,X_32));
X_35:=IF(X_7=1,0,REF(HIGH,BARSLAST(X_34)));
X_36:=IF(X_8=1,0,REF(LOW,BARSLAST(X_33)));
X_37:=BARSLAST(X_31=1);
X_38:=REF(X_35,BARSLAST(X_31));
X_39:=REF(X_36,X_37);
X_40:=X_38+(X_38-X_39)*0.191;
X_41:=REFDATE(X_40,DATE);
X_42:=CURRBARSCOUNT<=60 AND CROSS(CLOSE,X_41);
X_43:=REF(HIGH,7)=HHV(HIGH,2*7+1);
X_44:=BACKSET(X_43,7+1);
X_45:=FILTER(X_44,7) AND HIGH=HHV(HIGH,7+1);
X_46:=IF(X_7=1,0,BARSLAST(X_45));
X_47:=IF(X_45,CURRBARSCOUNT,0);
X_48:=IF(X_46,REF(HIGH,X_46),HIGH);
X_49:=IF(X_46,REF(X_47,X_46),X_47);
X_50:=REF(X_48,X_46+1);
X_51:=CONST(X_49);
X_52:=REF(X_49,X_46+1);
X_53:=CONST(X_52);
X_54:=REF(X_50,X_46+1);
X_55:=IF(CURRBARSCOUNT>X_53,0,1);
X_56:=DRAWLINE(CURRBARSCOUNT=X_53,HIGH,CURRBARSCOUNT=X_51,HIGH,1);
X_57:=IF(X_56>REF(X_56,1),DRAWNULL,X_56);
X_58:=REF(LOW,X_5)=LLV(LOW,2*X_5+1);
X_59:=BACKSET(X_58,X_5+1);
X_60:=FILTER(X_59,X_5) AND LOW=LLV(LOW,X_5+1);
X_61:=IF(X_8=1,0,BARSLAST(X_60));
X_62:=IF(X_60,CURRBARSCOUNT,0);
X_63:=IF(X_61,REF(LOW,X_61),LOW);
X_64:=IF(X_61,REF(X_62,X_61),X_62);
X_65:=CONST(X_64);
X_66:=REF(X_63,X_61+1);
X_67:=REF(X_64,X_61+1);
X_68:=CONST(X_67);
X_69:=DRAWLINE(CURRBARSCOUNT=X_68,LOW,CURRBARSCOUNT=X_65,LOW,1);
X_70:=IF(X_69<REF(X_69,1),DRAWNULL,X_69);
X_71:=BACKSET(BARSTATUS=2,BARSLAST(X_45)+1);
X_72:=X_71>REF(X_71,1);
X_73:=BACKSET(BARSTATUS=2,BARSLAST(X_60)+1);
X_74:=X_73>REF(X_73,1);
X_75:=BACKSET(X_72,REF(BARSLAST(X_45),1)+2);
X_76:=X_75>REF(X_75,1);
X_77:=BACKSET(X_74,REF(BARSLAST(X_60),1)+2);
X_78:=X_77>REF(X_77,1);
X_79:=BARSLAST(X_74)+1;
X_80:=BARSLAST(X_78)+1;
X_81:=IF(X_79=DRAWNULL AND X_80>0 AND X_45 AND X_7!=1,HIGH,DRAWNULL);
X_82:=BARSLAST(X_72)+1;
X_83:=BARSLAST(X_76)+1;
X_84:=IF(X_82=DRAWNULL AND X_83>0 AND X_60 AND X_8!=1,LOW,DRAWNULL);
X_85:=CONST(HHV(X_81-X_70,0));
X_86:=DRAWLINE(CURRBARSCOUNT=X_68,LOW+X_85,CURRBARSCOUNT=X_65,LOW+X_85,1);
X_87:=5;
X_88:=1;
X_89:=X_87;
X_90:=REF(HIGH,X_89)=HHV(HIGH,2*X_89+1);
X_91:=FILTER(X_90,X_89);
X_92:=BACKSET(X_91,X_89+1);
X_93:=FILTER(X_92,X_89);
X_94:=REF(HIGH,BARSLAST(X_93));
X_95:=REF(MAX(CLOSE,OPEN),X_89)=HHV(MAX(CLOSE,OPEN),2*X_89+1);
X_96:=FILTER(X_95,X_89);
X_97:=BACKSET(X_96,X_89+1);
X_98:=FILTER(X_97,X_89);
X_99:=REF(MAX(CLOSE,OPEN),BARSLAST(X_98));
X_100:=REF(LOW,X_89)=LLV(LOW,2*X_89+1);
X_101:=FILTER(X_100,X_89);
X_102:=BACKSET(X_101,X_89+1);
X_103:=FILTER(X_102,X_89);
X_104:=REF(LOW,BARSLAST(X_103));
X_105:=REF(MIN(CLOSE,OPEN),X_89)=LLV(MIN(CLOSE,OPEN),2*X_89+1);
X_106:=FILTER(X_105,X_89);
X_107:=BACKSET(X_106,X_89+1);
X_108:=FILTER(X_107,X_89);
X_109:=REF(MIN(CLOSE,OPEN),BARSLAST(X_108));
X_110:=IF(X_88=0,X_94,X_99);
X_111:=IF(X_88=0,X_104,X_109);
X_112:=X_110=REF(X_110,1) AND X_87>0 AND CROSS(CLOSE,X_110);
X_113:=X_112 OR (REF(X_112,1) AND CLOSE>X_110 AND REF(CLOSE,1)/REF(CLOSE,2)<1.04 AND CLOSE>=OPEN);
X_114:=0.1;
X_115:=CLOSE>=ZTPRICE(REF(CLOSE,1),X_114) AND OPEN<HIGH;
X_116:=CLOSE>=ZTPRICE(REF(CLOSE,1),X_114) AND OPEN=HIGH;
X_117:=HIGH>=ZTPRICE(REF(CLOSE,1),X_114) AND CLOSE<HIGH;
X_118:=1+3*X_115+2*X_116+0.2*X_117;
X_119:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_120:=X_119*X_118;
X_121:=REF(X_116,1) AND NOT(X_116) AND NOT(REF(EVERY(X_116=1,9),1));
X_122:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
X_123:=IF(CLOSE>OPEN,X_122*(HIGH-LOW),IF(CLOSE<OPEN,X_122*(HIGH-OPEN+(CLOSE-LOW)),IF(CLOSE=OPEN AND CLOSE>REF(CLOSE,1),VOL*0.7,VOL*0.3)));
X_124:=IF(CLOSE>OPEN,X_122*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE<OPEN,X_122*(HIGH-LOW),IF(CLOSE=OPEN AND CLOSE<REF(CLOSE,1),VOL*0.7,VOL*0.3)));
X_125:=SUM((X_123-X_124)/CAPITAL,1)*1000;
X_126:=VOL/10000;
X_127:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
X_128:=MOD(FROMOPEN,X_127);
X_129:=IF(X_128<0.5,X_127,X_128);
X_130:=IF(CURRBARSCOUNT=1 AND PERIOD<=5 AND DYNAINFO(8)>1,VOL*X_127/X_129/10000,DRAWNULL);
X_131:=IF(CURRBARSCOUNT=1 AND PERIOD<=5,X_130,X_126);
X_132:=X_131/REF(MA(X_131,5),1);
X_133:=IF(X_132>30,1,IF(X_132>3 AND X_132<=30,33,IF(CLOSE>=ZTPRICE(REF(CLOSE,1),X_114) AND X_132<=2,X_132*20,X_132)));
X_134:=DAY!=REF(DAY,1);
X_135:=BARSLAST(X_134)+1;
X_136:=VOL*(INDEXC+INDEXL+INDEXH)/3;
X_137:=VOL*(CLOSE+LOW+HIGH)/3;
X_138:=IF(SETCODE<=2 AND CLOSE<300,X_136,X_137);
X_139:=SUM(X_138,X_135)/SUM(VOL,X_135);
X_140:=IF(X_134<=CONST(X_135),X_139,DRAWNULL);
X_141:=REF(X_140,1);
X_142:=IF(SETCODE<=2 AND CLOSE<300,INDEXC>X_141,1);
X_143:=IF(X_142=1 AND INDEXC>=INDEXO,1,IF(X_142=0 AND INDEXC<=INDEXO,(-1),0));
X_144:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4;
X_145:=EMA(CLOSE,2)-EMA(CLOSE,89);
X_146:=EMA(X_145,30);
X_147:=2*(X_145-X_146)*10;
X_148:=POW(X_147,3)*0.1+POW(X_147,2);
X_149:=SMA((CLOSE-REF(CLOSE,1))*VOL,3,1)/10000;
X_150:=EMA(X_149,12)-EMA(X_149,26);
X_151:=EMA(X_150,9);
X_152:=(X_150-X_151)*2;
X_153:=IF(SETCODE<=2 AND CLOSE<300 AND X_152>REF(X_152,1),X_152-REF(X_152,1),0);
X_154:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_155:=SMA(X_154,3,1);
X_156:=SMA(X_155,3,1);
X_157:=X_42 OR CROSS(CLOSE,X_86) OR CROSS(CLOSE,X_57) OR X_113 AND X_155<90 AND X_156<80;
X_158:=VOL>0;
X_159:=IF(NAMELIKE(1),0,1);
X_160:=IF(NAMELIKE(2),0,1);
X_161:=X_159 AND X_160;
X_162:=X_161 AND X_158 AND X_148>=REF(X_148,1) AND X_16 AND CLOSE>=COST(80);
X_163:=FINANCE(40)<300*100000000 AND FINANCE(7)<=20*100000000;
X_164:=IF(CLOSE<500,X_163,1);
X_165:=IF(X_143!=(-1),1,IF(X_143=(-1) AND CLOSE>=ZTPRICE(REF(CLOSE,1),X_114) AND CLOSE=HIGH,1,0));
绝杀确认①号:IF(竞价绝杀>参数 AND X_165 AND X_164 AND X_162 AND (X_157 OR X_121),X_125+X_24*2+X_120+X_133+X_153*10,0),NODRAW;
X_166:=(EMA(CLOSE,12)/EMA(CLOSE,26)-1)*1000;
X_167:=EMA(X_166,5);
X_168:=(EMA(INDEXC,12)/EMA(INDEXC,26)-1)*1000;
X_169:=EMA(X_168,5);
X_170:=X_167-REF(X_167,1);
X_171:=X_169-REF(X_169,1);
X_172:=IF(X_170-X_171>0,(X_170-X_171)*5,0);
X_173:=X_172-REF(X_172,1);
X_174:=SMA((CLOSE-REF(CLOSE,1))*VOL,3,1)/10000;
X_175:=1;
X_176:=EMA(X_174,12)-EMA(X_174,26);
X_177:=EMA(X_176,9);
X_178:=(X_176-X_177)*2;
X_179:=HHVBARS(X_178,BARSLAST(X_178<0)+1);
X_180:=CROSS(BACKSET(CROSS(0,X_178),REF(X_179,1)+2),0.5);
X_181:=DRAWLINE(X_180,X_178,REF(X_180,1),REF(X_178,1),1);
X_182:=X_178>X_181 AND X_178>=REF(X_178,1);
X_183:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND LOW=HIGH;
X_184:=BARSSINCE(CLOSE)<1 OR BARSSINCE(CLOSE)<34 AND CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND LOW=HIGH;
X_185:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND LOW<HIGH;
X_186:=HIGH>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE<HIGH;
X_187:=1+3*X_185+1*X_183+0.2*X_186;
X_188:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_189:=X_188*X_187;
X_190:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
X_191:=IF(CLOSE>OPEN,X_190*(HIGH-LOW),IF(CLOSE<OPEN,X_190*(HIGH-OPEN+(CLOSE-LOW)),IF(CLOSE=OPEN AND CLOSE>REF(CLOSE,1),VOL*0.7,VOL*0.3)));
X_192:=IF(CLOSE>OPEN,X_190*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE<OPEN,X_190*(HIGH-LOW),IF(CLOSE=OPEN AND CLOSE<REF(CLOSE,1),VOL*0.7,VOL*0.3)));
X_193:=IF(X_175!=1,0,SUM((X_191-X_192)/CAPITAL,1)*1000);
X_194:=VOL/10000;
X_195:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
X_196:=MOD(FROMOPEN,X_195);
X_197:=IF(X_196<0.5,X_195,X_196);
X_198:=IF(CURRBARSCOUNT=1 AND PERIOD<=5 AND DYNAINFO(8)>1,VOL*X_195/X_197/10000,DRAWNULL);
X_199:=IF(CURRBARSCOUNT=1 AND PERIOD<=5,X_198,X_194);
X_200:=X_199/REF(MA(X_199,5),1);
X_201:=IF(X_200>30,1,IF(X_200>3 AND X_200<=30,X_200,IF(CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND X_200<=2,X_200*20,X_200)));
X_202:=IF(CLOSE>=REF(CLOSE,1) AND X_200>3,33,IF(CLOSE<REF(CLOSE,1) AND X_200>3,0,IF(CLOSE>=REF(CLOSE,1) AND X_200<=3,X_200*10,X_200)));
X_203:=X_175;
X_204:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4*X_203;
X_205:=IF(CLOSE>0,EMA(MAX(CLOSE-REF(CLOSE,1),0),83)/EMA(ABS(CLOSE-REF(CLOSE,1)),83)*101,0);
X_206:=EMA(CLOSE,2)-EMA(CLOSE,89);
X_207:=EMA(X_206,30)*X_203;
X_208:=2*(X_206-X_207)*10*X_203;
X_209:=POW(X_208,3)*0.1+POW(X_208,2)*X_203;
X_210:=IF(X_208>0.015,X_209,0)/45*X_203;
X_211:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
X_212:=X_178-REF(X_178,1);
X_213:=DYNAINFO(4)>0;
X_214:=EXIST(ABS(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.052,20) AND EXIST(CLOSE/REF(CLOSE,1)>1.15,2)!=1;
X_215:=FINANCE(40)<300*100000000 AND FINANCE(7)<=20*100000000;
X_216:=DAY!=REF(DAY,1);
X_217:=BARSLAST(X_216)+1;
X_218:=VOL*(INDEXC+INDEXL+INDEXH)/3;
X_219:=SUM(X_218,X_217)/SUM(VOL,X_217);
X_220:=IF(X_216<=CONST(X_217),X_219,DRAWNULL);
X_221:=REF(X_220,1);
X_222:=INDEXC>=X_221;
X_223:=IF(X_222=1 AND INDEXC>=INDEXO,1,IF(X_222=0 AND INDEXC<=INDEXO,(-1),0));
X_224:=IF(X_223!=(-1),1,IF(X_223=(-1) AND CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH,1,0));
X_225:=X_214 AND X_213 AND X_184=0 AND AMOUNT/10000>1000;
X_226:=COUNT(HIGH/REF(CLOSE,1)>=1.081,5)>=2 AND CLOSE>=OPEN;
X_227:=INDEXADV/(INDEXADV+INDEXDEC);
X_228:=X_175;
X_229:=IF(X_228=1,X_227*100,0);
X_230:=X_229>85 OR REF(X_229,1)>85;
X_231:=IF(0=1,X_230,0);
X_232:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_233:=EMA(X_232,9);
X_234:=BARSLAST(YEAR>REF(YEAR,1))+1;
X_235:=IF(X_234=DRAWNULL,BARSCOUNT(CLOSE)+1,X_234);
X_236:=(CLOSE/REF(CLOSE,X_235)-1)*100;
X_237:=BARSLASTCOUNT(X_232>X_233);
X_238:=(CLOSE/REF(CLOSE,X_237+1)-1)*100;
X_239:=X_205>53 AND CLOSE>=OPEN;
X_240:=(CLOSE-X_211)/X_211*200;
绝杀确认②号:IF(竞价绝杀>参数 AND X_231=0 AND X_225 AND X_215 AND X_226 AND X_239 AND X_182=1,X_193+X_173*3+X_189+X_202+X_212*5+X_240,0),NODRAW,COLORMAGENTA;
风控开关:IF(X_142=1 AND INDEXC>=INDEXO,1,IF(X_142=0 AND INDEXC<=INDEXO,(-1),0)),NODRAW;

2021122921.png

2021122921.png
 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则