最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 三箭齐发大智慧主图 一个图上会有三个买卖信号 信不信由你

    正文概述    2024-04-13 00:20:18  

    把三个经典指标同时放在同一个主图上.调整好参数.会先后发生买卖信号.不由还不相信.还【犹豫不决】  ----1.【MA5趋势】---- 2.【MACD-12.26】---- 3.【KDJ-18.3.3】---- 再配合其他买卖信号.我把他们统一在一个主图上.图面很简单.不知你喜欢不喜欢.   -----关键是能够利用它别再坐过山车才能赚钱

    源码

    {三箭齐发主图}
    DRAWGBKlast(DATE>900101,strip(RGB(0,0,100),RGB(50,40,40),0));
    {K线}
    STICKLINE(CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),colorred;
    STICKLINE(CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1),OPEN,CLOSE,7,0),colorred;
    STICKLINE(CLOSE STICKLINE(CLOSE STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR008800;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR009900;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLORFF00FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLORFF22FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORFFBBFF;
    {1.MA5趋势}
    MA5:MA(C,5),COLOR00FF00,DOTLINE,LAYER0;
    PARTLINE(MA5,MA5>REF(MA5,1),RGB(255,0,150)),COLORff00FF,LINETHICK3,LAYER0;
    {2.MACD改版-12.26}
    DIF1:=WMA(CLOSE,12);
    DIF2:=WMA(CLOSE,26);
    MACDG:(3*DIF1-2*DIF2),Color00FFFF,DOTLINE,LAYER0;
    PARTLINE(MACDG,MACDG>REF(MACDG,1),rgb(255,255,0)),LINETHICK3,LAYER0;{MACD升势}
    {3.KDJ-18.3.3}
    RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*MA5/10;
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    J18:=(3*K-2*D);
    J:FORCAST(J18,18)+MA5,Color0000FF,DOTLINE,LAYER0;;
    PARTLINE(J,J>REF(J,1),rgb(255,155,0)),LINETHICK3,LAYER0;
    DRAWTEXTABS(5,2,'              【MA5趋势】,'),ColorFF00FF,LINETHICK4;
    DRAWTEXTABS(5,2,' ◆三箭齐发◆;           【MACD】,'),Color00FFFF,LINETHICK4;
    DRAWTEXTABS(5,2,'                                  【KDJ】:'),ColorFF99FF,LINETHICK4;
    {4.买卖}
    TYP:FORCAST(((2*C+H+L)/4*0.618+C*0.382),3),color00FFFF,linethick0;{FORCAST}
    AAX:=(TYP-ma(TYP,9))/ma(TYP,9)*100;
    VARM:=MIN(COUNT(TYP,0),9);
    AAX1:=EMA(AAX,VARM) *VARM;
    AAX2:=MA(AAX1,3);
    AAX3:=MA(AAX1,5);
    卖:aax3>10  AND aax1 AA05:MA(C,5),linethick0;   
    MM5:=(c-AA05)/AA05*100;   
    BB05:=atan((aa05/ref(aa05,1)-1)*100)*180/3.1416;   
    NN5:=sma(ema((AA05-ref(AA05,1))/ref(AA05,1),3)*100,3,1);   
    NNNN5:ema((NN5-ref(NN5,1)),3),linethick0;   
    AA10:MA(C,10),linethick0;   
    AA20:=MA(c,20);   
    BB10:=atan((aa10/ref(aa10,1)-1)*100)*180/3.1416;   
    AA30:MA(C,30),linethick0;   
    MM30:(c-AA30)/AA30*100,linethick0;   
    Var1:=(AA20-AA30)>ref((AA20-AA30),1) and AA20>ref(aa20,1) and AA30>ref(AA30,1);    
    Var2:=(AA30-AA20) BB30:=atan((aa30/ref(aa30,1)-1)*100)*180/3.1416;   
    强势:=filter(BB30>30 and BB10>45 and cross(BB05,60),10);   
    加仓:=filter(count(cross(BB05,30),5)>=1 and AA05>ref(aa05,1)  and MM30>ref(MM30,1) and AA10>ref(AA10,1)   
    and NNNN5>ref(NN5,1) and NN5>ref(NN5,1)  ,10) ;   
    减仓:filter(卖,5) ,PRECIS0,linethick0;   
    MR:=count(cross(MM30,0),3)>=1 and MM30>ref(MM30,1) and AA05>ref(AA05,1) and (c/ref(c,1)-1)*100>5 and ref(c,1) 买入:filter(MR,10),PRECIS0,linethick0;   
    DRAWTEXT((买入),low*0.945,'⊙'),linethick2,ALIGN1,COLORYELLOW;   
    DRAWTEXT((买入),low*0.965,'⊙'),linethick2,ALIGN1,COLORYELLOW;   
    DRAWTEXT((买入),low*0.985,'⊙'),linethick2,ALIGN1,COLORYELLOW;    
    drawtext(减仓,high*1.06,'◆'),ALIGN2,linethick3,colorcyan;   
    drawtext(减仓,high*1.05,'◇'),ALIGN1,linethick3,color00FF00;   
    drawtext(减仓,high*1.059,'◆'),ALIGN0,linethick3,colorcyan;   
    DRAWTEXT((加仓),low*0.985,'⊙'),linethick2,ALIGN1,colorWhite;   
    DRAWTEXT((加仓),low*0.965,'⊙'),linethick2,ALIGN1,color00FF00;    
    DRAWTEXT((加仓),low*0.945,'⊙'),linethick2,ALIGN1,colorWhite;   
    DRAWTEXT((强势),low*0.985,'⊙'),linethick2,ALIGN1,COLORred;    
    DRAWTEXT((强势),low*0.965,'⊙'),linethick2,ALIGN1,COLORred;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 三箭齐发大智慧主图 一个图上会有三个买卖信号 信不信由你 加入收藏