最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信反转上升结构趋势指标公式

    正文概述    2024-04-13 15:14:45  

    N:=8;
    N1:=17;
    N2:=34;
    A1A:=EMA(CLOSE, 9);
    A1B:=((A1A-EMA(CLOSE,5))<0);
    STICKLINE(C>0,40,60,10,0),COLOR999999;
    RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
    A1C:=((A1A-EMA(CLOSE,5))>0);
    A1D:=BArslAST(A1B);
    短K:SMA(RSV,3,1),COLORF580F5,LINETHICK0;
    短D:SMA(短K,3,1),COLORCCDD33,LINETHICK0;
    A1E:=BARSLAST(A1C);
    A1F:=IF((A1E>0),(CLOSE-REF(CLOSE,1))/REF(CLOSE, 1)*100,0);
    RSV1:=(CLOSE-LLV(LOW,N2))/(HHV(HIGH,N2)-LLV(LOW,N2))*100;
    A20:=SUM(A1F,0);
    A21:=IF((A1D>0),(0-2),0);
    中K:SMA(RSV1,5,1),COLORRED,LINETHICK0;
    中D:SMA(中K,10,1),COLOR00FFFF,LINETHICK0;
    A22:=IF((A1E>0),SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,A1E),0);
    A23:=A22/A1E;
    短:=3*短K-2*短D,COLORRED,LINETHICK4;
    中:=3*中K-2*中D,COLORRED,LINETHICK4;
    A25:=EMA(EMA(EMA(CLOSE,3),3),3);
    上升通道:((A25 - REF(A25,1))+A25),COLORRED;
    趋势线:(短+中)/2,COLORFF9900,LINETHICK2;
    底线:10,COLORWHITE;
    顶线:90,COLOR33FF33;
    反转通道:MA(上升通道,15),COLORGREEN;
    IF(上升通道>REF(上升通道,1),上升通道,DRAWNULL),COLORFFFFCC,LINETHICK4,POINTDOT;
    IF(反转通道>REF(反转通道,1),反转通道,DRAWNULL),COLOR00FFFF,LINETHICK4,POINTDOT;
    BB:=IF(BARSLAST(crOSS(短K,RSV))>=3 AND CROSS(RSV,短K) AND 短K<30,20,0);
    STICKLINE((上升通道>反转通道),反转通道,上升通道,1,0),COLORMAGENTA;
    STICKLINE((反转通道>上升通道),上升通道,反转通道,1,0),COLORFF0000;
    STICKLINE(BB,0,50,2.8,1),COLOR0000BB;
    STICKLINE(BB,0,50,1.4,1),COLOR0000DD;
    STICKLINE(BB,0,50,0.7,1),COLOR0000FF;
    DRAWTEXT(CROSS(反转通道,上升通道),上升通道*1.08,'下降趋势'),COLOR00FF00;
    DRAWTEXT(CROSS(上升通道,反转通道),反转通道*0.97,'上升趋势'),COLOR0000FF;
    AA:=IF(BARSLAST(CROSS(RSV,短K))>=4 AND CROSS(短K,RSV) AND RSV>50,20,0);
    DRAWICON(((REF(A21,1)=(0-2)) AND (A21=0)),LOW,5);
    DRAWICON(((REF(A1E,1)>0) AND (A1E=0)),HIGH,6);


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信反转上升结构趋势指标公式 加入收藏