筹码峰指标公式副图  

    主筹估算:EMA(WINNER(C)*70,3),LINETHICK2,COLORRED;

    散筹估算:EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,3),LINETHICK1,COLORGREEN;

    筹码锁定:散筹估算-主筹估算,{COLORFFBB00}COLORGRAY,LINETHICK2;

    动态底部:EMA(IF(L<=

    LLV(L,99),SMA(ABS(L-REF(L,1)),99,1)/SMA(MAX(L-REF(L,1),0),99,1),0)*5,3),COLORYELL

    OW;

    STICKLINE(动态底部>0,0,动态底部,4,0),COLORYELLOW;

    STICKLINE(筹码锁定>0,筹码锁定,散筹估算,4,0),COLOR009900;

    STICKLINE(筹码锁定<=0,0,散筹估算,4,0),COLOR009900;

    STICKLINE(筹码锁定>0,0,筹码锁定,4,0),COLORFFBB00;

    STICKLINE(筹码锁定<0,0,筹码锁定,4,0),COLORFFBB00;

    主筹估算,LINETHICK2,COLORRED;

    涨:=CROSS(主筹估算,筹码锁定),COLORWHITE;

    强:=CROSS(主筹估算,散筹估算),COLORYELLOW;

    STICKLINE(涨,0,筹码锁定,4,0),COLORWHITE;

    STICKLINE(强,0,散筹估算,4,0),COLORYELLOW;

    {能量顶底}

    {看到红十字卖出,红十字,横线为超买;红十字竖线为能量背离。}

    VAR1:=REF(CLOSE,2);

    AA2:SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,COLORYELLOW,LIN

    ETHICK2;

    超卖1:=IF(AA2<12,30,0),COLORF00FF0;

    超卖11:=超卖1;

    {STICKLINE(超卖1,0,30,5,0),COLORF00FF0;}

    VAR2:=REF(CLOSE,1);

    VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;

    超卖2:=IF(VAR3<12,30,0);

    超卖22:=超卖2;

    {LJL07:=(3*C+L+O+H)/6;}

    STICKLINE(超卖2,0,30,5,0),COLORYELLOW;

    逢高派发区:STICKLINE(AA2>80,AA2-2,AA2-4,8,0),COLORMAGENTA;{DRAWTEXT(逢高

    派发区,AA2*1.2,'!'),COLORGREEN;}

    牛吃饱走了:=AA2<REF(AA2,1)ANDAA2>79;

    STICKLINE(牛吃饱走了,0,50,0.5,0),COLORRED;

    DRAWICON(牛吃饱走了,60,14);DRAWTEXT(牛吃饱走了,60,'牛饱');

    OBV:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/100000;

    A1:=OBV-REF(OBV,1);

    A:=MA(OBV,5);

    B:=REF(A,1);

    B5:=A1/B*10;

    C1:=(B5-REF(B5,1))/REF(B5,1);

    RSV2:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;

    K:=SMA(RSV2,5,1);

    D:=SMA(K,3,1);

    PP:=BARSLAST(H=HHV(H,20));

    P2:=IF(H=HHV(H,20)ORPP<3,1,0);

    P1:=BARSLAST(CROSS(C1,0.5));

    VAR13:=(LOW+HIGH+CLOSE)/3;

    CB:=MA(VAR13,5);

    A5:=HHV(CB,20);

    A2:=HHV(CB,60);

    B1:=LLV(CB,20);

    B2:=LLV(LOW,60)*1.02;

    A3:=HHV(HIGH,60)*0.98;

    短顶:REF(C1,1)>0.5ANDC1<REF(C1,1)ANDH>REF(H,1)ANDK>30AND

    K>D,COLORYELLOW;

    TY:=IF(C1<-8ORH/LLV(L,3)>1.5,1,0);

    STICKLINE(短顶,100,85,2,0),COLORYELLOW;

    单阳背离:=C1<0ANDC1=LLV(C1,13)ANDC>OANDTY=1;

    TU1:=IF((A5>REF(A5,1)ANDREF(A5,1)>REF(A5,2))OR(REF(A5,1)<REF(A5,2)AND

    REF(A5,2)<REF(A5,3)),1,0);

    TU:=IF((C1<0ANDREF(C1,1)>0ANDREF(C1,2)<0ANDCOUNT(C>O,3)=3AND

    L>REF(L,1)ANDREF(L,1)>REF(L,2))OR(C1<0ANDC1<REF(C1,1)

    ANDREF(C,1)>REF(O,1)ANDREF(C,2)>REF(O,2)ANDREF(C,3)>REF(O,3)AND

    REF(L,1)>REF(L,2)ANDREF(L,2)>REF(L,3)),1,0),COLORLIGREEN;

    三阳背离:TU=1ANDK>DANDTU1=1;

    STICKLINE(三阳背离,75,95,2,0),COLORLIGREEN;

    逃顶:K>80ANDK>DANDCROSS(-0.5,C1)ANDP1<5ANDP2=1,COLORGRAY;

    STICKLINE(逃顶,20,50,2,0),COLORGRAY;

    顶:=K>80ANDCROSS(D,K)ANDCROSS(-0.5,C1)ANDP1<5ANDP2=1;

    VAR11:=REF(CLOSE,1);

    VAR12:=SMA(MAX(CLOSE-VAR11,0),6,1)/SMA(ABS(CLOSE-VAR11),6,1)*100;

    卖出:=CROSS(80,VAR12);

    STICKLINE(卖出,80,100,2,0),COLORCYAN;

    强势:=21,COLORMAGENTA;超强:58,COLORBROWN;

    生命量能1:=EMA(400*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)/4;

    生命量能:生命量能1,STICK,COLORRED;

    {DRAWICON(生命量能>=AA2,生命量能,6);}

    {DRAWICON(生命量能=40ANDMA(C,20)>=REF(MA(C,20),1)

    ANDAA2>=REF(AA2,1),生命量能*0.8,15);}

    {DRAWTEXT(FILTER(CROSS(80,VAR12),10),70,'卖');}

    DRAWICON(CROSS(80,VAR12),60,16);

    VAR55:=LLV(LOW,6);

    VAR66:=HHV(HIGH,6);

    VAR77:=(VAR66-VAR55)/10;

    VAR88:=SMA((CLOSE-VAR55)/VAR77,20,1);

    VARA:=3*VAR88-2*SMA(VAR88,3,1);

    AA:=MA(EMA(WINNER(C),3),3);

    筹码集中度:AA-0.5,COLORYELLOW;

    DRAWBAND(筹码集中度,RGB(155,50,50),0,RGB(83,135,68));

    STICKLINE(筹码集中度>=0.4,0.4,筹码集中度,4,1),COLORCYAN;

    STICKLINE(筹码集中度<=-0.4,-0.4,筹码集中度,4,1),COLORLIGRAY;

    中线:EMA(AA-0.5,55),LINETHICK2,COLORLIGRAY;

    IF(中线>REF(中线,1),中线,DRAWNULL),LINETHICK2,COLORMAGENTA;

    IF(筹码集中度>=REF(筹码集中度,1),筹码集中度,DRAWNULL),COLORRED;

    IF(筹码集中度<REF(筹码集中度,1),筹码集中度,DRAWNULL),COLORCYAN;

    AB:=EMA(AA-0.5,6);

    AC:=CROSS(AA-0.5,AB)ANDAB<=-0.3;

    AD:=CROSS(AB,AA-0.5)ANDAB>=0.35;

    DRAWICON(AC,AB,7);

    DRAWICON(AD,AB,8);

    VAR6:=(2*CLOSE+HIGH+LOW)/4;

    VAR7:=LLV(LOW,13);

    VAR8:=HHV(HIGH,13);

    VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);

    仙人:=(EMA(0.382*REF(VAR9,2)+0.618*VAR9,6)-50)/100;

    AAA:=EMA(仙人,3);

    {DRAWICON(仙人>=REF(仙人,1)ANDREF(仙人,1)<=REF(仙人,2),仙人*0.99,24);}

    {DRAWICON(仙人<=REF(仙人,1)ANDREF(仙人,1)>=REF(仙人,2),仙人*1.05,2);}

    IF(仙人>REF(仙人,1),仙人,DRAWNULL),COLORRED,LINETHICK2;

    IF(仙人<REF(仙人,1),仙人,DRAWNULL),COLORCYAN,LINETHICK2;

    AP:=BARSLAST(REF(CROSS(仙人,AAA),1));

    底背离:=REF(CLOSE,AP+1)>CLOSEAND仙人>REF(仙人,AP+1)ANDCROSS(仙人,AAA);

    STICKLINE(底背离,0,0.1,3,0),COLORMAGENTA;DRAWTEXT(底背离,主筹估算*1.03,'仙底

    背'),COLORRED;

    {DRAWLINE(AP=0,AAA,底背离,AAA,0),COLORRED,LINETHICK4;}

    A2P:=BARSLAST(REF(CROSS(AAA,仙人),1));

    顶背离:=REF(CLOSE,A2P+1)<CLOSEANDREF(仙人,A2P+1)>仙人ANDCROSS(AAA,仙

    人);DRAWTEXT(顶背离,主筹估算*1.06,'仙顶');

    {}

    机构

    仓:=STICKLINE(MA(C,20)>=REF(MA(C,20),1),REF(MA(C,20),4),MA(C,20),5,0),COLORLIR

    ED;

    JL01:=MA(C,3);

    LJL07:=(3*C+L+O+H)/6;

    牛

    线:=(20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07,3)+16*REF(LJL07,4)

    +15*REF(LJL07,5)+14*REF(LJL07,6)+13*REF(LJL07,7)+12*REF(LJL07,8)+11*REF(LJL07

    ,9)+10*REF(LJL07,10)+9*REF(LJL07,11)+8*REF(LJL07,12)+7*REF(LJL07,13)+6*REF(LJ

    L07,14)+5*REF(LJL07,15)+4*REF(LJL07,16)+3*REF(LJL07,17)+2*REF(LJL07,18)+REF(L

    JL07,20))/210;

    马线:=MA(牛线,5);

    等待:=JL01<=牛线;

    VAR1L:=(C>REF(C,1)ANDC>REF(C,2));

    VAR2L:=(REF(VAR1L,1)ANDC<=REF(C,1)ANDC>=REF(C,2));

    VAR3L:=(REF(VAR2L,1)ANDC>=REF(C,1)ANDC<=REF(C,2));

    VAR4L:=(REF(VAR3L,1)ANDC<=REF(C,1)ANDC>=REF(C,2));

    VAR5L:=(REF(VAR4L,1)ANDC>=REF(C,1)ANDC<=REF(C,2));

    VAR6L:=(REF(VAR5L,1)ANDC<=REF(C,1)ANDC>=REF(C,2));

    VAR7L:=(REF(VAR6L,1)ANDC>=REF(C,1)ANDC<=REF(C,2));

    VAR8L:=(REF(VAR7L,1)ANDC<=REF(C,1)ANDC>=REF(C,2));

    VAR9L:=(REF(VAR8L,1)ANDC>=REF(C,1)ANDC<=REF(C,2));

    VARAL:=(REF(VAR9L,1)ANDC<=REF(C,1)ANDC>=REF(C,2));

    VARBL:=(REF(VARAL,1)ANDC>=REF(C,1)ANDC<=REF(C,2));

    VARCL:=(REF(VARBL,1)ANDC<=REF(C,1)ANDC>=REF(C,2));

    机构持仓区域:=MA(C,20)>=REF(MA(C,20),1),NODRAW,COLORLIRED;

    持:=VAR1LORVAR2LORVAR3LORVAR4LORVAR5LORVAR6LORVAR7LORVAR8LOR

    VAR9LORVARALORVARBLORVARCL;

    DRAWICON(CROSS(AA-0.5,中线)ANDAA-0.5<0ANDMA(C,20)>=REF(MA(C,20),1)AND

    持,AB,25);

    DRAWTEXT(仙人>=REF(仙人,1)ANDREF(仙人,1)<=REF(仙人,2)AND

    MA(C,20)>=REF(MA(C,20),1)AND持,主筹估算,'仙人'),COLORYELLOW;

    {DRAWICON(CROSS(主筹估算,散筹估算)ANDMA(C,20)>=REF(MA(C,20),1)AND持,散

    筹估算,17);}

    DRAWICON(CROSS(主筹估算,筹码锁定){ANDMA(C,20)>=REF(MA(C,20),1)}AND持,主

    筹估算-0.2,30);

    {DRAWICON(超卖11AND超卖22,生命量能*2.4,6);}{卖:100,COLORYELLOW;}

    DRAWICON(CROSS(主筹估算,散筹估算)AND生命量能=40

    ANDMA(C,20)>=REF(MA(C,20),1)ANDAA2>=REF(AA2,1),80,17);

    DRAWICON((涨OR强)AND生命量能=40AND

    MA(C,20)>=REF(MA(C,20),1)ANDAA2>=REF(AA2,1),120,5);

    DRAWICON(生命量能=40ANDMA(C,20)>=REF(MA(C,20),1)

    ANDAA2>=REF(AA2,1),生命量能*0.8,15);

    DRAWICON(CROSS(AA2,超

    强),60,17)

