股票筹码公式教程 附收集到的“筹码”指标源码
-
相关简介:股票公式筹码教程 附收集到的筹码指标源码 筹码分布的两个函数:获利盘比率winner(x)=n%;和筹码分布cost(n)=x;互为反函数。 如果从不同的角度来描述,可以更清楚的看出它们的意义。 取X=C 即收盘价(当前价),则: 1、winner(c)=n%; 表达的是以收盘价C卖出,而能获利的最大筹码量为流通盘的N%; 2、反过来也同样成立,即:cost(n)=c; 表达的是:使流通盘的n%的筹码 完全获利的最低价为C; 基于这样的理解,我们可以得出几个有意思的公式。这些公式对判断底部有一定
-
文章来源:股海网作者:股海网发布时间:2012-05-19浏览次数:
股票公式筹码教程 附收集到的“筹码”指标源码
筹码分布的两个函数:获利盘比率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的含义是:收盘价C附近(上下各m%)的筹码量(%);
M的取值范围一般为 2~10;
二、获利倍数 cmbcost(n)/cost(0)-1)*100;
cmb的含义是:N%的筹码中的任意一部份,以当前价 卖出时所能得到的最大收益(%);
N的取值范围一般为10~90;
三、盈亏幅度 ykfc/cost(n)-1)*100;
ykf的含义是N%的筹码中的任意一部份 以 当前价 卖出时的最大盈亏幅度(%);
N的取值范围一般为5~10;
需要说明的是:筹码分布是一个统计概念,由于市场的千变万化,人们的交易行为不会只受到一种或几种思维方式的支配,因此不可能仅用一两种模式就能完整地描述市场的真实情况。也就是说 其必然存在着局限性。从实际的情况看这种局限性还非常严重。在使用时仅仅只能做为一种参考。
{筹码低位密集线(飞狐源码)}
x1:POLYLINE(c<COST(50),COST(1)),COLOR008800;
x3:POLYLINE(c<COST(50),COST(3)),COLOR008800;
x5:POLYLINE(c<COST(50),COST(5)),COLOR008800;
x7:POLYLINE(c<COST(50),COST(7)),COLOR008800;
x9:POLYLINE(c<COST(50),COST(9)),COLOR008800;
十:POLYLINE(c<COST(50),COST(10)),POINTDOT,COLOR008800;
x11:POLYLINE(c<COST(50),COST(11)),COLOR66CC00;
x31:POLYLINE(c<COST(50),COST(13)),COLOR66CC00;
x51:POLYLINE(c<COST(50),COST(15)),COLOR66CC00;
x71:POLYLINE(c<COST(50),COST(17)),COLOR66CC00;
x91:POLYLINE(c<COST(50),COST(19)),COLOR66CC00;
二十:POLYLINE(c<COST(50),COST(20)),POINTDOT,COLOR66CC00;
x12:POLYLINE(c<COST(50),COST(21)),COLORff9933;
x32:POLYLINE(c<COST(50),COST(23)),COLORff9933;
x52:POLYLINE(c<COST(50),COST(25)),COLORff9933;
x72:POLYLINE(c<COST(50),COST(27)),COLORff9933;
x92:POLYLINE(c<COST(50),COST(29)),COLORff9933;
三十:POLYLINE(c<COST(50),COST(30)),POINTDOT,COLORff9933;
x13:POLYLINE(c<COST(50),COST(31)),COLOR008800;
x33:POLYLINE(c<COST(50),COST(33)),COLOR008800;
x53:POLYLINE(c<COST(50),COST(35)),COLOR008800;
x73:POLYLINE(c<COST(50),COST(37)),COLOR008800;
x93:POLYLINE(c<COST(50),COST(39)),COLOR008800;
四十:POLYLINE(c<COST(50),COST(40)),POINTDOT,COLOR008800;
x14:POLYLINE(c>0,COST(41)),COLOR33cc00;
x34:POLYLINE(c>0,COST(43)),COLOR33cc00;
x54:POLYLINE(c>0,COST(45)),COLOR33cc00;
x74:POLYLINE(c>0,COST(47)),COLOR33cc00;
x94:POLYLINE(c>0,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(c<o,c,o,9,0),colorffff00;
STICKLINE(c<o,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(CLOSE*1.1)*100;
Var3:= WINNER(CLOSE*0.9)*100;
获利: MA(Var3,N), colorwhite;
STICKLINE(1, 0, 获利, 1, 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)/var3*100>M AND HHV(获利,15)>50;
STICKLINE(var4,-2, 2,10,0),COLORGREEN;
STICKLINE(not(var4),-2, 2,10,0),COLORBLUE;
{筹码统计}
HSL:=EMA(V/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;
{筹码空间}
筹码空间:IF(WINNER(CLOSE),WINNER(CLOSE)*100,20),VOLSTICK;
TX80:80,pointdot coloryellow;
DX20:20,pointdot colorgreen;
Var1:=LLV(LOW,21);
Var2:=HHV(HIGH,21);
K: EMA((CLOSE-Var1)/(Var2-Var1)*100,8),colormagenta ;
D: EMA(0.667*REF(K,1)+0.333*K,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.667*REF(Var5,1)+0.333*K,2);
Var8:=EMA(Var6,5);
Var9:EMA(0.667*REF(Var8,1)+0.333*Var8,2);
{空头筹码多头筹码}
空头筹码:100*(1-WINNER(C)),COLORGREEN,linethick2;
多头筹码:100*WINNER(C),COLORRED,linethick2;
获利平均值:EMA(100*WINNER(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)/获利80*100;
a2:=(获利80-获利20)/获利20*100;
aa3:=(获利20-获利1)/获利1*100;
a4:=IF(a2<10 ,100 ,0 );
a5:=IF(a2<15 ,50 ,0 );
a6:=IF(a2<20 ,25 ,0 );
密集度:a2,colorFF0000,linethick2;
高密集:a4,color0000FF,linethick2;
中密集:a5,colorFF00FF,linethick2;
低密集:a6,color00FF00,linethick2;
{筹码跟踪}
获利筹码:EMA(WINNER(C)*70,5),ColorD98EF1;
亏损筹码:EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5),ColorF3FF00;
stickline(获利筹码<亏损筹码 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:=100*vol/CApitAl;
抄底:If((C-MIN(C0,C1))/C<0.1 AND SUM(DSY,5)/5<1.8,10, 0),Color00FF00;
灾区: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;
筹转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/(V*100/CAPITAL)>0,(WINNER(C)-WINNER(O))*100/(V*100/CAPITAL),0)*100,,COLORCYAN;
IF((WINNER(C)-WINNER(O))*100/(V*100/CAPITAL)<0,(WINNER(C)-WINNER(O))*100*V*100/CAPITAL,0)*100,,COLOR5050FF;
穿越筹码: (WINNER(C)-WINNER(O))*100,POINTDOT;
{个股活筹}
Var1:=SMA(AMOUNT,10,1)/10000000;
Var2:=REF(Var1,1);
AA: STICKLINE(Var1>Var2,Var1,Var2,8,1),COLORRED;
AD: STICKLINE(Var1<Var2,Var1,Var2,8,0),COLORGREEN;
C5: DMA(SMA(Var1,3,1),VOL/0.02/CAPITAL);
C13: DMA(SMA(Var1,5,1),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 ),COLORCYAN;
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/CAPITAL)/CAPITAL;
V4:=V1/V3;
V5:=V2/V3;
STICKLINE(V4>V5 AND 100*WINNER(C)>50,C,O,8,1),coloryellow;
V6:=100*WINNER(C*0.95);
STICKLINE(V6>50 AND COST(85)<C,C,O,8,1),colorred;
STICKLINE(V6>50 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(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 w<10,w*10,0)linethick0,Color00FFFF;
w3:if(w>=0.1 and w<1,w*100,0)linethick0,ColorFFFF00;
w4:if(w>=0.01 and w<0.1,w*1000,0)linethick0,ColorFF80FF;
w5:if(w>=0.001 and w<0.01,w*10000,0)linethick0,colorblue;
w6:if(w>=0.0001 and w<0.001,w*100000,0)linethick0,Color00FF00;
w7:if(w>=0.00001 and w<0.0001,w*1000000,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;
STICKLINE(w5,0,w5,6,1),colorblue;STICKLINE(w6,0,w6,6,1),Color00FF00;
STICKLINE(w7,0,w7,6,1),ColorFF00FF;STICKLINE(w*100=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;
DRAWTEXT(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(w*100=0)=1,0,'8'),Colorred;
{筹码运动}
VAR1:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,1);
主筹:EMA(WINNER(C)*70,1),COLORRED,LINETHICK1;
主筹月均:EMA(主筹,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(VAR3>REF(VAR3,1) AND VAR5<REF(VAR5,1),3)>=2 AND C>O;
量价背离:VAR6*30,STICK,COLORGRAY,LINETHICK2;
{筹码最高值线}
{黄色为最高值 我认为 N=13 或者N=75 比较好
蓝色为布林线看看把最高值改为最低值,将是很好的抄底指标}
input:N(13,13,13);
Var1m:=AMOUNT/(100*v);
日趋势:=MA(Var1m,5);
最高值日日:HHV(日趋势,N),COLORYELLOW,linethick2;
黄日趋势:MA(Var1m,9),COLORYELLOW;
a:=AMOUNT/(100*v);
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+3*STD(BBI,18),COLORBLUE,linethick2;
下轨:BBI-3*STD(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))/Var2*100;
高密: (COST(40)-COST(1))/Var2*100;
赢利: SMA(WINNER(AMOUNT/VOL/99)*100,2,1),COLOR00FF00;
DRAWICON(cross(赢利,单峰),单峰,8);
DRAWICON(cross(赢利,高密),高密,8);
DRAWTEXT(cross(赢利,单峰),单峰*0.9,'突破'),colorblue;
{筹码参考}
FILLRGN(c>1, 100,0),color999999;
KDCM:=100*(1-WINNER(C));
空头筹码:FILLRGN(c>1,KDCM,0),colorCCFF66;
DDCM:=100*WINNER(C);
多头筹码:FILLRGN(c>1,DDCM,0),colorCCCCFF;
获利平均值:EMA(100*WINNER(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)/获利80*100;
a2:=(获利80-获利20)/获利20*100;
aa3:=(获利20-获利1)/获利1*100;
a4:=IF(a2<10 ,100 ,0 );
a5:=IF(a2<15 ,50 ,0 );
a6:=IF(a2<20 ,25 ,0 );
密集度:a2,colorFF0000,linethick2;
高密集:a4,color0000FF,linethick2;
中密集:a5,colorFF00FF,linethick2;
低密集:a6,color00FF00,linethick2;
{活筹指数}
{活筹即增量资金,活筹在熊市中,是把握大盘波段的利器。揭示市场资金的进场与离场是最基本用法,而其相对大盘指数的顶底背离形态,更是判断大判顶底的可靠依据。}
var1:=SMA(AMOUNT,12,1)/10000000;
Var2:=REF(Var1,1);
Var3:=MA(REF(收盘价,1),5);
开:Var1*OPEN/Var3,LINETHICK0;
高:Var1*最高价/Var3,LINETHICK0;
低:Var1*最低价/Var3,LINETHICK0;
收:Var1*收盘价/Var3,LINETHICK0;
P涨跌:(收-REF(收,1))/REF(收,1)*100,LINETHICK0;
stickline(收<=开,收,开,8,0),COLORGREEN;
stickline(收<=开,高,低,0.1,0),COLORGREEN;
stickline(收>=开,收,开,8,1),COLORRED;
stickline(收>=开,收,高,0.1,0),COLORRED;
stickline(收>=开,低,开,0.1,0),COLORRED;
{庄筹筹码集中度.散筹筹码集中度.主力持仓.散户持仓}
主持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),colormagenta linethick2;
散持仓:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORFFAA66,LINETHICK3;
强分界: 80,coloryellow;
庄筹度:WINNER(C)*100 colorred linethick2;
散筹度:(WINNER(C*1.1)-WINNER(C*0.9))*100 colorgreen linethick2;
弱分界: 0,coloryellow;
{筹码转移率}
Var1:=REF(CLOSE,5);
Var2:=REF(WINNER(CLOSE)*100,5);
Var3:=WINNER(Var1)*100;
筹转5: Var2-Var3;
Var4:=REF(CLOSE,10);
Var5:=REF(WINNER(CLOSE)*100,10);
Var6:=WINNER(Var4)*100;
筹转10: Var5-Var6;
Var7:=REF(CLOSE,20);
Var8:=REF(WINNER(CLOSE)*100,20);
Var9:=WINNER(Var7)*100;
筹转20: Var8-Var9;
VarA:=REF(CLOSE,30);
VarB:=REF(WINNER(CLOSE)*100,30);
VarC:=WINNER(VarA)*100;
筹转30: VarB-VarC;
筹码转移率
指南针为我们发明了筹码分布,使我们能很好地看清楚主力的操作动向。我们相关的技术指标有描述高低的,强弱的,趋势的等等好多好多。筹码有一条死的定律,股价向上或向下都会带动筹码的上与下的转移。不同的股上涨同样的幅度,它们的筹码转移的快慢多少是绝对不一样的!
筹码转移率,就是指在单位周期内筹码由一个价位开始向上转移的速度。我以五天为一个时间周期,比如现在股价是十元钱,股价以下也就是十元以下有70%的获利盘。经过五天的上涨,现在股价为十五元,而此时十五元以下十元以上的价格空间拥有了70%的筹码,也就是说在十元钱以下的筹码向上转移走了40%,那么它的筹码转移率就是为40%。它的让人一目了然的数学公式我还没做出来,但我想用语言还是可以说清的。一个股设一个基本的参照日,看此日收盘价位下有多少的筹码,然后再看五天以后此价位下也就是前五天的收盘价之下还有多少的筹码。筹码转移率=X日收盘价之下拥有的筹码-X五日后X日收盘价之下还剩余的筹码,这是它最基本的算法。它基本的算法脱离了涨幅与换手,只看时间周期内筹码转移的变化,我们知道筹码快速从下往上转移一定是大多获利盘有了认为可观的获利空间才会卖出所引起的,股价不大幅上涨没有足够的获利空间多数筹码是不会卖掉的,这是锁仓拉抬时筹码的基本变化,如果主力想出货那筹码必会向上转移,所以看股是否出货我想用这个所谓的指标应可以看出来的。对倒拉抬因为是人为放量所致会引起CYQ的一些失真,但放量对倒拉抬也显示了主力的持仓量不是很大不足以进行锁仓拉抬,之所以这么做是为了吸引人气省些拉抬的成本,而这种股因为持仓不大一有了获利空间在前些天巨量的掩护下出货是很方便的,那么我们用筹码转移率也可以侦察出它的意图。
{浮动筹码}
VAR0:=(2*CLOSE+HIGH+LOW)/4;
VAR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100;
VAR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
B:=EMA((VAR0-LLV(LOW,26))/(HHV(HIGH,34)-LLV(LOW,26))*100,16);
短线:SMA(SMA(VAR2,2,1)+3,2,1),COLORRED;
浮筹:EMA(B,4),LINETHICK2,COLORGREEN;
空方:SMA(VAR1,3,1);
DRAWICON(短线>浮筹,0,10);
DRAWICON(短线<浮筹,0,11);
浮筹1:浮筹+0.5,LINETHICK0;
浮筹2:浮筹+1,LINETHICK0;
浮筹3:浮筹+1.5,LINETHICK0;
浮筹4:浮筹+2,LINETHICK0;