最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信综合箱体主图公式

    正文概述    2024-04-14 15:46:08  

    源码

    {综合箱体主图}
    N:=(3.00,30.00,10.00);
     ST:=(CLOSE/OPEN-1)*100;
     ZF:=(C/REF(C,1)-1)*100;
     SX1:=ST>3 AND ST=HHV(ST,6);
     SX2:=ZF>3 AND ZF=HHV(ZF,6);
     SX3:=ZF>=9 AND CLOSE=HIGH;
    烧香:IF(SX1 OR SX2 OR SX3,1,0),COLOR0000FF,NODRAW;
     DYSJ:=BARSLAST(烧香);
    跟踪:IF(DYSJ<=13 AND COUNT(C>REF(L,DYSJ),DYSJ)>=DYSJ-1,DYSJ,0),COLOR00FFFF,NODRAW;
    关注:IF(DYSJ>=4 AND COUNT(C>REF(C,DYSJ),3)>=3,REF(C,DYSJ),REF(L,DYSJ)),COLORFFFFFF,NODRAW;
     ②:IF(关注=REF(L,DYSJ),REF(C,DYSJ),REF(L,DYSJ)),COLOR00FFFF,NODRAW;
     STICKLINE(跟踪,②,②,3,0),COLOR00FFFF;
     BF1:=LOW<关注*1.01 AND COUNT(LOW<关注*1.01,跟踪)=1;
     BF2:=LOW<关注 AND COUNT(LOW<关注,跟踪)=1;
    拜佛:IF(BF1 OR BF2,1,0),COLOR00FF00,NODRAW;
     {以下设置主图显示方式}
    STICKLINE(C>0,关注,关注,5,-1),COLORFFFFFF;
    支撑:STICKLINE(跟踪,关注,关注,3,0),COLORFF00FF;


     HHJSJDA:=(2.97*CLOSE+OPEN+LOW+HIGH)/6;
     HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)
     +13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)
     +7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+
     REF(HHJSJDA,20))/210,COLORYELLOW;
     HHJSJDC:MA(HHJSJDB,5),COLORRED;

    【箱顶】:PEAK(CLOSE,N,1)*0.98;
    【箱底】:TROUGH(CLOSE,N,1)*1.02;
    【箱高】:100*(【箱顶】-【箱底】)/【箱底】,NODRAW;

    {135均线战法}

    YY1:=C>MA(C,11) AND OPEN YY3:=C>MA(C,33) AND OPEN  YY5:=C>MA(C,55) AND OPEN  DRAWTEXT(YY1 AND YY5 AND YY3,LOW-0.1,'一阳三线'),COLORRED;

    A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
     A4:=SMA(A3,3,1);
     A5:=SMA(A4,3,1);
     A6:=3*A4-2*A5;
     A7:=C-REF(C,1);
     A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
    买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
     DRAWTEXT(FILTER(买=1,5),LOW-0.05,'进'),COLORYELLOW;
     STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;

     


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信综合箱体主图公式 加入收藏