最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 飞狐YMH分段箱体源码

    正文概述    2024-04-14 15:19:31  

     MA10:MA(CLOSE,10);

    MA21:MA(CLOSE,21);

    MA55:MA(CLOSE,55);

    V1:=PEAKBARS(HHV(HIGH,N1),N2,1);

    V2:=COUNT(V1,1)<1;

    V3:=TROUGHBARS(LLV(LOW,N1),N2,2);

    V4:=COUNT(V3

    V5:=LLVBARS(V2,V4);

    V6:=SUMBARS(V2,V4);

    V7:=SUMBARS(V4,V2);

    V8:=SUMBARS(V4+V2,V2);

    V9:=SUMBARS(V2+V4,V4);

    VERTLINE(V2),colorFFFF;

    VERTLINE(V4),LINETHICK4,colorFF;

    DRAWTEXT(V2,HIGH*1.09,'下 跌 周 期 '),ALIGN4,colorFFFF10;

    DRAWTEXT(V4,LOW*0.97,'上 涨 周 期 '),ALIGN4,colorFF;

    AA1:=BACKSET(ISLASTBAR,HHVBARS(HIGH,M)+1);

    BB2:=COUNT(AA1,M)=1;

    DRAWTEXT(BB2,HIGH*1.05,'   新高 '),ALIGN1;

    AA3:=BACKSET(AA1,LLVBARS(LOW,M1)+1);

    BB4:=COUNT(AA3,M1)=1;

    前底:REF(LOW,BARSLAST(BB4)),LINETHICK2,colorFFFF;

    底:REF(LOW,BARSLAST(BB4))*0.83,LINETHICK2,colorFF;

    目标1:=前底*1.1;

    目标2:前底*1.2,POINTDOT,LINETHICK3,colorFF;

    目标3:前底*1.3,POINTDOT,LINETHICK2,colorFFCC99;

    目标4:前底*1.4,POINTDOT,LINETHICK4,colorFF00;

    目标5:前底*1.618,POINTDOT,LINETHICK1,colorFFFFFF;

    目标6:=前底*1.88;

    目标7:=前底*2;

    DRAWNUMBER(SYSPARAM(3)=BARPOS,目标2,目标2,2),ALIGN2,SHIFT3,colorFF;

    DRAWNUMBER(SYSPARAM(3)=BARPOS,目标5,目标5,2),ALIGN2,SHIFT3,colorFFCC99;

    DRAWNUMBER(SYSPARAM(3)=BARPOS,目标4,目标4,2),ALIGN2,SHIFT3,colorFF00;

    DRAWNUMBER(SYSPARAM(3)=BARPOS,前底,前底,2),ALIGN2,SHIFT3,colorFFFF66;

    DRAWNUMBER(SYSPARAM(3)=BARPOS,底,底,2),ALIGN2,SHIFT3,colorFFFFFF;

    VV1:=TROUGHBARS(LLV(LOW,20),5,1);

    VV2:=COUNT(VV1,1);

    VV3:=BACKSET(ISLASTBAR,VV2+1);

    VV4:=REF(VV1,BARSLAST(VV3))+1;

    DRAWTEXT(FILTER(VV4,1),LLV(LOW,40)*0.94,'天'),SHIFT3,colorFF00;

    DRAWNUMBER(SYSPARAM(3)=BARPOS,LLV(LOW,40)*0.94,VV4,0),SHIFT1,colorFF00;

    TJ1:=VV4=7 OR VV4=13 OR VV4=21 OR VV4=34 OR VV4=55 OR VV4=89 OR VV4=114;

    DRAWTEXT(FILTER(TJ1,1),LLV(LOW,40)*0.9,'关注日'),colorFFFF;

    VA1:=PEAKBARS(HHV(HIGH,10),5,1);

    VA2:=COUNT(VA1,1);

    VA3:=BACKSET(ISLASTBAR,VA2+1);

    VA4:=REF(VA1,BARSLAST(VA3))+1;

    DRAWNUMBER(SYSPARAM(3)=BARPOS,HHV(HIGH,40)*1.08,VA4,0),SHIFT1,colorFFFFFF;

    DRAWTEXT(FILTER(VV4,1),HHV(HIGH,40)*1.099,'天'),SHIFT3,colorFFFFFF;

    TJ2:=VA4=7 OR VA4=13 OR VA4=21 OR VA4=34 OR VA4=55 OR VA4=89 OR VA4=114;

    DRAWTEXT(FILTER(TJ2,1),HHV(HIGH,40)*1.06,' 关注日'),colorFFFF;

    DRAWICON(TJ1 OR TJ2,CLOSE,1),ALIGN4;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 飞狐YMH分段箱体源码 加入收藏