通达信“筹码移动”主图公式
1、目前只能显示3.5-20元之间的统计,你可以添加更多,不知道极限在哪里。
2、这里没有成交量和衰减,只有同等价格,所以,叫“密集交易价格”更合适。
3、比较移动筹码指标会发现,11元的价格出现次数最多,而移动筹码则认为12元才是最热门的(因为加入了成交量)。本人的意图是为了显示这种差异,想看看反复出现的价格是否也有筹码峰同等的魅力。
4、还有诸多问题需要解决,本人没办法了。
谢谢你的关注。
**************************************
参数:n=1
K:STICKLINE(C=C,H,L,3.5,0),COLOR454545;
MJ:=(H+L)/2;
G:=IF(MJ>0 AND MJ<2,ROUND(MJ/(N/5))*(N/5),
IF(MJ>2 AND MJ<5,ROUND(MJ/(N/4))*(N/4),
IF(MJ>=5 AND MJ<20,ROUND(MJ/(N/2))*(N/2),
IF(MJ>=20 AND MJ<100,ROUND(MJ/(N))*(N),
IF(MJ>=100 AND MJ<200,ROUND(MJ/(N*2))*(N*2),
IF(MJ>=200 AND MJ<500,ROUND(MJ/(N*5))*(N*5),
IF(MJ>=500 AND MJ<1000,ROUND(MJ/(N*10))*(N*10),
IF(MJ>=1000 AND MJ<2000,ROUND(MJ/(N*20))*(N*20),
IF(MJ>=2000 AND MJ<5000,ROUND(MJ/(N*50))*(N*50),
IF(MJ>=5000 AND MJ<10000,ROUND(MJ/(N*100))*(N*100),
ROUND(MJ/(N*200))*(N*200))))))))))),COLORGREEN;
ALIGNRIGHT(IF(G=3.5,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=4,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=4.5,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=5,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=5.5,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=6,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=6.5,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=7,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=7.5,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=8,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=8.5,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=9,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=9.5,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=10,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=10.5,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=11,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=11.5,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=12,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=12.5,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=13,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=13.5,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=14,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=14.5,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=15,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=15.5,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=16,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=16.5,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=17,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=17.5,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=18,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=18.5,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=19,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=19.5,G,DRAWNULL)),COLORWHITE;
ALIGNRIGHT(IF(G=20,G,DRAWNULL)),COLORWHITE;