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

    正文概述    2024-04-13 13:57:23  

    撑压主图:
    包含压力线,支撑线,60日均线(绿色虚线,线上可买 线下观望),5日均线(红线买 白线卖)。
    单一指标准确率欠缺,最好还是配合我之前发的MACD定量结构指标一起参考。

    站上支撑位且MACD拐头可以买入
    {撑压主图}
    MA5:MA(C,5),LINETHICK2,COLORRED;
    MA10:=MA(C,10);
    MA20:=MA(C,20);
    MA30:=MA(C,30);
    五日乖离率:=(C-MA5)/MA5*100;
    BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;
    速度5:=SMA(EMA((MA5-REF(MA5,1))/REF(MA5,1),3)*100,3,1);
    加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;
    IF(BB5 30 AND MA5 =REF(MA5,1), MA5,DRAWNULL),LINETHICK2,COLORRED;
    BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
    IF(BB5 0 AND MA5 REF(MA5,1), MA5,DRAWNULL),LINETHICK2,COLORWHITE;
    三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;
    VAR1:=(MA20-MA30) REF((MA20-MA30),1) AND MA20 REF(MA20,1) AND MA30 REF(MA30,1);
    VAR2:=(MA30-MA20) REF((MA30-MA20),1) AND MA20 REF(MA20,1) AND MA30 REF(MA30,1);
    BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;
    强势狙击:=FILTER(BB30 30 AND BB10 45 AND CROSS(BB5,60),10);
    加仓:=FILTER(COUNT(CROSS(BB5,30),5) =1 AND MA5 REF(MA5,1) AND 三拾日乖离率 REF(三拾日乖离率,1) AND MA10 REF(MA10,1)
    AND 加速度5 REF(加速度5,1) AND 速度5 REF(速度5,1),10);
    清仓:=FILTER(COUNT(CROSS(30,BB5),5) =1 AND (C MA30 OR O MA30) AND MA5 REF(MA5,1) AND 三拾日乖离率 REF(三拾日乖离率,1) AND MA10 REF(MA10,1),10);
    DRAWTEXT(加仓 ,LOW*0.98,''),COLORYELLOW;
    JC:=CROSS(0,五日乖离率) AND 三拾日乖离率 REF(三拾日乖离率,1) AND MA10 REF(MA10,1) ;
    减仓:=FILTER(JC,10);
    MR:=COUNT(CROSS(五日乖离率,0),3) =1 AND 三拾日乖离率 REF(三拾日乖离率,1) AND MA5 REF(MA5,1) AND (C/REF(C,1)-1)*100 5 AND REF(C,1) MA30;
    买入:=FILTER(MR,10);
    DRAWTEXT(减仓,HIGH*1.02,''),COLORCYAN;
    DRAWTEXT(买入,LOW*0.95,''),COLORYELLOW;
    DRAWTEXT(清仓 ,HIGH*1.05,''),COLORGREEN;
    DRAWTEXT(强势狙击,LOW*0.92,''),COLORYELLOW;
    VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));
    VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);
    MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;
    M20:MA(C,20),COLORFF00FF,LINETHICK1,DOTLINE,NODRAW;
    M60:MA(C,60),COLORGREEN,LINETHICK1,DOTLINE;
    压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF,LINETHICK1;
    支撑:MA(REF(LLV(C,30),1),2),COLORABFF46,LINETHICK1;
    ZC:=CROSS(C,支撑);
    DRAWTEXT(ZC,LOW*0.97,'B'),COLORYELLOW;
    YL:=CROSS(C,压力);
    DRAWTEXT(YL,HIGH*1.03,'Q'),COLORYELLOW;

    {黄金柱}
    JJ:=(3*C+H+L+O)/6;
    VARR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;
    TJ1:=VOL=HHV(VOL,10) AND VOL 2*REF(VOL,1) AND CLOSE VARR1 AND C REF(C,1);
    LJL:=FILTER(TJ1,5);
    TJ2:=IF(BARSLAST(LJL)=1 AND CLOSE REF(HIGH,1),1,IF(BARSLAST(LJL)=2 AND CLOSE REF(HIGH,2),1,IF(BARSLAST(LJL)=3 AND CLOSE REF(HIGH,3),1,0)));
    TP:=TJ2=1;
    STICKLINE(CLOSE,REF(LOW,BARSLAST(LJL)),REF(LOW,BARSLAST(LJL)),0,0),COLORYELLOW;
    TJ3:=IF(BARSLAST(LJL)=1 AND CLOSE REF(LOW,1),1,IF(BARSLAST(LJL)=2 AND CLOSE REF(LOW,2),1,IF(BARSLAST(LJL)=3 AND CLOSE REF(LOW,3),1,0)));
    STFZ:=TJ3=1;
    CL:=STFZ AND TP;
    TJCL:=FILTER(CL,3);
    STICKLINE(LJL,OPEN,CLOSE,3,0),COLORFF00FF;

    {涨跌停变色}
    C2:=REF(C,1);
    涨停:=IF((C-C2)*100/C2 =(10-0.01*100/C2),1,0);
    STICKLINE(涨停,OPEN,CLOSE,3,0),COLORYELLOW;
    跌停:=IF((C2-C)*100/C2 =(10-0.01*100/C2),1,0);
    STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;

    通达信支撑压力源码主图/选股贴图)

    通达信支撑压力源码主图/选股贴图)

    通达信支撑压力源码主图/选股贴图)

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信支撑压力源码主图/选股贴图) 加入收藏