最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 大智慧指标源码,同时提供通达信源码

    正文概述    2024-04-12 23:17:57  

    买:=EMA(C,5);
    A:=(REF(买,1));
    STICKLINE((买>A),A,买,6,0),COLORRED;
    STICKLINE((买<=A),A,买,6,0),COLORBLUE;
    JJ:=(CLOSE+HIGH+LOW)/3;
    W:=EMA(JJ,10);
    E:=REF(A,1);
    STICKLINE((W>E),W,E,6,0),COLORWHITE;
    STICKLINE((E>W),E,W,6,0),COLORYELLOW;
    卖:=EMA(SLOPE(C,21)*20+C,42);
    B:=CROSS(买,卖);
    DRAWTEXT(B,LOW-0.1,'升'),COLORYELLOW,LINETHICK3;
    龙势:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*SMA(SMA((CLOSE-LLV
    (LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1) ;
    大底:=IF(CROSS( 龙势,20),60,0);
    DRAWTEXT(大底,LOW-0.5,'强'),COLORFF00FF,LINETHICK3;
    多:=EMA(C,3);
    空:=EMA(C,5);
    均衡:=EMA(空,5);
    VARF1:=COUNT(CROSS(多,均衡),2)=1;
    VARF2:=COUNT(CROSS(空,均衡),2)=1;
    ZAI:=FILTER(VARF1 AND VARF2,2);
    DRAWTEXT(ZAI,LOW-0.3,'涨'),COLORWHITE,LINETHICK3;
    H0:=V/CAPITAL;
    A1:=IF(H0>0,AMOUNT,C*V*100);
    C1:=SMA(EMA(A1,3)/EMA(V,3)/100,2,1);
    C2:=SMA(EMA(A1,6)/EMA(V,6)/100,2,1);
    C3:=SMA(EMA(A1,12)/EMA(V,12)/100,2,1);
    C4:=SMA(EMA(A1,24)/EMA(V,24)/100,2,1);
    BBI:(C1+C2+C3+C4)/4,COLORWHITE,LINETHICK1;
    上轨:BBI+3*STD(BBI,13),COLORWHITE,LINETHICK1;
    下轨:BBI-3*STD(BBI,13),COLORWHITE,LINETHICK1;
    压力:HHV(H,20),COLORFF00FF,LINETHICK2;
    VAR1:=REF(CLOSE,2);
    专用:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;
    VAR2:=REF(CLOSE,1);
    VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;
    极品逃亡:=IF(专用< REF(专用,1) AND 专用>79,专用,0);
    DRAWTEXT(极品逃亡 ,HIGH+0.3,'逃'),COLORGREEN,LINETHICK3;
    VAR4:=(2*CLOSE+HIGH+LOW)/4;
    VAR5:=LLV(LOW,5);
    VAR6:=HHV(HIGH,5);
    SK:= EMA((VAR4-VAR5)/(VAR6-VAR5)*100,4);
    SD:= EMA(0.667*REF(SK,1)+0.333*SK,2);
    DRAWTEXT(CROSS(SD,SK),HIGH+0.6,'短卖'),COLORWHITE;
    DRAWTEXT(CROSS(SK,SD),LOW-0.6,'短买'),COLORYELLOW;
    V1:=LLV(LOW,10);
    V2:=HHV(H,25);
    价位线:=EMA((C-V1)/(V2-V1)*4,4);
    DRAWTEXT(CROSS(价位线,0.3),LOW-1.5,'必买'),COLORF00FF0;
    DRAWTEXT(CROSS(3.5,价位线),HIGH+1.5,'必卖'),COLOR00FF00;
    MTM:=C-REF(C,1);
    DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
    ZX:=100*EMA(EMA(MTM,12),12)/EMA(EMA(ABS(MTM),12),12);
    CX:=100*EMA(EMA(MTM,26),26)/EMA(EMA(ABS(MTM),26),26);
    DXGD:=LLV(DX,2)=LLV(DX,5) AND CROSS(DX,MA(DX,2));
    短买一:=IF(DXGD AND BETWEEN(DX,0,60) AND ZX>0,1,0);
    清仓:=IF(CROSS(CX,ZX) AND DX 买一:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
    卖一:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);
    DRAWTEXT(FILTER(短买一 AND 短买一<>清仓,4),LOW-0.03,'△'),COLORFFFFFF;
    DRAWTEXT(清仓 AND OPEN>CLOSE,HIGH*1.025,'◆'),COLORFF6600;
    DRAWTEXT(FILTER(买一=1,5),LOW-0.03,'●'),COLORRED;
    DRAWTEXT(FILTER(卖一=1,1),HIGH*1.025,'○'),COLOR00FF00;
    RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    J:=3*K-2*D;
    BDGD:=HHV(J,2)=HHV(J,8) AND J>80;
    BDDD:=LLV(J,2)=LLV(J,8);
    J向下拐头:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0);
    DRAWTEXT(J向下拐头 ,HIGH*1.025,'J'),COLORWHITE;
    J向上拐头:=IF(CROSS(J,REF(J+0.01,1)) AND BDDD AND J<20,1,0);
    DRAWTEXT(J向上拐头,LOW-0.03,'J'),COLORFF00FF;
    DRAWTEXTREL(0,30,'指示:白▲:短线买 红●:定买 绿○:出逃 紫J:拐头向上 白J:拐头向下 绿◆:清仓'),COLORGREEN;
    MA3:=MA(C,3);
    MA5:=MA(C,5);
    ZX:=(MA3+MA5)/2;
    MA20:=MA(C,20);
    MA30:=MA(C,30);
    QSXS:=MA5>=MA30 AND MA30>REF(MA30,1);
    GD:=ZX>=REF(ZX,1) AND REF(ZX,1) YB:=C>REF((O-C)/2+C,2);
    要:=CROSS(C,ZX) AND (GD OR YB) AND QSXS;
    优:=要 AND MA5>REF(MA5,1);
    DRAWTEXT(优,LOW-1.1,'优'),COLORYELLOW,LINETHICK2;
    LC:=REF(CLOSE,1);
    RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
    DRAWTEXT(CROSS(84,RSI) , HIGH+1.2,'逃顶 '),COLORCYAN ;
    DRAWTEXT(CROSS(RSI,11) , LOW-1.2,'低吸 '),COLORRED ;
    STICKLINE(ISUP,LOW,OPEN,1,1),COLOR394BEA;
    STICKLINE(ISUP,OPEN,CLOSE,7,1),COLOR394BEA;
    STICKLINE(ISUP,CLOSE,HIGH,1,1),COLOR394BEA;
    STICKLINE(ISDOWN,LOW,CLOSE,1,0),COLOREF8434;
    STICKLINE(ISDOWN,OPEN,CLOSE,7,0),COLOREF8434;
    STICKLINE(ISDOWN,OPEN,HIGH,1,0),COLOREF8434;

    =======改为通达信版本源码是:
    买:=EMA(C,5);
    A:=(REF(买,1));
    STICKLINE((买>A),A,买,6,0),COLORRED;
    STICKLINE((买<=A),A,买,6,0),COLORBLUE;
    JJ:=(CLOSE+HIGH+LOW)/3;
    W:=EMA(JJ,10);
    E:=REF(A,1);
    STICKLINE((W>E),W,E,6,0),COLORWHITE;
    STICKLINE((E>W),E,W,6,0),COLORYELLOW;
    卖:=EMA(SLOPE(C,21)*20+C,42);
    B:=CROSS(买,卖);
    DRAWTEXT(B,LOW-0.1,'升'),COLORYELLOW,LINETHICK3;
    龙势:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*SMA(SMA((CLOSE-LLV
    (LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1) ;
    大底:=IF(CROSS( 龙势,20),60,0);
    DRAWTEXT(大底,LOW-0.5,'强'),COLORFF00FF,LINETHICK3;
    多:=EMA(C,3);
    空:=EMA(C,5);
    均衡:=EMA(空,5);
    VARF1:=COUNT(CROSS(多,均衡),2)=1;
    VARF2:=COUNT(CROSS(空,均衡),2)=1;
    ZAI:=FILTER(VARF1 AND VARF2,2);
    DRAWTEXT(ZAI,LOW-0.3,'涨'),COLORWHITE,LINETHICK3;
    H0:=V/CAPITAL;
    A1:=IF(H0>0,AMOUNT,C*V*100);
    C1:=SMA(EMA(A1,3)/EMA(V,3)/100,2,1);
    C2:=SMA(EMA(A1,6)/EMA(V,6)/100,2,1);
    C3:=SMA(EMA(A1,12)/EMA(V,12)/100,2,1);
    C4:=SMA(EMA(A1,24)/EMA(V,24)/100,2,1);
    BBI:(C1+C2+C3+C4)/4,COLORWHITE,LINETHICK1;
    上轨:BBI+3*STD(BBI,13),COLORWHITE,LINETHICK1;
    下轨:BBI-3*STD(BBI,13),COLORWHITE,LINETHICK1;
    压力:HHV(H,20),COLORFF00FF,LINETHICK2;
    VAR1:=REF(CLOSE,2);
    专用:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;
    VAR2:=REF(CLOSE,1);
    VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;
    极品逃亡:=IF(专用< REF(专用,1) AND 专用>79,专用,0);
    DRAWTEXT(极品逃亡 ,HIGH+0.3,'逃'),COLORGREEN,LINETHICK3;
    VAR4:=(2*CLOSE+HIGH+LOW)/4;
    VAR5:=LLV(LOW,5);
    VAR6:=HHV(HIGH,5);
    SK:= EMA((VAR4-VAR5)/(VAR6-VAR5)*100,4);
    SD:= EMA(0.667*REF(SK,1)+0.333*SK,2);
    DRAWTEXT(CROSS(SD,SK),HIGH+0.6,'短卖'),COLORWHITE;
    DRAWTEXT(CROSS(SK,SD),LOW-0.6,'短买'),COLORYELLOW;
    V1:=LLV(LOW,10);
    V2:=HHV(H,25);
    价位线:=EMA((C-V1)/(V2-V1)*4,4);
    DRAWTEXT(CROSS(价位线,0.3),LOW-1.5,'必买'),COLORF00FF0;
    DRAWTEXT(CROSS(3.5,价位线),HIGH+1.5,'必卖'),COLOR00FF00;
    MTM:=C-REF(C,1);
    DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
    ZZX:=100*EMA(EMA(MTM,12),12)/EMA(EMA(ABS(MTM),12),12);
    CX:=100*EMA(EMA(MTM,26),26)/EMA(EMA(ABS(MTM),26),26);
    DXGD:=LLV(DX,2)=LLV(DX,5) AND CROSS(DX,MA(DX,2));
    短买一:=IF(DXGD AND BETWEEN(DX,0,60) AND ZX>0,1,0);
    清仓:=IF(CROSS(CX,ZZX) AND DX 买一:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
    卖一:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);
    DRAWTEXT(FILTER(短买一 AND 短买一!=清仓,4),LOW-0.03,'△'),COLORFFFFFF;
    DRAWTEXT(清仓 AND OPEN>CLOSE,HIGH*1.025,'◆'),COLORFF6600;
    DRAWTEXT(FILTER(买一=1,5),LOW-0.03,'●'),COLORRED;
    DRAWTEXT(FILTER(卖一=1,1),HIGH*1.025,'○'),COLOR00FF00;
    RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    J:=3*K-2*D;
    BDGD:=HHV(J,2)=HHV(J,8) AND J>80;
    BDDD:=LLV(J,2)=LLV(J,8);
    J向下拐头:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0);
    DRAWTEXT(J向下拐头 ,HIGH*1.025,'J'),COLORWHITE;
    J向上拐头:=IF(CROSS(J,REF(J+0.01,1)) AND BDDD AND J<20,1,0);
    DRAWTEXT(J向上拐头,LOW-0.03,'J'),COLORFF00FF;
    {DRAWTEXTREL(0,30,'指示:白▲:短线买 红●:定买 绿○:出逃 紫J:拐头向上 白J:拐头向下 绿◆:清仓'),COLORGREEN;}
    MA3:=MA(C,3);
    MA5:=MA(C,5);
    ZX:=(MA3+MA5)/2;
    MA20:=MA(C,20);
    MA30:=MA(C,30);
    QSXS:=MA5>=MA30 AND MA30>REF(MA30,1);
    GD:=ZX>=REF(ZX,1) AND REF(ZX,1) YB:=C>REF((O-C)/2+C,2);
    要:=CROSS(C,ZX) AND (GD OR YB) AND QSXS;
    优:=要 AND MA5>REF(MA5,1);
    DRAWTEXT(优,LOW-1.1,'优'),COLORYELLOW,LINETHICK2;
    LC:=REF(CLOSE,1);
    RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
    DRAWTEXT(CROSS(84,RSI) , HIGH+1.2,'逃顶 '),COLORCYAN ;
    DRAWTEXT(CROSS(RSI,11) , LOW-1.2,'低吸 '),COLORRED ;
    STICKLINE(CLOSE>OPEN,LOW,OPEN,0,0),COLOR394BEA;
    STICKLINE(CLOSE>OPEN,OPEN,CLOSE,3,1),COLOR394BEA;
    STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0,0),COLOR394BEA;
    STICKLINE(CLOSE STICKLINE(CLOSE STICKLINE(CLOSE  


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 大智慧指标源码,同时提供通达信源码 加入收藏