股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[指标编写] 通达信金石三箭选股指标公式源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-9-6 09:12:37

X_1:=EMA(WINNER(CLOSE)*70,3);
X_2:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
X_4:=X_1/(X_1+X_2)*100;
X_6:=EMA(X_4,55);
X_8:=DYNAINFO(4)>0 AND HHV(HIGH,10)/LLV(LOW,10)<1.25 AND REF(CLOSE,1)<LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85 AND CLOSE>OPEN AND CLOSE>=HHV(HIGH,10);
X_9:=IF(DATETODAY(DATE)<1000000000,1,1);
X_11:=EMA(CLOSE,10);
X_14:=EMA(CLOSE,40);
X_15:=EMA(CLOSE,60);
X_16:=IF(DATE<1000000000,1,DRAWNULL);
X_17:=MAX(X_14,X_15);
X_18:=CLOSE>X_17 AND X_8 AND (CLOSE>REF(HHV(HIGH,3),1)*X_9 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.07);
X_19:=vol;
X_20:=MA(X_19,5);
X_21:=X_20+X_20>X_19;
X_22:=DYNAINFO(4)>0 AND HHV(HIGH,10)/LLV(LOW,10)<1.25 AND REF(CLOSE,1)<(LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85)*X_9 AND CLOSE>OPEN AND CLOSE>=HHV(HIGH,10)*X_16;
X_23:=(CLOSE>REF(HHV(HIGH,3),1)*X_9 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.07)*X_9 AND X_22 AND X_21;
X_24:=DYNAINFO(4)>0 AND HHV(HIGH,10)/LLV(LOW,10)<1.25 AND REF(CLOSE,1)*X_9<LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85 AND CLOSE>OPEN AND CLOSE>=HHV(HIGH,10);
X_25:=(CLOSE-REF(CLOSE,1)*X_9)/REF(CLOSE,1)*100>7;
X_26:=X_24 AND X_25;
X_27:=DATETODAY(DATE);
X_28:=X_27>9344 AND X_27<1000000000;
X_29:=(X_18 AND X_26)*X_28;
X_30:=EMA(CLOSE,5);
X_32:=EMA(CLOSE,14);
X_33:=EMA(CLOSE,18);
X_34:=EMA(CLOSE,40);
X_35:=EMA(CLOSE,60);
X_36:=MAX(MAX(MAX(MAX(MAX(X_30,X_11),X_32),X_33),X_34),X_35)*X_16;
X_37:=MIN(MIN(MIN(MIN(MIN(X_30,X_11),X_32),X_33),X_34),X_35)*X_16;
X_38:=CLOSE>X_36 AND LOW<X_37 AND (CLOSE>REF(HHV(HIGH,3),1) AND (CLOSE-REF(CLOSE,1)*X_9)/REF(CLOSE,1)>0.09);
X_39:=FILTER(X_38>0,0)=1;
X_40:=DATETODAY(DATE);
X_41:=X_40>9350 AND X_40<1000000000;
X_42:=X_39*X_41;
X_43:=MA(REF(HHV(CLOSE,26),1),2);
X_44:=MA(CLOSE,26);
X_45:=POW(CLOSE-X_44,2);
X_46:=MA(X_45,13);
X_47:=SQRT(X_46);
X_48:=X_44+2*X_47;
X_50:=crOSS(CLOSE,X_43) AND HIGH>REF(X_48,1) OR (CLOSE>X_43 AND CROSS(CLOSE,REF(X_48,1))) AND CLOSE/OPEN>0.998;
X_51:=macd.MACD;
X_52:=kd.K;
X_53:=KD.D;
X_54:=rsi.RSI1;
X_55:=RSI.RSI3;
X_56:=CLOSE-REF(CLOSE,1);
X_57:=IF(X_56>=0,X_56,0)*X_16;
X_58:=IF(X_56<0,-X_56,0)*X_16;
X_59:=MEMA(X_57,10);
X_60:=MEMA(X_58,10);
X_61:=MEMA(X_57,6);
X_62:=MEMA(X_58,6);
X_63:=MA(100*X_59/(X_59+X_60),10)*X_16;
X_64:=MA(100*X_61/(X_61+X_62),6)*X_16;
X_65:=MA(CLOSE,5)/MA(CLOSE,10)>0.999 AND MA(CLOSE,10)/MA(CLOSE,20)>0.9847 AND MA(CLOSE,20)>MA(CLOSE,60) AND REF(COUNT(MA(CLOSE,10)/MA(CLOSE,20)<1.017 OR MA(CLOSE,5)/MA(CLOSE,10)<1.017,8)>=1,1) AND MA(CLOSE,20)/MA(CLOSE,60)<1.121;
X_66:=(CLOSE-MA(CLOSE,60))/MA(CLOSE,60)*100;
X_67:=COUNT(X_66<35,100)>=95;
X_68:=X_50 AND X_65>0 AND NOT(DYNAINFO(4)=0) AND X_67 AND REF(COUNT(MA(CLOSE,20)>MA(CLOSE,30),4)=4 AND COUNT(CLOSE>MA(CLOSE,5),3)>=2,1) AND VOL>REF(VOL,1) AND (REF(COUNT(CLOSE>OPEN,10)>=6 OR COUNT(CLOSE>OPEN,5)>=4,1) OR CLOSE=HIGH) AND (CROSS(X_64,X_63) OR CROSS(X_51,0) OR REF(COUNT(CROSS(X_51,0),3)=1 AND X_51<0.15 AND CLOSE/OPEN>0.989 AND CLOSE/REF(CLOSE,1)<1.03,1) OR CROSS(X_52,X_53) OR CROSS(X_54,X_55)) AND REF(CLOSE/OPEN>0.988 AND (CLOSE>OPEN OR (CLOSE<=OPEN AND HIGH/LOW<1.049)),1) AND HIGH/CLOSE<1.013 AND CLOSE/OPEN>1.05;
X_69:=X_18+X_23+X_26+X_39+X_68>=2;
X_70:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,20)>MA(CLOSE,60) AND MA(CLOSE,60)>MA(CLOSE,120) AND MA(CLOSE,5)>REF(MA(CLOSE,5),1);
X_71:=CLOSE>REF(CLOSE,1)*1.1-0.01;
X_72:=HHV(HIGH,20)=HHV(CLOSE,1) AND VOL>0 AND BARSCOUNT(CLOSE)*X_9>=20;
X_73:=VOL/REF(VOL,1)*X_9>1.9;
X_74:=X_70 AND X_71 AND X_72 AND X_73;
X_81:=CLOSE/REF(CLOSE,1)>1.05 AND REF(CLOSE,1)/REF(CLOSE,2)<1.05 AND CLOSE/LLV(CLOSE,10)<1.4;
X_82:=VOL/REF(VOL,1)>2 OR VOL=HHV(VOL,15);
X_83:=CAPITAL<10000000;
X_84:=ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*57.299999>40;
X_85:=ATAN((MA(CLOSE,10)/REF(MA(CLOSE,10),1)-1)*100)*57.299999>30;
X_86:=ATAN((MA(CLOSE,20)/REF(MA(CLOSE,20),1)-1)*100)*57.299999>20;
X_87:=ATAN((MA(CLOSE,30)/REF(MA(CLOSE,30),1)-1)*100)*57.299999>10;
X_88:=X_84 AND X_85 AND X_86 AND X_87;
X_89:=kdj.K>REF(KDJ.K,1)*X_9;
X_90:=KDJ.D>REF(KDJ.D,1)*X_9 AND KDJ.D<70;
X_91:=KDJ.J>REF(KDJ.J,1)*X_9;
X_92:=X_89 AND X_90 AND X_91;
X_93:=X_14 AND X_81 AND X_82 AND X_83 AND X_88 AND X_92;
X_94:=FILTER(X_93,15)*X_9;
X_95:=X_74 OR X_94;
X_96:=(X_95 AND X_69)*X_9 OR X_42 OR X_29;
X_99:=X_4>X_6 AND X_6>50;
X_100:=X_4>X_6 AND X_6<50 AND X_4>50 AND X_6>REF(X_6,1);
X_101:=X_99 OR X_100;
XG:X_96 AND X_101;





回复

举报

QQ|

GMT+8, 2024-11-27 20:58

快速回复 返回顶部 返回列表