“筹码”指标源码荟萃
主力散户筹码通达信指标公式源码
主⼒散户筹码通达信指标公式源码主⼒散户筹码指标,主⼒散户动向⼀⽬了然弱势区:20,LINETHICK2,COLORGREEN;强弱分⽔岭:50,LINETHICK2,COLORWHITE;强势区:80,LINETHICK2,COLORRED;风险区:95,LINETHICK2,COLORLICYAN;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);⽀撑:REFDATE(V2,DATE),COLORYELLOW,NODRAW;阻⼒:REFDATE(V3,DATE),COLORYELLOW,NODRAW;主⼒:EMA(100*(CLOSE-LLV (LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3), COLORRED,LINETHICK2;⾛势:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA(( CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORYELLOW;主⼒筹码集中度:WINNER(C)*100 ,COLORLIMAGENTA,LINETHICK1;M:=60;散户:100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))COLORGREEN,LINETHICK1,DOTLINE;散户筹码集中度:(WINNER(C*1.1)-WINNER(C*0.9))*100,COLORLICYAN,LINETHICK1,DOTLINE;主⼒换⼿率:100*VOL/CAPITAL,NODRAW,COLORLIGREEN;主⼒筹码估算:EMA(WINNER(CLOSE)*70,3),NODRAW;散户筹码估算:EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3),NODRAW;散户套牢⽐率:散户筹码估算/(主⼒筹码估算+散户筹码估算)*100,NODRAW;主⼒控盘⽐率:主⼒筹码估算/(主⼒筹码估算+散户筹码估算)*100,NODRAW;市场总量:=MA(主⼒筹码估算+散户筹码估算,13),COLORGREEN,LINETHICK2;筹码总量:=IF(市场总量>REF(市场总量,1),市场总量,DRAWNULL),COLORWHITE,LINETHICK2;DRAWRECTREL(0,0,220,650,RGB(01,000,000));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.0,0, '主⼒:'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.0,0,'%'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.0,0,主⼒),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.08,0, '⾛势:'),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.08,0,'%'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.08,0,⾛势),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.24,0, '主⼒换⼿率:'),COLORLIGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.24,0, '%'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.24,0,主⼒换⼿率),COLORLIGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.32,0,'散户:'),COLORGRAY; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.32,0, '%'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.32,0,散户),COLORGRAY; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.40,0,'⽀撑:'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.40,0, '¥'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.40,0,⽀撑),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.48,0,'阻⼒:'),COLORLICYAN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.48,0, '¥'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.48,0,阻⼒),COLORLICYAN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.0,0, '主⼒筹码集中度:'),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.0,0, ' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.0,0,主⼒筹码集中度),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.08,0, '主⼒控盘⽐率:'),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.08,0, ' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.08,0,主⼒控盘⽐率),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.16,0, '主⼒筹码估算:'),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.16,0,' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.16,0,主⼒筹码估算),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.32,0, '散户套牢⽐率:'),COLORLICYAN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.32,0,' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.32,0,散户套牢⽐率),COLORLICYAN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.40,0, '散户筹码集中度:'),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.40,0, ' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.40,0,散户筹码集中度),COLORGREEN;。
通达信指标公式源码主力筹码进出
通达信指标公式源码主力筹码进出 本指标陪伴本人多年,在股灾中也嫩赚钱 {筹码进出} vur0:=(2*o+h+l+3*c)/7; vur1:=capital*vur0; vur2:=sma(amount,10,1)/1000; vur3:=ma(c*3,5); vur4:=vur2*c*3/vur3*1/10; vur5:=vur2*o*3/vur3*1/10; vur6:=vur2*h*3/vur3*1/10; vur7:=vur2*l*3/vur3*1/10; vur8:=(2*vur5+vur6+vur7+3*vur4)/7; vur9:=dma(ema(vur4,2),sum(v,1)*vur8); vur10:=ema(vur9,2); vura:=vur9>vur10; vurb:=ema(vur1-vur9,1); vurc:=ref(vurb,1); vurd:=vurb>vurc; vurs:=vurd and c>o; vure:=(vurb-vurc)*15; vurf:=(vur9-vur10)*15000; vurg:=(vurc-vurb)*(-1); vurh:=if(vurb>vurc,vure/1000,0); vurn:=if(vurb 吐出量:vurn,pointdot,colorgreen; 买进强烈:vurt,pointdot,coloryellow; 减筹打压:vurl,pointdot,colorfff516; stickline(vurb>vurc,0,vure,3,1),colorred; stickline(vurb
通达信指标公式源码主力筹码进出
本指标陪伴本人多年,在股灾中也嫩赚钱 {筹码进出} VUR0:=(2*O+H+L+3*C)/7; VUR1:=CAPITAL*VUR0; VUR2:=SMA(AMOUNT,10,1)/1000; VUR3:=MA(C*3,5); VUR4:=VUR2*C*3/VUR3*1/10; VUR5:=VUR2*O*3/VUR3*1/10; VUR6:=VUR2*H*3/VUR3*1/10; VUR7:=VUR2*L*3/VUR3*1/10; VUR8:=(2*VUR5+VUR6+VUR7+3*VUR4)/7; VUR9:=DMA(EMA(VUR4,2),SUM(V,1)*VUR8); VUR10:=EMA(VUR9,2); VURA:=VUR10; VURB:=EMA(VUR1-VUR9,1); VURC:=REF(VURB,1); VURD:=VURB>VURC; VURS:=VURD AND C>O; VURE:=(VURB-VURC)*15; VURF:=(VUR9-VUR10)*15000; VURG:=(VURC-VURB)*(-1); VURH:=IF(VURB>VURC,VURE/1000,0); VURN:=IF(VURB 吐出量:VURN,POINTDOT,COLORGREEN; 买进强烈:VURT,POINTDOT,COLORYELLOW; 减筹打压:VURL,POINTDOT,COLORFFF516; STICKLINE(VURB>VURC,0,VURE,3,1),COLORRED; STICKLINE(VURB
筹码峰通达信指标公式源码
HB:=COST(99.3);LB:=COST(0.2);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*B 3;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*B 3;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*B 3;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*B 3;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)*10 0;A9:=WINNER(B38)*100-WINNER(B39)*100;A10:=WINNER(B39)*100-WINNER(B310)*1 00;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(B31 4)*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(B31 8)*100;A19:=WINNER(B318)*100-WINNER(B319)*100;A20:=WINNER(B319)*100-WIN NER(B320)*100;A21:=WINNER(B320)*100-WINNER(B321)*100;A22:=WINNER(B321)*100-WINNER(B32 2)*100;A23:=WINNER(B322)*100-WINNER(B323)*100;A24:=WINNER(B323)*100-WIN NER(B324)*100;A25:=WINNER(B324)*100-WINNER(B325)*100;A26:=WINNER(B325)*100-WINNER(B32 6)*100;A27:=WINNER(B326)*100-WINNER(B327)*100;A28:=WINNER(B327)*100-WIN NER(B328)*100;A29:=WINNER(B328)*100-WINNER(B329)*100;A30:=WINNER(B329)*100-WINNER(B33 0)*100;A31:=WINNER(B330)*100-WINNER(B331)*100;A32:=WINNER(B331)*100-WIN NER(B332)*100;A33:=WINNER(B332)*100-WINNER(B333)*100;A34:=WINNER(B333)*100-WINNER(B33 4)*100;A35:=WINNER(B334)*100-WINNER(B335)*100;A36:=WINNER(B335)*100-WIN NER(B336)*100;A37:=WINNER(B336)*100-WINNER(B337)*100;A38:=WINNER(B337)*100-WINNER(B33 8)*100;A39:=WINNER(B338)*100-WINNER(B339)*100;A40:=WINNER(B339)*100-WIN NER(B340)*100;A41:=WINNER(B340)*100-WINNER(B341)*100;A42:=WINNER(B341)*100-WINNER(B34 2)*100;A43:=WINNER(B342)*100-WINNER(B343)*100;A44:=WINNER(B343)*100-WIN NER(B344)*100;A45:=WINNER(B344)*100-WINNER(B345)*100;A46:=WINNER(B345)*100-WINNER(B34 6)*100;A47:=WINNER(B346)*100-WINNER(B347)*100;A48:=WINNER(B347)*100-WIN NER(B348)*100;A49:=WINNER(B348)*100-WINNER(B349)*100;A50:=WINNER(B349)*100-WINNER(LB) *100;MX0:=MAX(A1, MAX(A2, MAX(A3, MAX(A4, MAX(A5, MAX(A6, MAX(A7, MAX(A8,MAX(A9,A10)))))))));MX1:=MAX(A11, MAX(A12, MAX(A13, MAX(A14, MAX(A15, MAX(A16, MAX(A17, MAX(A18, MAX(A19,A20)))))))));MX2:=MAX(A21, MAX(A22, MAX(A23, MAX(A24, MAX(A25, MAX(A26, MAX(A27, MAX(A28, MAX(A29,A30)))))))));MX3:=MAX(A31, MAX(A32, MAX(A33, MAX(A34, MAX(A35, MAX(A36, MAX(A37, MAX(A38, MAX(A39,A40)))))))));MX4:=MAX(A41, MAX(A42, MAX(A43, MAX(A44, MAX(A45, MAX(A46, MAX(A47, MAX(A48, MAX(A49,A50)))))))));最大值:=MAX(MX0, MAX(MX1, MAX(MX2, MAX(MX3,MX4))));峰值过滤:=IF(最大值<8,40,IF(最大值<14,25,15));线宽调整:=IF(C<1.5,0.003,IF(C<3,0.01,IF(C<10,0.02,IF(C<16,0.03,IF(C<30,0.05,0.06)))))*(5/ 10);线条长度:=3;STICKLINE(ISLASTBAR AND A1 >最大值/线条长度AND A1 =MAX(MX0,MX1),HB ,HB+线宽调整,A1*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A1 >最大值/线条长度AND A1 =MAX(MX0,MX1),B31 ,B31+线宽调整,A1*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A2 >最大值/线条长度AND A2 =MAX(MX0,MX1),B32 ,B32+线宽调整,A2*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A3 >最大值/线条长度AND A3 =MAX(MX0,MX1),B33 ,B33+线宽调整,A3*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A4 >最大值/线条长度AND A4 =MAX(MX0,MX1),B34 ,B34+线宽调整,A4*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A5 >最大值/线条长度AND A5 =MAX(MX0,MX1),B35 ,B35+线宽调整,A5*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A6 >最大值/线条长度AND A6 =MAX(MX0,MX1),B36 ,B36+线宽调整,A6*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A7 >最大值/线条长度AND A7 =MAX(MX0,MX1),B37 ,B37+线宽调整,A7*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A8 >最大值/线条长度AND A8 =MAX(MX0,MX1),B38 ,B38+线宽调整,A8*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A9 >最大值/线条长度AND A9 =MAX(MX0,MX1),B39 ,B39+线宽调整,A9*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A10 >最大值/线条长度AND A10=MAX(MX0,MX1),B310 ,B310+线宽调整,A10*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A11 >最大值/线条长度AND A11=MAX(MX0,MX1),B311 ,B311+线宽调整,A11*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A12 >最大值/线条长度AND A12=MAX(MX0,MX1),B312 ,B312+线宽调整,A12*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A13 >最大值/线条长度AND A13=MAX(MX0,MX1),B313 ,B313+线宽调整,A13*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A14 >最大值/线条长度AND A14=MAX(MX0,MX1),B314 ,B314+线宽调整,A14*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A15 >最大值/线条长度AND A15=MAX(MX0,MX1),B315 ,B315+线宽调整,A15*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A16 >最大值/线条长度AND A16=MAX(MX0,MX1),B316 ,B316+线宽调整,A16*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A17 >最大值/线条长度AND A17=MAX(MX0,MX1),B317 ,B317+线宽调整,A17*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A18 >最大值/线条长度AND A18=MAX(MX0,MX1),B318 ,B318+线宽调整,A18*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A19 >最大值/线条长度AND A19=MAX(MX0,MX1),B319 ,B319+线宽调整,A19*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A20 >最大值/线条长度AND A20=MAX(MX0,MX1),B320 ,B320+线宽调整,A20*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A21 >最大值/线条长度AND A21 =MX2,B321 ,B321+线宽调整,A21*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A22 >最大值/线条长度AND A22 =MX2,B322 ,B322+线宽调整,A22*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A23 >最大值/线条长度AND A23 =MX2,B323 ,B323+线宽调整,A23*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A24 >最大值/线条长度AND A24 =MX2,B324 ,B324+线宽调整,A24*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A25 >最大值/线条长度AND A25 =MX2,B325 ,B325+线宽调整,A25*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A26 >最大值/线条长度AND A26 =MX2,B326 ,B326+线宽调整,A26*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A27 >最大值/线条长度AND A27 =MX2,B327 ,B327+线宽调整,A27*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A28 >最大值/线条长度AND A28 =MX2,B328 ,B328+线宽调整,A28*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A29 >最大值/线条长度AND A29 =MX2,B329 ,B329+线宽调整,A29*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A30 >最大值/线条长度AND A30 =MX2,B330 ,B330+线宽调整,A30*峰值过滤,0 ),COLORYELLOW;STICKLINE(ISLASTBAR AND A31 >最大值/线条长度AND A31=MAX(MX3,MX4),B331 ,B331+线宽调整,A31*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A32 >最大值/线条长度AND A32=MAX(MX3,MX4),B332 ,B332+线宽调整,A32*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A33 >最大值/线条长度AND A33=MAX(MX3,MX4),B333 ,B333+线宽调整,A33*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A34 >最大值/线条长度AND A34=MAX(MX3,MX4),B334 ,B334+线宽调整,A34*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A35 >最大值/线条长度AND A35=MAX(MX3,MX4),B335 ,B335+线宽调整,A35*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A36 >最大值/线条长度AND A36=MAX(MX3,MX4),B336 ,B336+线宽调整,A36*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A37 >最大值/线条长度AND A37=MAX(MX3,MX4),B337 ,B337+线宽调整,A37*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A38 >最大值/线条长度AND A38=MAX(MX3,MX4),B338 ,B338+线宽调整,A38*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A39 >最大值/线条长度AND A39=MAX(MX3,MX4),B339 ,B339+线宽调整,A39*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A40 >最大值/线条长度AND A40=MAX(MX3,MX4),B340 ,B340+线宽调整,A40*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A41 >最大值/线条长度AND A41=MAX(MX3,MX4),B341 ,B341+线宽调整,A41*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A42 >最大值/线条长度AND A42=MAX(MX3,MX4),B342 ,B342+线宽调整,A42*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A43 >最大值/线条长度AND A43=MAX(MX3,MX4),B343 ,B343+线宽调整,A43*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A44 >最大值/线条长度AND A44=MAX(MX3,MX4),B344 ,B344+线宽调整,A44*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A45 >最大值/线条长度AND A45=MAX(MX3,MX4),B345 ,B345+线宽调整,A45*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A46 >最大值/线条长度AND A46=MAX(MX3,MX4),B346 ,B346+线宽调整,A46*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A47 >最大值/线条长度AND A47=MAX(MX3,MX4),B347 ,B347+线宽调整,A47*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A48 >最大值/线条长度AND A48=MAX(MX3,MX4),B348 ,B348+线宽调整,A48*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A49 >最大值/线条长度AND A49=MAX(MX3,MX4),B349 ,B349+线宽调整,A49*峰值过滤,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A50 >最大值/线条长度AND A50 =MAX(MX3,MX4),LB ,LB+线宽调整,A50*峰值过滤,0 ),COLORYELLOW;{DRAWKLINE(HIGH,OPEN,LOW,CLOSE);};虽然是有未来函数的,但是只是获利盘之类的函数,对操作指导没有太大影响,只是给我们预测支撑压力。
主力筹码(好用好看的指标源码)
主力筹码(好用好看的指标源码)别的论坛上的指标,很优秀,感谢原作者。
希望对大家有帮助。
【该股票指标用法说明:】这是一个很优秀的指标,100线上下的柱线显示资金进出情况,20线上灰白柱线提示小股民筹码,彩色柱线提示主力筹码运行,从吸货拉升到出货(由蓝-黄-红-绿),散兵坑予示底部,20线下深蓝柱提示关注,亮红柱提示建仓。
三根线与柱线综合观察分析,可以获得极隹的买卖点。
{价量线主线快线}价量:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLOR00CCFF,NODRAW;主线:(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25),COLORCYAN,NODRAW;快线:(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25) ,COLOR55AAFF,NODRAW;RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K1:=SMA(RSV,3,1);D1:=SMA(K1,3,1);KK:=INTPART(K1);DD:=INTPART(D1);TFXXS:=KK+DD;{变异KD风险系数}TGLXS:=(TFXXS-REF(TFXXS,1));{变异KD乖离系数:资金流向}{红}STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR0000AA;STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR0022CC;STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR0055FF;{粉}STICKLINE(TGLXS<0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORAA00BB;STICKLINE(TGLXS<0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORCC22BB;STICKLINE(TGLXS<0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFF55BB;{黄}STICKLINE(TGLXS>0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR00AAFF;STICKLINE(TGLXS>0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR00CCFF;STICKLINE(TGLXS>0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR00FFFF;{蓝}STICKLINE(TGLXS<0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORFF7700;STICKLINE(TGLXS<0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORFFAA22;STICKLINE(TGLXS<0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFFFF55;STICKLINE(TGLXS=0 ANDREF(TGLXS,1)>=0,100,TGLXS+100,8,0),COLORBROWN;STICKLINE(TGLXS=0 AND REF(TGLXS,1)<0,100,TGLXS+100,8,0),COLORWHITE;ZLCM:=EMA(WINNER(CLOSE)*70,3);{主力筹码估算}SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{小股民筹码估算}ZSHTL:=SHCM/(ZLCM+SHCM)*100;{小股民套牢筹码系数}ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{主力控盘筹码系数}ZSHJJ:=EMA(ZSHTL,55);{小股民警戒}ZZLJJ:=EMA(ZZLKP,55);{主力警戒}散兵坑:IF(ZZLKP<=10,ZZLKP,ZZLKP),COLORMAGENTA,NODRAW;{小股民套牢筹码}STICKLINE(C>0,ZSHTL,ZZLKP,2,0),COLOR808080;{小股民筹码警戒}STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLORC0C 0C0;{主力控盘筹码}{粉}STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,2.5,0 ),COLORAA00BB;STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,1.5,0 ),COLORCC22BB;STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,0.5,0 ),COLOREE44BB;{蓝}STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,2.5,0 ),COLORFF7700;STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,1.5,0 ),COLORFFAA22;STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,0.5 ,0 ),COLORFFFF55;{亮红}STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,2.5,0 ),COLOR131FFD;STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,1.5,0 ),COLOR5050FF;STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,0.5,0 ),COLOR7E7EFF;{深蓝}STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,2.5,0 ),COLORAA0000;STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,1.5,0 ),COLORCC0000;STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,0.5 ,0 ),COLORFF0000;{主力筹码警戒}{黄}STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2.5,0 ),COLOR00A AFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,1.5,0 ),COLOR00C CFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,0.5,0 ),COLOR00F FFF;{红}STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,2.5,0 ),COLOR0000AA;STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,1.5,0 ),COLOR0022CC;STICKLINE(ZZLKP>ZZLJJ ANDZZLJJ>50,ZZLKP,ZZLJJ,0.5 ,0 ),COLOR0055FF;{红}STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50 AND ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,2.5,0 ),COLOR0000AA;STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50 AND ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,1.5,0 ),COLOR0022CC;STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50 AND ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,0.5 ,0 ),COLOR0055FF;{铸顶风险区}{绿}STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,2.5,0),COLOR00AA00;STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,1.5,0),COLOR00CC00;STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,0.5,0),COLOR00FF00;{散兵坑}STICKLINE(ZZLKP<=10,ZZLKP,0,5,0),COLORDD00DD;100,COLORGREEN;80,COLORGREEN;{0,COLORGREEN;}{主线快线}价量,COLOR0CC0FF,LINETHICK2;主线,COLOR00FFAA,LINETHICK2;快线,LINESTICK,COLORFF68DD;。
通达信副图指标均线筹码(附源码)
通达信副图指标均线筹码(附源码)通达信副图指标均线筹码(附源码){均线}X1:=(EMA(C,5)-EMA(C,13))/EMA(C,13)*100;X2:=(EMA(C,5)-EMA(C,34))/EMA(C,13)*100;X3:=(EMA(C,5)-EMA(C,60))/EMA(C,13)*100;X4:=(EMA(C,5)-EMA(C,120))/EMA(C,13)*100;X5:=V/CAPITAL*(C+O+L+H)/4;X6:=(H-MAX(C,O))-(MIN(C,O)-L)+(C-REF(C,1));X7:=IF(X6>0,X5,0-X5);X8:=H-MAX(C,O)-(MIN(C,O)-L);X9:=(X7+X8)/2+C-REF(C,1);X10:=SUM(X9,0)+100;X11:=EMA(X10,5)+100;X12:=EMA(X10,13)+100;X13:=EMA(X10,34)+100;X14:=EMA(X10,60)+100;X15:=EMA(X10,120)+100;X16:=(X11-X12)/EMA(C,13)*100;X17:=(X11-X13)/EMA(C,13)*100;X18:=(X11-X14)/EMA(C,13)*100;X19:=(X11-X15)/EMA(C,13)*100;X20:=(X19-X16);X21:=(X19-X17);X22:=(X19-X18);Y1:=3*SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1);Y2:=2*SMA(SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);Y3:=Y1-Y2;Y4:=100-Y3;Y5:=(0-(EMA(Y4,1)-50))+50;Y6:=(0-(EMA(Y4,12)-50))+50;Z1:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1);Z2:=2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1);Z3:=(Z1-Z2-50)*1.032+50;Z4:=(2*C+H+L+O)/5;Z5:=EMA((Z4-LLV(L,34))/(HHV(H,34)-LLV(L,34))*100,13);P0:X4-X1+X20+Y5-Y6,COLORYELLOW;P1:X4-X1+X20,COLORRED;P2:X4-X2+X21;P3:X4-X3+X22,COLORWHITE;P4:(Z3-Z5)/2+P0,COLORGREEN;{筹码}BB1:=SMA(ABS(L-REF(L,1)),3,1);BB2:=SMA(MAX((L-REF(L,1)),0),3,1);BB3:=BB1/BB2*100;BB4:=EMA(IF(C*1.2,BB3*10,BB3/10),3);BB5:=LLV(L,38);BB6:=HHV(BB4,38);BB7:=IF(LLV(L,90),1,0);BB8:=IF(L<=BB5,(BB4+B6*2)/2,0);BB9:=EMA(BB8,3)/618*BB7;DRAWTEXT(CROSS(P4,P0) AND P4<50,(P4-1),'买'),COLORRED;注:平台目前更新的有关公式源码,部分可直接导入使用,有些提示编码错误的,可以及时联系我们这边,帮忙处理,会有适当收费,(全部支持电脑手机)喜欢加关注,感谢点赞支持。
筹码分布主图通达信指标公式源码
XA_1:=400;XA_2:=90;XA_3:=79;XA_4:=IF(XA_2>10,10,XA_3);XA_5:=CURRBARSCOUNT;XA_6:=REF(HIGH,XA_2)=HHV(HIGH,2*XA_2+1);XA_7:=BACKSET(XA_6,XA_2+1);XA_8:=FILTER(XA_7,XA_2) AND HIGH=HHV(HIGH,XA_2+1); XA_9:=BARSLAST(XA_8);XA_10:=IF(XA_8,XA_5,0);XA_11:=IF(XA_9,REF(HIGH,XA_9),HIGH);XA_12:=IF(XA_9,REF(XA_10,XA_9),XA_10);XA_13:=REF(XA_11,XA_9+1);XA_14:=CONST(XA_12);XA_15:=REF(XA_12,XA_9+1);XA_16:=CONST(XA_15);XA_17:=REF(LOW,XA_2)=LLV(LOW,2*XA_2+1);XA_18:=BACKSET(XA_17,XA_2+1);XA_19:=FILTER(XA_18,XA_2) AND LOW=LLV(LOW,XA_2+1); XA_20:=BARSLAST(XA_19);XA_21:=IF(XA_19,XA_5,0);XA_22:=IF(XA_20,REF(XA_21,XA_20),XA_21);XA_23:=CONST(XA_22);STICKLINE(OPEN>CLOSE,CLOSE,OPEN,3,1),COLOR00CC00; XA_24:=BARSLAST(LOW=LLV(LOW,180));XA_25:=REF(LOW,XA_24);XA_26:=BARSLAST(HIGH=HHV(HIGH,XA_24));XA_27:=REF(HIGH,XA_26);XA_28:=BARSLAST(LOW=LLV(LOW,XA_26));XA_29:=REF(LOW,XA_28);XA_30:=INTPART((XA_26+1)/2);XA_31:=REFDATE(XA_27,DATE);XA_32:=REFDATE(CLOSE,DATE);XA_33:=REFDATE(XA_29,DATE);C线:DRAWLINE(CURRBARSCOUNT=CONST(XA_26+1),XA_33,CURRBARSCOUNT=CONST( XA_30),XA_32,0),COLORBLACK;D线:DRAWLINE(CURRBARSCOUNT=CONST(XA_30),XA_32,CURRBARSCOUNT=CONST(1), XA_33,0),COLORBLACK;FFG1:DRAWBAND(C线,RGB(255,0,0),XA_33,RGB(255,0,0));FFG2:DRAWBAND(D线,RGB(50,205,50),XA_33,RGB(50,205,50));DRAWKLINE(HIGH,OPEN,LOW,CLOSE);STICKLINE(OPEN>CLOSE,CLOSE,OPEN,3,1),COLOR00CC00;XA_34:=CONST(XA_28+XA_28);XA_35:=CONST(CLOSE+0.01);XA_36:=REFDATE(XA_35,DATE);XA_37:=REF(XA_22,XA_20+1);XA_38:=CONST(XA_37);XA_39:=REF(HIGH,XA_4)=HHV(HIGH,2*XA_4+1);XA_40:=CONST((XA_31+XA_33)/2);XA_41:=CONST((XA_31+XA_40)/2);XA_42:=CONST((XA_40+XA_33)/2);NOTEXTC区界线:IF(CURRBARSCOUNT<=CONST(3),CONST(IF(1,XA_41,XA_41)),DRAWNULL),COLORCY AN;NOTEXTB区界线:IF(CURRBARSCOUNT<=CONST(3),CONST(IF(1,XA_40,XA_40)),DRAWNULL),COLORCY AN;NOTEXTA区界线:IF(CURRBARSCOUNT<=CONST(3),CONST(IF(1,XA_42,XA_42)),DRAWNULL),COLORCY AN;XA_43:=IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_35+XA_35*0.2,XA_3 5+XA_35*0.2)),DRAWNULL);XA_44:=IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_35+XA_35*0.1,XA_3 5+XA_35*0.1)),DRAWNULL);XA_45:=IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_35,XA_35)),DRAWN ULL);NOTEXT高:IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_31,XA_31)),DRAWNULL),C OLORMAGENTA;NOTEXT低:IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_29,XA_29)),DRAWNULL),C OLORGREEN;新势力A:IF(CURRBARSCOUNT<=CONST(XA_28+1),MA(CLOSE,XA_28),DRAWNULL),COLORRED; 新势力V:IF(CURRBARSCOUNT<=CONST(XA_28+1),IF(新势力A<REF(新势力A,1),新势力A,DRAWNULL),DRAWNULL),COLORGREEN;XA_46:=BACKSET(XA_39,XA_4+1);XA_47:=FILTER(XA_46,XA_4) AND HIGH=HHV(HIGH,XA_4+1);XA_48:=BARSLAST(XA_47);XA_49:=IF(XA_47,XA_5,0);XA_50:=IF(XA_48,REF(HIGH,XA_48),HIGH);XA_51:=IF(XA_48,REF(XA_49,XA_48),XA_49);XA_52:=REF(XA_50,XA_48+1);XA_53:=CONST(XA_51);XA_54:=REF(XA_51,XA_48+1);XA_55:=CONST(XA_54);XA_56:=REF(LOW,XA_4)=LLV(LOW,2*XA_4+1);XA_57:=BACKSET(XA_56,XA_4+1);XA_58:=FILTER(XA_57,XA_4) AND LOW=LLV(LOW,XA_4+1);XA_59:=BARSLAST(XA_58);XA_60:=CONST(XA_41);XA_61:=CONST(XA_40);XA_62:=CONST(XA_42);XA_63:=IF(CLOSE>=XA_60,AMOUNT,DRAWNULL);XA_64:=IF(CLOSE>=XA_60,VOL,DRAWNULL);XA_65:=0.01*SUM(XA_63,XA_26)/SUM(XA_64,XA_26);XA_66:=REFDATE(XA_65,DATE);NOTEXTD区成本:IF(CURRBARSCOUNT<=CONST(13),CONST(IF(1,XA_65,XA_65)),DRAWNULL),DOTLIN E,COLORLIGRAY;XA_67:=IF(CLOSE<=XA_60 AND CLOSE>=XA_61,AMOUNT,DRAWNULL);XA_68:=IF(CLOSE<=XA_60 AND CLOSE>=XA_61,VOL,DRAWNULL);XA_69:=0.01*SUM(XA_67,XA_26)/SUM(XA_68,XA_26);XA_70:=REFDATE(XA_69,DATE);NOTEXTC区成本:IF(CURRBARSCOUNT<=CONST(13),CONST(IF(1,XA_69,XA_69)),DRAWNULL),DOTLIN E,COLORLIGRAY;XA_71:=IF(CLOSE<=XA_61 AND CLOSE>=XA_62,AMOUNT,DRAWNULL);XA_72:=IF(CLOSE<=XA_61 AND CLOSE>=XA_62,VOL,DRAWNULL);XA_73:=0.01*SUM(XA_71,XA_26)/SUM(XA_72,XA_26);XA_74:=REFDATE(XA_73,DATE);NOTEXTB区成本:IF(CURRBARSCOUNT<=CONST(13),CONST(IF(1,XA_73,XA_73)),DRAWNULL),DOTLIN E,COLORLIGRAY;XA_75:=IF(CLOSE<=XA_62,AMOUNT,DRAWNULL);XA_76:=IF(CLOSE<=XA_62,VOL,DRAWNULL);XA_77:=0.01*SUM(XA_75,XA_26)/SUM(XA_76,XA_26);XA_78:=REFDATE(XA_77,DATE);NOTEXTA区成本:IF(CURRBARSCOUNT<=CONST(13),CONST(IF(1,XA_77,XA_77)),DRAWNULL),DOTLIN E,COLORLIGRAY;XA_79:=IF(CLOSE>=XA_36,AMOUNT,DRAWNULL);XA_80:=IF(CLOSE>=XA_36,VOL,DRAWNULL);XA_81:=0.01*SUM(XA_79,XA_26)/SUM(XA_80,XA_26);XA_82:=REFDATE(XA_81,DATE);XA_83:=IF(XA_58,XA_5,0);XA_84:=IF(XA_59,REF(XA_83,XA_59),XA_83);XA_85:=CONST(XA_84);XA_86:=REF(XA_84,XA_59+1);XA_87:=CONST(XA_86);XA_88:=REF(HIGH,XA_3)=HHV(HIGH,2*XA_3+1);XA_89:=BACKSET(XA_88,XA_3+1);XA_90:=FILTER(XA_89,XA_3) AND HIGH=HHV(HIGH,XA_3+1);XA_91:=BARSLAST(XA_90);NOTEXT上区成本:IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_81,XA_81)),DRAWNULL),D OTLINE,COLORRED;XA_92:=IF(CLOSE<=XA_36,AMOUNT,DRAWNULL);XA_93:=IF(CLOSE<=XA_36,VOL,DRAWNULL);XA_94:=0.01*SUM(XA_92,XA_26)/SUM(XA_93,XA_26);XA_95:=REFDATE(XA_94,DATE);NOTEXT下区成本:IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_94,XA_94)),DRAWNULL),D OTLINE,COLORYELLOW;XA_96:=100*VOL/(FINANCE(7)/100);XA_97:=IF(CLOSE>=XA_60,XA_96,DRAWNULL);XA_98:=CONST(INTPART(SUM(XA_97,XA_26)));VB143:DRAWTEXT(CURRBARSCOUNT=CONST(13),XA_66,1),COLORLIGRAY;VB144:DRAWNUMBER(CURRBARSCOUNT=CONST(6),XA_66*1.007,XA_98),COLORYELLO W;XA_99:=IF(CLOSE<=XA_60 AND CLOSE>=XA_61,XA_96,DRAWNULL);XA_100:=CONST(INTPART(SUM(XA_99,XA_26)));VB148:DRAWTEXT(CURRBARSCOUNT=CONST(13),XA_70,2),COLORRED;VB149:DRAWNUMBER(CURRBARSCOUNT=CONST(6),XA_70*1.007,XA_100),COLORYELL OW;XA_101:=IF(CLOSE<=XA_61 AND CLOSE>=XA_62,XA_96,DRAWNULL);XA_102:=CONST(INTPART(SUM(XA_101,XA_26)));VB153:DRAWTEXT(CURRBARSCOUNT=CONST(13),XA_74,3),COLORMAGENTA;XA_103:=IF(XA_90,XA_5,0);XA_104:=IF(XA_91,REF(HIGH,XA_91),HIGH);XA_105:=IF(XA_91,REF(XA_103,XA_91),XA_103);XA_106:=REF(XA_104,XA_91+1);XA_107:=CONST(XA_105);XA_108:=REF(XA_105,XA_91+1);XA_109:=CONST(XA_108);XA_110:=REF(XA_106,XA_91+1);VB154:DRAWNUMBER(CURRBARSCOUNT=CONST(6),XA_74*1.007,XA_102),COLORYELL OW;XA_111:=IF(CLOSE<=XA_62,XA_96,DRAWNULL);XA_112:=CONST(INTPART(SUM(XA_111,XA_26)));VB158:DRAWTEXT(CURRBARSCOUNT=CONST(13),XA_78,4),COLORCYAN;VB159:DRAWNUMBER(CURRBARSCOUNT=CONST(6),XA_78*1.007,XA_112),COLORYELL OW;XA_113:=IF(CLOSE>=XA_36,XA_96,DRAWNULL);XA_114:=CONST(INTPART(SUM(XA_113,XA_26)));VB163:DRAWTEXT(CURRBARSCOUNT=CONST(XA_26),XA_82,5),COLORYELLOW;VB164:DRAWNUMBER(CURRBARSCOUNT=CONST(XA_26-7),XA_82*1.007,XA_114),COLO RYELLOW;XA_115:=IF(CLOSE<=XA_36,XA_96,DRAWNULL);XA_116:=CONST(INTPART(SUM(XA_115,XA_26)));VB168:DRAWTEXT(CURRBARSCOUNT=CONST(XA_26),XA_95,6),COLORYELLOW;VB169:DRAWNUMBER(CURRBARSCOUNT=CONST(XA_26-7),XA_95*1.007,XA_116),COLO RYELLOW;XA_117:=REF(LOW,XA_3)=LLV(LOW,2*XA_3+1);XA_118:=BACKSET(XA_117,XA_3+1);XA_119:=FILTER(XA_118,XA_3) AND LOW=LLV(LOW,XA_3+1);XA_120:=BARSLAST(XA_58);XA_121:=IF(XA_119,XA_5,0);XA_122:=IF(XA_120,REF(XA_121,XA_120),XA_83);XA_123:=CONST(XA_122);XA_124:=REF(XA_122,XA_120+1);XA_125:=CONST(XA_124);。
通达信指标公式源码 通达信筹码一线主图 筹码幅图 无未来 源码
DRAWKLINE(H,O,L,C); 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*15 ,0 ),COLORRED;STICKLINE(ISLASTBAR,B31 ,B31 ,A1*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B32 ,B32 ,A2*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B33 ,B33 ,A3*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B34 ,B34 ,A4*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B35 ,B35 ,A5*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B36 ,B36 ,A6*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B37 ,B37 ,A7*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B38 ,B38 ,A8*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B39 ,B39 ,A9*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B310 ,B310 ,A10*15 ,0 ),COLOR666600; STICKLINE(ISLASTBAR,B311 ,B311 ,A11*15 ,0 ),COLOR666600; STICKLINE(ISLASTBAR,B312 ,B312 ,A12*15 ,0 ),COLOR666600; STICKLINE(ISLASTBAR,B313 ,B313 ,A13*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B314 ,B314 ,A14*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B315 ,B315 ,A15*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B316 ,B316 ,A16*15 ,0 ),COLORRED;STICKLINE(ISLASTBAR,B317 ,B317 ,A17*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B318 ,B318 ,A18*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B319 ,B319 ,A19*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B320 ,B320 ,A20*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B321 ,B321 ,A21*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B322 ,B322 ,A22*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B323 ,B323 ,A23*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B324 ,B324 ,A24*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B325 ,B325 ,A25*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B326 ,B326 ,A26*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B327 ,B327 ,A27*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B328 ,B328 ,A28*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B329 ,B329 ,A29*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B330 ,B330 ,A30*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B331 ,B331 ,A31*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B332 ,B332 ,A32*15 ,0 ),COLORRED;STICKLINE(ISLASTBAR,B333 ,B333 ,A33*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B334 ,B334 ,A34*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B335 ,B335 ,A35*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B336 ,B336 ,A36*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B337 ,B337 ,A37*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B338 ,B338 ,A38*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B339 ,B339 ,A39*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B340 ,B340 ,A40*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B341 ,B341 ,A41*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B342 ,B342 ,A42*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B343 ,B343 ,A43*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B344 ,B344 ,A44*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B345 ,B345 ,A45*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B346 ,B346 ,A46*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B347 ,B347 ,A47*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B348 ,B348 ,A48*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,LB ,LB ,A50*15 ,0 ),COLORRED;当前获利筹码:=IF(WINNER(CLOSE),WINNER(CLOSE)*100,0);ZX2:=MIN(A1,MIN(A2,MIN(A3,MIN(A4,MIN(A5,MIN(A6,MIN(A7,MIN(A8,MIN(A9,MIN(A 10,MIN(A11,MIN(A12,MIN(A13,MIN(A14,MIN(A15,MIN(A16,MIN(A17,MIN(A18,MIN(A1 9,MIN(A20,MIN(A21,MIN(A22,MIN(A23,MIN(A24,MIN(A25,MIN(A26,MIN(A27,MIN(A28, MIN(A29,MIN(A30,MIN(A31,MIN(A32,MIN(A33,MIN(A34,MIN(A35,MIN(A36,MIN(A37,M IN(A38,MIN(A39,MIN(A40,MIN(A41,MIN(A42,MIN(A43,MIN(A44,MIN(A45,MIN(A46,MI N(A47,MIN(A48,MIN(A49,A50)))))))))))))))))))))))))))))))))))))))))))))))));筹码最低处:COST(ZX2),COLORMAGENTA;DRAWTEXT(ISLASTBAR,筹码最低处,'筹码最低价'),COLORMAGENTA;ZX1:=MAX(A1*15,MAX(A2*15,MAX(A3*15,MAX(A4*15,MAX(A5*15,MAX(A6*15,MAX(A 7*15,MAX(A8*15,MAX(A9*15,MAX(A10*15,MAX(A11*15,MAX(A12*15,MAX(A13*15,M AX(A14*15,MAX(A15*15,MAX(A16*15,MAX(A17*15,MAX(A18*15,MAX(A19*15,MAX(A 20*15,MAX(A21*15,MAX(A22*15,MAX(A23*15,MAX(A24*15,MAX(A25*15,MAX(A26*15 ,MAX(A27*15,MAX(A28*15,MAX(A29*15,MAX(A30*15,MAX(A31*15,MAX(A32*15,MAX (A33*15,MAX(A34*15,MAX(A35*15,MAX(A36*15,MAX(A37*15,MAX(A38*15,MAX(A39* 15,MAX(A40*15,MAX(A41*15,MAX(A42*15,MAX(A43*15,MAX(A44*15,MAX(A45*15,M AX(A46*15,MAX(A47*15,MAX(A48*15,MAX(A49*15,A50*15)))))))))))))))))))))))))))))))))))) )))))))))))));筹码最集中处:COST(ZX1/15),COLORRED,LINETHICK2;入1:IF(筹码最集中处>REF(筹码最集中处,1),筹码最集中处,DRAWNULL),COLORRED,LINETHICK2;出1:IF(筹码最集中处<REF(筹码最集中处,1),筹码最集中处,DRAWNULL),COLORGREEN,LINETHICK2;DRAWTEXT(ISLASTBAR,筹码最集中处,'筹码集中价'),COLORWHITE;STICKLINE(筹码最集中处>LOW AND 筹码最集中处<HIGH,筹码最集中处,MIN(MIN(OPEN,CLOSE),筹码最集中处),2,0),COLORMAGENTA;STICKLINE(筹码最集中处>MIN(C,O) AND 筹码最集中处<MAX(C,O),筹码最集中处,MIN(OPEN,CLOSE),2,0),COLORMAGENTA;STICKLINE(筹码最集中处>HIGH,OPEN,CLOSE,2,0),COLORMAGENTA;STICKLINE(筹码最集中处>HIGH,HIGH,LOW,0,0),COLORMAGENTA;STICKLINE(筹码最集中处>LOW AND 筹码最集中处<HIGH,筹码最集中处,MIN(MIN(OPEN,CLOSE),筹码最集中处),1.5,0),COLORGREEN;STICKLINE(筹码最集中处>MIN(C,O) AND 筹码最集中处<MAX(C,O),筹码最集中处,MIN(OPEN,CLOSE),2,0),COLORGREEN;STICKLINE(筹码最集中处>HIGH,OPEN,CLOSE,2,0),COLORGREEN;STICKLINE(筹码最集中处>HIGH,HIGH,LOW,0,0),COLORGREEN;筹码幅图公式穿越筹码:ABS(WINNER(CLOSE)-WINNER(OPEN))*100,STICK,COLORDDDDFF;换手率::VOL/CAPITAL*100,STICK,COLORFF0099;地量换手:1/换手率:*100,STICK,COLORRED,LINETHICK3;A1:=LLV(HIGH,240);MYP:=100*(CLOSE-A1)/A1;A2:=REF(HHV(CLOSE,240),1);B2:=REF(LLV(CLOSE,240),1);RPY:=100*(CLOSE -B2)/(A2-B2);A3:=1.1*CLOSE;B3:=0.9*CLOSE;ASR:=100*(WINNER(A3)-WINNER(B3));A4:=WINNER(CLOSE);A5:=DMA(A4,VOL/CAPITAL);B4:=DMA(VOL,VOL/CAPITAL)/CAPITAL;A6:=100*VOL/CAPITAL;B6:=100*(WINNER(CLOSE)-REF(WINNER(CLOSE),1));A7:=ABS(B6/A6);CYA:A4/B4*50,COLOR00FF00;CYB:EMA(A4/B4*50,34),COLORFF00FF;CYC::A5/B4*50,COLORFFFF99;CYD:WINNER(CLOSE)/(VOL/CAPITAL),COLORYELLOW,STICK,LINETHICK4; STICKLINE(A7>30 AND (VOL/CAPITAL*100)<=3,地量换手,0,3,0),COLORWHITE; STICKLINE(RPY<75 AND MYP<30 AND ASR>60 AND 穿越筹码>=24 AND (VOL/CAPITAL*100)<=3 AND C>=O,地量换手,0,10,0),COLORFF00FF; STICKLINE(RPY<75 AND MYP<30 AND ASR>60 AND 穿越筹码>=24 AND (VOL/CAPITAL*100)<=3 AND C< O,地量换手,0,10,0),COLORFFFF33;筹码穿透率:=B6/A6;STICKLINE(筹码穿透率>10 AND CLOSE/REF(CLOSE,1)>=1.05 AND换手率:<=3,地量换手,0,10,0),COLORBLUE;。
成本分析实战技法筹码峰“筹码”指标源码荟萃
成本分析实战技法---筹码峰+“筹码”指标源码荟萃2011-10-09成本分析实战技法---筹码峰成本发散上行延续股价突破低位单峰密集上行,成本发散意味着趋势的开始和延续。
本技法实战要点:筹码发散是行情处于展开的状态;低位峰密集后上行发散是介入的时机;高位峰密集后的下跌发散不可介入反弹;成本发散对低位峰密集的消耗越少,行情的延续性越强;图1-18600743 幸福实业于98年5月经长期横盘整理在低位形成峰密集,随后展开了一轮凌厉的攻势。
成本分布呈发散状态;行情随之上行延续。
当形成低位单峰密集后,随着上攻行情的展开,移动成本分布呈现出发散状态。
当低位行情启动点被确认后,成本发散是主升段开始的信号。
如投资者已在低位介入,在成本发散状态可持股看高;如在发散状态介入,应时刻关注低位密集峰的变化,一旦发现低位密集峰正迅速减小,可出局观望。
图1-19成本发散的筹码是上攻途中不同价位成交活跃的结果,其筹码来源于低位密集峰,是对低位密集峰的消耗。
只要低位峰密集不被成本发散迅速消耗,庄家就没有出货的迹象,也就就意味着可以持股看高。
洗盘回归单峰密集当低位单峰密集形成后,股价跌穿单峰密集;随后又回升向上突破原单峰密集,是新一轮上攻行情的开始。
本技法实战要点:经较长时间整理形成低位单峰密集;对单峰密集的跌穿是是庄家凶狠的洗盘行为;洗盘回调幅度不会太大,通常小于20%回调时原密集峰没有减小的迹象,成交缩量;洗盘回调后回升至原单密集峰处;放量突破原单密集峰;突破原单密集峰是较佳的介入时机。
图1-20500511 沈阳农信于98年11月经低位震荡整理形成低位峰密集,随后该股呈单边下跌的走势,K线的表现极为恶劣,连续阴线,股价由元直落至1.74,下跌幅度近20%。
以其回调的最底部为基准点,可以看到原密集峰并没有任何改变。
随后该基金回到原密集峰处,并强势放量突破密集峰,展开了一轮强劲的上攻行情。
当形成低位单峰密集后,为何要跌穿密集峰洗盘?这需要对做庄手法作深入的剖析。
筹码分布主图指标通达信指标公式源码
筹码分布主图指标通达信指标公式源码XA_1:=400;XA_2:=90;XA_3:=79;XA_4:=IF(XA_2>10,10,XA_3);XA_5:=CURRBARSCOUNT;XA_6:=REF(HIGH,XA_2)=HHV(HIGH,2*XA_2+1);XA_7:=BACKSET(XA_6,XA_2+1);XA_8:=FILTER(XA_7,XA_2) AND HIGH=HHV(HIGH,XA_2+1); XA_9:=BARSLAST(XA_8);XA_10:=IF(XA_8,XA_5,0);XA_11:=IF(XA_9,REF(HIGH,XA_9),HIGH);XA_12:=IF(XA_9,REF(XA_10,XA_9),XA_10);XA_13:=REF(XA_11,XA_9+1);XA_14:=CONST(XA_12);XA_15:=REF(XA_12,XA_9+1);XA_16:=CONST(XA_15);XA_17:=REF(LOW,XA_2)=LLV(LOW,2*XA_2+1);XA_18:=BACKSET(XA_17,XA_2+1);XA_19:=FILTER(XA_18,XA_2) AND LOW=LLV(LOW,XA_2+1); XA_20:=BARSLAST(XA_19);XA_21:=IF(XA_19,XA_5,0);XA_22:=IF(XA_20,REF(XA_21,XA_20),XA_21);XA_23:=CONST(XA_22);STICKLINE(OPEN>CLOSE,CLOSE,OPEN,3,1),COLOR00CC00; XA_24:=BARSLAST(LOW=LLV(LOW,180));XA_25:=REF(LOW,XA_24);XA_26:=BARSLAST(HIGH=HHV(HIGH,XA_24));XA_27:=REF(HIGH,XA_26);XA_28:=BARSLAST(LOW=LLV(LOW,XA_26));XA_29:=REF(LOW,XA_28);XA_30:=INTPART((XA_26+1)/2);XA_31:=REFDATE(XA_27,DATE);XA_32:=REFDATE(CLOSE,DATE);XA_33:=REFDATE(XA_29,DATE);C线:DRAWLINE(CURRBARSCOUNT=CONST(XA_26+1),XA_33, CURRBARSCOUNT=CONST( XA_30),XA_32,0),COLORBLACK;D线:DRAWLINE(CURRBARSCOUNT=CONST(XA_30),XA_32,CU RRBARSCOUNT=CONST(1), XA_33,0),COLORBLACK;FFG1:DRAWBAND(C线,RGB(255,0,0),XA_33,RGB(255,0,0));FFG2:DRAWBAND(D线,RGB(50,205,50),XA_33,RGB(50,205,50));DRAWKLINE(HIGH,OPEN,LOW,CLOSE);STICKLINE(OPEN>CLOSE,CLOSE,OPEN,3,1),COLOR00CC00;XA_34:=CONST(XA_28+XA_28);XA_35:=CONST(CLOSE+0.01);XA_36:=REFDATE(XA_35,DATE);XA_37:=REF(XA_22,XA_20+1);XA_38:=CONST(XA_37);XA_39:=REF(HIGH,XA_4)=HHV(HIGH,2*XA_4+1);XA_40:=CONST((XA_31+XA_33)/2);XA_41:=CONST((XA_31+XA_40)/2);XA_42:=CONST((XA_40+XA_33)/2);NOTEXTC区界线:IF(CURRBARSCOUNT<=CONST(3),CONST(IF(1,XA_41,XA_41)), DRAWNULL),COLORCY AN;NOTEXTB区界线:IF(CURRBARSCOUNT<=CONST(3),CONST(IF(1,XA_40,XA_40)), DRAWNULL),COLORCY AN;NOTEXTA区界线:IF(CURRBARSCOUNT<=CONST(3),CONST(IF(1,XA_42,XA_42)), DRAWNULL),COLORCY AN;XA_43:=IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF (1,XA_35+XA_35*0.2,XA_3 5+XA_35*0.2)),DRAWNULL);XA_44:=IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF (1,XA_35+XA_35*0.1,XA_3 5+XA_35*0.1)),DRAWNULL);XA_45:=IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF (1,XA_35,XA_35)),DRAWN ULL);NOTEXT高:IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA _31,XA_31)),DRAWNULL),C OLORMAGENTA;NOTEXT低:IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA _29,XA_29)),DRAWNULL),C OLORGREEN;新势力A:IF(CURRBARSCOUNT<=CONST(XA_28+1),MA(CLOSE,XA_28),D RAWNULL),COLORRED; 新势力V:IF(CURRBARSCOUNT<=CONST(XA_28+1),IF(新势力A<ref(新势力a,1),新势力< bdsfid="155" p=""></ref(新势力a,1),新势力<> A,DRAWNULL),DRAWNULL),COLORGREEN;XA_46:=BACKSET(XA_39,XA_4+1);XA_47:=FILTER(XA_46,XA_4) AND HIGH=HHV(HIGH,XA_4+1);XA_48:=BARSLAST(XA_47);XA_49:=IF(XA_47,XA_5,0);XA_50:=IF(XA_48,REF(HIGH,XA_48),HIGH);XA_51:=IF(XA_48,REF(XA_49,XA_48),XA_49);XA_52:=REF(XA_50,XA_48+1);XA_53:=CONST(XA_51);XA_54:=REF(XA_51,XA_48+1);XA_55:=CONST(XA_54);XA_56:=REF(LOW,XA_4)=LLV(LOW,2*XA_4+1);XA_57:=BACKSET(XA_56,XA_4+1);XA_58:=FILTER(XA_57,XA_4) AND LOW=LLV(LOW,XA_4+1);XA_59:=BARSLAST(XA_58);XA_60:=CONST(XA_41);XA_61:=CONST(XA_40);XA_62:=CONST(XA_42);XA_63:=IF(CLOSE>=XA_60,AMOUNT,DRAWNULL);XA_64:=IF(CLOSE>=XA_60,VOL,DRAWNULL);XA_65:=0.01*SUM(XA_63,XA_26)/SUM(XA_64,XA_26);XA_66:=REFDATE(XA_65,DATE);NOTEXTD区成本:IF(CURRBARSCOUNT<=CONST(13),CONST(IF(1,XA_65,XA_65) ),DRAWNULL),DOTLIN E,COLORLIGRAY;XA_67:=IF(CLOSE<=XA_60 AND CLOSE>=XA_61,AMOUNT,DRAWNULL);XA_68:=IF(CLOSE<=XA_60 AND CLOSE>=XA_61,VOL,DRAWNULL);XA_69:=0.01*SUM(XA_67,XA_26)/SUM(XA_68,XA_26);XA_70:=REFDATE(XA_69,DATE);NOTEXTC区成本:IF(CURRBARSCOUNT<=CONST(13),CONST(IF(1,XA_69,XA_69) ),DRAWNULL),DOTLIN E,COLORLIGRAY;XA_71:=IF(CLOSE<=XA_61 AND CLOSE>=XA_62,AMOUNT,DRAWNULL);XA_72:=IF(CLOSE<=XA_61 ANDCLOSE>=XA_62,VOL,DRAWNULL);XA_73:=0.01*SUM(XA_71,XA_26)/SUM(XA_72,XA_26);XA_74:=REFDATE(XA_73,DATE);NOTEXTB区成本:IF(CURRBARSCOUNT<=CONST(13),CONST(IF(1,XA_73,XA_73) ),DRAWNULL),DOTLIN E,COLORLIGRAY;XA_75:=IF(CLOSE<=XA_62,AMOUNT,DRAWNULL);XA_76:=IF(CLOSE<=XA_62,VOL,DRAWNULL);XA_77:=0.01*SUM(XA_75,XA_26)/SUM(XA_76,XA_26);XA_78:=REFDATE(XA_77,DATE);NOTEXTA区成本:IF(CURRBARSCOUNT<=CONST(13),CONST(IF(1,XA_77,XA _77)),DRAWNULL),DOTLIN E,COLORLIGRAY;XA_79:=IF(CLOSE>=XA_36,AMOUNT,DRAWNULL);XA_80:=IF(CLOSE>=XA_36,VOL,DRAWNULL);XA_81:=0.01*SUM(XA_79,XA_26)/SUM(XA_80,XA_26);XA_82:=REFDATE(XA_81,DATE);XA_83:=IF(XA_58,XA_5,0);XA_84:=IF(XA_59,REF(XA_83,XA_59),XA_83);XA_85:=CONST(XA_84);XA_86:=REF(XA_84,XA_59+1);XA_87:=CONST(XA_86);XA_88:=REF(HIGH,XA_3)=HHV(HIGH,2*XA_3+1);XA_89:=BACKSET(XA_88,XA_3+1);XA_90:=FILTER(XA_89,XA_3) AND HIGH=HHV(HIGH,XA_3+1);XA_91:=BARSLAST(XA_90);NOTEXT上区成本:IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_81, XA_81)),DRAWNULL),D OTLINE,COLORRED;XA_92:=IF(CLOSE<=XA_36,AMOUNT,DRAWNULL);XA_93:=IF(CLOSE<=XA_36,VOL,DRAWNULL);XA_94:=0.01*SUM(XA_92,XA_26)/SUM(XA_93,XA_26);XA_95:=REFDATE(XA_94,DATE);NOTEXT下区成本:IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_94, XA_94)),DRAWNULL),D OTLINE,COLORYELLOW;XA_96:=100*VOL/(FINANCE(7)/100);XA_97:=IF(CLOSE>=XA_60,XA_96,DRAWNULL);XA_98:=CONST(INTPART(SUM(XA_97,XA_26)));VB143:DRAWTEXT(CURRBARSCOUNT=CONST(13),XA_66,1), COLORLIGRAY;VB144:DRAWNUMBER(CURRBARSCOUNT=CONST(6),XA_66 *1.007,XA_98),COLORYELLO W;XA_99:=IF(CLOSE<=XA_60 AND CLOSE>=XA_61,XA_96,DRAWNULL);XA_100:=CONST(INTPART(SUM(XA_99,XA_26)));VB148:DRAWTEXT(CURRBARSCOUNT=CONST(13),XA_70,2), COLORRED;VB149:DRAWNUMBER(CURRBARSCOUNT=CONST(6),XA_70 *1.007,XA_100),COLORYELL OW;XA_101:=IF(CLOSE<=XA_61 AND CLOSE>=XA_62,XA_96,DRAWNULL);XA_102:=CONST(INTPART(SUM(XA_101,XA_26)));VB153:DRAWTEXT(CURRBARSCOUNT=CONST(13),XA_74,3), COLORMAGENTA;XA_103:=IF(XA_90,XA_5,0);XA_104:=IF(XA_91,REF(HIGH,XA_91),HIGH);XA_105:=IF(XA_91,REF(XA_103,XA_91),XA_103);XA_106:=REF(XA_104,XA_91+1);XA_107:=CONST(XA_105);XA_109:=CONST(XA_108);XA_110:=REF(XA_106,XA_91+1);VB154:DRAWNUMBER(CURRBARSCOUNT=CONST(6),XA_74 *1.007,XA_102),COLORYELL OW;XA_111:=IF(CLOSE<=XA_62,XA_96,DRAWNULL);XA_112:=CONST(INTPART(SUM(XA_111,XA_26)));VB158:DRAWTEXT(CURRBARSCOUNT=CONST(13),XA_78,4), COLORCYAN;VB159:DRAWNUMBER(CURRBARSCOUNT=CONST(6),XA_78 *1.007,XA_112),COLORYELL OW;XA_113:=IF(CLOSE>=XA_36,XA_96,DRAWNULL);XA_114:=CONST(INTPART(SUM(XA_113,XA_26)));VB163:DRAWTEXT(CURRBARSCOUNT=CONST(XA_26),XA_8 2,5),COLORYELLOW;VB164:DRAWNUMBER(CURRBARSCOUNT=CONST(XA_26-7),XA_82*1.007,XA_114),COLO RYELLOW;XA_115:=IF(CLOSE<=XA_36,XA_96,DRAWNULL);XA_116:=CONST(INTPART(SUM(XA_115,XA_26)));VB168:DRAWTEXT(CURRBARSCOUNT=CONST(XA_26),XA_9 5,6),COLORYELLOW;VB169:DRAWNUMBER(CURRBARSCOUNT=CONST(XA_26-7),XA_95*1.007,XA_116),COLO RYELLOW;XA_117:=REF(LOW,XA_3)=LLV(LOW,2*XA_3+1);XA_118:=BACKSET(XA_117,XA_3+1);XA_119:=FILTER(XA_118,XA_3) AND LOW=LLV(LOW,XA_3+1);XA_120:=BARSLAST(XA_58);XA_121:=IF(XA_119,XA_5,0);XA_122:=IF(XA_120,REF(XA_121,XA_120),XA_83);XA_123:=CONST(XA_122);XA_125:=CONST(XA_124);。
筹码主图公式通达信指标公式源码
筹码主图公式TS:=130;N:=99;M:=3;MT:=3;M1:=5;M2:=7;M3:=21;M4:=12;M5:=50;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),1, 1)COLOR656566,LINETHICK1;STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*N/10 0,HI/POW(GZ,2),1,1)COLOR656566,LINETHICK1;STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*N/10 0,HI/POW(GZ,3),1,1)COLOR656566,LINETHICK1;STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*N/100,HI/POW(GZ,4),1,1)COLOR656566,LINETHICK1;STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*N/10 0,HI/POW(GZ,5),1,1)COLOR656566,LINETHICK1;STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*N/10 0,HI/POW(GZ,6),1,1)COLOR656566,LINETHICK1;STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*N/10 0,HI/POW(GZ,7),1,1)COLOR656566,LINETHICK1;STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*P OW(GZ,3)*N/100,1,1)COLOR656566,LINETHICK1;STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*P OW(GZ,2)*N/100,1,1)COLOR656566,LINETHICK1;STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)* N/100,1,1)COLOR656566,LINETHICK1;DRAWKLINE(H,O,L,C);JJ:=(CLOSE+HIGH+LOW)/3;{BS标志}DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND(REF(ZIG(3,5),1)<=REF(ZIG(3,5),2))AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,7);DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND(REF(ZIG(3,5),1)>=REF(ZIG(3,5),2))AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.02,8);VAR1:=ZIG(3,10)<REF(ZIG(3,10),1) ANDREF(ZIG(3,10),1)>REF(ZIG(3,10),2);VAR2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2); STICKLINE(VAR1,C,O,3,0),COLORYELLOW,LINETHICK2;STICKLINE(VAR1,C,O,1,0),COLORYELLOW,LINETHICK2;STICKLINE(VAR1,H,L,0,0),COLORYELLOW,LINETHICK2;STICKLINE(VAR2,C,O,3,0),COLORFF0FF0,LINETHICK2;STICKLINE(VAR2,C,O,2,0),COLORFF0FF0,LINETHICK2;STICKLINE(VAR2,H,L,1,0),COLORFF0FF0,LINETHICK2;DRAWTEXT(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CL OSE,20)),HIGH*1.06,'-落袋为安'),COLORYELLOW;EXP7:EXPMA(CLOSE,M2),COLORWHITE,LINETHICK1;今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299,NODRAW;高区:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED,DOTLINE;低区:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAGENTA,DOTLI NE;STICKLINE(CCI>=200 AND H>=高区,O,C,3,0),COLORBLUE;STICKLINE(CCI<=100 AND L<=低区,O,C,3,0),COLORYELLOW;。
“筹码”指标源码荟萃6
“筹码”指标源码荟萃6筹码”指标源码荟萃6筹码参考}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;S活筹指数ADPC:=("1A0002$CLOSE"+"399107$CLOSE")/2;ADPO:=("1A0002$OPEN"+"399107$OPEN")/2;ADPH:=("1A0002$HIGH"+"399107$HIGH")/2;ADPL:=("1A0002$LOW"+"399107$LOW")/2;ADPV:=("1A0002$VOL"+"399107$VOL")/2;DPF:=1-1/(1+EMA(ADPV/SUM(ADPV,120),13)*13);开:ADPO*DPF*10,LINETHICK0;高:ADPH*DPF*10,LINETHICK0;低:ADPL*DPF*10,LINETHICK0;收:ADPC*DPF*10,LINETHICK0;STICKLINE(收>=开,收,开,7,0),COLORRED;STICKLINE(收>=开,高,低,0.1,0),COLORRED;STICKLINE(收<=开,收,开,7,0),COLORGREEN;STICKLINE(收<=开,高,低,0.1,0),COLORGREEN;C5:DMA((收+开)/2,ADPV/SUM(ADPV,5)),COLORYELLOW;C13:DMA((收+开)/2,ADPV/SUM(ADPV,13)),COLORMAGENTA; C34:DMA((收+开)/2,ADPV/SUM(ADPV,34)),COLORGREEN;C0:DMA((收+开)/2,ADPV/SUM(ADPV,120)),COLORCYAN;S死筹指数ADPC:=("1A0002$CLOSE"+"399107$CLOSE")/2;ADPO:=("1A0002$OPEN"+"399107$OPEN")/2;ADPH:=("1A0002$HIGH"+"399107$HIGH")/2;ADPL:=("1A0002$LOW"+"399107$LOW")/2;ADPV:=("1A0002$VOL"+"399107$VOL")/2;DPF:=1/(1+EMA(ADPV/SUM(ADPV,120),13)*13);开:ADPO*DPF*10,LINETHICK0;高:ADPH*DPF*10,LINETHICK0;低:ADPL*DPF*10,LINETHICK0;收:ADPC*DPF*10,LINETHICK0;STICKLINE(收>=开,收,开,7,0),COLORRED;STICKLINE(收>=开,高,低,0.1,0),COLORRED;STICKLINE(收<=开,收,开,7,0),COLORGREEN;STICKLINE(收<=开,高,低,0.1,0),COLORGREEN;C5:DMA((收+开)/2,ADPV/SUM(ADPV,5)),COLORYELLOW;C13:DMA((收+开)/2,ADPV/SUM(ADPV,13)),COLORMAGENTA; C34:DMA((收+开)/2,ADPV/SUM(ADPV,34)),COLORGREEN;C0:DMA((收+开)/2,ADPV/SUM(ADPV,100)),COLORCYAN;{庄筹筹码集中度.散筹筹码集中度.主力持仓.散户持仓}主持仓: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;{筹码转移率:指南针为我们发明了筹码分布,使我们能很好地看清楚主力的操作动向。
通达信指标公式源码 主力筹码 副图源码
首先申明有未来函数WINNER,担心的慎用。
主力筹码:=IF(C<0,0,EMA(WINNER(CLOSE)*70,3));散户筹码:=IF(C<0,0,EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3));散户持仓:IF(C<0,0,散户筹码/(主力筹码+散户筹码)*100),COLORGREEN,NODRAW;主力持仓:IF(C<0,0,主力筹码/(主力筹码+散户筹码)*100),COLORRED,NODRAW;散户资金:=IF(C<0,0,EMA(散户持仓,89));主力资金:=IF(C<0,0,EMA(主力持仓,89));资金流入强度:IF(C<0,0,INTPART(主力持仓-主力资金)),NODRAW,COLOR0000FF;SH8:=IF(C<0,0,EMA(散户持仓,8));STICKLINE(CLOSE>0,散户持仓,主力持仓,1,0),COLORGRAY;STICKLINE(散户资金>REF(散户资金,1),散户持仓,散户资金,1,0),COLORWHITE; STICKLINE(CLOSE>0,主力持仓,0,1,0),COLORBROWN;STICKLINE(主力持仓>75,主力持仓,0,1,0),COLORRED;STICKLINE(主力资金>REF(主力资金,1),主力持仓,主力资金,1,0),COLORLIMAGENTA;STICKLINE(散户持仓>=90,主力持仓,0,1,0),COLORGREEN; STICKLINE(REF(散户持仓,1)>90 AND 散户持仓<90,0,散户持仓,1,0),COLORYELLOW;主力介入:REF(散户持仓,1)>90 AND 散户持仓<90,NODRAW;筹码总量:IF(C<0,0,MA(主力筹码+散户筹码,13)),NODRAW;筹码绿:IF(CLOSE>0,筹码总量,DRAWNULL),COLORGREEN,LINETHICK2; 筹码红:IF(筹码总量>REF(筹码总量,1),筹码总量,DRAWNULL),COLORRED,LINETHICK2;资金流入:IF(主力资金>REF(主力资金,1),主力持仓,DRAWNULL),COLORMAGENTA,NODRAW;DRAWTEXT(筹码总量>REF(筹码总量,1) AND SH8<REF(SH8,1) AND ISLASTBAR,筹码总量,'←增量资金');选股:COUNT(主力介入=1,3) AND 筹码红AND 资金流入,NODRAW,COLORYELLOW;。
通达信指标公式源码实用的筹码集中度指标选股公式
实用的筹码集中度指标+选股公式筹码分布及选股公式(原码、附图)源码如下:获利筹码:EMA(WINNER(C)*70,5),Colorred;亏损筹码:EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5),Colorf0ff00; STICKLINE(亏损筹码>0,0,亏损筹码,5,0),COLOR66FF00; STICKLINE(亏损筹码>0,0,亏损筹码*0.9,5,0),COLOR66EE00; STICKLINE(亏损筹码>0,0,亏损筹码*0.85,5,0),COLOR66DD00; STICKLINE(亏损筹码>0,0,亏损筹码*0.8,5,0),COLOR66CC00; STICKLINE(亏损筹码>0,0,亏损筹码*0.75,5,0),COLOR66BB00; STICKLINE(亏损筹码>0,0,亏损筹码*0.7,5,0),COLOR66AA00; STICKLINE(亏损筹码>0,0,亏损筹码*0.65,5,0),COLOR669900; STICKLINE(亏损筹码>0,0,亏损筹码*0.6,5,0),COLOR668800; STICKLINE(亏损筹码>0,0,亏损筹码*0.55,5,0),COLOR667700; STICKLINE(亏损筹码>0,0,亏损筹码*0.5,5,0),COLOR666600; STICKLINE(亏损筹码>0,0,亏损筹码*0.45,5,0),COLOR665500; STICKLINE(亏损筹码>0,0,亏损筹码*0.4,5,0),COLOR664400; STICKLINE(亏损筹码>0,0,亏损筹码*0.35,5,0),COLOR663300; STICKLINE(亏损筹码>0,0,亏损筹码*0.3,5,0),COLOR662200; STICKLINE(亏损筹码>0,0,亏损筹码*0.25,5,0),COLOR661100; STICKLINE(亏损筹码>0,0,亏损筹码*0.2,5,0),COLOR660000;主力控筹:If(获利筹码>亏损筹码,获利筹码*2,获利筹码),colorred; STICKLINE(主力控筹>0,0,主力控筹,5,0),COLORFFFFFF; STICKLINE(主力控筹>0,0,主力控筹*0.9,5,0),COLOREEEEEE; STICKLINE(主力控筹>0,0,主力控筹*0.85,5,0),COLORDDDDDD; STICKLINE(主力控筹>0,0,主力控筹*0.8,5,0),COLORCCCCCC; STICKLINE(主力控筹>0,0,主力控筹*0.75,5,0),COLORBBBBBB; STICKLINE(主力控筹>0,0,主力控筹*0.7,5,0),COLORAAAAAA; STICKLINE(主力控筹>0,0,主力控筹*0.65,5,0),COLOR999999; STICKLINE(主力控筹>0,0,主力控筹*0.6,5,0),COLOR888888; STICKLINE(主力控筹>0,0,主力控筹*0.55,5,0),COLOR777777; STICKLINE(主力控筹>0,0,主力控筹*0.5,5,0),COLOR666666; STICKLINE(主力控筹>0,0,主力控筹*0.45,5,0),COLOR555555; STICKLINE(主力控筹>0,0,主力控筹*0.4,5,0),COLOR444444; STICKLINE(主力控筹>0,0,主力控筹*0.35,5,0),COLOR333333; STICKLINE(主力控筹>0,0,主力控筹*0.3,5,0),COLOR222222; STICKLINE(主力控筹>0,0,主力控筹*0.25,5,0),COLOR111111; STICKLINE(主力控筹>0,0,主力控筹*0.2,5,0),COLOR000000; STICKLINE(获利筹码>0,0,获利筹码,5,0),COLORFFFFFF; STICKLINE(获利筹码>0,0,获利筹码*0.9,5,0),COLOREEEEFF; STICKLINE(获利筹码>0,0,获利筹码*0.85,5,0),COLORDDDDFF; STICKLINE(获利筹码>0,0,获利筹码*0.8,5,0),COLORCCCCFF; STICKLINE(获利筹码>0,0,获利筹码*0.75,5,0),COLORBBBBFF; STICKLINE(获利筹码>0,0,获利筹码*0.7,5,0),COLORAAAAFF;STICKLINE(获利筹码>0,0,获利筹码*0.65,5,0),COLOR9999FF;STICKLINE(获利筹码>0,0,获利筹码*0.6,5,0),COLOR8888FF;STICKLINE(获利筹码>0,0,获利筹码*0.55,5,0),COLOR7777FF;STICKLINE(获利筹码>0,0,获利筹码*0.5,5,0),COLOR6666FF;STICKLINE(获利筹码>0,0,获利筹码*0.45,5,0),COLOR5555FF;STICKLINE(获利筹码>0,0,获利筹码*0.4,5,0),COLOR4444FF;STICKLINE(获利筹码>0,0,获利筹码*0.35,5,0),COLOR3333FF;STICKLINE(获利筹码>0,0,获利筹码*0.3,5,0),COLOR2222FF;STICKLINE(获利筹码>0,0,获利筹码*0.25,5,0),COLOR1111FF;STICKLINE(获利筹码>0,0,获利筹码*0.2,5,0),COLOR0000FF;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,100, 0),Color00FF00;?stickline(抄底,0,30,4,0),ColorFFFFFF;动态底部:EMA(IF(L<=LLV(l,30),SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(L-REF(l,1),0),30,1),0),3)*10,STICK,COL ORYELLOW,LINETHICK2;SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV (AMOUNT,20)/HHV(C,20))*100);STICKLINE(((CLOSE > 0) AND day=2),20,121,40,1),colorFFFFFF;STICKLINE(((SAT <= 5) AND day=2),21,(20 + SAT),35,0),colorFFFFFF;STICKLINE((((SAT > 5) AND (SAT <= 20)) AND day=2),21,(20 + SAT),35,0),colorCCFF88; STICKLINE((((SAT > 20) AND (SAT <= 40)) AND day=2),21,(20 +SAT),35,0),colorFF00FF;STICKLINE(((SAT > 40) AND day=2),21,(20 + SAT),35,0),color0000FF;主力筹码:EMA(WINNER(CLOSE)*70,10),colorwhite;小股民筹码:EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,10),color00ff00; stickline(主力筹码>小股民筹码, 主力筹码,小股民筹码,5,0),Color0AF5EF;stickline(主力筹码<小股民筹码, 主力筹码,小股民筹码,5,0),color00ff00;选股:获利筹码:=EMA(WINNER(C)*70,5);?亏损筹码:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5);XG:CROSS(获利筹码,亏损筹码);。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
“筹码分布”极品指标源码荟萃筹码指标:筹码指标是前期指标界耀眼的闪光点,他有很多优点,但缺点也有;由于其计算不是很精确,建议不要用于选股。
于筹码分布的几个有意思的概念:筹码分布的两个函数:获利盘比率winner(x)=n%;和筹码分布cost(n)=x;互为反函数。
如果从不同的角度来描述,可以更清楚的看出它们的意义。
取X=C 即收盘价(当前价),则:1、winner(c)=n%; 表达的是以收盘价C卖出,而能获利的最大筹码量为流通盘的N%;2、反过来也同样成立,即:cost(n)=c; 表达的是:使流通盘的n%的筹码完全获利的最低价为C;基于这样的理解,我们可以得出几个有意思的公式。
这些公式对判断底部有一定的帮助。
一、区间集中度cmj:(winner(c*(1+m%))-winner(c*(1-m%)))*100;cmj的含义是:收盘价C附近(上下各m%)的筹码量(%);M的取值范围一般为2~10;二、获利倍数cmb:(cost(n)/cost(0)-1)*100;cmb的含义是:N%的筹码中的任意一部份,以当前价卖出时所能得到的最大收益(%);N的取值范围一般为10~90;三、盈亏幅度 ykf:(c/cost(n)-1)*100;ykf的含义是N%的筹码中的任意一部份以当前价卖出时的最大盈亏幅度(%);N的取值范围一般为5~10;需要说明的是:筹码分布是一个统计概念,由于市场的千变万化,人们的交易行为不会只受到一种或几种思维方式的支配,因此不可能仅用一两种模式就能完整地描述市场的真实情况。
也就是说其必然存在着局限性。
从实际的情况看这种局限性还非常严重。
在使用时仅仅只能做为一种参考。
{筹码突出重围}{作强势股不错的指标}check:=CHECKUSER(1);主筹估算:EMA(WINNER(C)*70,3)*check,LINETHICK2,COLORRED;散筹估算:EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,3)*check,LINETHICK1,color green;筹码锁定:散筹估算-主筹估算,COLORFFBB00;FILLRGN(筹码锁定>0,筹码锁定,散筹估算),color009900;FILLRGN(筹码锁定<=0,0,散筹估算),color009900;FILLRGN(筹码锁定>0,0,筹码锁定),COLORFFBB00;FILLRGN(筹码锁定<0,0,筹码锁定),COLORFFBB00;FILLRGN(筹码锁定<-50,-50,筹码锁定),COLORRED;动态底部:EMA(IF(L<=LLV(l,99),SMA(ABS(L-REF(L,1)),99,1)/SMA(MAX(L-REF(l,1),0),99,1),0)*5,3 )*check,COLORYELLOW;FILLRGN(动态底部>0,0,动态底部),COLORYELLOW;主筹估算,LINETHICK2,COLORRED;DRAWICON(CROSS(主筹估算,散筹估算),散筹估算,4);DRAWICON(CROSS(主筹估算,筹码锁定),主筹估算-0.2,8);『穿越筹码』看超跌反弹有一定的辅助作用。
{老公式了,会用的人不多,看超跌反弹有一定的辅助作用}IF((WINNER(CLOSE)-WINNER(OPEN))*100/(VOL*100/CAPITAL)>0,(WINN ER(CLOSE)-WINNER(OPEN))*100/(VOL*100/CAPITAL),0)*100, VOLSTICK,COLORCYAN;IF((WINNER(CLOSE)-WINNER(OPEN))*100/(VOL*100/CAPITAL)<0,(WINN ER(CLOSE)-WINNER(OPEN))*100*VOL*100/CAPITAL,0)*100, VOLSTICK,COLOR5050FF;穿越筹码: (WINNER(CLOSE)-WINNER(OPEN))*100, POINTDOT;{“穿越筹码或者说是看筹码的穿透力”,这已经很清晰了,看背驰是技术分析的一个主要常用手段,量价背驰是最真实的背驰,这个公式只是辅助分析作用,主要的还是趋势,趋势为主,各种辅助分析工具为辅}用法:(理解了一定要顶哦)想深入还是要靠自己去理解。
纯看公式信号操作的,不看任何消息,也不听任何人说那一个股票好与坏,只凭自己的分析,可以说纯技术派是可以在市场里生存与发展得很好的,个人认为纯技术派关键在于做短线,周期越长,纯技术分析所起的作用就越低。
公式上的筹码只是一种假设的分析,把它当作量来分析就行了。
从文字上理解:“穿筹码或者说是看筹码的穿透力”,这已经很清晰了,看背驰是技术分析的一个主要常用手段,量价背驰是最真实的背驰,这个公式只是辅助分析作用,主要的还是趋势,趋势为主,各种辅助分析工具为辅,就可以很清晰了,短期急跌就要反弹,这个是市场规律,炒反弹就少不了看几个经典公式的底背驰来确认,炒短期反弹看经典的KD,W%R,RSI,MACD的柱背驰,研究了公式很多个,也研究了很长时间都没有突破的朋友可以试着同时用多个经典的公式来同时看,主力骗线只能编一部分的公式,如果你同时用多个不同类型的公式同时看问题,那么主力无法骗线,如果主力他能骗,那么他的损失要远比我们大。
股票交易中趋势是一种真理,主力也不能逆转的一种真理,如果主力做骗钱做到趋势都破坏了,那么他将是关上了门自己玩手中的股票了,大部分的人不会跟随他了,所以走势怪异到趋势都破坏了的股票庄家往往不得善终。
好的操盘手都会利用趋势,会借力打力,会在最美好前景的时候俏然全身而退,美丽的诱惑总是会让人致命的。
}{筹码盈亏}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)-WINN ER(O))*100/(V*100/CAPITAL),0)*100,,COLORCYAN;IF((WINNER(C)-WINNER(O))*100/(V*100/CAPITAL)<0,(WINNER(C)-WINN ER(O))*100*V*100/CAPITAL,0)*100,,COLOR5050FF;穿越筹码: (WINNER(C)-WINNER(O))*100,POINTDOT;{个股活筹}Var1:=SMA(AMOUNT,10,1)/;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;套牢盘获利盘筹码比例input:N(20,1,100);套牢盘筹码:100*(1-WINNER(C));获利盘筹码:100*WINNER(C);获利盘平均值:ema(100*WINNER(C),n)获利套牢盘获利盘:100*WINNER(C),COLORYELLOW;套牢盘:100*(1-WINNER(C)),COLORff8800;筹码密集度input:N(13,2,20);Var1:=COST(89)-COST(11);Var2:=COST(99.900)-COST(0.100);单峰密集:(1-Var1/Var2)*100,colormagenta,linethick2;低位密集:(COST(99)-COST(60))/Var2*100,colorcyan,linethick2;高位密集:(COST(40)-COST(1))/Var2*100,colorred,linethick2;获利盘:SMA(WINNER(AMOUNT/VOL/100)*100, N, 1),colorgreen,linethick2; 10,POINTDOT,colorgray;30,POINTDOT,colorgray;50,POINTDOT,colorgray;70,POINTDOT,colorgray;90,POINTDOT,colorgray;{筹码量级}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),Color00 FFFF;STICKLINE(w3,0,w3,3,1),ColorFFFF00;STICKLINE(w4,0,w4,6,1),ColorFF80 FF;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),Colo rred;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);{筹码超跌原码}VarAA:=AMOUNT/(100*vol);cyc13:=ma(VarAA,13);cyc34:=ma(VarAA,34);cycmax:=dma(c,vol/capital);cys13:=(C-cyc13)/cyc13*100;cys34:=(C-cyc34)/cyc34*100;cysmax:=(C-cycmax)/cycmax*100;亏损程度:if(CYS13<=-7,7,0),colorwhite,stick,linethick3;if(CYS13<=-10,10,0),colorffff33,stick,linethick3;if(CYS13<=-16,16,0),colorblue,stick,linethick3;if(CYS13<=-20,20,0),color00ff77,stick,linethick3; if(CYS13<=-25,25,0),coloryellow,stick,linethick3; if(CYS13<=-30,30,0),colorff00ff,stick,linethick3; Var1:=COST(10)*0;Var2:=REF(HIGH,1)*1.1;Var3:=HIGH*1.1;Var4:=(Var3*VOL+Var2*(CAPITAL-VOL))/CAPITAL;Var5:=REF(LOW,1)*0.9;Var6:=LOW*0.9;Var7:=(Var6*VOL+Var5*(CAPITAL-VOL))/CAPITAL;Var8:=EMA(Var7,30);Var9:=EMA(Var4,30);VarA:=Var9-2;VarB:=IF(CLOSE<=Var8,VarA,Var9);超跌: VarB*2.5,color00ff00;TAO:=100*(1-winner(c));a:=1.1*c;b:=0.9*c;ASR:=100*(winner(a)-winner(b));筹码超跌:if((ASR<10) and (TAO>90),30,0),color0099ff;短中长线超跌:if((CYS13<(-16)) and (CYS13>(-100)) and (CYS34<(-20)) and (CYS34>(-100)),40,0),colordff;if((CYS34<(-20)) and (CYS34>(-100)) and (CYSmax<(-30)) and (CYSmax>(-100)),50,0),colorffcc00;反弹:VarA*2.5,colorff00ff;风:if(超跌=反弹and cys13<=-10 and 筹码超跌=30,-30,0),coloryellow,stick,linethick3;云:if(超跌=反弹and cys13<=-16 and 筹码超跌=30 and 短中长线超跌=40,-20,0),colorred,stick,linethick3;{筹码密集}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;{活筹指数}{活筹即增量资金,活筹在熊市中,是把握大盘波段的利器。