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

    正文概述    2024-04-07 08:50:30  
    A:=H=HHV(H,T) AND HHV(H,T) REF(HHV(H,T),1);
    B:=L=LLV(L,T) AND LLV(L,T) REF(LLV(L,T),1);
    C1:=DRAWLINE(A,H,B,L,0);
    C2:=DRAWLINE(B,L,A,H,0);
    GD:=C2=C1 AND A;
    DD:=C2=C1 AND B;
    GDT:=BARSLAST(GD);
    DDT:=BARSLAST(DD);
    D1:=HHV(H,T) REF(HHV(H,T),1) AND ISLASTBAR AND C2!=C1;
    D2:=LLV(L,T) REF(LLV(L,T),1) AND ISLASTBAR AND C2!=C1;
    D3:=IF(DD OR D2,GDT,IF(GD OR D1,DDT,DRAWNULL));
    GHS:=VARCAT(VAR2STR(SUM( HSL.HSL ,GDT),2), %(
    DHS:=VARCAT(VAR2STR(SUM( HSL.HSL ,DDT),2), %(
    ZHG:=VARCAT(VARCAT(DHS,VAR2STR(DDT,0)), 天)
    ZHD:=VARCAT(VARCAT(GHS,VAR2STR(GDT,0)), 天)
    DRAWBAND(C1,RGB(250,0,250),C1,RGB(0,0,0));
    DRAWBAND(C2,RGB(250,0,250),C2,RGB(0,0,0));
    DRAWTEXT(D3 0 AND HHV(H,T) REF(HHV(H,T),1),(H+L)/2,ZHG),COLORYELLOW,DRAWABOVE;
    DRAWTEXT(D3 0 AND LLV(L,T) REF(LLV(L,T),1),(H+L)/2,ZHD),COLORYELLOW,DRAWABOVE;


    {涨跌停标记}
    ST:=IF(NAMELIKE( ST ),1,0) OR IF(NAMELIKE( *ST ),1,0) ;
    STZT:=C/REF(C,1) =1.049 AND C=H;
    STDT:=REF(C,1)/C =1.049 AND C=L;
    ZT:=C/REF(C,1) =1.095 AND C=H;
    DT:=REF(C,1)/C =1.095 AND C=L;
    ZTW:=BARSLAST(ZT
    DTW:=BARSLAST(DT
    STZTW:=BARSLAST(STZT
    STDTW:=BARSLAST(STDT
    DRAWTEXT(ZTW AND C 0,H,VAR2STR(ZTW,0)),COLORGRAY,DRAWABOVE;
    DRAWTEXT(DTW AND C 0,L*0.96,VAR2STR(DTW,0)),COLORGRAY;
    DRAWTEXT(STZTW AND C 0,H,VAR2STR(STZTW,0)),COLORGRAY,DRAWABOVE;
    DRAWTEXT(STDTW AND C 0,L*0.96,VAR2STR(STDTW,0)),COLORGRAY;



    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信转折换手主图公式源码 加入收藏