- 小白
-
通达信筹码分布公式:
DRAWBAND(COST(70),RGB(80,0,80),COST(90),RGB(88,8,240));
DRAWBAND(COST(50),RGB(80,60,80),COST(70),RGB(88,68,240));
DRAWBAND(COST(30),RGB(80,120,80),COST(50),RGB(88,128,240));
DRAWBAND(COST(10),RGB(80,190,80),COST(30),RGB(88,188,240));
CBC:COST(90)-COST(10),NODRAW,COLORYELLOW;
(COST(90)+COST(70)+COST(50)+COST(30)+COST(10))/5,DOTLINE;
{彩色K线}:
STICKLINE(C>=O,C,O,2.7,0) ,COLOR102088;
STICKLINE(C>=O,C,O,2.6,0) ,COLOR102099;
STICKLINE(C>=O,C,O,2.2,0) ,COLOR1020AA;
STICKLINE(C>=O,C,O,1.8,0) ,COLOR1020BB;
STICKLINE(C>=O,C,O,1.4,0) ,COLOR1020CC;
STICKLINE(C>=O,C,O,1.0,0) ,COLOR1020DD;
STICKLINE(C>=O,C,O,0.6,0) ,COLOR1020EE;
STICKLINE(C>=O,C,O,0.2,0) ,COLOR1020FF;
STICKLINE(C>=O,H,L,0,1) ,COLOR1020FF;
STICKLINE(C<O,H,L,0,1),COLORCYAN;
STICKLINE(C<O,O,C,2.7,0),COLOR990000;
STICKLINE(C<O,O,C,2,0),COLORCC0000;
STICKLINE(C<O,O,C,1.2,0),COLORFF4400;
STICKLINE(C<O,O,C,0.6,0),COLORFF8800;
STICKLINE(C<O,O,C,0.1,0),COLORFFCC00;
STICKLINE(C<O,O,C,0,0),COLORCYAN;
筹码分布,准确地学术名称应该叫“流通股票持仓成本分布”,基于流通盘是固定的,无论流通筹码在盘中如何分布,累计量必然等于总流通盘。其原理来源于在不同价格区间的成交量,在不同价格最终所形成的分布情况。用于反映不同价位上的整体持仓数量。
扩展资料
筹码的基本构成:
1、 筹码柱:筹码图由一根根长短不一的筹码柱子组成,每一根横向柱子都代表了一个价格,柱子长短就代表了这个价格对应的成交量多少,柱子越长就说明该价格成交 的量越多。
如果股价在某个价位附近长时间停留并且存在着大量成交通常对应的筹码都会非常密集 形成一个小山头状,这种小山头也就是我们经常说的筹码峰了。
2、筹码颜色:红色的筹码是获利盘,蓝色就是套牢盘;红色与黄色交界就是现价。
3、平均成本线:中间黄颜色的线就是目前市场所有持仓者的平均成本线,它是整个成本分布的重点,上图所以,这个平均股价的平均成本就是18.68,股价在这个下面,就说明大部分人都是亏损的。
4、获利比例:就是目前价位的市场获利盘的比例了。获利比例越高就说明越多人处在获利状态。
5、获利盘:任意价位情况下的获利盘的数量
6、90%与70%的区间,就表明市场90%和70%的筹码分布在什么价格区间。
7、集中度:说明筹码的密集程度。数值越高,就表明越分散;反之就越集中
8、筹码乖离率:获利筹码价格与平均成本的远近距离,获利筹码价格在平均价格下面为负乖离,离的越远负乖离就愈大。在上方就是正乖离。
参考资料来源:百度百科-筹码分布
- 风头疯子
-
通达信指标主图显示筹码峰
暂时只能显示如此。可能不尽如人意。希望找到更好的,
TS:=130;N:=99;M:=3;
DA1:=IF(TS>TOTALBARSCOUNT,TOTALBARSCOUNT,TS);
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)) AND C1<(HI/GZ),V,0),DA);
LH3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA);
LH4:=SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA);
LH5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA);
LH6:=SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA);
LH7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA);
LH8:=SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA);
LH9:=SUM(IF(C1>=(LO*GZ) AND C1<LO*POW(GZ,2),V,0),DA);
LH10:=SUM(IF(C1>=LO AND C1<LO*GZ,V,0),DA);
L1:=REFDATE(HHV(LH1,DA),DATE),LINETHICK0;
L2:=REFDATE(HHV(LH2,DA),DATE),LINETHICK0;
L3:=REFDATE(HHV(LH3,DA),DATE),LINETHICK0;
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*N/100,HI/GZ,9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*N/100,HI/POW(GZ,2),9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*N/100,HI/POW(GZ,3),9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*N/100,HI/POW(GZ,4),9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*N/100,HI/POW(GZ,5),9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*N/100,HI/POW(GZ,6),9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*N/100,HI/POW(GZ,7),9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3)*N/100,9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2)*N/100,9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)*N/100,9,0)COLOR252525,LINETHICK1;
DRAWKLINE(H,O,L,C);
参数{TS:1 1000 350/N:1 1000 95}
如果自己喜欢可以修改参数
DA1:=IF(TS>TOTALBARSCOUNT,TOTALBARSCOUNT,TS);
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)/15); {对数格值}
LH1:=SUM(IF(C1>=(HI/GZ),V,0),DA);
LH2:=SUM(IF(C1>=(HI/POW(GZ,2)) AND C1<(HI/GZ),V,0),DA);
LH3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA);
LH4:=SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA);
LH5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA);
LH6:=SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA);
LH7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA);
LH8:=SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA);
LH9:=SUM(IF(C1>=(HI/POW(GZ,9)) AND C1<LO*POW(GZ,7),V,0),DA);
LH10:=SUM(IF(C1>=(LO*POW(GZ,5)) AND C1<LO*POW(GZ,6),V,0),DA);
LH11:=SUM(IF(C1>=(LO*POW(GZ,4)) AND C1<LO*POW(GZ,5),V,0),DA);
LH12:=SUM(IF(C1>=(LO*POW(GZ,3)) AND C1<LO*POW(GZ,4),V,0),DA);
LH13:=SUM(IF(C1>=(LO*POW(GZ,2)) AND C1<LO*POW(GZ,3),V,0),DA);
LH14:=SUM(IF(C1>=(LO*GZ) AND C1<LO*POW(GZ,2),V,0),DA);
LH15:=SUM(IF(C1>=LO AND C1<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);
L11:=REFDATE(HHV(LH11,DA),DATE);
L12:=REFDATE(HHV(LH12,DA),DATE);
L13:=REFDATE(HHV(LH13,DA),DATE);
L14:=REFDATE(HHV(LH14,DA),DATE);
L15:=REFDATE(HHV(LH15,DA),DATE);
SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10+L11+L12+L13+L14+L15);
STICKLINE(CEILING(DA*L1/SS)*3>=CURRBARSCOUNT,
HI*N/100,HI/GZ,0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,
HI/POW(GZ,1)*N/100,HI/POW(GZ,2),0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,
HI/POW(GZ,2)*N/100,HI/POW(GZ,3),0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,
HI/POW(GZ,3)*N/100,HI/POW(GZ,4),0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,
HI/POW(GZ,4)*N/100,HI/POW(GZ,5),0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,
HI/POW(GZ,5)*N/100,HI/POW(GZ,6),0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,
HI/POW(GZ,6)*N/100,HI/POW(GZ,7),0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,7),LO*POW(GZ,8)*N/100,0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,6),LO*POW(GZ,7)*N/100,0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,5),LO*POW(GZ,6)*N/100,0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L11/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,4),LO*POW(GZ,5)*N/100,0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L12/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,3),LO*POW(GZ,4)*N/100,0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L13/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,2),LO*POW(GZ,3)*N/100,0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L14/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,1),LO*POW(GZ,2)*N/100,0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L15/SS)*3>=CURRBARSCOUNT,
LO,LO*POW(GZ,1)*N/100,0.0001,1)COLORA5555A;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
- n投哥
-
通达信指标主图显示筹码峰
暂时只能显示如此。可能不尽如人意。希望找到更好的,
TS:=130;N:=99;M:=3;
DA1:=IF(TS>TOTALBARSCOUNT,TOTALBARSCOUNT,TS);
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),LINETHICK0;
L2:=REFDATE(HHV(LH2,DA),DATE),LINETHICK0;
L3:=REFDATE(HHV(LH3,DA),DATE),LINETHICK0;
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*N/100,HI/GZ,9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*N/100,HI/POW(GZ,2),9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*N/100,HI/POW(GZ,3),9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*N/100,HI/POW(GZ,4),9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*N/100,HI/POW(GZ,5),9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*N/100,HI/POW(GZ,6),9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*N/100,HI/POW(GZ,7),9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3)*N/100,9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2)*N/100,9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)*N/100,9,0)COLOR252525,LINETHICK1;
DRAWKLINE(H,O,L,C);
参数{TS:11000350/N:1100095}
如果自己喜欢可以修改参数
DA1:=IF(TS>TOTALBARSCOUNT,TOTALBARSCOUNT,TS);
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)/15);{对数格值}
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>=(HI/POW(GZ,9))ANDC1<LO*POW(GZ,7),V,0),DA);
LH10:=SUM(IF(C1>=(LO*POW(GZ,5))ANDC1<LO*POW(GZ,6),V,0),DA);
LH11:=SUM(IF(C1>=(LO*POW(GZ,4))ANDC1<LO*POW(GZ,5),V,0),DA);
LH12:=SUM(IF(C1>=(LO*POW(GZ,3))ANDC1<LO*POW(GZ,4),V,0),DA);
LH13:=SUM(IF(C1>=(LO*POW(GZ,2))ANDC1<LO*POW(GZ,3),V,0),DA);
LH14:=SUM(IF(C1>=(LO*GZ)ANDC1<LO*POW(GZ,2),V,0),DA);
LH15:=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);
L11:=REFDATE(HHV(LH11,DA),DATE);
L12:=REFDATE(HHV(LH12,DA),DATE);
L13:=REFDATE(HHV(LH13,DA),DATE);
L14:=REFDATE(HHV(LH14,DA),DATE);
L15:=REFDATE(HHV(LH15,DA),DATE);
SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10+L11+L12+L13+L14+L15);
STICKLINE(CEILING(DA*L1/SS)*3>=CURRBARSCOUNT,
HI*N/100,HI/GZ,0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,
HI/POW(GZ,1)*N/100,HI/POW(GZ,2),0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,
HI/POW(GZ,2)*N/100,HI/POW(GZ,3),0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,
HI/POW(GZ,3)*N/100,HI/POW(GZ,4),0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,
HI/POW(GZ,4)*N/100,HI/POW(GZ,5),0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,
HI/POW(GZ,5)*N/100,HI/POW(GZ,6),0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,
HI/POW(GZ,6)*N/100,HI/POW(GZ,7),0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,7),LO*POW(GZ,8)*N/100,0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,6),LO*POW(GZ,7)*N/100,0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,5),LO*POW(GZ,6)*N/100,0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L11/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,4),LO*POW(GZ,5)*N/100,0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L12/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,3),LO*POW(GZ,4)*N/100,0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L13/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,2),LO*POW(GZ,3)*N/100,0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L14/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,1),LO*POW(GZ,2)*N/100,0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L15/SS)*3>=CURRBARSCOUNT,
LO,LO*POW(GZ,1)*N/100,0.0001,1)COLORA5555A;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
- 黑桃花
-
通达信指标主图显示筹码峰
暂时只能显示如此。可能不尽如人意。希望找到更好的,
TS:=130;N:=99;M:=3;
DA1:=IF(TS>TOTALBARSCOUNT,TOTALBARSCOUNT,TS);
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),LINETHICK0;
L2:=REFDATE(HHV(LH2,DA),DATE),LINETHICK0;
L3:=REFDATE(HHV(LH3,DA),DATE),LINETHICK0;
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*N/100,HI/GZ,9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*N/100,HI/POW(GZ,2),9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*N/100,HI/POW(GZ,3),9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*N/100,HI/POW(GZ,4),9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*N/100,HI/POW(GZ,5),9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*N/100,HI/POW(GZ,6),9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*N/100,HI/POW(GZ,7),9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3)*N/100,9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2)*N/100,9,0)COLOR252525,LINETHICK1;
STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)*N/100,9,0)COLOR252525,LINETHICK1;
DRAWKLINE(H,O,L,C);
参数{TS:11000350/N:1100095}
如果自己喜欢可以修改参数
DA1:=IF(TS>TOTALBARSCOUNT,TOTALBARSCOUNT,TS);
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)/15);{对数格值}
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>=(HI/POW(GZ,9))ANDC1<LO*POW(GZ,7),V,0),DA);
LH10:=SUM(IF(C1>=(LO*POW(GZ,5))ANDC1<LO*POW(GZ,6),V,0),DA);
LH11:=SUM(IF(C1>=(LO*POW(GZ,4))ANDC1<LO*POW(GZ,5),V,0),DA);
LH12:=SUM(IF(C1>=(LO*POW(GZ,3))ANDC1<LO*POW(GZ,4),V,0),DA);
LH13:=SUM(IF(C1>=(LO*POW(GZ,2))ANDC1<LO*POW(GZ,3),V,0),DA);
LH14:=SUM(IF(C1>=(LO*GZ)ANDC1<LO*POW(GZ,2),V,0),DA);
LH15:=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);
L11:=REFDATE(HHV(LH11,DA),DATE);
L12:=REFDATE(HHV(LH12,DA),DATE);
L13:=REFDATE(HHV(LH13,DA),DATE);
L14:=REFDATE(HHV(LH14,DA),DATE);
L15:=REFDATE(HHV(LH15,DA),DATE);
SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10+L11+L12+L13+L14+L15);
STICKLINE(CEILING(DA*L1/SS)*3>=CURRBARSCOUNT,
HI*N/100,HI/GZ,0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,
HI/POW(GZ,1)*N/100,HI/POW(GZ,2),0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,
HI/POW(GZ,2)*N/100,HI/POW(GZ,3),0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,
HI/POW(GZ,3)*N/100,HI/POW(GZ,4),0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,
HI/POW(GZ,4)*N/100,HI/POW(GZ,5),0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,
HI/POW(GZ,5)*N/100,HI/POW(GZ,6),0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,
HI/POW(GZ,6)*N/100,HI/POW(GZ,7),0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,7),LO*POW(GZ,8)*N/100,0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,6),LO*POW(GZ,7)*N/100,0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,5),LO*POW(GZ,6)*N/100,0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L11/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,4),LO*POW(GZ,5)*N/100,0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L12/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,3),LO*POW(GZ,4)*N/100,0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L13/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,2),LO*POW(GZ,3)*N/100,0.1,1)COLORA5555A;
STICKLINE(CEILING(DA*L14/SS)*3>=CURRBARSCOUNT,
LO*POW(GZ,1),LO*POW(GZ,2)*N/100,0.1,1)COLORA7777A;
STICKLINE(CEILING(DA*L15/SS)*3>=CURRBARSCOUNT,
LO,LO*POW(GZ,1)*N/100,0.0001,1)COLORA5555A;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
- 寸头二姐
-
目前免费软件筹码能叠加到主图上的只有一个叫弘历的股票软件,其余的都是收费的。(像指南针什么的筹码都可以叠加在主图上,但是是收费的)。
与其自己编,不如直接下载一个算了,或者你到通达信的论坛上去呼吁一下,也许过一段时间就有了。
别忘了赏分哦!先谢谢了!
看得出来您在股票方面有很高的修养,我也另有一个问题请教,谢谢指导:
通达信深综指在2001年2月5日之后成交量急剧缩小,看得出来应该是数据错误没,重新下载了还是这样,怎么改的准确一些呢?
- 康康map
-
写不出来,对于筹码分布这个工具具体怎么看如果你清楚的话我觉得在右边是可以的。没必要拉到主图上。如果拉到主图上因为筹码分布很远的上方下方都会有人持有。那么只会把K线压缩得很小,让你肉眼无法分辩每天大概的涨幅
- Ntou123
-
分布公式如下:
{筹码分布}
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)) AND C1<(HI/GZ),V,0),DA);
LH3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA);
LH4:=SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA);
LH5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA);
LH6:=SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA);
LH7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA);
LH8:=SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA);
LH9:=SUM(IF(C1>=(LO*GZ) AND C1<LO*POW(GZ,2),V,0),DA);
LH10:=SUM(IF(C1>=LO AND C1<LO*GZ,V,0),DA);
L1:=REFDATE(HHV(LH1,DA),DATE),LINETHICK0;
L2:=REFDATE(HHV(LH2,DA),DATE),LINETHICK0;
L3:=REFDATE(HHV(LH3,DA),DATE),LINETHICK0;
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)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*99/100,HI/POW(GZ,2),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*99/100,HI/POW(GZ,3),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*99/100,HI/POW(GZ,4),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*99/100,HI/POW(GZ,5),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*99/100,HI/POW(GZ,6),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*99/100,HI/POW(GZ,7),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3)*99/100,9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2)*99/100,9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)*99/100,9,0)COLOR3C3C3A,LINETHICK3;
DRAWKLINE(H,O,L,C);
涨停:=IF(REF(C,1)*1.095-C<0.01 ,1,0);
STICKLINE(涨停,OPEN,CLOSE,4,0),COLORMAGENTA;
STICKLINE(涨停,OPEN,CLOSE,3,0),COLORMAGENTA;
DRAWTEXT(涨停,L-0.1,"涨停"),COLORMAGENTA;
C3:=REF(C,1);
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,4,0),COLORBLUE;
STICKLINE(跌停,OPEN,CLOSE,3,0),COLORBLUE;
DRAWTEXT(跌停,H+0.3,"跌停"),COLORBLUE;
N:=20;
N1:=7;
N2:=69;
T1:=IF((DATE<=1341231),1,0);
M3:=EMA(CLOSE,3);
M8:EMA(CLOSE,8),COLOR008000;
M13:EMA(M8,13),COLORWHITE;
M62:EMA(M8,55),COLORF0F000;
VAR1:=EMA(M13,62);
M81:EMA(M62,81),COLOR00FFFF;
M144:EMA(VAR1,144),LINETHICK2,COLOR0000FF;
M250:EMA(VAR1,250),POINTDOT,LINETHICK2,COLORF00FF0;
VAR2:=(CLOSE+HIGH+LOW)/(3);
VAR3:=(EMA(VAR2,10))*(T1);
VAR4:=(REF(VAR3,1))*(T1);
STICKLINE((VAR3>VAR4),VAR3,VAR4,4,0),COLOR00FFFF;
STICKLINE((VAR3<VAR4),VAR3,VAR4,4,0),COLORFF0000;
VAR5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(T1);
VAR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)))*(T1);
DRAWTEXT(CROSS(VAR3,VAR4),(VAR3)*(0.98),"★"),COLOR00FFFF;
DRAWTEXT(CROSS(VAR5,VAR6),(HIGH)*(1.04),"↓卖"),COLOR008000;
VAR7:=REF(CLOSE,1);
VAR8:=((SMA(MAX(CLOSE-VAR7,0),N1,1))/(SMA(ABS(CLOSE-VAR7),N1,1)))*(100);
VAR9:=CROSS(N2,VAR8);
VARA:=(FILTER(VAR9,4))*(T1);
DRAWTEXT(VARA,(HIGH)*(1.04),"↓卖"),COLORFFFFFF;
VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);
VARC:=LLV(LOW,34);
VARD:=HHV(HIGH,34);
VARE:=(EMA(((VARB-VAR1)/(VAR5-VAR1))*(100),7))*(T1);
VARF:=(EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5))*(T1);
DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((VARE>=VARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,"●买进"),COLORFF00FF;
DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6) AND COUNT((VARE>VARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1)),1,0),LOW,"●买进"),COLOR00FFFF;
VAR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(T1);
DRAWTEXT(IF((CLOSE<VAR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,"●抄底"),COLOR0000FF;
B1:=MA(CLOSE,3);
STICKLINE(B1>REF(B1,1),B1,REF(B1,1),3,0),COLORRED;
STICKLINE(B1<REF(B1,1),B1,REF(B1,1),3,0),COLORGREEN;
MID:MA(CLOSE,20),COLORMAGENTA;
UPPER:MID+2*STD(CLOSE,20),COLORRED,DOTLINE;
LOWER:MID-2*STD(CLOSE,20),COLORGREEN,DOTLINE;
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,10);
B:=REF(A,1);
TOWERC:=FORCAST(EMA((3*CLOSE+2*OPEN+HIGH+LOW)/7,3),6);
DIRECTIONMAX:=MAX(REF(TOWERC,1),REF(TOWERC,1));
DIRECTIONMIN:=MIN(REF(TOWERC,1),REF(TOWERC,1));