最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信波段买卖警戒指标公式

    正文概述    2024-05-04 04:42:20  

    以下是通达信警戒指标公式源码和截图


    通达信波段买卖警戒指标公式源码:

       昨收:DYNAINFO(3),COLORYELLOW,LINETHICK2;{将括号中3改为11则为今日均价,那么此图即可省略振荡图}

       S2:=SMA(C,3,1);

       S6:=SMA(C,5,1);

       DK:=16*(S2-S6);

       STICKLINE(DK 0,昨收,昨收+DK,0,0),COLORYELLOW;

       STICKLINE(DK 0,昨收,昨收+DK,0,0),COLORGREEN,COLORGRAY;

       STICKLINE(FILTER(BB 70,3),昨收,昨收+DK,0.3,0),COLORBLUE;

       MAV:=(2*C+H+L)/4;

       强度:EMA(MAV,9)*0.8+1,POINTDOT,LINETHICK5,COLORFF00FF;

       线:昨收+DK,COLORGRAY,LINETHICK1;

       转暖:IF(趋势线 REF(趋势线,1),趋势线,DRAWNULL),COLORRED,LINETHICK1;

       转凉:IF(趋势线 REF(趋势线,1),趋势线,DRAWNULL),COLORGREEN,LINETHICK1;

       {GREEN}

       STICKLINE(OPEN =CLOSE,H,L,0,0),COLORFF7700;

       STICKLINE(OPEN =CLOSE,CLOSE,OPEN,3,0),COLORFF7700;

       STICKLINE(OPEN =CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;

       STICKLINE(OPEN =CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;

       STICKLINE(OPEN =CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN;

       {RED}

       STICKLINE(CLOSE OPEN,CLOSE,OPEN,3,0),COLOR000099;

       STICKLINE(CLOSE OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;

       STICKLINE(CLOSE OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;

       STICKLINE(CLOSE OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;

       STICKLINE(CLOSE OPEN,H,L,0,0),COLORRED;

       {2}

       抄底:=3*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-2*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1));

       STICKLINE(CROSS(抄底,3),(L+H)/2,昨收+0.9,1.5,0),COLORYELLOW,LINETHICK2;{可直接做抄底公式}

       {箱体}

       颈线:MA(REF(HHV(C,30),1),2),NODRAW,COLORBLUE;

       底线:MA(REF(LLV(C,30),1),2),NODRAW,COLORWHITE;

       支撑:(REF(H,1)+REF(L,1))/2,NODRAW,COLORFF00FF;{可加在其他主副图,要显示线,去掉NODRAW即可}

       {凤凰}

       {JINCHA}

       XXX:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

       K:=SMA(XXX,3,1);

       D:=SMA(K,3,1);

       DRAWTEXT(CROSS(K,D)ANDCROSS(MACD.DIF,MACD.DEA),L*0.99,'Ψ'),COLORYELLOW;{可单独做金叉选股公式};

       VAR1:=(HHV(HIGH,9)-LLV(LOW,9));

       VAR2:=(HHV(HIGH,9)-CLOSE);

       VAR3:=(CLOSE-LLV(LOW,9));

       VAR4:=VAR2/VAR1*100-70;

       VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;

       VAR6:=(2*C+H+L)/4;

       VAR7:=SMA((VAR3/VAR1*100),3,1);

       VAR8:=LLV(LOW,34);

       VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);

       VAR10:=IF(VAR9 100,VAR9-100,0);

       VARA:=HHV(HIGH,34);

       防线B:=EMA((VAR6-VAR8)/(VARA-VAR8)*100,8),colorwhite;

       B1:=EMA(防线B,5);

       {STICKLINE(防线B 0AND防线B-B1 =0,79,80,6,0),COLORFF8000;

       STICKLINE(防线B 0AND防线B-B1 0,79,80,6,1),colorred;}

       {STICKLINE(防线B 0AND防线B-B1 =0,19,20,6,0),COLOR00FF00;}

       STICKLINE(防线B 0AND防线B-B1 =0,19,20,3,0),coloryellow;

       {STICKLINE(防线B 0AND防线B-B1 0,49,50,6,1),colorred;}

       STICKLINE(防线B 0AND防线B-B1 0,19,20,3,1),colorred;

       一进一出:防线B-B1,colorcyan;

       {STICKLINE(防线B-B1 0,防线B,B1,8,1),COLOR00FF00;}

       妙趣横生:-一进一出,colorred;

       {STICKLINE(防线B-B1 0,防线B,B1,8,1),colorred;}

       卖出:(REF(一进一出,1) 0AND一进一出 =0)OR(一进一出 1AND一进一出 =0AND

       C O),colorred;

       DRAWICON(卖出,36,1);

       STICKLINE(卖出,0,28,1,0),colorred;

       DRAWTEXT(卖出,30,'卖'),colormagenta;

       买入:卖出=0ANDREF(一进一出,1) 0AND一进一出 0,colorred;

       STICKLINE(买入,0,28,2,0),coloryellow;

       DRAWICON(买入,40,1);

       DRAWTEXT(买入,30,'买'),coloryellow;




    通达信波段买卖警戒指标公式截图

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信波段买卖警戒指标公式 加入收藏