1、“筹码”指标源码荟萃筹码分布的几个有意思的概念筹码分布的两个函数:获利盘比率winner(x)=n%;和筹码分布cost(n)=x;互为反函数。如果从不同的角度来描述,可以更清楚的看出它们的意义。取X=C 即收盘价(当前价),则:1、winner(c)=n%; 表达的是以收盘价C卖出,而能获利的最大筹码量为流通盘的N%;2、反过来也同样成立,即:cost(n)=c; 表达的是:使流通盘的n%的筹码完全获利的最低价为C;基于这样的理解,我们可以得出几个有意思的公式。这些公式对判断底部有一定的帮助。一、区间集中度 cmjwinner(c*(1+m%)-winner(c*(1-m%)*100;cmj
2、的含义是:收盘价C附近(上下各m%)的筹码量(%);M的取值范围一般为 210;二、获利倍数 cmbcost(n)/cost(0)-1)*100;cmb的含义是:N%的筹码中的任意一部份,以当前价卖出时所能得到的最大收益(%);N的取值范围一般为1090;三、盈亏幅度 ykfc/cost(n)-1)*100;ykf的含义是N%的筹码中的任意一部份以 当前价 卖出时的最大盈亏幅度(%);N的取值范围一般为510;需要说明的是:筹码分布是一个统计概念,由于市场的千变万化,人们的交易行为不会只受到一种或几种思维方式的“筹码”指标源码荟萃http:/ 21:57:16支配,因此不可能仅用一两种模式就能
3、完整地描述市场的真实情况。也就是说其必然存在着局限性。从实际的情况看这种局限性还非常严重。在使用时仅仅只能做为一种参考。筹码低位密集线x1:POLYLINE(cCOST(50),COST(1),COLOR008800;x3:POLYLINE(cCOST(50),COST(3),COLOR008800;x5:POLYLINE(cCOST(50),COST(5),COLOR008800;x7:POLYLINE(cCOST(50),COST(7),COLOR008800;x9:POLYLINE(cCOST(50),COST(9),COLOR008800;十:POLYLINE(cCOST(50),CO
4、ST(10),POINTDOT,COLOR008800;x11:POLYLINE(cCOST(50),COST(11),COLOR66CC00;x31:POLYLINE(cCOST(50),COST(13),COLOR66CC00;x51:POLYLINE(cCOST(50),COST(15),COLOR66CC00;x71:POLYLINE(cCOST(50),COST(17),COLOR66CC00;x91:POLYLINE(cCOST(50),COST(19),COLOR66CC00;二十:POLYLINE(cCOST(50),COST(20),POINTDOT,COLOR66CC00;
5、x12:POLYLINE(cCOST(50),COST(21),COLORff9933;x32:POLYLINE(cCOST(50),COST(23),COLORff9933;x52:POLYLINE(cCOST(50),COST(25),COLORff9933;x72:POLYLINE(cCOST(50),COST(27),COLORff9933;x92:POLYLINE(cCOST(50),COST(29),COLORff9933;三十:POLYLINE(cCOST(50),COST(30),POINTDOT,COLORff9933;x13:POLYLINE(cCOST(50),COST(
6、31),COLOR008800;x33:POLYLINE(cCOST(50),COST(33),COLOR008800;x53:POLYLINE(cCOST(50),COST(35),COLOR008800;x73:POLYLINE(cCOST(50),COST(37),COLOR008800;x93:POLYLINE(cCOST(50),COST(39),COLOR008800;四十:POLYLINE(cCOST(50),COST(40),POINTDOT,COLOR008800;x14:POLYLINE(c0,COST(41),COLOR33cc00;x34:POLYLINE(c0,COS
7、T(43),COLOR33cc00;x54:POLYLINE(c0,COST(45),COLOR33cc00;x74:POLYLINE(c0,COST(47),COLOR33cc00;x94:POLYLINE(c0,COST(49),COLOR33cc00;COST(50),COLORYELLOW,CIRCLEDOT;STICKLINE(c=o,c,o,9,1),colorred;STICKLINE(c=o,l,o,0.1,0),colorred;STICKLINE(c=o,c,h,0.1,0),colorred;STICKLINE(co,c,o,9,0),colorffff00;STICKL
8、INE(co,h,l,0.1,0),colorffff00;“三丰诱空”分解获利盘:WINNER(C)100,COLORRED;二十天获利盘最高:HHV(获利盘,20);乖离:ema(100+获利盘-二十天获利盘最高),3);挖坑线:乖离,linethick2;成本乖离:(c/cost(50)-1)100,linethick1;筹码盈亏input:N(13,13,13),M(5,5,5);Var2:= WINNER(CLOSE1.1)100;Var3:= WINNER(CLOSE0.9)100;获利: MA(Var3,N), colorwhite;STICKLINE(1, 0, 获利, 1,
9、0), colorred;套牢:= 100-MA(Var2,N);STICKLINE(1, 100, MA(Var2,N), 1, 0), colorgreen;HH: 100-套牢,colorwhite;浮动:= MA(Var2,N)-MA(Var3,N);STICKLINE(1, 获利, MA(Var2,N), 1, 0), coloryellow;var4:= (HHV(获利,15)-var3)/var3100M AND HHV(获利,15)50;STICKLINE(var4,-2, 2,10,0),COLORGREEN;STICKLINE(not(var4),-2, 2,10,0),C
10、OLORBLUE;筹码统计HSL:=EMA(V/CAPITAL,3);ZDL:=HHV(HSL,240);ZXL:=LLV(HSL,240);XS:=MA(C,33);锁定筹码:EMA(HSL-ZXL)/ZXLXS,13);浮动筹码:EMA(ZDL-HSL)/HSLXS,13);力量对比:锁定筹码-浮动筹码,COLORSTICK;筹码空间筹码空间:IF(WINNER(CLOSE),WINNER(CLOSE)100,20),VOLSTICK;TX80:80,pointdot coloryellow;DX20:20,pointdot colorgreen;Var1:=LLV(LOW,21);Var
11、2:=HHV(HIGH,21);K: EMA(CLOSE-Var1)/(Var2-Var1)100,8),colormagenta ;D: EMA(0.667REF(K,1)+0.333K,2),coloryellow;Var3:=LLV(LOW,55);Var4:=HHV(HIGH,34);Var5:=EMA(CLOSE-Var3)/(Var4-Var3)100,3);Var6:=(K+Var5)/2;Var7:=EMA(0.667REF(Var5,1)+0.333K,2);Var8:=EMA(Var6,5);Var9:EMA(0.667REF(Var8,1)+0.333Var8,2);空头
12、筹码多头筹码空头筹码:100(1-WINNER(C),COLORGREEN,linethick2;多头筹码:100WINNER(C),COLORRED,linethick2;获利平均值:EMA(100WINNER(C),20),coloryellow,linethick2;获利99 := ma(COST(99 ),5);获利80:=ma(cost(80),5);均线5日:= ma(c,5);获利20:=ma(cost(20),5);获利1 :=ma(cost(1),5);a1:=(获利99-获利80)/获利80100;a2:=(获利80-获利20)/获利20100;aa3:=(获利20-获利1
13、)/获利1100;a4:=IF(a210 ,100 ,0 );a5:=IF(a215 ,50 ,0 );a6:=IF(a220 ,25 ,0 );密集度:a2,colorFF0000,linethick2;高密集:a4,color0000FF,linethick2;中密集:a5,colorFF00FF,linethick2;低密集:a6,color00FF00,linethick2;筹码跟踪获利筹码:EMA(WINNER(C)70,5),ColorD98EF1;亏损筹码:EMA(WINNER(C1.1)-WINNER(C0.9)80,5),ColorF3FF00;stickline(获利筹码亏
14、损筹码 and 亏损筹码60,亏损筹码,55,1,0),ColorF3FF00;stickline(获利筹码亏损筹码,亏损筹码,50,1,0),colorred;主力控筹:If(获利筹码亏损筹码,获利筹码, 0),POINTDOT,colorred;stickline(获利筹码亏损筹码,获利筹码,0,0,0),ColorD98EF1;AI:=AMOUNT/VOL/100;C0:=REF(C,2)0.865;C1:=REF(C,13)0.772;DSY:=100vol/CApitAl;抄底:If(C-MIN(C0,C1)/C0.1 AND SUM(DSY,5)/51.8,10, 0),Color
15、00FF00;灾区:stickline(获利筹码10,亏损筹码,亏损筹码+5,2,0),POINTDOT,ColorFF009D;重灾区:stickline(获利筹码5,亏损筹码,亏损筹码+8,2,0),POINTDOT,Color970000;stickline(抄底,0,30,4,0),Color00FF00;0,ColorFFFFFF;筹码转移V1:=REF(C,5);V2:=REF(WINNER(C)100,5);V3:=WINNER(V1)100;筹转5: V2-V3;V4:=REF(C,10);V5:=REF(WINNER(C)100,10);V6:=WINNER(V4)100;筹
16、转10: V5-V6;V7:=REF(C,20);V8:=REF(WINNER(C)100,20);V9:=WINNER(V7)100;筹转20: V8-V9;VA:=REF(C,30);VB:=REF(WINNER(C)100,30);VC:=WINNER(VA)100;筹转30: VB-VC;/FZ穿越筹码IF(WINNER(C)-WINNER(O)100/(V100/CAPITAL)0,(WINNER(C)-WINNER(O)100/(V100/CAPITAL),0)100,COLORCYAN;IF(WINNER(C)-WINNER(O)100/(V100/CAPITAL)0,(WINN
17、ER(C)-WINNER(O)100V100/CAPITAL,0)100,COLOR5050FF;穿越筹码: (WINNER(C)-WINNER(O)100,POINTDOT;个股活筹Var1:=SMA(AMOUNT,10,1)/10000000;Var2:=REF(Var1,1);AA: STICKLINE(Var1Var2,Var1,Var2,8,1),COLORRED;AD: STICKLINE(Var1Var2,Var1,Var2,8,0),COLORGREEN;C5: DMA(SMA(Var1,3,1),VOL/0.02/CAPITAL);C13: DMA(SMA(Var1,5,1)
18、,VOL/0.1/CAPITAL);C34:DMA(SMA(Var1,8,1),VOL/0.18/CAPITAL);: DMA(Var1,VOL/1.1/CAPITAL);筹码 K线STICKLINE(close=open ,open ,close,8 ,0 ), colormagenta;STICKLINE(close=open,close,HIGH,0.5 ,0 ), colormagenta;STICKLINE(close=open ,open,low,0.5 ,0 ), colormagenta;STICKLINE(open=close,close,open,8,0 ),COLORCY
19、AN;STICKLINE(open=close,close,LOW ,0.5 ,0 ),COLORCYAN;STICKLINE(open=close ,open,HIGH,0.5 ,0),COLORCYAN;成本集中度:(COST(95)-COST(5)/(COST(95)+COST(5)100,LINETHICK0;生命: MA(C,15),coloryellow;顶: COST(95);拉升: COST(75);控盘: COST(30);主力: COST(4);底 : COST(0.05);V1:=WINNER(C);V2:=DMA(V1,V/CAPITAL);V3:=DMA(V,V/CA
20、PITAL)/CAPITAL;V4:=V1/V3;V5:=V2/V3;STICKLINE(V4V5 AND 100WINNER(C)50,C,O,8,1),coloryellow;V6:=100WINNER(C0.95);STICKLINE(V650 AND COST(85)C,C,O,8,1),colorred;STICKLINE(V650 AND COST(85)C,C,O,2.5,0),colorred;筹码量级w:sma(winner(c),3,1)100linethick1,ColorFF8080;sma(winner(c),10,1)100,Colorgreen;PARTLINE(
21、1,100),ColorFF8080,SHIFT6;PARTLINE(1,1),ColorFF8080,SHIFT6;PARTLINE(1,50),ColorFF8080,SHIFT6;w1:if(w=10,w,0)linethick0,ColorFFFFFF;w2:if(w=1 and w10,w10,0)linethick0,Color00FFFF;w3:if(w=0.1 and w1,w100,0)linethick0,ColorFFFF00;w4:if(w=0.01 and w0.1,w1000,0)linethick0,ColorFF80FF;w5:if(w=0.001 and w0
22、.01,w10000,0)linethick0,colorblue;w6:if(w=0.0001 and w0.001,w100000,0)linethick0,Color00FF00;w7:if(w=0.00001 and w0.0001,w1000000,0)linethick0,ColorFF00FF;STICKLINE(w1,0,w1,0.1,1),ColorFFFFFF;STICKLINE(w2,0,w2,3,1),Color00FFFF;STICKLINE(w3,0,w3,3,1),ColorFFFF00;STICKLINE(w4,0,w4,6,1),ColorFF80FF;STI
23、CKLINE(w5,0,w5,6,1),colorblue;STICKLINE(w6,0,w6,6,1),Color00FF00;STICKLINE(w7,0,w7,6,1),ColorFF00FF;STICKLINE(w100=0,0,36,8,1),Colorred;PARTLINE(w1,w1),ColorFFFFFF;DRAWTEXT(barslast(w1=0)=1,0,1),ColorFFFFFF;DRAWTEXT(barslast(w2=0)=1,0,2),Color00FFFF;DRAWTEXT(barslast(w3=0)=1,0,3),ColorFFFF00;DRAWTEX
24、T(barslast(w4=0)=1,0,4),ColorFF80FF;DRAWTEXT(barslast(w5=0)=1,0,5),colorblue;DRAWTEXT(barslast(w6=0)=1,0,6),Color00FF00;DRAWTEXT(barslast(w7=0)=1,0,7),ColorFF00FF;DRAWTEXT(barslast(w100=0)=1,0,8),Colorred;筹码运动VAR1:=EMA(WINNER(C1.1)-WINNER(C0.9)80,1);主筹:EMA(WINNER(C)70,1),COLORRED,LINETHICK1;主筹月均:EMA
25、(主筹,21),COLORWHITE;主筹长期成本:EMA(EMA(主筹,5),89),color009500;筹差值:VAR1-主筹,COLORYELLOW;VAR2:=IF(C=O,H,0);VAR3:=IF(C=O,REF(H,1),VAR2);VAR4:=IF(C=O,V,0);VAR5:=IF(C=O,REF(V,1),VAR4);VAR6:=COUNT(VAR3REF(VAR3,1) AND VAR5REF(VAR5,1),3)=2 AND CO;量价背离:VAR630,STICK,COLORGRAY,LINETHICK2;筹码最高值线黄色为最高值我认为 N=13 或者N=75 比
26、较好蓝色为布林线看看把最高值改为最低值,将是很好的抄底指标input:N(13,13,13);Var1m:=AMOUNT/(100v);日趋势:=MA(Var1m,5);最高值日日:HHV(日趋势,N),COLORYELLOW,linethick2;黄日趋势:MA(Var1m,9),COLORYELLOW;a:=AMOUNT/(100v);a1:=ma(a,3);a21:=ma(a,6);a31:=ma(a,12);a41:=ma(a,24);BBI:=(a1+a21+a31+a41)/4;a11:=ema(a,3);上轨:BBI+3STD(BBI,18),COLORBLUE,linethic
27、k2;下轨:BBI-3STD(BBI,18),COLORBLUE,linethick2;趋势:MA(Var1m,135);筹码密集Var1:=COST(89)-COST(11);Var2:=COST(99.9)-COST(0.1);单峰:(1-Var1/Var2)100;低密:=(COST(90)-COST(60)/Var2100;高密: (COST(40)-COST(1)/Var2100;赢利: SMA(WINNER(AMOUNT/VOL/99)100,2,1),COLOR00FF00;DRAWICON(cross(赢利,单峰),单峰,8);DRAWICON(cross(赢利,高密),高密,
28、8);DRAWTEXT(cross(赢利,单峰),单峰0.9,突破),colorblue;筹码参考FILLRGN(c1, 100,0),color999999;KDCM:=100(1-WINNER(C);空头筹码:FILLRGN(c1,KDCM,0),colorCCFF66;DDCM:=100WINNER(C);多头筹码:FILLRGN(c1,DDCM,0),colorCCCCFF;获利平均值:EMA(100WINNER(C),20),coloryellow,linethick2;获利99 := ma(COST(99 ),5);获利80:=ma(cost(80),5);均线5日:= ma(c,5);获利20:=ma(cost(20),5);获利1 :=ma(cost(1),5);a1:=(获利99-获利80)/获利80100;a2:=(获利80-获利20)/获利20100;aa3:=(获利20-获利1)/获利1100;