• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • [股票入门基础知识]同花顺源码:超准指标,ZYLB,自用小买卖

    发布时间: 2022-05-04 14:49 首页:股票一点通>股票公式>同花顺公式> 阅读()
    1、超准指标

    无未来函数,跟着指标走,奥拓变奥迪。

    手机电脑同步显示,增加颜色柱,激进买卖点。

    指标出现【减 】,准备减低仓位,趋势上升无需操作。

    指标出现【增 】,股价有启动迹象,配合底背离,再加仓。

    指标出现【反 】,股票已经连续下跌,有反弹需求。

    指标出现【回 】,股票已经连续上涨,有回调需求。

    指标出现【底 】,KDJ出现底背离。

    指标出现【顶 】,KDJ出现顶背离。

    指标出现【金 】,MACD低位金叉。

    CS:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;

    a:=(EMA(CS,3)-50)*2;

    b:=EMA(a,2);

    e:=3*a-2*b;

    辅:b;

    高:80;

    险:60;

    震:-60;

    低:-80;

    趋势:(EMA(100*(C-LLV(LOW,33))/(HHV(H,33)-LLV(LOW,33)),3)-50)*2;

    支撑压力线:(REF(C,1)+REF(C,2)+O)/3,linethick0;

    DRAWTEXT(CROSS(95,e),63,'回'),COLORFF6EC7;

    DRAWTEXT(CROSS(e,-95),-40,'反'),COLORB0C4DE;

    增1=CROSS(e,a) AND (b<=-48) AND (趋势<=-35);

    DRAWTEXT(增1>0,-35,'增'),colorgreen;

    减4=CROSS(a,e) AND (b>=30) AND (趋势>=20);

    DRAWTEXT(减4>0,48,'减'),COLOR0099FF;

    A1:=BARSLAST(REF(CROSS(e,b),1));

    底:=REF(CLOSE,A1+1)>CLOSE AND e>REF(e,A1+1) AND CROSS(e,b);

    A2:=BARSLAST(REF(CROSS(b,e),1));

    顶:=REF(CLOSE,A2+1)b AND CROSS(b,e);

    DRAWTEXT(底>0,-65,'底'),COLORFF8855;

    DRAWTEXT(顶>0,78,'顶'),COLORFF00FF;

    DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);

    DIF:=EMA(CLOSE,12) - EMA(CLOSE,26);

    DEA:=EMA(DIF,9);

    A3:=BARSLAST(REF(CROSS(DIFF,DEA),1));

    底背离:=REF(CLOSE,A3+1)>CLOSE AND DIFF>REF(DIFF,A3+1) AND CROSS(DIFF,DEA);

    A4:=BARSLAST(REF(CROSS(DEA,DIFF),1));

    顶背离:=REF(CLOSE,A4+1)DIFF AND CROSS(DEA,DIFF);

    DRAWTEXT(顶背离,33,'MACD顶背'),COLORD9D919;

    DRAWTEXT(底背离,-15,' MACD底背'),COLOR7070DB;

    低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;

    DRAWTEXT(低位金叉,8,' 金'),colorred;

    财17:=(CROSS(a,0) AND CROSS(b,-20))

    OR(CROSS(a,0) AND CROSS(b,0))

    OR(CROSS(a,0) AND CROSS(b,15))

    OR(CROSS(a,0) AND CROSS(b,25))

    OR(CROSS(a,0) AND CROSS(b,-10));

    STICKLINE(财17,24,-35,4,0),COLORFF0088;

    STICKLINE(CROSS(a,-65),-80,-30,3),colorred;

    STICKLINE(CROSS(CS,1),-80,-50,2),colorred;

    STICKLINE((a<=-65),-80,-60,1),colorwhite;




    2、ZYLB

    LC:=REF(CLOSE,1);

    RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
    TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
    HD:=(HIGH - REF(HIGH,1));
    LD:=(REF(LOW,1) - LOW);
    DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
    DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
    PDI:=((DMP * 100) / TR1);
    MDI:=((DMM * 100) / TR1);
    ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
    AV:=(RSI5 + ADX);
    DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
    0,COLORFF00FF;
    WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,13) - LLV(LOW,13)));
    NEWVOL:=(RSI5 - WR10);
    阶段底部:=(AV + NEWVOL);
    趋势线:=LLV(阶段底部,1),colorwhite;
    STICKLINE(CROSS(阶段底部,0),0,-10,5,1),colorred;
    STICKLINE((趋势线 >230),100,90,5,1),colorgreen;
    Y1:=LLV(L,17);
    Y2:=SMA(ABS(L-REF(L,1)),17,1);
    Y3:=SMA(MAX(L-REF(L,1),0),17,2);
    Q:=-(EMA(IF(L<=Y1,Y2/Y3,-3),1));
    STICKLINE(CROSS(Q,0),15,0,12,0), coloryellow;
    强拉升:IF(CROSS(Q,0),1,0),coloryellow;
    Q1:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, COLOR00FF00;
    STICKLINE(CROSS(Q1,-24),20,0,10,0),colormagenta;
    加强拉升:IF(CROSS(Q1,-24),1,0),colormagenta;
    VAR1:=EMA(EMA(CLOSE,9),9);
    控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
    VAR2:=EMA(EMA(EMA((2*CLOSE+HIGH+LOW)/4,4),4),4);
    天:=( MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,2));
    地:=( MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1));
    STICKLINE(地>天 AND 地<0,10,0,6,0),colorred;
    开始拉升:IF(地>天 AND 地<0,1,0),colorred;
    LOWV:=LLV(LOW,9);
    HIGHV:=HHV(HIGH,9);
    RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
    K:EMA(RSV,3),colorligreen;
    D:MA(K,3),colorligreen;
    STICKLINE(K>D,K,D,7,0),colorred;
    STICKLINE(D>K,K,D,6,0),colorgreen;
    逃顶线:90,colorgreen;
    抄底线:10,colorgreen;
    警戒:阶段底部< 0,coloryellow;
    出击:CROSS(阶段底部,0),colorred;
    R1:=1;
    R2:=((((2*CLOSE)+HIGH)+LOW) / 4);
    R4:=LLV(LOW,5);
    R5:=HHV(HIGH,4);
    C1:=(EMA((((R2-R4)/(R5-R4))*100),4)*R1),COLORFF00FF;
    C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*R1),COLORFFFFFF;
    条:=CROSS(C1,C2) AND C1<40;
    STICKLINE(条,0,-10,11,0),colorred;
    DRAWTEXT(条,20,'出枪'),coloryellow;
    A10:=CROSS(控盘,0);
    无庄控盘:IF(控盘<0,控盘,0),colorwhite;
    开始控盘:IF(A10,20,0),coloryellow;
    AAZ2:=(MIN(O,C)-L)/L*100>1.4;
    BBZ2:=L/MA(C,30)<1.03 AND L/MA(C,30)>0.99 AND C<=O;
    准备抓:IF(AAZ2 AND BBZ2,20,0),colorliblue;
    DRAWTEXT(AAZ2 AND BBZ2,20,'准备'),colorliblue;



    3、自用小买卖

    自己整合的指标,简单,挺好用,买入可能不赚,但是一般都是赢多赔少,选对股很重要,很重要,很重要。( 顶尖财经 股票学院: )

    //CCI黄金坑
    RR8:=MA(CLOSE,27);
    RR9:=(CLOSE-RR8)/RR8*100;
    RRA:=MA(RR9,2);
    RRB:=BARSLAST(CROSS(-10,RRA)=1);
    RRD:=RRA<-10 AND RRB>3;
    STICKLINE(IF(RRD,-120,0),-120,0,8,0),colorliblue;
    【黄金坑】:IF(RRD,-120,0),coloryellow,LINETHICK2;
    TYP := (HIGH + LOW + CLOSE)/3;
    CCI14:=(TYP-MA(TYP,21))/(0.015*AVEDEV(TYP,21)),colormagenta,LINETHICK2;
    zhuidi:=LLV(CCI14,30);
    BUYpoint:=zhuidi+0.01;
    //CCI
    TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;
    CCI35:=(TYP-MA(TYP,55))/(0.015*AVEDEV(TYP,55));
    a:100;
    b:-100;
    d:200;
    e:-200;
    z:0;
    //短线反弹
    VAR1:=REF(CLOSE,2);
    短线反弹:=((SMA(MAX((CLOSE - VAR1),0),7,1) / SMA(ABS((CLOSE - VAR1)),7,1)) * 100),LINETHICK0,colorFFFF;
    仅供参考:IF((短线反弹 < 12),60,0),LINETHICK3,colorFF;
    急买注意止损:=IF((短线反弹 < 10),40,0),LINETHICK3;
    买入注意盘面:=IF((短线反弹 < 5),40,0),LINETHICK3,colorFF;
    买入放稳持有:IF((短线反弹 < 3),40,0),LINETHICK3;
    //金牛十五//
    Var1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
    Var2:=LLV(LOW,34);
    Var3:=HHV(HIGH,34);
    SK:= EMA((Var1-Var2)/(Var3-Var2)*100,13);
    SD:= EMA(SK,3);
    Var4:=IF(CROSS(SK,SD),40,22);
    Var5:=IF(CROSS(SD,SK),60,78);
    N:=10;
    C0:=(H+L+C)/3;
    A1:=HHV(C0,N);A2:=LLV(C0,N);A3:=A1-A2;
    A4:=EMA((C0-A2)/A3,2)*100;
    B1:=HHV(C0,4*N);B2:=LLV(C0,4*N);B3:=B1-B2;
    B4:=EMA((C0-B2)/B3,2)*100;
    C1:=HHV(C0,16*N);C2:=LLV(C0,16*N);C3:=C1-C2;
    C4:=EMA((C0-C2)/C3,2)*100;
    短期:=A4,COLOR66DDDD,LINETHICK2;
    中期:=B4,COLOR6699FF,LINETHICK2;
    长期:=C4,COLOR6600FF,LINETHICK2;
    买1:=IF(短期<5,30,0);
    买2:=IF(短期<5 AND 中期<5 AND SK<30 AND SD<30,30,0);
    买3:=IF(短期<5 AND 中期<5 AND 长期<5 AND SK<12 AND SD<12,30,0);
    //买卖指标//
    你:=MA(CLOSE,1);
    老:=(LOW+HIGH+CLOSE)/3;
    板:= MA(老,5);
    好:= HHV(板,10);
    急卖奇准:=IF(HHV((你<好),7),100,50);
    短卖奇准:IF(HHV((你<好),13),100,50);
    老板:= MA(老,5);
    买卖:=LLV(老板,10);
    急买奇准:=IF(LLV((你<买卖),5),50,0);
    短买奇准:=IF(LLV((你<买卖),10),50,0);
    TR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);
    HD:=(HIGH - REF(HIGH,1));
    LD:=(REF(LOW,1) - LOW);
    DMP:=(SUM(IF(((HD > 0) AND (HD > LD)),HD,0),5) );
    DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),5);
    神偷线:=(((DMP ) * 100) / TR);
    辅助线:=((DMM * 100) / TR);
    动向趋势线:=(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),3));
    ADXR:=((动向趋势线 + REF(动向趋势线,3)) / 2);
    VAR1:=MA(LOW,1);
    VAR2:=MA(HIGH,2);
    VAR3:=MA(CLOSE,2);
    VAR7:=REF(VAR3,1);
    【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 - VAR7)),5,1)) * 100);
    没神的只有不错:( IF(((动向趋势线 > 88) AND (神偷线 < 5.8)),-30,0)),LINETHICK3,colorFF00FF;
    zero:0;
    //趋势顶底//
    A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),34);
    B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
    D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),8);
    长期线:=A+100,COLOR9900FF;
    短期线:=B+100,COLOR888888;
    中期线:=D+100,coloryellow,LINETHICK2;
    //KDJ//
    RSV=(CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100;
    a=SMA(RSV,3,1);
    b=SMA(a,3,1);
    e=3*a-2*b;
    IF(a<0) a=0;
    IF(a>100) a=100;
    IF(b<0) b=0;
    IF(b>100) b=100;
    IF(e<0) e=0;
    IF(e>100) e=100;
    K:=a;
    D:=b;
    J:=e;
    //RSI//
    N1:=5;
    N2:=8;
    N3:=10;
    LC:=REF(CLOSE,1);
    RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
    RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
    RSI3:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
    //威廉指标//
    N1=13;N2=34;N3=89;
    WR1:=(C-LLV(L,N1))/(HHV(H,N1)-LLV(L,N1))*100;
    WR2:=(C-LLV(L,N2))/(HHV(H,N2)-LLV(L,N2))*100;
    WR3:=(C-LLV(L,N3))/(HHV(H,N3)-LLV(L,N3))*100;
    //买卖点//
    买点②:=IF(短期线<15 AND 中期线<15 AND 短期<5 AND 中期<5 AND J<10 AND RSI3<30 AND WR1<10 AND WR2<10,40,0);
    买点③:IF(短期线<15 AND 中期线<15 AND 短期<5 AND 中期<5 AND 长期<5 AND 短线反弹<5 AND J<10 AND RSI3<30 AND WR1<10 AND WR2<10,60,0);
    卖点②:IF(短期线>85 AND 中期线>85 AND 短期>95 AND 中期>95 AND J>90 AND RSI3>70 AND WR1>90 AND WR2>90,60,100);
    卖点③:IF(短期线>85 AND 中期线>85 AND 短期>95 AND 中期>95 AND 长期>95 AND 短线反弹>95 AND J>90 AND RSI3>70 AND WR1>90 AND WR2>90,40,100);
    买买①:IF(短买奇准>0 AND 买点③>0,20,0);
    买买②:IF(买3>0 AND 买点②>0,20,0);
    买买③:IF(买2>0 AND 急买奇准>0,30,0);


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

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

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

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