相关简介:通达信主力建仓指标公式准确率100%(无未来函数)源码分享

     通达信指标公式源码概况:

  指标类别:通达信指标公式

  授权方式:免费版

  指标评级:★★★★★

  指标分类:策略

  画线方法:副图

   这是我个人认为在不含未来函数的公式里准确率靠前的公式了

   出现始买入,出现终卖出,可今买明卖,也可继续持股

   有可能会连续出现始和终,信号出现后不会消失,根据形态和成交量来判断会更准确

   选择趋势向上的个股成功率会更高

通达信指标公式源码:

   AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

   买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED;

   卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN;

   进出量:=买量+卖量,COLOR00FFFF;

   STICKLINE(进出量<0,0,进出量,4,0),COLORFF6600;

   STICKLINE(进出量<0,0,进出量,3,0),COLORFF9900;

   STICKLINE(进出量<0,0,进出量,1.5,0),COLORFFCC00;

   STICKLINE(进出量<0,0,进出量,0.5,0),COLORCYAN;

   STICKLINE(进出量>0,0,进出量,4,0),COLOR000099;

   STICKLINE(进出量>0,0,进出量,3,0),COLOR0000CC;

   STICKLINE(进出量>0,0,进出量,1.5,0),COLOR0000FF;

   STICKLINE(进出量>0,0,进出量,0.5,0),COLORCC66FF;

   N:=5;M:=13;N日内净流入:SUM(进出量,N),LINETHICK2,COLORGREEN;

   流入:IF(N日内净流入>REF(N日内净流入,1),N日内净流入,DRAWNULL),COLORRED,LINETHICK2;

   连红天:BARSLASTCOUNT(进出量>0);

   M日内翻红天:COUNT(进出量>0,M),COLORRED;

   走熊天:BARSLASTCOUNT(N日内净流入<0),COLORCYAN;

   走牛天:BARSLASTCOUNT(N日内净流入>0),COLORRED;

   强势天:BARSLASTCOUNT((N日内净流入>REF(N日内净流入,1))>0ANDN日内净流入>0);

   弱势天:BARSLASTCOUNT((N日内净流入<REF(N日内净流入,1))>0ANDN日内净流入<0);

   VAR6:=ma(WINNER(CLOSE),1)*100,COLORYELLOW,LINETHICK2;

   底部:crOSS(VAR6,2.5)*30,COLOR000080,LINETHICK2;

   VR4:=3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);

   vr5:=3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);

   VR6:=100-VR5;

   VR7:=100-VR4;

   A1:=REF(C,1);

   A2:=100*V/CAPITAL*10;

   AA:=CROSS(VR6,VR7)ANDVR4<25;

   AAB:=CROSS(VR6,VR7)ANDVR4>30ANDVR4<50;

   ABC:=CROSS(VR6,VR7)ANDVR4>50ANDVR4<65;

   TMP:FORCAst(1*VAR6,21);

   STICKLINE(TMP>0,0,TMP,1,0),COLORFF8080;

   STICKLINE(TMP<0,0,TMP,1,0),COLORBLUE;

   STICKLINE(VR7<REF(VR6,1),1*VR7,1*VR7+2,A2,1),COLORRED;

   VA1:=MA(VR6,3);

   STICKLINE(1*VR7>VA1,1*VR7,1*VR6,A2,0),COLORYELLOW;

   STICKLINE(VR7>=REF(VR6,1),1*VR7,1*VR6,A2+2,0),COLORGREEN;

   百万:MA(WINNER(C),9)*100,COLOR00FF00,LINETHICK2;

   BB:((CROSS(百万,2.5)ORCROSS(VAR6,百万))AND20>VAR6>REF(VAR6,1))*30;

   STICKLINE(BB=30,0,30,1,1),COLORYELLOW;

   STICKLINE(AA=1,20,40,1,0),COLORLIRED;

   DRAWTEXT(BB=30,10,’..介入’),LINETHICK3;

   DRAWTEXT(AA,20,’跟庄’),COLORYELLOW;

   DRAWTEXT(AA,30,’庄股’);

   DRAWTEXT(AA,40,’启动’),COLORGREEN;

   WY1001:=(2*CLOSE+HIGH+LOW)/4;

   WY1002:=EMA(WY1001,4);

   WY1003:=EMA(WY1002,4);

   WY1004:=EMA(WY1003,4);

   XYS0:=(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;

   跟庄庄股启动:((AAORBB)ANDVR7<REF(VR6,1)ANDCROSS(XYS0,0)ANDDYNAINFO(4)>0)*35,COLORRED,LINETHICK3;

   DRAWLINE(百万>=HHV(百万,10),百万,百万<=LLV(百万,3),HHV(百万,3),3),COLORCYAN,LINETHICK2;

   WL:=((CLOSE-MA(CLOSE,9))/MA(CLOSE,9))*50,LINETHICK2,COLOR0000FF;

   WL3:(MA(WL,3))*10,COLOR00FFFF,LINETHICK2;

   DRAWLINE(WL3>=HHV(WL3,10),WL3,WL3<=LLV(WL3,3),HHV(WL3,3),1),COLORWHITE,LINETHICK2;

[源码注释]通达信公式动态翻译结果

DIF赋值:平滑异同平均的DIF

DEA赋值:平滑异同平均的DEA

JCCOUNT赋值:统计上次DEA<=0距今天数日中满足DEA上穿DIF的天数

零上下叉赋值:DEA上穿DIF AND DIF>0.0 AND 统计21日中满足JCCOUNT=1的天数=1

T赋值:上次零上下叉距今天数

SS赋值:统计T日中满足平滑异同平均>1日前的平滑异同平均ANDDIF>0ANDDEA>0上穿0.5ANDDEA>DIF的天数=1

输出XG:SS上穿0.5

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。