程序化指标公式
问答中心

通达信牛市与熊市主图指标公式

通达信指标 2020-11-01阅读量:3473

安装后如下图,友情提示(指标只是辅助,不作建议) 所有程序均为免费分享。

不会安装点击 安装指南 步骤操作。

X_1:=REF(HIGH,1)-REF(LOW,1);
X_2:=(REF(HIGH,1)+REF(LOW,1)+REF(CLOSE,1))/3;
X_3:=362-253+3+478+314+DATE-904;
X_4:=X_2+X_1;
X_5:=X_2+X_2-REF(LOW,1);
X_6:=2260317+134168+1122000+457711+504030+308+23079-12012;
X_7:=X_2+X_2-REF(HIGH,1);
X_8:=MINUTE;
X_9:=X_2-X_1;
X_10:=6543+6578+4125;
X_11:=HIGH-LOW;
X_12:=IF(X_3<X_6 AND X_3>X_10,1,0);
X_13:=IF(X_8=5,0,1)*X_12;
X_14:=5*CLOSE-4*CLOSE;
X_15:=(96+324+36+45+78-63+96-572)/2;
X_16:=IF(X_8=0,1,0)*X_12;
X_17:=(HIGH+LOW+CLOSE)/3;
X_18:=X_17+X_11;
X_19:=3*OPEN-2*OPEN;
X_20:=IFN(X_8=15,1,0)*X_12;
X_21:=X_17+X_17-LOW;
X_22:=X_17+X_17-HIGH;
X_23:=IF(X_8=60,0,1)*X_12;
X_24:=X_17-X_11;
X_25:=(CLOSE-LLV(LOW,657))/(HHV(HIGH,474)-LLV(LOW,77))*1474;
X_26:=IFN(X_8=740,1,0)*X_12;
X_27:=SMA(X_25,747,1);
X_28:=447;
X_29:=IF(X_3<X_6 AND DATE>X_10,1,0);
X_30:=IF(X_13 AND X_20 AND X_26 AND X_23 AND X_16,1,0);
X_31:=X_2+X_2-REF(HIGH,1);
X_32:=IFN(NOT(X_29 AND X_30 AND X_26),1,0);
X_33:=IF(X_8>=0,1,0);
X_34:=X_2-X_1;
X_35:=(HIGH+LOW+CLOSE)/3;
X_36:=IFN(X_33 AND X_30 AND X_20,0,1);
X_37:=IF(NOT(X_36*X_30 AND X_16 AND X_13),0,1);
X_38:=IF(NOT(X_29 AND X_33 AND X_32*X_29 AND X_30),0,1);
X_39:=X_17+X_17-LOW;
X_40:=X_2+X_1;
X_41:=X_2+X_2-REF(LOW,1);
X_42:=7*LOW-6*LOW;
X_43:=IFN(X_29 AND X_30 AND X_36*X_30 AND X_32*X_29,0,1);
X_44:=IFN(X_32 AND X_20 AND X_30,0,1);
X_45:=HIGH-LOW;
X_46:=IF(NOT(X_38 AND X_26*X_13 AND X_30),0,1);
X_47:=X_17+X_11;
X_48:=(4*HIGH-3*HIGH)*X_43;
X_49:=X_17+X_17-HIGH;
X_50:=IF(X_33*X_13*X_23*X_20,1,0);
X_51:=IFN(X_43,0,1);
X_52:=REF(HIGH,1)-REF(LOW,1);
X_53:=IF(NOT(X_32*X_29 AND X_32*X_26 AND X_46 AND X_30),0,1);
X_54:=IFN(X_36 AND X_37*X_36*X_13 AND X_50,0,1);
X_55:=(REF(HIGH,1)+REF(LOW,1)+REF(CLOSE,1))/3;
X_56:=IFN(NOT(X_29*X_38 AND X_33 AND X_38*X_29 AND X_30),1,0);
X_57:=SMA(X_27,15,1);
X_58:=100-3*X_27+2*X_57;
X_59:=IFN(NOT(X_29*X_38 AND X_26 AND X_33*X_20 AND X_43*X_29),1,0);
X_60:=IFN(NOT(X_29*X_20*X_43 AND X_43 AND X_43*X_29 AND X_30),1,0);
X_61:=(-98);
X_62:=(3*X_27+2*X_57)/4;
X_63:=IFN(NOT(X_29*X_36 AND X_33 AND X_32*X_29 AND X_23),1,0);
X_64:=IF(X_46 AND X_29*X_60 AND X_56*X_30 AND X_63*X_13 AND X_38*X_26,(MA(CLOSE,4)+EMA(CLOSE,4))/2*X_63,0);
X_65:=REF(X_62,1);
X_66:=132;
X_67:=(CLOSE+LOW+HIGH)/3;
X_68:=EMA(X_67,6);
X_69:=EMA(X_68,5);
X_70:=24;
熊市区:IF(X_46*X_56 AND X_23 AND X_63 AND X_30*X_46 AND X_56 AND X_38 AND X_59*X_2 ,X_59*MA((2*X_42+X_14)/3,X_15)*X_29,0),LINESTICK,COLORGRAY;
X_71:=IF(X_46*X_56 AND X_23 AND X_63 AND X_30*X_46 AND X_56 AND X_38 AND X_59*X_29,X_59*MA((2*X_42+X_14)/3,X_15)*X_29,0);
X_72:=8;
X_73:=HIGH-LOW;
X_74:=(HIGH+LOW+CLOSE)/3;
X_75:=(CLOSE+LOW+HIGH)/3;
STICKLINE(X_14*X_38*X_63>X_43*X_71*X_38 AND CLOSE>=OPEN,OPEN,CLOSE,3,1),COLORRED;
STICKLINE(X_14*X_38*X_63>X_43*X_71*X_38 AND CLOSE>=OPEN,X_48,CLOSE,0,0),COLORRED;
X_76:=30;
X_77:=(-150);
X_78:=ABS(ABS(X_62)-ABS(X_58));
STICKLINE(X_14*X_38*X_63>X_43*X_71*X_38 AND CLOSE<OPEN,OPEN,X_14,1.8,0),COLORRED;
X_79:=(CLOSE+LOW+HIGH)/9;
X_80:=EMA(X_67,3);
X_81:=ABS(ABS(X_62)-ABS(X_78));
X_82:=EMA(X_79,1);
牛市区:IF(X_60*X_63 AND X_23 AND X_53 AND X_63 AND X_30*X_46 AND X_56 AND X_38 AND X_59*X_29,X_59*MA((X_48+2*X_14)/3,X_15)*X_29,0),COLORRED;
X_83:=IF(X_60*X_63 AND X_23 AND X_53 AND X_63 AND X_30*X_46 AND X_56 AND X_38 AND X_59*X_29,X_59*MA((X_48+2*X_14)/3,X_15)*X_29,0);
X_84:=EMA(X_80,1);
X_85:=EMA(X_84,1);
UYT:=DRAWTEXT(X_38*CROSS(X_14*X_29*X_38*X_43*X_63,X_83*X_38),LOW*0.98,1),COLORYELLOW,LINETHICK3;
{需要编写选股关注微信公众号:程序化指标}
X_86:=100*(CLOSE-LLV(LOW,153))/(HHV(HIGH,541)-LLV(LOW,522));
X_87:=MA(X_86,3);
STICKLINE(X_14*X_38*X_63>X_43*X_71*X_38 AND CLOSE<OPEN,OPEN,X_48,0,1),COLORRED;
STICKLINE(X_14*X_38*X_63>X_43*X_71*X_38 AND CLOSE<OPEN,CLOSE,X_42,0,1),COLORRED;
X_88:=EMA(AMOUNT/VOL/100,5);