image.png

    主图显示筹码峰指标

       

    DRAWGBK(C>0,RGB(0,0,00),RGB(0,0,0),0,'1',0);

    DRAWKLINE(HIGH,OPEN,LOW,CLOSE);

    DA1:=IF(130>TOTALBARSCOUNT,TOTALBARSCOUNT,130);

    DA:=IF(CURRBARSCOUNT>DA1,0,DA1);

    HI:=REFDATE(HHV(H,DA),DATE);

    LO:=REFDATE(LLV(L,DA),DATE);

    C1:=IF(CURRBARSCOUNT<=DA,C,DRAWNULL);

    GZ:=EXP(LN(HI/LO)/10);

    LH1:=SUM(IF(C1>=(HI/GZ),V,0),DA);

    LH2:=SUM(IF(C1>=(HI/POW(GZ,2))ANDC1<(HI/GZ),V,0),DA);

    LH3:=SUM(IF(C1>=(HI/POW(GZ,3))ANDC1<(HI/POW(GZ,2)),V,0),DA);

    LH4:=SUM(IF(C1>=(HI/POW(GZ,4))ANDC1<(HI/POW(GZ,3)),V,0),DA);

    LH5:=SUM(IF(C1>=(HI/POW(GZ,5))ANDC1<(HI/POW(GZ,4)),V,0),DA);

    LH6:=SUM(IF(C1>=(HI/POW(GZ,6))ANDC1<(HI/POW(GZ,5)),V,0),DA);

    LH7:=SUM(IF(C1>=(HI/POW(GZ,7))ANDC1<(HI/POW(GZ,6)),V,0),DA);

    LH8:=SUM(IF(C1>=(HI/POW(GZ,8))ANDC1<(HI/POW(GZ,7)),V,0),DA);

    LH9:=SUM(IF(C1>=(LO*GZ)ANDC1<LO*POW(GZ,2),V,0),DA);

    LH10:=SUM(IF(C1>=LOANDC1<LO*GZ,V,0),DA);

    L1:=REFDATE(HHV(LH1,DA),DATE);

    L2:=REFDATE(HHV(LH2,DA),DATE);

    L3:=REFDATE(HHV(LH3,DA),DATE);

    L4:=REFDATE(HHV(LH4,DA),DATE);

    L5:=REFDATE(HHV(LH5,DA),DATE);

    L6:=REFDATE(HHV(LH6,DA),DATE);

    L7:=REFDATE(HHV(LH7,DA),DATE);

    L8:=REFDATE(HHV(LH8,DA),DATE);

    L9:=REFDATE(HHV(LH9,DA),DATE);

    L10:=REFDATE(HHV(LH10,DA),DATE);

    SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);

    STICKLINE(CEILING(DA*L1/SS)*3>=CURRBARSCOUNT,HI*99/100,HI/GZ,9,0

    ),

    ,COLOR171717,LINETHICK3;

    STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*99/10

    0

    ,HI/POW(GZ,2),9,0),COLOR171717,LINETHICK3;

    STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*99/10

    0

    ,HI/POW(GZ,3),9,0),COLOR171717,LINETHICK3;

    STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*99/10

    0

    ,HI/POW(GZ,4),9,0),COLOR171717,LINETHICK3;

    STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*99/10

    0

    ,HI/POW(GZ,5),9,0),COLOR171717,LINETHICK3;

    STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*99/10

    0

    ,HI/POW(GZ,6),9,0),COLOR171717,LINETHICK3;

    STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*99/10

    0

    ,HI/POW(GZ,7),9,0),COLOR171717,LINETHICK3;

    STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*P

    OW(GZ,3)

    *99/100,9,0),COLOR171717,LINETHICK3;

    STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*P

    OW(GZ,2)

    *99/100,9,0),COLOR171717,LINETHICK3;

    STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)*

    99/100,9,0)

    ,COLOR171717,LINETHICK3;

    DRAWKLINE(H,O,L,C);

    DRAWKLINE(H,O,L,C);

    DRAWTEXT(CURRBARSCOUNT=98,LOW*0.88,'☆压力越大暗条越长,做多越短

    越好★'),COLORYELLOW;

    N:=10;

    T1:=CONST(HHVBARS(V,10)),COLOR0000FF,LINETHICK1;

    量能平

    台:IF(CURRBARSCOUNT<=N+15,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL)

    ,COLOR4080FF,LINETHICK3;

    新量能点:IF(CURRBARSCOUNT=T1+1,量能平

    台,DRAWNULL),CIRCLEDOT,COLORFFFFFF,LINETHICK9;

    DRAWTEXT(ISLASTBAR,量能平台,'量能平台'),COLOR00F0F0;

    JJ:=(CLOSE+HIGH+LOW)/3;

    A:=EMA(JJ,10);

    B:=REF(A,1);

    持股区域:STICKLINE(A>B,A,B,2,0),COLORYELLOW;

    持币区域:STICKLINE(A<B,A,B,2,0),COLORBLUE;

    VAR1:=(100-((90*(HHV(HIGH,14)-CLOSE))/(HHV(HIGH,14)-

    LLV(LOW,14))));

    VAR2:=(100-((90*(HHV(HIGH,14)-CLOSE))/(HHV(HIGH,14)-

    LLV(LOW,14))));

    VAR3:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-

    LLV(LOW,6))),34));

    DIR1:=ABS(CLOSE-REF(CLOSE,5));

    VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);

    ER1:=DIR1/VIR1;

    CS1:=ER1*(0.8-2/8)+2/8;

    CQ1:=CS1*CS1;

    DIR2:=ABS(CLOSE-REF(CLOSE,10));

    VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);

    ER2:=DIR2/VIR2;

    CS2:=ER2*(0.8-2/24)+2/24;

    CQ2:=CS2*CS2;

    STICKLINE(VAR2<MA(VAR3,6),LOW,HIGH,0,1),COLORLIBLUE;

    STICKLINE(VAR2>MA(VAR3,6),LOW,HIGH,0,1),COLORRED;

    STICKLINE(((OPEN>CLOSE)AND(VAR2<MA(VAR3,6))),(CLOSE-0.03),OPEN,3.

    05,0),COLORLIBLUE;

    STICKLINE(((OPEN<CLOSE)AND(VAR2<MA(VAR3,6))),CLOSE,OPEN,3.05,1),C

    OLORLIBLUE;

    STICKLINE(((OPEN>CLOSE)AND(VAR2>MA(VAR3,6))),OPEN,(CLOSE-0.03),3.

    05,0),COLORRED;

    STICKLINE(((OPEN<CLOSE)AND(VAR2>MA(VAR3,6))),OPEN,CLOSE,3.05,1),C

    OLORRED;

    DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW-(LOW*0.01)),23);

    DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH+(HIGH*0.01)),15);

    PT:=REF(H,1)-REF(L,1);

    CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;

    AH:=CDP+PT;

    AL:=CDP-PT;

    NH:=CDP*2-REF(L,1);

    NL:=CDP*2-REF(H,1);

    强:IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;

    阻:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORBLUE;

    M:=IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL);

    撑:IF(NL<M,CDP-(CDP-M)*0.618,NL)NODRAW;

    底:IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL)NODRAW;

    C2:=REF(C,1);

    非ST涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);

    涨停:=非ST涨停;

    STICKLINE(涨停,OPEN,CLOSE,2,0),COLOR00FFFF;

    STICKLINE(涨停,H,L,0,0),COLOR00FFFF;

    非ST跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);

    跌停:=非ST跌停;

    STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;

    STICKLINE(跌停,H,L,0,1),COLORGREEN;

    半涨1:=IF((C-C2)*100/C2>=(5-0.01*100/C2),1,0);

    半涨2:=IF((C-C2)*100/C2<(10-0.01*100/C2),1,0);

    JRS:=半涨1AND半涨2ANDFINANCE(33)>0;

    STICKLINE(JRS,OPEN,CLOSE,2,0),COLOR0066FF;

    STICKLINE(JRS,H,L,0,0),COLOR0066FF;

    NUMBER:=COUNT(非ST涨停,BARSSINCE(非ST涨停)+1);

    DRAWNUMBER(非ST涨停,HIGH*1.04,NUMBER),COLORWHITE;

    DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.30,0.02,0,NUMBER),COLORWHIT

    E;

    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.02,0,'上市以来共涨停

    '),COLORYELLOW;

image.png

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。