• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • 【股票入门与技巧】同花顺源码:买卖点提示+小均线+GC低吸技巧

    发布时间: 2020-04-11 14:38 首页:股票一点通>股票公式>同花顺公式> 阅读()
    买卖点提示:

    SHORT:=12;LONG:=26;N:=5;M:=9;n1:=21;M1:=10;M2:=80;M3:=20;

    DIFF := MA(EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),N);
    DEA : =EMA(DIFF,M);
    MACDX : 2*(DIFF-DEA),colorwhite;
    Zero : =0;
    gj:=MAX(C,O);
    STICKLINE(MACDX>0 AND MACDX>=REF(MACDX,1),0,MACDX,2,0),color0000ff;
    STICKLINE(MACDX>0 AND MACDXSTICKLINE(MACDX<0 AND MACDX>=REF(MACDX,1),0,MACDX,2,0),colorff00ff;///
    STICKLINE(MACDX<0 AND MACDXL4:=LLV(gj,4);
    jl:=(HHV(diff,55)-LLV(diff,55))/5;
    gt:=dea>REF(dea,1) AND REF(dea,1)A1:=BARSLAST(REF(gt,1));
    //底背离:=REF(L4,A1+1)>CLOSE AND diff>REF(diff,A1+1) AND gt;
    //DRAWLINE(A1=0,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2;
    //DRAWLINE(底背离,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2;
    //DRAWTEXT(底背离,REF(DEA,A1)*1.18,' 底背离'),COLORFF00FF;
    H4:=HHV(gj,4);
    gt2:=deaREF(dea,2);
    A2:=BARSLAST(REF(gt2,1));
    //顶背离:= REF(H4,A2+1)

    //DRAWLINE(A2=0 ,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2;
    //DRAWLINE(顶背离,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2;
    //DRAWTEXT(顶背离,REF(DEA,A2)*1.18,' 顶背离'),colorgreen;
    ////////////////////////////////////////////////////////////////////////////
    DIFFy : =MA(EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),N1);
    DEAy : =EMA(DIFFy,M);
    MACDy : 2*(DIFFy-DEAy),coloryellow;
    Zeroy : 0;
    gjy:=MAX(C,O);
    STICKLINE(MACDy>0 AND MACDX>=REF(MACDy,1),0,MACDy,2,0),color0000ff;
    STICKLINE(MACDy>0 AND MACDXSTICKLINE(MACDy<0 AND MACDX>=REF(MACDy,1),0,MACDy,2,0),colorff00ff;
    STICKLINE(MACDy<0 AND MACDXL4y:=LLV(gjy,4);
    jly:=(HHV(diff,55)-LLV(diff,55))/5;
    gty:=dea>REF(dea,1) AND REF(dea,1)A1y:=BARSLAST(REF(gty,1));
    //底背离y:=REF(L4y,A1y+1)>CLOSE AND diff>REF(diff,A1y+1) AND gty;
    //DRAWLINE(A1y=0,DEAy,底背离y,REF(DEAy,A1y),0),colorred,LINETHICK2;
    //DRAWLINE(底背离y,DEAy,底背离y,REF(DEAy,A1y),0),colorred,LINETHICK2;
    //DRAWTEXT(底背离y,REF(DEAy,A1y)*1.18,' 底背离'),COLORFF00FF;
    H4y:=HHV(gjy,4);
    gt2y:=deaREF(dea,2);
    A2y:=BARSLAST(REF(gt2y,1));
    顶背离y:= REF(H4y,A2y+1)//DRAWLINE(A2y=0 ,DEAy,顶背离y,REF(DEAy,A2y),0),colorgreen,LINETHICK2;
    //DRAWLINE(顶背离y,DEAy,顶背离y,REF(DEAy,A2y),0),colorgreen,LINETHICK2;
    //DRAWTEXT(顶背离y,REF(DEAy,A2y)*1.18,' 顶背离'),colorgreen;
    /////////////////////////////////////////////////////////////////////////////
    //21日线
    DRAWICON(CROSS(MACDY,0) AND CDRAWICON(CROSS(MACDY,0) AND CDRAWICON(CROSS(MACDY,0) AND C>=O,0,5);
    DRAWICON(CROSS(MACDY,0) AND C>=O,0,1);
    //5日线
    DRAWICON(CROSS(MACD,0) AND CDRAWICON(CROSS(MACD,0) AND CDRAWICON(CROSS(MACD,0) AND C>=O,0,5);
    DRAWICON(CROSS(MACD,0) AND C>=O,0,1);
    //////////////////////////////////////////////////////////////////////////////////////////////////////
    //必进清仓
    ema1:=EMA(CLOSE,13);
    ema2:=EMA(CLOSE,34),colorred;
    ema3:=EMA(CLOSE,55),colorcyan;
    var11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
    var12:=ZIG(3,6)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
    var13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
    var14:=ZIG(3,22)=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
    var15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
    var16:=ZIG(3,51)=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
    var17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
    var18:=ZIG(3,72)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
    买:=(var11+var13+var15+var17);
    卖:=(var12+var14+var16+var18);
    //威廉指标
    WR:=100*(HHV(HIGH,M1)-CLOSE)/(HHV(HIGH,M1)-LLV(LOW,M1));
    B:=CROSS(M2,WR);
    S:=(CROSS(WR,M2)) OR (CROSS(WR,M3));
    bm:=BARSLAST(b);
    sm:=BARSLAST(s);
    bm1:=IF(bm[1]=-1 AND b,1,IF(bm[1]!=-1 AND sm[1]!=-1 AND bm[1]>sm[1] AND b AND b[1]=0,1,0));
    sm1:=IF(sm[1]=-1 AND bm[1]!=-1 AND s,1,IF( sm[1]!=-1 AND bm[1]!=-1 AND sm[1]>bm[1] AND s AND s[1]=0,1,0));
    //大盘金叉
    D1:=CROSS(INDEXC,MA(INDEXC,5));
    //KQY指标
    V1:=MA(C,3)=HHV(MA(C,3),7);
    V2:=MA(C,3)>MA(C,5);
    V3:=MA(V,5)>MA(V,10)*1.01;
    V4:=COUNT(MA(C,1)>REF(C,1),2)=2;
    LC20:=REF(CLOSE,1);
    RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100;
    VAR3A:=3;
    VAR2A:=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);
    MTM:=C-REF(C,1);
    DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
    YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
    加仓:=IF(FILTER(YXF=1,5),5,0),colorliblue,LINETHICK1;
    A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
    FY:=EMA(A51,5);
    A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
    VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*50;
    kqy1:=(EMA(VAR1,3))*2;
    kqy2:=MA(kqy1,3);
    买2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)卖2:=ZIG(3,10)REF(ZIG(3,10),2),colorwhite,LINETHICK1;
    //股票均线金叉
    JC:=CROSS(CLOSE,MA(CLOSE,MA(CLOSE,5)));
    CLOSE_1:=CLOSE,colorwhite;
    MA5:=MA(CLOSE,5),coloryellow;
    M5:=MA(CLOSE,M),coloryellow;//
    M10:=MA(CLOSE,10),colormagenta;//
    CLOSE1:=CLOSE,colorwhite;
    LOW1:=LOW,colorwhite;
    LOW144:=LLV(LOW,144),coloryellow;
    LOW144_1:=LOW144*0.95,coloryellow;
    //STICKLINE(INDEXC>INDEXO,LOW144_1,LOW144,1,0),colorred;//柱线
    //STICKLINE(INDEXC//STICKLINE(CROSS(INDEXC,MA(INDEXC,5)),LOW144_1,LOW144,8,0),colorred;//柱线
    //STICKLINE(CROSS(MA(INDEXC,5),INDEXC),LOW144_1,LOW144,8,0),colorgreen;//柱线
    //STICKLINE(CLOSE>=M5,C,M5,2,0),colorred;//柱线
    //STICKLINE(CLOSEDRAWICON(买>0,MACD*0.9,5);//
    DRAWICON((bm1>0 AND 买>0) OR (D1 AND 买>0) OR (买2=1 AND 买>0) OR (JC AND 买>0),MACD*0.9,1);
    //DRAWNUMBER((bm1>0 AND 买>0) OR (D1 AND 买>0) OR (买2=1 AND 买>0) OR (JC AND 买>0),LOW144_1*0.95,TOSTRING(MACD,2));
    DRAWICON(卖>0,MACD*1.2,6);//
    DRAWICON(卖>0,MACD*1.2,2);
    //DRAWNUMBER(卖>0,MACD,TOSTRING(H,2));
    DRAWNUMBER(卖>0,MACD*1.3,TOSTRING(卖,2)),colorgreen;//
    DRAWNUMBER(买>0,MACD*1.3,TOSTRING(买,2)),coloryellow;//
    //鬼谷神算简化的公式:
    BB:=ZIG(3,50/5)*100,coloryellow;
    BB_1:=ZIG(3,10),nodraw;
    GG:=MA(BB,2),colorred;
    DD:=CROSS(BB,GG)*1000,colorred;
    WW:=CROSS(GG,BB)*1000,colorblue;
    DRAWTEXT(DD=1000,MACD*1.2,'建仓'),colorred;//
    DRAWTEXT(WW=1000,MACD*1.2,'清仓' ),colorgreen;//
    Y1:=FALLCOUNT,nodraw;
    Y2:=RISECOUNT,nodraw;
    X:=STRLEFT(CODE,1),nodraw;
    //二金叉
    VERLINE(CROSS(MA(CLOSE,5),MA(CLOSE,13)) AND CROSS(MACDX,MACDy),1),colormagenta;////画加仓建仓垂线




    小均线:

    VAR0 := IF((DATE < 1990530) AND (DATE > 1170101),1,0);

    红 : EMA(C,7 * VAR0),colorred,LINETHICK3;
    绿 : EMA(C,21 * VAR0),colorgreen,LINETHICK2;
    上轨 : (MA(C,60 * VAR0)) + (2 * (STD(C,60 * VAR0))),colorcyan;

    ......




    GC低吸技巧(顶尖财经 股票学院: ):

    E7:EMA(CLOSE,7),colorFF00FF,LINETHICK2;
    M5:EMA(CLOSE,10),colorgreen,;
    E17:EMA(C,17),coloryellow,LINETHICK2;
    E15:EMA(C,15),coloryellow,LINETHICK2;
    A:DRAWTEXT(FILTER(CROSS(MA(C,5),MA(C,24)),5),L*0.99,'金叉'),colorred;
    B:DRAWTEXT(FILTER(CROSS(EMA(C,5),MA(C,99)),5),L*0.99,'金叉'),colorred;
    ZT1:=C/REF(C,1)>1.097;

    XH:=FILTER(ZT1,13);
    BH1:=BARSLAST(ZT1);
    CZ1:=REF(H,BH1)-REF(L,BH1);
    VARZT:=BARSLAST(C/REF(C,1)>1.097);
    涨停半价:=(REF(L,BH1)+CZ1*0.5);
    DRAWTEXT(VARZT=3,LLV(L,60),'3'),coloryellow;
    DRAWTEXT(VARZT=5,LLV(L,60),'5'),coloryellow;
    DRAWTEXT(VARZT=8,LLV(L,60),'8'),coloryellow;
    DRAWTEXT(VARZT=11,LLV(L,60),'11'),coloryellow;
    DRAWTEXT(VARZT=13,LLV(L,60),'13'),coloryellow;
    DRAWTEXT(VARZT=21,LLV(L,60),'21'),coloryellow;
    DRAWTEXT(VARZT=34,LLV(L,60),'56'),coloryellow;
    TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);
    TYX4:=MA((C+L+O+H)/4,13);
    TYX5:=EMA((C+L+O+H)/4,21);
    STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,10,0),coloryellow;
    STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,10,0),colorwhite;
    STICKLINE(REF(COUNT(CTYX3 AND C>O,C,O,10,0),color00CCFF;
    每天第1根K线:=DATE!=REF(DATE,1);
    下午第1根K线:=IF(DATETIME<4,(REF(HOUR,1)<=12 AND HOUR>=13),(REF(HOUR,1)<=13 AND HOUR>13));
    STICKLINE((DATETIME<5 OR DATETIME=8) AND (每天第1根K线 OR 下午第1根K线) AND CLOSE>10,OPEN,CLOSE,10,1),coloryellow;


    特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。

    网站首页-股票知识--股票公式-散户炒股-问答百科--缠中说禅-概念股

    未经本站书面特别授权,请勿转载或建立镜像

    Copyright @ 2020 All Rights Reserved.版权所有 XMl地图
    Baidu
    map