最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信指标顶底公式(源码副图贴图)

    正文概述    2024-05-04 04:43:44  

    以下是通达信指标公式源码和截图


    通达信指标顶底公式源码:


       A0:=HHV(H,9)-LLV(L,9);

       A1:=HHV(H,9)-C;

       A2:=C-LLV(L,9);

       A3:=A1/A0*100-70;

       A4:=(C-LLV(L,60))/(HHV(H,60)-LLV(L,60))*100;

       A5:=(2*C+H+L)/4;

       A6:=SMA(A2/A0*100,3,1);

       A7:=LLV(L,34);

       A8:=SMA(A6,3,1)-SMA(A3,9,1);

       A9:=IF(A8 100,A8-100,0);

       AA:=HHV(H,34);

       AB:=A9*2;

       AC:=EMA((A5-A7)/(AA-A7)*100,13);

       AD:=EMA(0.667*REF(AC,1)+0.333*AC,2);

       AE:=SMA(A4,20,1);

       AF:=SMA(AB,2,1)-AB;

       B0:=EMA(0.667*REF(AC,1)+0.333*AC,2)-AC;

       B1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100-70;

       B2:=SMA(B1,9,1)+100;

       B3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;

       B4:=SMA(B3,3,1);

       B5:=SMA(B4,3,1)+100;

       B6:=B5-B2;

       B7:IF(B6 60,B6-60,0);

       持有:STICKLINE(REF(B7,1) B7,B7,REF(B7,1),5,0);

       出货:STICKLINE(REF(B7,1) B7,B7,REF(B7,1),5,0);

       DRAWTEXT(b7 REF(B7,1)andREF(B7,1) =REF(B7,2)andb7 =40,b7+5,'★买入'),colorred,LINETHICK2;

       DRAWTEXT(b7 REF(B7,1)andREF(B7,1) REF(B7,2),b7,'▼卖出'),colorwhite;

       :5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)

       -3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)

       -SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)

       ,3,1),2,1),COLOR7F52AF;

       趋势1:EMA(MA(趋势,5),3),COLORA6B8C1;

       STICKLINE(趋势 =趋势1,趋势,趋势1,2,0),COLOR7F52AF;

       STICKLINE(趋势 趋势1,趋势,趋势1,2,0),COLORA6B8C1;

       STICKLINE(趋势 108AND趋势 =趋势1,趋势,108,2,0),COLORBLUE;

       STICKLINE(趋势1 108AND趋势 趋势1,趋势1,108,2,0),COLORWHITE;

       STICKLINE(趋势 0AND趋势 趋势1,趋势,0,2,0),COLORF00FF0;

       STICKLINE(趋势1 0AND趋势 趋势1,趋势1,0,2,0),COLORF0F000;

       V1:=MA(C,5)=HHV(MA(C,5),20);

       V2:=MA(C,5) MA(C,20);

       V3:=COUNT(MA(C,1) REF(C,1),3)=3;

       风险:IF(V1ANDV2ANDV3,30,0),STICK,COLOR00FF00;

       V11:=MA(C,5)=HHV(MA(C,5),120);

       V21:=MA(C,5) MA(C,120);

       V31:=COUNT(MA(C,1) REF(C,1),3)=3;

       风险1:IF(V11ANDV21ANDV31,60,0),STICK,COLORF0F000;

       底部:5;

       :IF(CROSS(趋势,底部),60,0),STICK,COLORYELLOW,LINETHICK4;

       DRAWTEXT(抄底,50,'抄底'),COLORRED;

       天线:108,COLORFF9D00;

       :IF(CROSS(天线,趋势),1,0),STICK,COLORFF9D00;

       STICKLINE(CROSS(天线,趋势),90,108,6,0),COLORFF9D00;

       顶:100,POINTDOT,COLORGREEN;

       底:15,POINTDOT,COLORWHITE;

       中:50,POINTDOT,COLORWHITE;

       DRAWTEXT(ISLASTBAR,顶,'顶'),COLORGREEN;

       DRAWTEXT(ISLASTBAR,底,'底'),COLORRED;

       DRAWTEXT(ISLASTBAR,中,'中'),COLORWHITE;

       A0:=(H+L+C*2)/4;

       A1:=HHV(A0,21);

       A2:=LLV(A0,21);

       A3:=A1-A2;

       趋势:EMA((A0-A2)/A3,2)*100,COLORRED,LINETHICK2;

       趋势1:=MA(趋势,3);

       趋势2:IF(趋势 趋势1,(趋势-(趋势1-趋势)),趋势);

       IF(趋势 =趋势1,趋势,DRAWNULL),COLORRED,LINETHICK2;

       IF(趋势 =趋势1,趋势,DRAWNULL),COLORGREEN,LINETHICK2;

       C1:=LLV(L,21);

       C2:=HHV(H,21);

       C3:=REF(C,1);

       C4:=EMA((C-C1)/(C2-C1),3)*100;

       C5:=SMA(MAX(C-C3,0),5,1)/SMA(ABS(C-C3),5,1)*100;

       C6:=(C4-LLV(C4,21))/(HHV(C4,21)-LLV(C4,21))*100;

       IF(CROSS(C6,90)ANDC4 40,50,10),COLORYELLOW,LINETHICK2;

       IF(CROSS(C5,18)ANDREF(C4,5) 20ANDREF(C4,3) 20,50,10),LINETHICK2;

       IF(CROSS(85,C5),70,90),COLOR99FF33,LINETHICK2;

       IF(CROSS(85,C4),70,90),COLORCYAN,LINETHICK2;

       B1:=(L+H+2*C)/4;

       B2:=REF(B1,1);

       B3:=SMA(B1-B2,6,1)/SMA(ABS(B1-B2),6,1)*100;

       B4:=MA(B3,1)+50;

       STICKLINE(B4 =100,103,101,3,0),COLORYELLOW;

       STICKLINE(B4 =0,-10,-8,3,0),COLORGREEN;



    通达信指标-顶底公式截图

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信指标顶底公式(源码副图贴图) 加入收藏