加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

通达信神奇指标为你保驾护航(七)筹码突破

(2017-04-30 19:08:36)
分类: 股市乐园
(七)筹码突破
{筹码突破主图}
HB:=COST(99.9);LB:=COST(0.1);
B3:=(HB-LB)/50;B31:=HB-B3;B32:=HB-2*B3;B33:=HB-3*B3;
B34:=HB-4*B3;B35:=HB-5*B3;B36:=HB-6*B3;B37:=HB-7*B3;B38:=HB-8*B3;B39:=HB-9*B3;
B310:=HB-10*B3;B311:=HB-11*B3;B312:=HB-12*B3;B313:=HB-13*B3;B314:=HB-14*B3;
B315:=HB-15*B3;B316:=HB-16*B3;B317:=HB-17*B3;B318:=HB-18*B3;B319:=HB-19*B3;
B320:=HB-20*B3;B321:=HB-21*B3;B322:=HB-22*B3;B323:=HB-23*B3;B324:=HB-24*B3;
B325:=HB-25*B3;B326:=HB-26*B3;B327:=HB-27*B3;B328:=HB-28*B3;B329:=HB-29*B3;
B330:=HB-30*B3;B331:=HB-31*B3;B332:=HB-32*B3;B333:=HB-33*B3;B334:=HB-34*B3;
B335:=HB-35*B3;B336:=HB-36*B3;B337:=HB-37*B3;B338:=HB-38*B3;B339:=HB-39*B3;
B340:=HB-40*B3;B341:=HB-41*B3;B342:=HB-42*B3;B343:=HB-43*B3;B344:=HB-44*B3;
B345:=HB-45*B3;B346:=HB-46*B3;B347:=HB-47*B3;B348:=HB-48*B3;B349:=HB-49*B3;
A1:=WINNER(HB)*100-WINNER(B31)*100;
A2:=WINNER(B31)*100-WINNER(B32)*100;
A3:=WINNER(B32)*100-WINNER(B33)*100;
A4:=WINNER(B33)*100-WINNER(B34)*100;
A5:=WINNER(B34)*100-WINNER(B35)*100;
A6:=WINNER(B35)*100-WINNER(B36)*100;
A7:=WINNER(B36)*100-WINNER(B37)*100;
A8:=WINNER(B37)*100-WINNER(B38)*100;
A9:=WINNER(B38)*100-WINNER(B39)*100;
A10:=WINNER(B39)*100-WINNER(B310)*100;
A11:=WINNER(B310)*100-WINNER(B311)*100;
A12:=WINNER(B311)*100-WINNER(B312)*100;
A13:=WINNER(B312)*100-WINNER(B313)*100;
A14:=WINNER(B313)*100-WINNER(B314)*100;
A15:=WINNER(B314)*100-WINNER(B315)*100;
A16:=WINNER(B315)*100-WINNER(B316)*100;
A17:=WINNER(B316)*100-WINNER(B317)*100;
A18:=WINNER(B317)*100-WINNER(B318)*100;
A19:=WINNER(B318)*100-WINNER(B319)*100;
A20:=WINNER(B319)*100-WINNER(B320)*100;
A21:=WINNER(B320)*100-WINNER(B321)*100;
A22:=WINNER(B321)*100-WINNER(B322)*100;
A23:=WINNER(B322)*100-WINNER(B323)*100;
A24:=WINNER(B323)*100-WINNER(B324)*100;
A25:=WINNER(B324)*100-WINNER(B325)*100;
A26:=WINNER(B325)*100-WINNER(B326)*100;
A27:=WINNER(B326)*100-WINNER(B327)*100;
A28:=WINNER(B327)*100-WINNER(B328)*100;
A29:=WINNER(B328)*100-WINNER(B329)*100;
A30:=WINNER(B329)*100-WINNER(B330)*100;
A31:=WINNER(B330)*100-WINNER(B331)*100;
A32:=WINNER(B331)*100-WINNER(B332)*100;
A33:=WINNER(B332)*100-WINNER(B333)*100;
A34:=WINNER(B333)*100-WINNER(B334)*100;
A35:=WINNER(B334)*100-WINNER(B335)*100;
A36:=WINNER(B335)*100-WINNER(B336)*100;
A37:=WINNER(B336)*100-WINNER(B337)*100;
A38:=WINNER(B337)*100-WINNER(B338)*100;
A39:=WINNER(B338)*100-WINNER(B339)*100;
A40:=WINNER(B339)*100-WINNER(B340)*100;
A41:=WINNER(B340)*100-WINNER(B341)*100;
A42:=WINNER(B341)*100-WINNER(B342)*100;
A43:=WINNER(B342)*100-WINNER(B343)*100;
A44:=WINNER(B343)*100-WINNER(B344)*100;
A45:=WINNER(B344)*100-WINNER(B345)*100;
A46:=WINNER(B345)*100-WINNER(B346)*100;
A47:=WINNER(B346)*100-WINNER(B347)*100;
A48:=WINNER(B347)*100-WINNER(B348)*100;
A49:=WINNER(B348)*100-WINNER(B349)*100;
A50:=WINNER(B349)*100-WINNER(LB)*100;
STICKLINE(ISLASTBAR,HB ,HB ,A1*50 ,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B31 ,B31 ,A1*50 ,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B32 ,B32 ,A2*50 ,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B33 ,B33 ,A3*50 ,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B34 ,B34 ,A4*50 ,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B35 ,B35 ,A5*50 ,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B36 ,B36 ,A6*50 ,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B37 ,B37 ,A7*50 ,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B38 ,B38 ,A8*50 ,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B39 ,B39 ,A9*50 ,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B310,B310,A10*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B311,B311,A11*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B312,B312,A12*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B313,B313,A13*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B314,B314,A14*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B315,B315,A15*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B316,B316,A16*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B317,B317,A17*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B318,B318,A18*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B319,B319,A19*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B320,B320,A20*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B321,B321,A21*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B322,B322,A22*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B323,B323,A23*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B324,B324,A24*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B325,B325,A25*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B326,B326,A26*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B327,B327,A27*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B328,B328,A28*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B329,B329,A29*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B330,B330,A30*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B331,B331,A31*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B332,B332,A32*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B333,B333,A33*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B334,B334,A34*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B335,B335,A35*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B336,B336,A36*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B337,B337,A37*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B338,B338,A38*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B339,B339,A39*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B340,B340,A40*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B341,B341,A41*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B342,B342,A42*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B343,B343,A43*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B344,B344,A44*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B345,B345,A45*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B346,B346,A46*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B347,B347,A47*50,0 ),COLORGRAY;
STICKLINE(ISLASTBAR,B348,B348,A48*50,0),COLORGRAY;
STICKLINE(ISLASTBAR,LB,LB,A50*50,0),COLORGRAY;
当前获利筹码:IF(WINNER(CLOSE),WINNER(CLOSE)*100,0),NODRAW;
DIFF:=(EMA(CLOSE,7)-EMA(CLOSE,19)); 
DEA:=EMA(DIFF,9); 
MACD:=0.90*(DIFF-DEA); 
TJ:=(DIFF>=DEA); 
TJ1:=(DIFF>=0); 
STICKLINE(TJ,H,L,0.4,0),COLORYELLOW; 
STICKLINE(TJ,O,C,3.6,1),COLOR00BBFF; 
STICKLINE(TJ,O,C,3.2,1),COLOR00AAFF; 
STICKLINE(TJ,O,C,2.7,1),COLOR00CCFF; 
STICKLINE(TJ,O,C,2.2,1),COLOR00DDFF; 
STICKLINE(TJ,O,C,1.5,1),COLOR55FFFF; 
STICKLINE(TJ,O,C,0.5,1),COLOR99FFFF; 
STICKLINE(TJ1 AND TJ,H,L,0.4,0),COLORF00FF0; 
STICKLINE(TJ1 AND TJ,O,C,3.6,1),COLORFF44FF; 
STICKLINE(TJ1 AND TJ,O,C,3.2,1),COLORFF55FF; 
STICKLINE(TJ1 AND TJ,O,C,2.7,1),COLORFF77FF; 
STICKLINE(TJ1 AND TJ,O,C,2.2,1),COLORFF99FF; 
STICKLINE(TJ1 AND TJ,O,C,1.5,1),COLORFFAAFF; 
STICKLINE(TJ1 AND TJ,O,C,0.5,1),COLORFFBBFF; 
STICKLINE(DIFF
STICKLINE(DIFF
STICKLINE(DIFF
STICKLINE(DIFF
STICKLINE(DIFF
STICKLINE(DIFF
STICKLINE(DIFF
VAR1:=(CLOSE*2+HIGH+LOW)/4; 
SK:=EMA(VAR1,13)-EMA(VAR1,73); 
SD:=EMA(SK,2); 
SJ:=(CROSS(SK,SD) AND SK<-0.04 AND(C-REF(C,1))/REF(C,1)>=0.03)OR(CROSS(SK,SD) 
AND SK<=-0.14)OR(CROSS(SK,SD)AND SK<=0.05 AND(V/MA(V,5)>2 OR C/REF(C,1)>0.035)); 
STICKLINE(SJ,O,C,4,0),COLOR2222AA; 
STICKLINE(SJ,O,C,3,0),COLOR3333CC; 
STICKLINE(SJ,O,C,2,0),COLOR4444DD; 
STICKLINE(SJ,O,C,1,0),COLOR5555EE; 
STICKLINE(SJ,H,L,0.5,0),COLOR6666FF; 
A:=C+0.05>=(ROUND(REF(C,1)*(100+10*(2-(NAMELIKE('ST')OR NAMELIKE('*ST')))/2))/100);
B:=C-0.05<=(ROUND(REF(C,1)*(100-10*(2-(NAMELIKE('ST')OR NAMELIKE('*ST')))/2))/100);
STICKLINE(A AND C=O,H,L,0.4,0),COLORYELLOW;
STICKLINE(B AND C=O,H,L,0.4,0),COLORBLUE;
涨停:STICKLINE(A,C,O,1,0),COLORWHITE;
跌停:STICKLINE(B,C,O,1,0),COLORGREEN;
倍量:=VOL>=REF(V,1)*1.91 AND C>O;
缩量:=REF(V,1)>=VOL*1.91 AND C
STICKLINE(倍量,O,(C+O)*0.5,0.1,0),COLORCYAN;
STICKLINE(缩量,O,(C+O)*0.5,0.1,0),COLORWHITE;
筹码价位低:=COST(0.001);
筹码价位2:=COST(0.001)+(COST(99.999)-COST(0.001))/20*2;
筹码价位4:=COST(0.001)+(COST(99.999)-COST(0.001))/20*4;
筹码价位6:=COST(0.001)+(COST(99.999)-COST(0.001))/20*6;
筹码价位8:=COST(0.001)+(COST(99.999)-COST(0.001))/20*8;
筹码价位10:=COST(0.001)+(COST(99.999)-COST(0.001))/20*10;
筹码价位12:=COST(0.001)+(COST(99.999)-COST(0.001))/20*12;
筹码价位14:=COST(0.001)+(COST(99.999)-COST(0.001))/20*14;
筹码价位16:=COST(0.001)+(COST(99.999)-COST(0.001))/20*16;
筹码价位18:=COST(0.001)+(COST(99.999)-COST(0.001))/20*18;
筹码价位高:=COST(99.999);
区间最大筹码:=MAX(MAX(MAX(MAX(MAX(WINNER(筹码价位2)-WINNER(筹码价位低),WINNER(筹码价位4)-WINNER(筹码价位2)),
MAX(WINNER(筹码价位6)-WINNER(筹码价位4),WINNER(筹码价位8)-WINNER(筹码价位6))),
MAX(WINNER(筹码价位10)-WINNER(筹码价位8),WINNER(筹码价位12)-WINNER(筹码价位10))),
MAX(WINNER(筹码价位14)-WINNER(筹码价位12),WINNER(筹码价位16)-WINNER(筹码价位14))),
MAX(WINNER(筹码价位18)-WINNER(筹码价位16),WINNER(筹码价位高)-WINNER(筹码价位18)));
筹码密集均价:=IF(区间最大筹码=WINNER(筹码价位2)-WINNER(筹码价位低),(筹码价位2+筹码价位低)/2,
IF(区间最大筹码=WINNER(筹码价位4)-WINNER(筹码价位2),(筹码价位4+筹码价位2)/2,
IF(区间最大筹码=WINNER(筹码价位6)-WINNER(筹码价位4),(筹码价位6+筹码价位4)/2,
IF(区间最大筹码=WINNER(筹码价位8)-WINNER(筹码价位6),(筹码价位8+筹码价位6)/2,
IF(区间最大筹码=WINNER(筹码价位10)-WINNER(筹码价位8),(筹码价位10+筹码价位8)/2,
IF(区间最大筹码=WINNER(筹码价位12)-WINNER(筹码价位10),(筹码价位12+筹码价位10)/2,
IF(区间最大筹码=WINNER(筹码价位14)-WINNER(筹码价位12),(筹码价位14+筹码价位12)/2,
IF(区间最大筹码=WINNER(筹码价位16)-WINNER(筹码价位14),(筹码价位16+筹码价位14)/2,
IF(区间最大筹码=WINNER(筹码价位18)-WINNER(筹码价位16),(筹码价位18+筹码价位16)/2,
(筹码价位高+筹码价位18)/2)))))))));
顶:MA(筹码密集均价,1),COLORRED,LINETHICK2; 
VAR2:=HHV(HIGH,70);
底:VAR2*0.83,LINETHICK2,COLORGREEN;
MA10:=MA(CLOSE,10),COLORYELLOW,LINETHICK0;
MA54:=MA(CLOSE,54),COLORFFCCCC,LINETHICK0;
PL1:=(((CLOSE-MA54)/MA54)<0.1);
PL2:=(((CLOSE-MA10)/MA10)<0.3);
偏离率:=(((PL1=1)AND (PL2=1))*0.2);
平台突破:=((((偏离率=0)AND(REF(偏离率,1)=0.2))AND(REF((COUNT((偏离率=0.2),10)=10),1)=1))*1);
DRAWTEXT(平台突破,L,'=================='),COLORRED;
DRAWTEXT(ISLASTBAR,顶,'===顶'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,底,'===底'),COLORCYAN;
止损:STICKLINE(ISLASTBAR,HHV(C,5)*0.97-0.01,HHV(C,5)*0.97,50,0),COLORWHITE;
DRAWTEXT(ISLASTBAR,HHV(C,5)*0.95,'止损'),COLORWHITE;
DRAWTEXT_FIX(1,0.00,0.05,0,'获利比例:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.07,0.05,0,CONST(WINNER(C )*100)),COLORWHITE;
DRAWTEXT_FIX(1,0.13,0.05,0,'动态PE:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.19,0.05,0,CONST(DYNAINFO(39))),COLORWHITE;
DRAWTEXT_FIX(1,0.26,0.05,0,'现金流(股):'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.33,0.05,0,FINANCE(25)/FINANCE(7)),COLORWHITE;
DRAWTEXT_FIX (1,0.38,0.05,0,'公积金(股):'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.45,0.05,0,FINANCE(18)),COLORWHITE;
DRAWTEXT_FIX (1,0.50,0.05,0,'未分配利润(股):'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.59,0.05,0,FINANCE(32)),COLORWHITE;


附图:
{看筹码}
获利筹码:EMA(WINNER(C)*70,5),COLORD98EF1;
亏损筹码:EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5),COLORF3FF00;
STICKLINE(获利筹码<亏损筹码 AND 亏损筹码<60,亏损筹码,70,0,-1),COLORF3FF00;
STICKLINE(获利筹码>亏损筹码,亏损筹码,获利筹码,0,-1),COLORMAGENTA;
主力控筹:IF(获利筹码>亏损筹码,获利筹码,0),POINTDOT,COLORYELLOW;
STICKLINE(获利筹码<亏损筹码,获利筹码,0,0,-1),COLORYELLOW;
灾区:获利筹码<10,COLORGREEN;
重灾区:获利筹码<5,COLORBLUE;
STICKLINE(灾区,亏损筹码,亏损筹码+15,0.01,1),COLORGREEN;
STICKLINE(重灾区,亏损筹码,亏损筹码+7,0.01,0),COLORBLUE;
VAR3:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,25);
VAR5:=HHV(HIGH,34);
趋势:EMA((VAR3-VAR4)/(VAR5-VAR4)*100,7),LINETHICK3,COLORWHITE;
CS:=MA(趋势,2),COLORRED;
减仓:CROSS(CS,趋势)AND 趋势>=60,NODRAW,COLORCYAN;
逃顶:CROSS(CS,趋势)AND 趋势>=85,NODRAW,COLORYELLOW;
DRAWICON(减仓 AND 逃顶!=1,趋势,2),COLORGREEN;
DRAWICON(逃顶,趋势,15),COLORGREEN;
AI:=AMOUNT/VOL/100;
C0:=REF(C,2)*0.865;
C1:=REF(C,13)*0.772;
DSY:=100*VOL/CAPITAL;
抄底:IF(CROSS(趋势,CS)AND 重灾区 AND 趋势<17,20,0),LINETHICK4,COLORMAGENTA;
买入:IF(CROSS(趋势,CS)AND 趋势<35 AND 抄底<5,31,0),COLORRED,LINETHICK2;
选股:(抄底 OR 买入),NODRAW,COLORWHITE;



{筹码分析}
DRAWTEXT_FIX(ISLASTBAR,0,0,0,ZDBLOCK),COLORWHITE;
HSL:=EMA(V/CAPITAL,3);
ZDL:=HHV(HSL,240);
ZXL:=LLV(HSL,240);
XS:=MA(C,34);
MA5:=EMA(C,5);
MA10:=EMA(C,10);
牛熊线:=(EMA(CLOSE,34)+EMA(CLOSE,72))/2,LINETHICK2,COLORGREEN;
锁定筹码:EMA((HSL-ZXL)/ZXL*XS,13),LINETHICK2,COLORMAGENTA;
浮动筹码:EMA((ZDL-HSL)/HSL*XS,13),LINETHICK2,COLORWHITE;
力量对比:锁定筹码-浮动筹码,COLORSTICK,COLORCYAN;
浮筹比率:(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100,COLORRED,NODRAW;
A:=100*V/CAPITAL;
B:=100*(WINNER(C)-REF(WINNER(C),1));
筹码通透性:B/A,VOLSTICK,NODRAW;
筹码穿透率:100*(WINNER(C)-REF(WINNER(C),4))/10*MA(A,5),NODRAW,COLORYELLOW;
介入点:=ABS(力量对比<=-9);
买:IF(介入点 AND 锁定筹码<20,100,0),COLORGREEN;
XG:=(CROSS(锁定筹码,3.01)OR CROSS(锁定筹码,浮动筹码));
XG1:=(CROSS(锁定筹码,10)OR CROSS(浮动筹码,锁定筹码))AND L<=牛熊线;
XG2:=CROSS(浮动筹码,锁定筹码)AND 力量对比<0 ;
DRAWICON(XG,锁定筹码,5);
DRAWICON(XG1,锁定筹码,9);
DRAWICON(XG2,锁定筹码,23);
选股:买 AND (XG OR XG1 OR XG2),COLORWHITE,NODRAW;



{看获利}
获利筹码:EMA(WINNER(C)*70,2)*2,COLORD98EF1;
亏损筹码:EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,2)*1.5,COLORF3FF00;
STICKLINE(获利筹码>亏损筹码,获利筹码,亏损筹码,0,-1),COLORRED;
STICKLINE(亏损筹码>获利筹码,亏损筹码,获利筹码,0,-1),COLORGREEN;
获利比:((WINNER(CLOSE))*(130)),COLORYELLOW;
获利小于50:获利比<=50,COLORRED,NODRAW;
VARA:=EMA((0.667)*(REF(获利比,1))+(0.333)*(获利比),2);
STICKLINE((获利比>VARA),获利比,VARA,2,0),COLOR00FFFF;
STICKLINE((获利比
高位:=PEAKBARS(获利比,30,1)<1;
低位:=TROUGHBARS(获利比,90,1)<1;
B1:=((获利比>VARA)=1);
XG:=(B1>REF(B1,1)) AND (获利比<=40) AND 低位<1;
DRAWICON(XG,(获利比)*0.5,1);
选股:XG,COLOR00FFFF,NODRAW;
DRAWICON(高位 AND 获利比>40,(获利比)*1.05,2);


0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有