• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • 【炒股开户】同花顺源码:超卖XYS,综合(自存),市场筹码分析

    发布时间: 2022-05-04 13:52 首页:股票一点通>股票公式>同花顺公式> 阅读()
    1、超卖XYS

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

    RSVA2:=100*(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9));
    VAR21:=SMA(RSVA2,9,1)+100;
    VAR11:=SMA(RSVA1,3,1);
    VAR51:=SMA(VAR11,3,1)+100;
    顶底线:=VAR51-VAR21+50;
    VAR2:=LLV(LOW,33);
    VAR3:=HHV(HIGH,21);
    VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,10)*-1+100;
    底线:10,colorwhite;
    顶线:90,colorwhite;
    趋势线:100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1),LINETHICK2,coloryellow;
    XIAO1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
    XIAO2:=SMA(ABS(LOW-XIAO1),13,1)/SMA(MAX(LOW-XIAO1,0),10,1);
    XIAO3:=EMA(XIAO2,10);
    XIAO4:=LLV(LOW,33);
    XIAO5:=EMA(IF(LOW<=XIAO4,XIAO3,0),3);
    STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,10,5 ),colorwhite;
    DRAWICON(趋势线>=90,70,2);
    DRAWICON(趋势线<=10,20,1),colorred;
    VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
    DRAWTEXT(CROSS(82,VARR1),趋势线,'逃'),colorwhite;
    VARRE:=REF(LOW,1)*0.9;
    VARRF:=LOW*0.9;
    VARR10:=(VARRF*VOL+VARRE*(CAPITAL-VOL))/CAPITAL;
    VARR11:=EMA(VARR10,30);
    VARR12:=CLOSE-REF(CLOSE,1);
    VARR13:=MAX(VARR12,0);
    VARR14:=ABS(VARR12);
    VARR15:=SMA(VARR13,7,1)/SMA(VARR14,7,1)*100;
    VARR16:=SMA(VARR13,13,1)/SMA(VARR14,13,1)*100;
    VARR17:=BARSCOUNT(CLOSE);
    VARR18:=SMA(MAX(VARR12,0),6,1)/SMA(ABS(VARR12),6,1)*100;
    VARR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
    VARR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
    //分析家公式网
    VARR1B:=SMA((SMA(VARR1A,4,1)-50)*2,3,1);
    VARR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
    VARR1D:=SMA(VARR1C,4,1);
    VARR1E:=SMA(VARR1D,3,1);
    VARR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
    VARR20:=VARR18<=25 AND VARR19<-95 AND VARR1F>20 AND VARR1B<-30 AND VARR1E<30 AND VARR11-CLOSE>=-0.25 AND VARR15<22 AND VARR16<28 AND VARR17>50;
    STICKLINE(VARR20,0,70,5,0),colorred,LINETHICK1;
    VAR2A:=REF(CLOSE,1);
    VAR3A:=SMA(MAX(CLOSE-VAR2A,0),7,1)/SMA(ABS(CLOSE-VAR2A),7,1)*100;
    超卖2: IF(VAR3A<12,30,0),coloryellow;



    2、综合(自存)

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

    DEA:EMA(DIFF,9);
    MACD:2*(DIFF-DEA),COLORSTICK;
    A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
    A3:=BARSLAST(REF(CROSS(DEA,DIFF),1));
    底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
    底背离2:=REF(CLOSE,A3+1)>CLOSE AND DEA>REF(DEA,A1+1) AND CROSS(DEA,DIFF);
    STICKLINE(底背离,0,0.1,8,0),colorred;
    STICKLINE(底背离2,0,0.1,8,0),colormagenta;
    DRAWLINE(A1=0,DEA,底背离,DEA,0),colorred,LINETHICK2;
    DRAWLINE(A3=0,DIFF,底背离2,DIFF,0),colormagenta,LINETHICK2;
    A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
    A4:=BARSLAST(REF(CROSS(DIFF,DEA),1));
    顶背离:=REF(CLOSE,A2+1)DIFF AND CROSS(DEA,DIFF);
    顶背离2:=REF(CLOSE,A4+1)DEA AND CROSS(DIFF,DEA);
    DRAWLINE(A2=0,DEA,顶背离,DEA,0),colorgreen,LINETHICK2;
    DRAWLINE(A4=0,DEA,顶背离2,DIFF,0),colorcyan,LINETHICK2;
    零上1金叉:CROSS(DIFF,DEA) AND DEA>-1.0 AND DEA<0.5 AND CLOSE> REF(CLOSE,1) AND CLOSE> =MA(C,60),colorred;
    零上2金叉:IF(SUM(IF(MACD>0 AND CROSS(DIFF,DEA),1,0),0)- HHV(IF(IF(CROSS(DEA,0),1,0),SUM(IF(MACD>0 AND CROSS(DIFF,DEA),1,0),0),0),0)=2 AND SUM(IF(MACD>0 AND CROSS(DIFF,DEA),1,0),0)> REF(SUM(IF(MACD>0 AND CROSS(DIFF,DEA),1,0),0),1),10,0),colorcyan;
    零下1金叉:CROSS(DIFF,DEA) AND DIFF<-0.1,colorgreen;
    AA:= BARSLAST(REF(CROSS(DIFF,DEA),1));
    零下2金叉:CROSS(DIFF,DEA) AND DIFF> REF(DIFF,AA+1) AND AA<20 AND DIFF<0,colormagenta;
    中线:18.5,colorlired;
    AA1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));
    MACD底背离:=REF(C,AA1+1)>C AND REF("MACD.DIF",AA1+1)< "MACD.DIF" AND
    CROSS("MACD.DIF","MACD.DEA")>0;
    AA2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));
    KDJ底背离:=REF(C,AA2+1)>C AND REF("KDJ.K",AA2+1)<"KDJ.K" AND
    CROSS("KDJ.K","KDJ.D");
    AA3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));
    RSI底背离:=REF(C,AA3+1)>C AND REF("RSI.RSI1",AA3+ 1)<"RSI.RSI1" AND
    CROSS("RSI.RSI1","RSI.RSI2")>0;
    AA4:=BARSLAST(REF(CROSS(" BIAS.BIAS1","BIAS.BIAS2"),1));
    BIAS底背离:= REF(C,A4+1)>C AND REF("BIAS.BIAS1",AA4+ 1)< "BIAS.BIAS1" AND
    CROSS("BIAS.BIAS1"," BIAS.BIAS2")>0;
    CC1:= BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));
    MACD顶背离:=REF(C,CC1+1)"MACD.DIF" AND
    CROSS("MACD.DEA","MACD.DIF")>0;
    CC2:= BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));
    KDJ顶背离:=REF(C,CC2+1)"KDJ.K" AND
    CROSS("KDJ.D","KDJ.K")>0;
    CC3:= BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));
    RSI顶背离:=REF(C,CC3+1)"RSI.RSI1" AND
    CROSS("RSI.RSI2","RSI.RSI1")>0;
    CC4:= BARSLAST(REF(CROSS("BIAS.BIAS2"," BIAS.BIAS1"),1));
    BIAS顶背离:= REF(C,CC4+ 1) "BIAS.BIAS1" AND
    CROSS("BIAS.BIAS2","BIAS.BIAS1")>0;
    N:=60;
    DD:=C=LLV(C,N);
    DDSJ:= BARSLAST(REF(DD,1));
    DDGJ:=REF(CLOSE,DDSJ+1)>CLOSE;
    GD:=C=HHV(C,N);
    GDSJ:= BARSLAST(REF(GD,1));
    GDGJ:=REF(CLOSE,GDSJ+1)TYP:=(HIGH + LOW + CLOSE)/3;
    CCl:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
    CDZB:=REF(CCI,DDSJ+1)CCI底背离:=DDGJ AND CDZB;
    CGZB:=REF(CCI,GDSJ+1)>CCI;
    CCI顶背离:=GDGJ AND CGZB;
    K值:= "KDJ.K";
    KDZB:=REF(K值,DDSJ+1)K底背离:=DDGJ AND KDZB;
    KGZB:=REF(K值,GDSJ+1)>K值;
    K顶背离:=GDGJ AND KGZB;
    MACD:= "MACD.MACD";
    MDZB:=REF(MACD,DDSJ+1)M底背离:=DDGJ AND MDZB;
    MGZB:= REF(MACD,GDSJ+1)> MACD;
    M顶背离:=GDGJ AND MGZB;
    RSI:="RSI.RSI1";
    RDZB:=REF(RSI,DDSJ+1)R底背离:=DDGJ AND RDZB;
    RGZB:=REF(RSI,GDSJ+1)> RSI;
    R顶背离:=GDGJ AND RGZB;
    BIAS:= "BIAS.BIAS1";
    BDZB:= REF(BIAS,DDSJ+1)< BIAS;
    B底背离:=DDGJ AND BDZB;
    BGZB:=REF(BIAS,GDSJ+1)> BIAS;
    B顶背离:=GDGJ AND BGZB;
    DRAWTEXT(ISLASTBAR,19,"CCI底背离"),LINETHICK2,colorgreen;
    DRAWTEXT(CCI底背离,IF(ISLASTBAR,19,19),"I"),LINETHICK2,colorgreen;
    DRAWTEXT(ISLASTBAR,16,"RSI底背离"),LINETHICK2,colorwhite;
    DRAWTEXT(R底背离,IF(ISLASTBAR,16,16),"I"),LINETHICK2,colorwhite;
    DRAWTEXT(RSI底背离,IF(ISLASTBAR,16,16),"-"),LINETHICK2,colorwhite;
    DRAWTEXT(ISLASTBAR,13," MACD底背离"),LINETHICK2,colormagenta;
    DRAWTEXT(M底背离,IF(ISLASTBAR,13,13),"I"),LINETHICK2,colormagenta;
    DRAWTEXT(MACD底背离,IF(ISLASTBAR,13,13),"-"),LINETHICK2,colormagenta;
    DRAWTEXT(ISLASTBAR,10," KDJ底背离"),LINETHICK2,colorred;
    DRAWTEXT(K底背离,IF(ISLASTBAR,10,10),"I"),LINETHICK2,colorred;
    DRAWTEXT(KDJ底背离,IF(ISLASTBAR,10,10),"-"),LINETHICK2,colorred;
    DRAWTEXT(ISLASTBAR,7," BIAS底背离"),LINETHICK2,coloryellow;
    DRAWTEXT(B底背离,IF(ISLASTBAR,7,7),"I"),LINETHICK2,coloryellow;
    DRAWTEXT(BIAS底背离,IF(ISLASTBAR,7,7),"-"),LINETHICK2,coloryellow;
    DRAWTEXT(ISLASTBAR,4,"BIAS底背离"),LINETHICK2,coloryellow;
    DRAWTEXT(ISLASTBAR,34,"BIAS顶背离"),LINETHICK2,coloryellow;
    DRAWTEXT(B顶背离,IF(ISLASTBAR,34,34),"I"),LINETHICK2,coloryellow;
    DRAWTEXT(BIAS顶背离,IF(ISLASTBAR,34,34),"-"),LINETHICK2,coloryellow;
    DRAWTEXT(ISLASTBAR,31,"KDJ顶背离"),LINETHICK2,colorred;
    DRAWTEXT(K顶背离,IF(ISLASTBAR,31,31),"I"),LINETHICK2,colorred;
    DRAWTEXT(KDJ顶背离,IF(ISLASTBAR,31,31),"-"),LINETHICK2,colorred;
    DRAWTEXT(ISLASTBAR,28,"MACD顶背离"),LINETHICK2,colormagenta;
    DRAWTEXT(M顶背离,IF(ISLASTBAR,28,28),"I"),LINETHICK2,colormagenta;
    DRAWTEXT(MACD顶背离,IF(ISLASTBAR,28,28),"-"),LINETHICK2,colormagenta;
    DRAWTEXT(ISLASTBAR,25,"RSI顶背离"),LINETHICK2,colorwhite;
    DRAWTEXT(R顶背离,IF(ISLASTBAR,25,25),"I"),LINETHICK2,colorwhite;
    DRAWTEXT(RSI顶背离,IF(ISLASTBAR,25,25),"-"),LINETHICK2,colorwhite;
    DRAWTEXT(ISLASTBAR,22,"CCI顶背离"),LINETHICK2,colorgreen;
    DRAWTEXT(CCI顶背离,IF(ISLASTBAR,22,22),"I"),LINETHICK2,colorgreen;
    K超买:="KDJ.K">= 80 OR "KDJ.D"> =80 OR "KDJJ">=100;
    K超卖:= "KDJ.K" <=20 OR "KDJ.D"<=30 OR "KDJJ"<0;
    {RSl:="RSI.RSI1";}
    R超买:=RSI> =80;
    R超卖:=RSl<=20;
    C超买:= "CCI.CCl">= 100;
    C超卖:= "CCI.CCI" <=-100;
    {BIAS:= "BIAS.BIAS1";}
    B超买:= "BIAS.BIAS1">3.5 OR "BIAS.BIAS2">5;
    B超卖:="BIAS.BIAS1"<-3 OR "BIAS.BIAS2"<-4;
    {DRAWTEXT(B超买,IF(ISLASTBAR,34,34),"o"),LINETHICK2,coloryellow;
    DRAWTEXT(K超买,IF(ISLASTBAR,31,31),"o"),LINETHICK2,colorred;
    DRAWTEXT(R超买,IF(ISLASTBAR,25,25),"o"),LINETHICK2,colorwhite;
    DRAWTEXT(C超买,IF(ISLASTBAR,22,22),"o"),LINETHICK2,colorgreen;
    DRAWTEXT(C超卖,IF(ISLASTBAR,19,19),"o"),LINETHICK2,colorgreen;
    DRAWTEXT(R超卖,IF(ISLASTBAR,16,16),"o"),LINETHICK2,colorwhite;
    DRAWTEXT(K超卖,IF(ISLASTBAR,10,10),"o"),LINETHICK2,colorred;
    DRAWTEXT(B超卖,IF(ISLASTBAR,7,7),"o"),LINETHICK2,coloryellow;}
    BIAS5:=(C-MA(C,6))/MA(C,6)*100;
    BIAS6:=(C-MA(C,12))/MA(C,12)*100;
    BIAS7:=(C-MA(C,24))/MA(C,24)*100;
    BIAS8:=(BIAS5+ 2*BIAS6+ 3*BIAS7)/6;
    乖离:=MA(BIAS8,6);
    STICKLINE(CROSS(BIAS8,乖离) AND 乖离< -9,18,20,1,0),colorred;
    超卖O背离l:1,NODRAW,colorwhite;
    顶背比底背更准:1,NODRAW,colorgreen;
    红纺点BIAS买点:1,NODRAW,colorred;



    3、市场筹码分析

    分析市场筹码分布情况,旁看多空对战实力对比。( 顶尖财经 股票学院: )

    1。红线代表市场锁定筹码,多为主力控盘筹码,数值越大说明主力控盘锁定筹码越多,上涨概率越大。
    2。绿线代表市场浮动筹码,多为散户流动筹码,数值越大说明散户持有浮动筹码越多,下跌概率越大。
    3。柱差反映市场筹码控盘能力,反映主力控盘力度,预示后市上扬概率及幅度,红柱越大,说明主力控盘度越高,上涨概率越高,反之则下跌概率越高。

    HSL:=EMA(VOL/CAPITAL,3);
    ZDL:HHV(HSL,240);
    ZXL:LLV(HSL,240);
    XS:=MA(C,33);
    主力筹码:EMA((HSL-ZXL)/ZXL*XS,13);
    散户筹码:EMA((ZDL-HSL)/HSL*XS,13);
    力量对比:主力筹码-散户筹码,COLORSTICK;


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

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

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

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