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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信双倍阴指标公式源码


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

X_1:=MAX(DYNAINFO(3),DYNAINFO(5));
X_2:=MIN(DYNAINFO(3),DYNAINFO(6));
X_3:=X_1-X_2;
X_4:=X_2+X_3*7/8;
X_5:=X_2+X_3*0.5/8;
X_6:=(X_4+X_5)/2;
X_7:=3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1),3,1);
X_8:=EMA(X_7,3);
X_9:=REF(X_8,1)<11 AND crOSS(X_8,11) AND CLOSE<X_6;
X_10:=REF(X_8,1)<11 AND REF(X_8,1)>6 AND CROSS(X_8,11);
X_11:=REF(X_8,1)<6 AND REF(X_8,1)>3 AND CROSS(X_8,6);
X_12:=REF(X_8,1)<3 AND REF(X_8,1)>1 AND CROSS(X_8,3);
X_13:=REF(X_8,1)<1 AND REF(X_8,1)>0 AND CROSS(X_8,1);
X_14:=REF(X_8,1)<0 AND CROSS(X_8,0);
X_15:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.058 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<0.095;
X_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.098;
X_17:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
X_18:=FILTER(X_17,10);
X_19:=BARSLAST(X_18);
X_20:=REF(HIGH,X_19+2);
X_21:=REF(HIGH,X_19+1);
X_22:=REF(HIGH,X_19);
X_23:=MAX(X_20,X_21);
X_24:=MAX(X_23,X_22);
X_25:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
X_26:=X_19<150;
X_27:=(OPEN-X_24)/X_24*100<30;
X_28:=(CLOSE-LLV(LOW,X_19))/LLV(LOW,X_19)*100<50;
X_29:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
X_30:=vol/MA(VOL,5)<3.5;
X_31:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
X_32:=X_25 AND X_26 AND X_27 AND X_28 AND X_29 AND X_30 AND X_31;
X_33:=CLOSE/REF(CLOSE,1)*100-100;
X_34:=MAX(CLOSE,OPEN)/MIN(CLOSE,OPEN)*100-100;
X_35:=BARSLASTCOUNT(X_34<5);
X_36:=X_35>=2 AND X_35<=4;
X_37:=REF(X_36,1) AND X_33>6;
X_38:=REF(X_33>6,1) AND X_34<5;
X_39:=CLOSE>REF(CLOSE,1) AND CLOSE>OPEN;
X_40:=REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE<OPEN,2) AND REF(OPEN-CLOSE,1)>REF(OPEN-CLOSE,2)*2 AND REF(VOL,1)>REF(VOL,2)*2;
X_41:=REF(CLOSE,2)<REF(CLOSE,3) AND REF(CLOSE,3)<REF(CLOSE,4) AND REF(CLOSE,4)<REF(CLOSE,5) AND REF(CLOSE,5)<REF(CLOSE,6);
X_42:=X_39 AND X_40 AND X_41;
X_43:=X_39 AND REF(X_42,1);
X_44:=X_10=1 OR X_11=1 OR X_12=1 OR X_13=1 OR X_14=1;
X_45:=X_43 AND (X_44=1 AND CLOSE<X_6 OR X_9);
STICKLINE(X_45,1,1.3,0,0),COLORRED;
STICKLINE(X_45,0.5,1,2,0),COLORYELLOW;
STICKLINE(X_45,0,0.5,2,0),COLORMAGENTA;
DRAWTEXT(X_45,0.5,'←双倍阴'),COLORYELLOW;





回复

举报

QQ|

GMT+8, 2024-11-17 00:03

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