X_89:=EMA(AMOUNT/VOL/100,558);
X_90:=X_88-X_89;
X_91:=EMA(AMOUNT/VOL/100,482);
X_92:=X_88-X_89;
STICKLINE(X_14*X_38*X_63<X_63*X_83*X_43 AND X_14*X_38*X_63<X_43*X_71*X_38 AND CLOSE>OPEN,OPEN,CLOSE,1.8,1),COLORGREEN;
STICKLINE(X_14*X_38*X_63<X_63*X_83*X_43 AND X_14*X_38*X_63<X_43*X_71*X_38 AND CLOSE<=OPEN,CLOSE,OPEN,3,0),COLORGREEN;
X_93:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
X_94:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;
STICKLINE(X_14*X_38*X_63<X_63*X_83*X_43 AND X_14*X_38*X_63<X_43*X_71*X_38 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(X_14*X_38*X_63<X_63*X_83*X_43 AND X_14*X_38*X_63<X_43*X_71*X_38 AND CLOSE>OPEN,CLOSE,HIGH,0,1),COLORGREEN;
X_95:=BARSCOUNT(CLOSE);
X_96:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
X_97:=EMA(X_67,6);
X_98:=EMA(X_68,5);
STICKLINE(X_14<X_63*X_83*X_43 AND X_14<X_43*X_71*X_63,X_63*X_83*X_43,X_71,0,0),COLORGREEN;
STICKLINE(X_14*X_38*X_63<X_63*X_83*X_43 AND X_14*X_38*X_63<X_43*X_71*X_38 AND CLOSE>OPEN,OPEN,LOW,0,1),COLORGREEN;
X_99:=(-30);
X_100:=80;
X_101:=X_17-X_11;
STICKLINE(X_14>X_43*X_71*X_38 AND X_14>X_83,X_63*X_71*X_38,X_63*X_83*X_43,0,0),COLORRED;
X_102:=100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34));
X_103:=MA(X_86,3);
X_104:=EMA(AMOUNT/VOL/100,5);

版权声明

所有指标均为免费分享。

文章内容来自互联网,本网站无任何收费项目也不推荐股票
广告投放请自行识别风险。

分享:

扫一扫在手机阅读、分享本文

程序化指标公众号

左边广告一

关闭

右边广告二

关闭