真实筹码主图指标公式
筹码指标公式(修改)(转载)
1资金进场 监控器Var1:=EMA(HHV(HIGH,500),21);Var2:=EMA(HHV(HIGH,250),21);Var3:=EMA(HHV(HIGH,90),21);Var4:=EMA(LLV(LOW,500),21);Var5:=EMA(LLV(LOW,250),21);Var6:=EMA(LLV(LOW,90),21);Var7:=EMA((Var4*0.96+Var5*0.96+Var6*0.96+Var1*0.558+Var2*0.558+Var3*0.558) /6,21);Var8:=EMA((Var4*1.25+Var5*1.23+Var6*1.2+Var1*0.55+Var2*0.55+Var3*0.65)/6,21); Var9:=EMA((Var4*1.3+Var5*1.3+Var6*1.3+Var1*0.68+Var2*0.68+Var3*0.68)/6,21); VarA:=EMA((Var7*3+Var8*2+Var9)/6*1.738,21);VarB:=REF(LOW,1);VarC:=SMA(ABS(LOW-VarB),3,1)/SMA(MAX(LOW-VarB,0),3,1)*100;VarD:=EMA(IF(CLOSE*1.35<=VarA,VarC*10,VarC/10),3);VarE:=LLV(LOW,30);VarF:=HHV(VarD,30);Var10:=IF(MA(CLOSE,58),1,0);资金入场: EMA(IF(LOW<=VarE,(VarD+VarF*2)/2,0),3)/618*Var10;资金入场: IF(资金入场>0,资金入场,0),STICK,linethick2, COLOR0000ff;今量: 资金入场;a1:IF(资金入场>0,今量*1.2,0),STICK,linethick5, COLOR0000ff;a2:IF(资金入场>0,今量*0.8,0),STICK,linethick5, COLOR0066ff;a3:IF(资金入场>0,今量*0.6,0),STICK,linethick5, COLOR0099ff;a4:IF(资金入场>0,今量*0.4,0) ,STICK,linethick5,COLOR00ccff;a5:IF(资金入场>0,今量*0.2,0) ,STICK,linethick5,COLOR00ffff2.精确买卖拐点Var1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);Var2:=HIGH-REF(HIGH,1);Var3:=REF(LOW,1)-LOW;Var4:=SUM(IF(Var2>0 AND Var2>Var3,Var2,0),25);Var5:=SUM(IF(Var3>0 AND Var3>Var2,Var3,0),25);Var6:=Var4*100/Var1;Var7:=Var5*100/Var1;Var8:=MA(ABS(Var7-Var6)/(Var7+Var6)*100,15);Var9:=(Var8+REF(Var8,15))/2;A:=(Var7>Var6 AND Var7>25 AND Var6<25);B:ZIG(3,50/5)*100,colorwhite;g:MA(B,2),coloryellow;D:=CROSS(B,g)*1000,colorred;W:=CROSS(g,B)*1000,colorblue;E:=REF(INDEXC,1);F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);Var10:=F AND F<8;Var11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; Var12:=SMA(Var11,3,1);Var13:=SMA(Var12,3,1);Var14:=Var13 AND Var13<20;mm:=A AND D AND Var10 AND Var14 ;DRAWTEXT(W=1000,b*1.05,'卖' ),COLOR00ff00;DRAWTEXT(D=1000,b*1.05,'买'),colorred;3. 买入必涨q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;q3:=SMA(q2, 9, 1);q4:=SMA(q3, 3, 1);长趋势:3*q3-2*q4,colorwhite,linethick3;趋势线:EMA(q3, 3),colorred,linethick3;DRAWTEXT(CROSS(趋势线, 长趋势) AND REF(长趋势,1)>80, REF(长趋势,3),'▼逢高派发'), Color00ff00,linethick5;▲逢低买入: DRAWTEXT(REF(CROSS(趋势线,长趋势),82) AND趋势线>1.3*长趋势,长趋势,'▲逢低买入'), Color00Ffff, linethick1;▲低买: DRAWTEXT(REF(CROSS(长趋势,趋势线),1) AND长趋势>1.3*趋势线,趋势线,'▲低买'),colorblue,linethick1;var3:=PEAKBARS(3,15,1)<10;var5:=IF(var3=1,2,0);顶:= IF(var5=2,2,0);顶a:IF(顶>REF(顶,1),50,0),colorgreen, linethick2;DRAWTEXT(顶a=50,45,'顶 部'),color00ff00;4.下拨上涨bf=(HHV(HIGH,10)-LLV(LOW,5))/(HHV(HIGH,10)-LLV(LOW,30));m5=MA(CLOSE,5);volv=13*SUM(VOL,5)/(5*(SUM(VOL,13)));r:IF((bf<0.5)AND(CLOSE>m5)AND(CLOSE>OPEN)AND(VOLv<1)AND(((CLOSE-LLV(CLOSE,30))/LLV(CLOSE,60))<0.20)AND(MA(CLOSE,20)>MA(CLOSE,30)),1,0);5.黑马王N:=20;N1:=7;N2:=69;T1:=IF((DATE<=1290314),1,0);M3:=EMA(CLOSE,3);M8:EMA(CLOSE,8),CoLor008000;M13:EMA(M8,13),CoLor0000FF;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)) ANDREF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) ANDREF((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;6.锁定筹码A:=1.1*C;B:=0.9*C;B1:=100*(WINNER(A)-WINNER(B));锁定筹码 :100-B1;C1:=MA(C,13)<REF(MA(C,13),1);明天买:IF(CROSS(锁定筹码,90)AND C1,60,0);筹码锁定区:STICKLINE(锁定筹码>65 AND C1,锁定筹码-50,0,6,0);。
筹码分布及选股公式(原码附图)
筹码分布及选股公式(原码、附图)获利筹码: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(L100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20)) *100);STICKLINE(((CLOSE > 0) ANDday=2),20,121,40,1),colorFFFFFF;STICKLINE(((SAT 20) AND (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),colo r00ff00;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.成本筹码指标:成本筹码指标用于计算处于不同价格区间内的持股者的持有成本,可以通过以下公式计算:成本筹码=持有股票数量1*价格1+持有股票数量2*价格2+...+持有股票数量n*价格n其中,持有股票数量(i)表示在价格(i)处持有股票的市场参与者数量。
成本筹码指标反映了市场参与者整体的成本状况,可以用于判断市场的投资水平和资金进出情况。
3.集中度筹码指标:集中度筹码指标用于度量市场参与者对股票的关注程度和市场的热度,可以通过以下公式计算:集中度筹码=持有股票数量(i)^2*价格(i)/(持有股票数量1^2*价格1+持有股票数量2^2*价格2+...+持有股票数量n^2*价格n)其中,持有股票数量(i)表示在价格(i)处持有股票的市场参与者数量。
集中度筹码指标越高,表示市场参与者对该股票的关注度越高,市场热度越大。
4.加权平均价格:加权平均价格是通过对不同价格区间内的成交量进行加权计算而得到的股票价格,可以用于衡量市场交易的活跃程度和成交量的分布情况。
加权平均价格=(成交量1*价格1+成交量2*价格2+...+成交量n*价格n)/总成交量其中,成交量(i)表示在价格(i)处的成交量,总成交量表示一段时间内的总成交量。
在主图在看筹码分布通达信指标公式源码
在主图在看筹码分布MA3:MA(CLOSE,3),COLORWHITE;MA7:MA(CLOSE,7),COLORYELLOW;MA13:MA(CLOSE,13),COLORMAGENTA;MA21:MA(CLOSE,21),COLORGREEN,LINETHICK2;MA34:MA(CLOSE,34),COLOR0099FF;MA55:MA(CLOSE,55),COLORRED;MA89:MA(CLOSE,89),COLORFF7700,LINETHICK2;QWX4:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);QWX5:=CONST((1-7/100)*(DMA(CLOSE,QWX4)));QWX6:=CONST((1+7/100)*(DMA(CLOSE,QWX4)));支撑:IF(PERIOD=5,IF(BARSLAST(CURRBARSCOUNT=5),QWX5,DRAWNULL),DRAWNULL),LI NETHICK3,COLORYELLOW;阻力:IF(PERIOD=5,IF(BARSLAST(CURRBARSCOUNT=5),QWX6,DRAWNULL),DRAWNULL),LI NETHICK3,COLORGREEN;平均成本:COST(50),COLORYELLOW,NODRAW;获利值:(CLOSE-COST(50))/COST(50)*100,COLORGREEN,NODRAW;QQ:=BARSCOUNT(C);DRAWTEXT((QQ+0)/34=FLOOR((QQ+0)/34),H*1.00,'时间窗'),COLORFFFFFF; VARZT:=BARSLAST(C/REF(C,1)>1.099);DRAWTEXT(VARZT=2,L*0.99,'3T'),COLORYELLOW;DRAWTEXT(VARZT=4,L*0.99,'5T'),COLORYELLOW;DRAWTEXT(VARZT=7,L*0.99,'8T'),COLORYELLOW;DRAWTEXT(VARZT=12,L*0.99,'13T'),COLORYELLOW;DRAWTEXT(VARZT=20,L*0.99,'21T'),COLORYELLOW;DRAWTEXT(VARZT=33,L*0.99,'34T'),COLORYELLOW;DRAWTEXT(VARZT=46,L*0.99,'47T'),COLORYELLOW;DRAWTEXT(VARZT=54,L*0.99,'55T'),COLORYELLOW;DRAWTEXT(VARZT=69,L*0.99,'70T'),COLORYELLOW;DRAWTEXT(VARZT=88,L*0.99,'89T'),COLORYELLOW;DRAWTEXT(VARZT=109,L*0.99,'110T'),COLORYELLOW;DRAWTEXT(VARZT=134,L*0.99,'135T'),COLORYELLOW;涨停:=IF(C>1.099*REF(C,1),1,0);STICKLINE(涨停,OPEN,CLOSE,1.5,0),COLORYELLOW;跌停:=IF(C<0.901*REF(C,1),1,0);STICKLINE(跌停,OPEN,CLOSE,1.5,0),COLORBLUE;{===================================================== =================================}DRAWKLINE(H,O,L,C);HB:=COST(99.9);LB:=COST(0.1);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;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(A10 ,MIN(A11,MIN(A12,MIN(A13,MIN(A14,MIN(A15,MIN(A16,MIN(A17,MIN(A18,MIN(A19,MI N(A20,MIN(A21,MIN(A22,MIN(A23,MIN(A24,MIN(A25,MIN(A26,MIN(A27,MIN(A28,MIN(A 29,MIN(A30,MIN(A31,MIN(A32,MIN(A33,MIN(A34,MIN(A35,MIN(A36,MIN(A37,MIN(A38, MIN(A39,MIN(A40,MIN(A41,MIN(A42,MIN(A43,MIN(A44,MIN(A45,MIN(A46,MIN(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(A7* 15,MAX(A8*15,MAX(A9*15,MAX(A10*15,MAX(A11*15,MAX(A12*15,MAX(A13*15,MAX(A 14*15,MAX(A15*15,MAX(A16*15,MAX(A17*15,MAX(A18*15,MAX(A19*15,MAX(A20*15, MAX(A21*15,MAX(A22*15,MAX(A23*15,MAX(A24*15,MAX(A25*15,MAX(A26*15,MAX(A2 7*15,MAX(A28*15,MAX(A29*15,MAX(A30*15,MAX(A31*15,MAX(A32*15,MAX(A33*15,M AX(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,MAX(A46*15,MA X(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;。
筹码强势突破主图之筹码集中买入选股指标公式
ddx:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK;
筹码集中买入:低位单峰密集 AND TT>0 AND crOSS(TT,TT1) AND YY AND WINNER(C)>=0.90;
V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);
V5:=SMA(V2*120/FROMOPEN*5,2,1);
V10:=SMA(V5Y:=CURRBARSCOUNT=1 AND C<REF(C,1);
DY2:=REF(V2,1)-DY;
单峰密集:=A333/A444*100<30,LINETHICK0;
BU1:=HHV(HIGH,250);
BU2:=LLV(LOW,250);
BU3:=BU1-BU2;
BU4:=(A444-BU2);
低位:=A444<(BU3*04+BU2),LINETHICK0;
低位单峰密集:=单峰密集 AND 低位;
TT:=(V2*1.01-REF(V2,1));
TT2:=(REF(V2*1.01,1)-REF(V2,2));
YY:=TT>3*Abs(TT2);
TT1:=EMA(V2,15);
A111:=COst(85);
A222:=COST(15);
A333:=A111-A222;
A444:=(A111+A222)/2;
通达信彩色筹码峰主图指标公式
通达信彩⾊筹码峰主图指标公式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);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);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),,COLOR002288,LINETHICK3;STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*99/100,HI/POW(GZ,2),9,0),COLOR800600,LINETHICK3;STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*99/100,HI/POW(GZ,3),9,0),COLOR808300,LINETHICK3;STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*99/100,HI/POW(GZ,4),9,0),COLOR883D88,LINETHICK3;STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*99/100,HI/POW(GZ,5),9,0),COLOR777700,LINETHICK3;STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*99/100,HI/POW(GZ,6),9,0),COLOR804000,LINETHICK3;STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*99/100,HI/POW(GZ,7),9,0),COLOR003377,LINETHICK3;STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3)*99/100,9,0),COLORLICYAN,LINETHICK3;STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2)*99/100,9,0),COLORLIMAGENTA,LINETHICK3;STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)*99/100,9,0),COLORBROWN,LINETHICK3;DRAWKLINE(H,O,L,C);DRAWKLINE(H,O,L,C);DRAWTEXT(CURRBARSCOUNT=98,LOW*0.88,'☆压⼒越⼤暗条越长,做多越短越好★'),COLORYELLOW; N:=10;T1:=CONST(HHVBARS(V,10)),COLOR0000FF,LINETHICK1;量能平台:IF(CURRBARSCOUNT<=N+15,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL)COLOR0000FF,LINETHICK2;新量能点:IF(CURRBARSCOUNT=T1+1,量能平台,DRAWNULL),CIRCLEDOT,COLORLIGRAY,LINETHICK1; DRAWTEXT(ISLASTBAR,量能平台,' 量能平台');JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);持股区域:STICKLINE(A>B,A,B,2,0),COLORYELLOW;持币区域:STICKLINE(A<B,A,B,2,0),COLORBLUE;DA1赋值:如果130>总的周期数,返回总的周期数,否则返回130DA赋值:如果到最后交易的周期>DA1,返回0,否则返回DA1HI赋值:⽇期⽇DA⽇内最⾼价的最⾼值LO赋值:⽇期⽇DA⽇内最低价的最低值C1赋值:如果到最后交易的周期<=DA,返回收盘价,否则返回⽆效数GZ赋值:HI/LO的⾃然对数/10的指数LH1赋值:如果C1>=(HI/GZ),返回成交量(⼿),否则返回0的DA⽇累和LH2赋值:如果C1>=(HI/GZ的2乘幂)ANDC1<(HI/GZ),返回成交量(⼿),否则返回0的DA⽇累和LH3赋值:如果C1>=(HI/GZ的3乘幂)ANDC1<(HI/GZ的2乘幂),返回成交量(⼿),否则返回0的DA⽇累和LH4赋值:如果C1>=(HI/GZ的4乘幂)ANDC1<(HI/GZ的3乘幂),返回成交量(⼿),否则返回0的DA⽇累和LH5赋值:如果C1>=(HI/GZ的5乘幂)ANDC1<(HI/GZ的4乘幂),返回成交量(⼿),否则返回0的DA⽇累和LH6赋值:如果C1>=(HI/GZ的6乘幂)ANDC1<(HI/GZ的5乘幂),返回成交量(⼿),否则返回0的DA⽇累和LH7赋值:如果C1>=(HI/GZ的7乘幂)ANDC1<(HI/GZ的6乘幂),返回成交量(⼿),否则返回0的DA⽇累和LH8赋值:如果C1>=(HI/GZ的8乘幂)ANDC1<(HI/GZ的7乘幂),返回成交量(⼿),否则返回0的DA⽇累和LH9赋值:如果C1>=(LO*GZ)ANDC1<LO*GZ的2乘幂,返回成交量(⼿),否则返回0的DA⽇累和LH10赋值:如果C1>=LOANDC1<LO*GZ,返回成交量(⼿),否则返回0的DA⽇累和L1赋值:⽇期⽇DA⽇内LH1的最⾼值L2赋值:⽇期⽇DA⽇内LH2的最⾼值L3赋值:⽇期⽇DA⽇内LH3的最⾼值L4赋值:⽇期⽇DA⽇内LH4的最⾼值L5赋值:⽇期⽇DA⽇内LH5的最⾼值L6赋值:⽇期⽇DA⽇内LH6的最⾼值L7赋值:⽇期⽇DA⽇内LH7的最⾼值L8赋值:⽇期⽇DA⽇内LH8的最⾼值L9赋值:⽇期⽇DA⽇内LH9的最⾼值L10赋值:⽇期⽇DA⽇内LH10的最⾼值SS赋值:(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10)当满⾜条件DA*L1/SS的向上舍⼊*3>=到最后交易的周期时,在HI*99/100和HI/GZ位置之间画柱状线,宽度为9,0不为0则画空⼼柱.,,COLOR002288,线宽为3当满⾜条件DA*L2/SS的向上舍⼊*3>=到最后交易的周期时,在HI/GZ的1乘幂*99/100和HI/GZ的2乘幂位置之间画柱状线,宽度为9,0不为0则画空⼼柱.,COLOR800600,线宽为3当满⾜条件DA*L3/SS的向上舍⼊*3>=到最后交易的周期时,在HI/GZ的2乘幂*99/100和HI/GZ的3乘幂位置之间画柱状线,宽度为9,0不为0则画空⼼柱.,COLOR808300,线宽为3当满⾜条件DA*L4/SS的向上舍⼊*3>=到最后交易的周期时,在HI/GZ的3乘幂*99/100和HI/GZ的4乘幂位置之间画柱状线,宽度为9,0不为0则画空⼼柱.,COLOR883D88,线宽为3当满⾜条件DA*L5/SS的向上舍⼊*3>=到最后交易的周期时,在HI/GZ的4乘幂*99/100和HI/GZ的5乘幂位置之间画柱状线,宽度为9,0不为0则画空⼼柱.,COLOR777700,线宽为3当满⾜条件DA*L6/SS的向上舍⼊*3>=到最后交易的周期时,在HI/GZ的5乘幂*99/100和HI/GZ的6乘幂位置之间画柱状线,宽度为9,0不为0则画空⼼柱.,COLOR804000,线宽为3当满⾜条件DA*L7/SS的向上舍⼊*3>=到最后交易的周期时,在HI/GZ的6乘幂*99/100和HI/GZ的7乘幂位置之间画柱状线,宽度为9,0不为0则画空⼼柱.,COLOR003377,线宽为3当满⾜条件DA*L8/SS的向上舍⼊*3>=到最后交易的周期时,在LO*GZ的2乘幂和LO*GZ的3乘幂*99/100位置之间画柱状线,宽度为9,0不为0则画空⼼柱.,画淡青⾊,线宽为3当满⾜条件DA*L9/SS的向上舍⼊*3>=到最后交易的周期时,在LO*GZ的1乘幂和LO*GZ的2乘幂*99/100位置之间画柱状线,宽度为9,0不为0则画空⼼柱.,画淡洋红⾊,线宽为3当满⾜条件DA*L10/SS的向上舍⼊*3>=到最后交易的周期时,在LO和LO*GZ的1乘幂*99/100位置之间画柱状线,宽度为9,0不为0则画空⼼柱.,画棕⾊,线宽为3K线K线N赋值:10T1赋值:10⽇内成交量(⼿)距今天数的最后⼀⽇取值设为常数,COLOR0000FF,线宽为1输出量能平台:如果到最后交易的周期<=N+15,返回如果T1=0,返回收盘价,否则返回T1⽇前的收盘价的最后⼀⽇取值设为常数,否则返回⽆效数COLOR0000FF,线宽为2输出新量能点:如果到最后交易的周期=T1+1,返回量能平台,否则返回⽆效数,CIRCLEDOT,画淡灰⾊,线宽为1当满⾜条件是否最后⼀个周期时,在量能平台位置书写⽂字JJ赋值:(收盘价+最⾼价+最低价)/3A赋值:JJ的10⽇指数移动平均B赋值:昨⽇A输出持股区域:当满⾜条件A>B时,在A和B位置之间画柱状线,宽度为2,0不为0则画空⼼柱.,画黄⾊输出持币区域:当满⾜条件A<B时,在A和B位置之间画柱状线,宽度为2,0不为0则画空⼼柱.,画蓝⾊。
筹码分布主图通达信指标公式源码
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);。
筹码主图公式通达信指标公式源码
筹码主图公式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;。
筹码终极主图指标公式
筹码终极主图指标公式
筹码终极主图指标可以理解为一种通过分析金融市场走势的技术
指标,它依赖于量化的分析,把价格变化精确地显示出来,用以分析
行情走势。
它是由三条曲线组成,分别是 A(0)、B(1)和C(2) 三条曲线,这三条曲线均为简单移动平均线,A(0)条曲线是股价走势最重要
的支撑性曲线,A(0)条曲线是对所选周期内股价真实情况的最佳反应;B(1)条曲线的作用是提示短期趋势的启示,C(2)条曲线会精确预测趋
势的变化,三者结合,就可以得出筹码终极主图指标的公式:
筹码终极指标=(A(0)+B(1)+2*C(2))/4
经过多次运算,筹码终极指标周期性买卖点的位置就能定位,进而形
成买入和卖出的指示,这样可以更好地进行股票市场的投资和操作。
筹码终极主图指标的公式十分简单,是A(0)+B(1)+2*C(2))/4,由
它可以精确计算出价格的变化。
它的好处在于可以得到更快的信号反应,这样就可以预测市场的走势,并对投资进行更好的操作。
它同时
也有弊端,那就是不能准确判断市场趋势,有时会发出错误的信号,
所以在进行投资时就要慎重。
通达信筹码分布主图源码指标公式
通达信筹码分布主图源码指标公式股票公式不明白请查阅:股票公式文件使用以及说明!{宝塔线}VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),8,0),COLOR0000AA;{红1}STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),6,0),COLOR0000CC;{红1}STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),4,0),COLOR0000DD;{红1}STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),2,0),COLOR0000FF;{红1}STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),0,0),COLORYELLOW;{红1}VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),8,0),COLOR998855;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),6,0),COLORBBAA77;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),4,0),COLORDDCC99;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),2,0),COLORFFEEBB;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 ORVAR18,CLOSE,REF(CLOSE,1),0,0),COLORCYAN;VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),8,0),COLOR00 FFFF;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),6,0),COLOR00 C8FF;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),4,0),COLOR10 ECFF;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR10 FFFF;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),0,0),COLOR10 F0FF;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),8,0),COLOR00 D900;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),6,0),COLOR93 FFD1;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),4,0),COLOR93 FF22;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR24 FF22;{● 筹码分布主图指标底线:COST(30),COLOR00FF00, LINETHICK2;拉升线:COST(70),COLORFF00FF,LINETHICK2;逃顶线:=COST(90);风险线:=HHV(COST(90),20);VV:=HHV(COST(90),10);XX:=LLV(COST(70),20);市场重心:(HHV(H,0)+LLV(L,0))/2,COLORYELLOW,LINETHICK2; 套牢筹码:STICKLINE(逃顶线<VV,逃顶线,VV,8,0),COLORFFFF00;。
筹码分布表现在主图中通达信指标公式源码
筹码分布表现在主图中CM1:=INTPART(PPART(1)*100); CM2:=INTPART(PPART(2)*100); CM3:=INTPART(PPART(3)*100); CM4:=INTPART(PPART(4)*100); CM5:=INTPART(PPART(5)*100); CM6:=INTPART(PPART(6)*100); CM7:=INTPART(PPART(7)*100); CM8:=INTPART(PPART(8)*100); CM9:=INTPART(PPART(9)*100); CM10:=INTPART(PPART(10)*100); CM11:=INTPART(PPART(11)*100); CM12:=INTPART(PPART(12)*100); CM13:=INTPART(PPART(13)*100); CM14:=INTPART(PPART(14)*100); CM15:=INTPART(PPART(15)*100); CM16:=INTPART(PPART(16)*100); CM17:=INTPART(PPART(17)*100); CM18:=INTPART(PPART(18)*100); CM19:=INTPART(PPART(19)*100); CM20:=INTPART(PPART(20)*100); CM21:=INTPART(PPART(21)*100); CM22:=INTPART(PPART(22)*100); CM23:=INTPART(PPART(23)*100); CM24:=INTPART(PPART(24)*100); CM25:=INTPART(PPART(25)*100); CM26:=INTPART(PPART(26)*100); CM27:=INTPART(PPART(27)*100); CM28:=INTPART(PPART(28)*100); CM29:=INTPART(PPART(29)*100); CM30:=INTPART(PPART(30)*100); CM31:=INTPART(PPART(31)*100); CM32:=INTPART(PPART(32)*100); CM33:=INTPART(PPART(33)*100); CM34:=INTPART(PPART(34)*100); CM35:=INTPART(PPART(35)*100); CM36:=INTPART(PPART(36)*100); CM37:=INTPART(PPART(37)*100); CM38:=INTPART(PPART(38)*100); CM39:=INTPART(PPART(39)*100); CM40:=INTPART(PPART(30)*100); CM41:=INTPART(PPART(41)*100); CM42:=INTPART(PPART(42)*100); CM43:=INTPART(PPART(43)*100);CM44:=INTPART(PPART(44)*100);CM45:=INTPART(PPART(45)*100);CM46:=INTPART(PPART(46)*100);CM47:=INTPART(PPART(47)*100);CM48:=INTPART(PPART(48)*100);CM49:=INTPART(PPART(49)*100);CM50:=INTPART(PPART(50)*100);CM51:=INTPART(PPART(51)*100);CM52:=INTPART(PPART(52)*100);CM53:=INTPART(PPART(53)*100);CM54:=INTPART(PPART(54)*100);CM55:=INTPART(PPART(55)*100);CM56:=INTPART(PPART(56)*100);CM57:=INTPART(PPART(57)*100);CM58:=INTPART(PPART(58)*100);CM59:=INTPART(PPART(59)*100);CM60:=INTPART(PPART(60)*100);IF(CURRBARSCOUNT<INTPART(CM2/2),CONST(COSTEX(REF(C,1),REF(C,2))),DRAWNUL L),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM3/2),CONST(COSTEX(REF(C,2),REF(C,3))),DRAWNUL L),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM4/2),CONST(COSTEX(REF(C,3),REF(C,4))),DRAWNUL L),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM5/2),CONST(COSTEX(REF(C,4),REF(C,5))),DRAWNUL L),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM6/2),CONST(COSTEX(REF(C,5),REF(C,6))),DRAWNUL L),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM7/2),CONST(COSTEX(REF(C,6),REF(C,7))),DRAWNUL L),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM8/2),CONST(COSTEX(REF(C,8),REF(C,9))),DRAWNUL L),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM9/2),CONST(COSTEX(REF(C,9),REF(C,10))),DRAWNU LL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM10/2),CONST(COSTEX(REF(C,10),REF(C,11))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM11/2),CONST(COSTEX(REF(C,11),REF(C,12))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM12/2),CONST(COSTEX(REF(C,12),REF(C,13))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM13/2),CONST(COSTEX(REF(C,13),REF(C,14))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM14/2),CONST(COSTEX(REF(C,14),REF(C,15))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM15/2),CONST(COSTEX(REF(C,15),REF(C,16))),DRAWIF(CURRBARSCOUNT<INTPART(CM16/2),CONST(COSTEX(REF(C,16),REF(C,17))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM17/2),CONST(COSTEX(REF(C,17),REF(C,18))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM18/2),CONST(COSTEX(REF(C,18),REF(C,19))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM19/2),CONST(COSTEX(REF(C,19),REF(C,20))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM20/2),CONST(COSTEX(REF(C,20),REF(C,21))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM21/2),CONST(COSTEX(REF(C,21),REF(C,22))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM22/2),CONST(COSTEX(REF(C,22),REF(C,23))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM23/2),CONST(COSTEX(REF(C,23),REF(C,24))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM24/2),CONST(COSTEX(REF(C,24),REF(C,25))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM25/2),CONST(COSTEX(REF(C,25),REF(C,26))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM26/2),CONST(COSTEX(REF(C,26),REF(C,27))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM27/2),CONST(COSTEX(REF(C,27),REF(C,28))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM28/2),CONST(COSTEX(REF(C,28),REF(C,29))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM29/2),CONST(COSTEX(REF(C,29),REF(C,30))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM30/2),CONST(COSTEX(REF(C,30),REF(C,31))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM31/2),CONST(COSTEX(REF(C,31),REF(C,32))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM32/2),CONST(COSTEX(REF(C,32),REF(C,33))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM33/2),CONST(COSTEX(REF(C,33),REF(C,34))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM34/2),CONST(COSTEX(REF(C,34),REF(C,35))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM35/2),CONST(COSTEX(REF(C,35),REF(C,36))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM36/2),CONST(COSTEX(REF(C,36),REF(C,37))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM37/2),CONST(COSTEX(REF(C,37),REF(C,38))),DRAWIF(CURRBARSCOUNT<INTPART(CM38/2),CONST(COSTEX(REF(C,38),REF(C,39))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM39/2),CONST(COSTEX(REF(C,39),REF(C,40))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM40/2),CONST(COSTEX(REF(C,40),REF(C,41))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM41/2),CONST(COSTEX(REF(C,41),REF(C,42))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM42/2),CONST(COSTEX(REF(C,42),REF(C,43))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM43/2),CONST(COSTEX(REF(C,43),REF(C,44))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM44/2),CONST(COSTEX(REF(C,44),REF(C,45))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM45/2),CONST(COSTEX(REF(C,45),REF(C,46))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM46/2),CONST(COSTEX(REF(C,46),REF(C,47))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM47/2),CONST(COSTEX(REF(C,47),REF(C,48))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM48/2),CONST(COSTEX(REF(C,48),REF(C,49))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM49/2),CONST(COSTEX(REF(C,49),REF(C,50))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM50/2),CONST(COSTEX(REF(C,50),REF(C,51))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM51/2),CONST(COSTEX(REF(C,51),REF(C,52))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM52/2),CONST(COSTEX(REF(C,52),REF(C,53))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM53/2),CONST(COSTEX(REF(C,53),REF(C,54))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM54/2),CONST(COSTEX(REF(C,54),REF(C,55))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM55/2),CONST(COSTEX(REF(C,55),REF(C,56))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM56/2),CONST(COSTEX(REF(C,56),REF(C,57))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM57/2),CONST(COSTEX(REF(C,57),REF(C,58))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM58/2),CONST(COSTEX(REF(C,58),REF(C,59))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM59/2),CONST(COSTEX(REF(C,59),REF(C,60))),DRAWIF(CURRBARSCOUNT<INTPART(CM60/2),CONST(COSTEX(REF(C,60),REF(C,61))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM1/2),CONST(C),DRAWNULL),COLORRED; DRAWKLINE(H,O,L,C);。
通达信缠论筹码主图指标公式
通达信缠论筹码主图指标公式JJ:AMOUNT/VOL/100;MA144:MA(JJ,144);G:=MA(C,5);D:=MA(C,10);HH:=REF(H,5)=HHV(H,11);LL:=REF(L,5)=LLV(L,11);FG01:=BACKSET(HH,6)>BACKSET(HH,5) ;FD01:=BACKSET(LL,6)>BACKSET(LL,5) ;FG02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND G>D,FG01,IF(BARSLAST(FD01)>BARSLAST(FG01),FG01,0));FD02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND D>G,FD01,IF(BARSLAST(FG01)>BARSLAST(FD01),FD01,0));FG0:=FG02 AND H=HHV(H,BARSLAST(FD02));FD0:=FD02 AND L=LLV(L,BARSLAST(FG02));GP:IF(FG0,H,DRAWNULL),CIRCLEDOT,COLORCYAN;DP:IF(FD0,L,DRAWNULL),CIRCLEDOT,COLORCYAN;GQ:=L>REF(H,1) AND DAY!=REF(DAY,1);DQ:=H<REF(L,1) AND DAY!=REF(DAY,1);GQL:=REF(L,BARSLAST(GQ));DQH:=REF(H,BARSLAST(DQ));FGH:=REF(H,BARSLAST(FG0));FGL:=REF(L,BARSLAST(FG0));FGH1:=REF(H,BARSLAST(FG0)+1);FGL1:=REF(L,BARSLAST(FG0)+1);FGH2:=REF(H,BARSLAST(FG0)+2);FGL2:=REF(L,BARSLAST(FG0)+2);FDH:=REF(H,BARSLAST(FD0));FDL:=REF(L,BARSLAST(FD0));FDH1:=REF(H,BARSLAST(FD0)+1);FDL1:=REF(L,BARSLAST(FD0)+1);FDH2:=REF(H,BARSLAST(FD0)+2);FDL2:=REF(L,BARSLAST(FD0)+2);FGZH:=IF(FGL<=FGL1,FGH2,FGH1);FGZL:=IF(FGH1<FGL,FGL,IF(FGL<=FGL1,FGL2,FGL1));FDZH:=IF(FDL1>FDH,FDH,IF(FDH>=FDH1,FDH2,FDH1));FDZL:=IF(FDH>=FDH1,FDL2,FDL1);FG1:=FGH>FDZH AND FG0;FD1:=FDL<FGZL AND FD0;FG:=FG1 AND FGH>FDH AND FGL>FDL AND FGL1>FDL;FD:=FD1 AND FDL<FGL AND FDH<FGH AND FDH1<FGH;BH0:=(H<=REF(H,1) AND L>=REF(L,1)) OR (H>=REF(H,1) AND L<=REF(L,1));BHG:=COUNT(BH0,BARSLAST(FD0));BHD:=COUNT(BH0,BARSLAST(FG0));BGQ:=COUNT(GQ,BARSLAST(FD0));BDQ:=COUNT(DQ,BARSLAST(FG0));BK0:=IF(BHG>0,BHG+2+1,IF(BHD,BHD+2+1,3));BK:=IF(BGQ,BK0-BGQ,IF(BDQ,BK0-BDQ,BK0));G1X:=(FG AND BARSLAST(FD)>BK);D1X:=(FD AND BARSLAST(FG)>BK);G1:=(FG0 AND REF(H,BARSLAST(FG0))>=REF(H,BARSLAST(G1X)) AND BARSLAST(D1X)>BARSLAST(G1X))OR (FG1 AND COUNT(GQ,BARSLAST(FD1))>0 AND REF(H,BARSLAST(FG1))>REF(H,BARSLAST(G1X)));D1:=(FD0 ANDREF(L,BARSLAST(FD0))<=REF(L,BARSLAST(D1X)) AND BARSLAST(G1X)>BARSLAST(D1X))OR (FD1 AND COUNT(DQ,BARSLAST(FG1))>0 AND REF(L,BARSLAST(FD1))<REF(H,BARSLAST(D1X)));G1H:=IF(BARSLAST(D1)>BARSLAST(G1),REF(H,BARSLAST(G 1)),REF(H,BARSLAST(D1))),;D1L:=IF(BARSLAST(G1)>BARSLAST(D1),REF(L,BARSLAST(D1) ),REF(L,BARSLAST(G1)));G2:=G1 AND H=HHV(G1H,BARSLAST(D1)+1) AND H>REF(H,1) AND BARSLAST(D1)>BARSLAST(G1);D2:=D1 AND L=LLV(D1L,BARSLAST(G1)+1) AND L<REF(L,1) AND BARSLAST(G1)>BARSLAST(D1);G3:=G2 OR (FG0 AND REF(H,BARSLAST(FG0))>REF(H,BARSLAST(G2)) AND BARSLAST(D2)>BARSLAST(G2));D3:=D2 OR (FD0 AND REF(L,BARSLAST(FD0))<REF(L,BARSLAST(D2)) AND BARSLAST(G2)>BARSLAST(D2));GPB:IF(G1X,H,DRAWNULL),CIRCLEDOT,COLORYELLOW;DPB:IF(D1X,L,DRAWNULL),CIRCLEDOT,COLORYELLOW;{画线}NN:=G3;UU:=D3;L1:DRAWLINE(UU,L,NN,H,0),COLORLIGREEN;L2:DRAWLINE(NN,H,UU,L,0),COLORLIGREEN;。
真实筹码主图指标公式
真实筹码主图指标公式真实筹码主图指标公式W10:=COST(10);W20:=COST(20);W30:=COST(30);W40:=COST(40);W50:=COST(50);W60:=COST(60);W70:=COST(70);W80:=COST(80);W90:=COST(90);W100:=COST(99);W5:=COST(5);W15:=COST(15);W25:=COST(25);W35:=COST(35);W45:=COST(45);W55:=COST(55);W65:=COST(65);W75:=COST(75);W85:=COST(85);W95:=COST(95);C5:=W5-W00;C10:=W10-W5;C15:=W15-W10;C20:=W20-W15;C25:=W25-W20;C30:=W30-W25;C35:=W35-W30;C40:=W40-W35;C45:=W45-W40;C50:=W50-W45;C55:=W55-W50;C60:=W60-W55;C65:=W65-W60;C70:=W70-W65;C75:=W75-W70;C80:=W80-W75;C85:=W85-W80;C90:=W90-W85;C95:=W95-W90;C100:=W100-W95;ZX:=MIN(C5,MIN(C10,MIN(C15,MIN(C20,MIN(C25,MIN(C 30,MIN(C35,MIN(C40,MIN(C45,MIN(C50,MIN(C55,MIN(C 60,MIN(C65,MIN(C70,MIN(C75,MIN(C80,MIN(C85,MIN(C 90,MIN(C95,C100)))))))))))))))))));STICKLINE(ZX=C5,W00,W5,5,0),COLORFF8800; STICKLINE(ZX=C10,W10,W5,5,0),COLORFF8800; STICKLINE(ZX=C15,W15,W10,5,0),COLORFF8800; STICKLINE(ZX=C20,W20,W15,5,0),COLORFF8800; STICKLINE(ZX=C25,W25,W20,5,0),COLORFF8800; STICKLINE(ZX=C30,W30,W25,5,0),COLORFF8800; STICKLINE(ZX=C35,W35,W30,5,0),COLORFF8800; STICKLINE(ZX=C40,W40,W35,5,0),COLORFF8800; STICKLINE(ZX=C45,W45,W40,5,0),COLORFF8800; STICKLINE(ZX=C50,W50,W45,5,0),COLORFF8800; STICKLINE(ZX=C55,W55,W50,5,0),COLORFF8800; STICKLINE(ZX=C60,W60,W55,5,0),COLORFF8800; STICKLINE(ZX=C65,W65,W60,5,0),COLORFF8800;STICKLINE(ZX=C70,W70,W65,5,0),COLORFF8800; STICKLINE(ZX=C75,W75,W70,5,0),COLORFF8800; STICKLINE(ZX=C80,W80,W75,5,0),COLORFF8800; STICKLINE(ZX=C85,W85,W70,5,0),COLORFF8800; STICKLINE(ZX=C90,W90,W85,5,0),COLORFF8800; STICKLINE(ZX=C95,W95,W90,5,0),COLORFF8800; STICKLINE(ZX=C100,W100,W95,5,0),COLORFF8800;筹宽:=W100-W00;J90:=W90-W60;J80:=W80-W50;J70:=W70-W40;J60:=W60-W30;J50:=W50-W20;J40:=W40-W10;J30:=W30-W00;STICKLINE(J90/筹宽<0.08,W90,W60,5,0),COLOR74D9A4; STICKLINE(J80/筹宽<0.08,W80,W50,5,0),COLOR74D9A4; STICKLINE(J70/筹宽<0.08,W70,W40,5,0),COLOR74D9A4; STICKLINE(J60/筹宽<0.08,W60,W30,5,0),COLOR74D9A4; STICKLINE(J50/筹宽<0.08,W50,W20,5,0),COLOR74D9A4; STICKLINE(J40/筹宽<0.08,W40,W10,5,0),COLOR74D9A4; JJ90:=W90-W70;JJ80:=W80-W60;JJ70:=W70-W50;JJ60:=W60-W40;JJ50:=W50-W30;JJ40:=W40-W20;JJ30:=W30-W10;STICKLINE(JJ90/筹宽<0.05,W90,W70,5,0),COLORFFFF00; STICKLINE(JJ80/筹宽<0.05,W80,W60,5,0),COLORFFFF00; STICKLINE(JJ70/筹宽<0.05,W70,W50,5,0),COLORFFFF00; STICKLINE(JJ60/筹宽<0.05,W60,W40,5,0),COLORFFFF00; STICKLINE(JJ50/筹宽<0.05,W50,W30,5,0),COLORFFFF00; STICKLINE(JJ40/筹宽<0.05,W40,W20,5,0),COLORFFFF00; STICKLINE(JJ30/筹宽<0.05,W30,W10,5,0),COLORFFFF00;{彩色K线}TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);TYX4:=MA((C+L+O+H)/4,13);TYX5:=EMA((C+L+O+H)/4,21);{空心红}STICKLINE(CO,H,L,0,0),COLORRED;STICKLINE(CO,C,O,3,1),COLORRED;{深绿}STICKLINE(CTYX5 AND CO,H,L,0,0 ),COLOR00EEFF; STICKLINE(C>TYX5 ANDC>O,C,O,3,0 ),COLOR00AAFF;STICKLINE(C>TYX5 ANDC>O,C,O,2,0 ),COLOR00CCFF;STICKLINE(C>TYX5 ANDC>O,C,O,1,0 ),COLOR00EEFF;{粉红}STICKLINE(C>TYX4 AND C>O,H,L,0,0),COLORFF66AA; STICKLINE(C>TYX4 ANDC>O,C,O,3,0 ),COLORFF11FF;STICKLINE(C>TYX4 ANDC>O,C,O,2,0 ),COLORFF44FF;STICKLINE(C>TYX4 ANDC>O,C,O,1,0 ),COLORFF66FF;{亮灰}STICKLINE(C>TYX4 AND CO,H,L,0,0),COLOR0000DD;STICKLINE(C>TYX3 AND C>O,C,O,3,0),COLOR000099; STICKLINE(C>TYX3 AND C>O,C,O,2,0),COLOR0000BB; STICKLINE(C>TYX3 AND C>O,C,O,1,0),COLOR0000DD; {涨跌停K 线}STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORYELLOW; STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORWHITE;{突破}STICKLINE(REF(COUNT(CTYX3 ANDC>O,C,O,1,0),COLOR00CCFF;。
筹码指标公式
筹码集中度指标公式 :庄筹 :=WINNER(CLOSE)*100;筹码集中度:EMA(庄筹,20),COLORRED;筹码集中警戒线:EMA(筹码集中度,5),COLORyellow;筹码集中生命线:EMA(筹码集中警戒线,5),COLORgreen, linethickl;STICKLINE筹码集中度 >筹码集中警戒线,筹码集中度,筹码集中警戒线,2,O),COLORred;STICKLINE筹码集中度 <筹码集中警戒线,筹码集中度,筹码集中警戒线,2,0),COLORgreen; STICKLINE筹码集中警戒线 > 筹码集中生命线,筹码集中警戒线,筹码集中生命线,2,O),COLORffOOff; STICKLINE筹码集中警戒线 < 筹码集中生命线,筹码集中警戒线,筹码集中生命线,2,0),COLORffff00; A:=CROSS筹码集中度,筹码集中警戒线);B:=CROSS筹码集中警戒线,筹码集中度);DRAWICON(A筹码集中度-0.1,10);DRAWICON(B 筹码集中度 +0.1,12);短线操作指标公式Var1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;Var2:=SMA(Var1,3,1);Var3:=SMA(Var2,3,1);Var4:=3*Var2-2*Var3;Var5:=LLV(LOW,5);Var6:=HHV(HIGH,5);Var7:=EMA((CLOSE-Var5)/(Var6-Var5)*100,4)*2;Var8:=EMA(0.667*REF(Var7,1)+0.333*Var7,2);Var9:=3*Var7-2*Var8;VarA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);VarB:=POW(MA(LOW,5),2)+MA(LOW,5);VarC:=POW(MA(HIGH,5),2)+MA(HIGH,5);VarD:=(VarA-LLV(VarB,64))/(HHV(VarC,64)-LLV(VarB,64))*150+65-10;VarE:=SMA(VarD,3,1)*1.5-100;VarF:=SMA(VarE,3,1);Var10:=3*VarE-2*VarF;Var11:=(HIGH+LOW+CLOSE*24)/;Var12:=EMA(Var11,13);Var13:=STD(Var11,13);Var14:=(Var11-Var12)*100/Var13;Var15:=EMA(Var14,5);Var17:=EMA(Var15,13)+200-100;Var18:=EMA(Var17,10);Var19:=3*Var17-2*Var18;Var1A:=Var2+Var7+VarE+Var17;Var1B:=Var3+Var8+VarF+Var18;Var1C:=Var4+Var9+Var10+Var19;Var1D:=(HIGH+LOW+CLOSE3);/Var20:=(Var1D-MA(Var1D,34))/(0.015*AVEDEV(Var1D,34));Var22:=(HIGH+LOW+CLOSE+Var1D4);/Var23:=EMA(Var22,24);Var24:=STD(Var22,24);Var25:=(Var22-Var23)/Var24*100;Var26:=(Var1D-MA(Var1D,24))/(0.015*AVEDEV(Var1D,24));Var27:=EMA(Var25,5);Var2A:=((Var27+Var26+Var20)/3+165)/4;Var2B:=(EMA(EMA(EMA(Var2A,15),10),5)-25)*2;Var2C:=(Var1A+Var1B+Var1C*30)3/ 2/5-15;Var2D:=EMA(Var2C,7);Var2E:=(Var2A+Var2C)2//1.1;超短 :EMA(Var2E,3),colorred ;短线:EMA(超短,5),colorwhite;主力主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),colorffO 0ff,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 ,colorgree n,li nethick2主力持仓附图VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),13,1)/SMA(MAX(LOW-VAR2,0),13,1)*100;VAR4:=EMA(IF(CLOSE*1.2,VAR3*13,VAR/313),13);VAR5:=LLV(LOW,34);VAR6:=HHV(VAR4,34);VAR7:=IF(LLV(LOW,56),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;VAR9:=EMA(CLOSE,5);VAR10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(-10);VAR11:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*(-1);VAR12:=EMA(CLOSE,5)*(-1);STICKLINE(VAR12<REF(VAR12,1),0,VAR12*0.8,4,1),COLOR10E410;减仓:IF(VAR12<REF(VAR12,1),VAR12,0),COLOR10E410,LINETHICK1,NODRAW; STICKLINE(VAR9<REF(VAR9,1),0,VAR9*0.08,4,1),COLOR1010FF;增仓:IF(VAR9<REF(VAR9,1),VAR9*0.2,0),COLOR1010F,FLINETHICK1;STICKLINE(VAR8>REF(VAR8,1),0,VAR8,4,1),COLOR10FF,LFINF ETHICK1;主力进场:IF(VAR8>REF(VAR8,1),VAR8*8,0),COLOR10FFF,LFINETHICK1,NODRAW;STICKLINE(VAR11>REF(VAR11,1),0,VAR11,4,1),COLORFFF810;洗盘:IF(VAR11>REF(VAR11,1),VAR11*8,0),COLORFFF810,LINETHICK1,NODRAW; 主力持仓:LOW,COLORFF10F,FLINETHICK1,NODRAW;增减力度:VAR10*5,COLORWHITE,LINETHICK1;XL1:=MA(LOW,2)*0.96;XL2:=MA(LOW,26)*0.85;XL3:=REF(XL1,1)<XL2 AND REF(XL1,1)<XL1 AND REF(XL1,1)<REF(XL1,2);STICKLINE(XL3,0,VAR8*3,4,0),COLOR006EFF;DRAWTEXT(XL3,VAR8*2 买'),COLORMAGENTA;T 买:DRAWICON(XL3,VAR8*3.5,1),COLORRED;XL4:=CROSS(0增减力度);DRAWTEXT(XL4,VAR8*3加仓'),COLORYELLOW;将五个(多空、主力、大户、中户、散户)合在一起了V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);HY1:=REF(EMA(V1,3),1);多空趋势 :=(MA((CLOSE - HY1) * 10,2))*0.1;操盘4:STICKLINE多空趋势>=0 AND多空趋势>=REF多空趋势,1),6,6+多空趋势,1,0),COLORYELLOW;减仓4:STICKLINE多空趋势>=0 AND多空趋势< REF多空趋势,1),6,6+多空趋势,1,0),COLORYELLOW;反弹4:STICKLINE多空趋势<0 AND多空趋势>=REF多空趋势,1),6,6+多空趋势,1,0),COLORGREEN;寻底4:STICKLINE多空趋势<0 AND多空趋势< REF多空趋势,1),6,6+多空趋势,1,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,I多(空趋势 >=0,6,6.3),'多空'),COLORWHITE;换手 :=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34); 均量:=(主力+大户+中户+散户)/4;主力能量:(主力-均量),NODRAW;大户能量:(大户-均量),NODRAW;中户能量 :(中户 -均量 ),NODRAW;散户能量 :(散户 -均量 ),NODRAW;操盘:STICKLINE主力能量>=0 AND主力能量>=REF主力能量,1),4.5,4.5+主力能量,1,1),C0L0RYELL0W; 减仓:STICKLINE主力能量>=0 AND主力能量< REF主力能量,1),4.5,4.5+主力能量,1,1),COLORYELLOW; 反弹:STICKLINE主力能量<0 AND主力能量>=REF主力能量,1),4.5,4.5+主力能量,1,1),COLORGREEN;寻底:STICKLINE主力能量<0 AND主力能量< REF主力能量,1),4.5,4.5+主力能量,1,1),COLORGREEN;DRAWTEXT(ISLASTBAR=1,主力能量>=0,4.2,4.8),'机构'),COLORWHITE;操盘1:STICKLINE大户能量>=0 AND大户能量>=REF大户能量,1),3,3+大户能量,1,1),COLORYELLOW;减仓1:STICKLINE大户能量>=0 AND大户能量< REF大户能量,1),3,3+大户能量,1,1),COLORYELLOW;反弹1:STICKLINE大户能量<0 AND大户能量>=REF大户能量,1),3,3+大户能量,1,1),COLORGREEN;寻底1:STICKLINE大户能量<0 AND大户能量< REF大户能量,1),3,3+大户能量,1,1),COLORGREEN;DRAWTEXT(ISLASTBAR=1,大户能量>=0,2.7,3.3),'大户'),COLORWHITE;操盘2:STICKLINE中户能量>=0 AND中户能量>=REF中户能量,1),1.5,1.5+中户能量,1,1),COLORYELLOW; 减仓2:STICKLINE中户能量>=0 AND中户能量< REF中户能量,1),1.5,1.5+中户能量,1,1),COLORYELLOW; 反弹2:STICKLINE中户能量<0 AND中户能量>=REF中户能量,1),1.5,1.5+中户能量,1,1),COLORGREEN;寻底2:STICKLINE中户能量<0 AND中户能量< REF中户能量,1),1.5,1.5+中户能量,1,1),COLORGREEN;DRAWTEXT(ISLASTBAR=1,I中户能量>=0,1.2,1.8),'中户'),COLORWHITE;操盘3:STICKLINE散户能量>=0 AND散户能量>=REF散户能量,1),0,散户能量,1,1),COLORYELLOW;减仓3:STICKLINE散户能量>=0 AND散户能量< REF散户能量,1),0,散户能量,1,1),COLORYELLOW;反弹3:STICKLINE散户能量<0 AND散户能量>=REF散户能量,1),0,散户能量,1,1),COLORGREEN; 寻底3:STICKLINE散户能量<0 AND散户能量< REF散户能量,1),0,散户能量,1,1),COLORGREEN;DRAWTEXT(ISLASTBAR=1,散户能量>=0,-0.3,0.3),'散户'),COLORWHITE;大单,小单对比AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)£VOL/NETHICK0,COLORRED;卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN;进出量:=买量+卖量,COLOROOFFFF;STICKLINE t出量 <0,0,进出量,4,O),COLORFF66OO;STICKLINE t出量 <0,0,进出量,3,O),COLORFF99OO;STICKLINE t出量 <0,0,进出量,1.5,O),COLORFFCCOO;STICKLINE t出量 <0,0,进出量,O.5,O),COLORCYAN;STICKLINE T出量 >0,0,进出量,4,0),COLOR000099;STICKLINE T出量 >0,0,进出量,3,0),COLOR0000CC;STICKLINE T出量 >0,0,进出量,1.5,0),COLOR0000FF;STICKLINE T出量 >0,0,进出量,0.5,0),COLORCC66FF;五日内净流入:SUM(进出量,5),LINETHICK2,COLORGREEN;IF 五日内净流入>REF 五日内净流入,1),五日内净流入,DRAWNULL),COLORRED,LINETHICK2; 连红天:BARSLASTCOUN 进出量>0);五日内翻红天:COUNT®出量 >0,5),COLORYELLOW;十日内翻红天:COUNT®出量>0,10),COLORRED;廿日内翻红天:COUNT®出量>0,20),COLORBLUE;六十日内翻红天:COUNT 进出量>0,60),COLORMAGENTA;{hjz 红金柱 }短线:=(CLOSE-ma(CLOSE,13))/ma(CLOSE,13)*20,LINETHICKO,COLORYELLOW;中线:=(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICKO,colorwhite;红柱:sma(短线,3,1),LINETHICK0,Color0000FF; 蓝柱:sma(中线,3,1),colorstick,ColorFFFF00; {红柱}STICKLINE(红柱 <ref(红柱,0.5)andSTICKLINE(红柱 <ref(红柱,0.5)andSTICKLINE(红柱 <ref(红柱,0.5)andSTICKLINE(红柱 <ref(红柱,0.5)andSTICKLINE(红柱 <ref(红柱,0.5)andSTICKLINE(红柱 <ref(红柱,1)andSTICKLINE(红柱 <ref(红柱,1)andSTICKLINE(红柱 >ref(红柱,1)and STICKLINE(红柱 >ref(红柱,1)and 红柱 >0,0,红柱,8,0),COLOROOOOAA; 红柱 >0,0,红柱,7,O),COLOROOOOBB; 红柱 >0,0,红柱,6,O),COLOROOOOCC; 红柱 >0,0,红柱,5,O),COLOROOOODD; 红柱 >0,0,红柱,4,O),COLOROOOOEE; 红柱 >0,0,红柱,3,O),COLOROOOOFF;红柱 >0,0,红柱,2,O),COLORRED; 红柱 >0,0,红柱,8,O),COLOROOOOAA; 红柱 >0,0,红柱,7,O),COLOROOOOBB; STICKLINE (红柱 >ref (红柱,1)and STICKLINE (红柱 >ref (红柱,1)and STICKLINE (红柱 >ref (红柱,1)and STICKLINE (红柱 >ref (红柱,1)and STICKLINE (红柱 >ref (红柱,1)and STICKLINE 蓝柱 <ref (蓝柱,1) and STICKLINE 蓝柱 <ref (蓝柱,1) and STICKLINE 蓝柱 <ref (蓝柱,1) and STICKLINE (蓝柱 <ref (蓝柱,1) and STICKLINE (蓝柱 <ref (蓝柱,1) and STICKLINE (蓝柱 <ref (蓝柱,1) and STICKLINE (蓝柱 <ref (蓝柱,1) and STICKLINE (蓝柱 <ref (蓝柱,1) and {蓝柱}STICKLINE (红柱 >ref (红柱,0)and STICKLINE (红柱 >ref (红柱,0)and STICKLINE (红柱 >ref (红柱,0)and STICKLINE (红柱 >ref (红柱,0)and STICKLINE (红柱 >ref (红柱,0)and STICKLINE (红柱 >ref (红柱,1)and STICKLINE (红柱 >ref (红柱,1)and STICKLINE (红柱 >ref (红柱,1)and STICKLINE (红柱 <ref (红柱,1)and STICKLINE (红柱 <ref (红柱,1)and STICKLINE (红柱 <ref (红柱,1)and STICKLINE (红柱 <ref (红柱,1)and STICKLINE (红柱 <ref (红柱,1)and STICKLINE (红柱 <ref (红柱,1)andSTICKLINE (红柱 <ref (红柱,1)and STICKLINE (红柱 <ref (红柱,1)and STICKLINE (蓝柱 >ref (蓝柱,1)and STICKLINE (蓝柱 >ref (蓝柱,1)and STICKLINE (蓝柱 >ref (蓝柱,1)andSTICKLINE (蓝柱 >ref (蓝柱,1)and 红柱 >0,0,红柱,6,0),COLOROOOOCC; 红柱 >0,0,红柱,5,0),COLOR0000DD; 红柱 >0,0,红柱,4,0),COLOR0000EE; 红柱 >0,0,红柱,3,0),COLOR0000FF; 红柱 >0,0,红柱,2,0),COLORRED;蓝柱>0,0,蓝柱,9,0),COLOR0000FF;蓝柱>0,0,蓝柱,7,0),COLOR0033FF;蓝柱>0,0,蓝柱,6,0),COLOR0055FF;蓝柱>0,0,蓝柱,5,0),COLOR0077FF;蓝柱>0,0,蓝柱,4,0),COLOR0099FF;蓝柱>0,0,蓝柱,3,0),COLOR00BBFF;蓝柱>0,0,蓝柱,2,0),COLOR00DDFF;蓝柱>0,0,蓝柱,1,0),COLOR00FFFF;红柱 <0,0,红柱,8,0),COLORFF0000;红柱 <0,0,红柱,7,0),COLORFF3300;红柱 <0,0,红柱,6,0),COLORFF5500;红柱 <0,0,红柱,5,0),COLORFF7700;红柱 <0,0,红柱,4,0),COLORFF9900;红柱 <0,0,红柱,3,0),COLORFFBB00;红柱 <0,0,红柱,2,0),COLORFFDD00;红柱 <0,0,红柱,1,0),COLORFFFF00;红柱 <0,0,红柱,8,0),COLORFF0000;红柱 <0,0,红柱,7,0),COLORFF3300;红柱 <0,0,红柱,6,0),COLORFF5500;红柱 <0,0,红柱,5,0),COLORFF7700;红柱 <0,0,红柱,4,0),COLORFF9900;红柱 <0,0,红柱,3,0),COLORFFBB00;红柱 <0,0,红柱,2,0),COLORFFDD00;红柱 <0,0,红柱,1,0),COLORFFFF00;蓝柱 <0,0,蓝柱,10,0),COLOR998800; 蓝柱 <0,0,蓝柱,7,0),COLORBBAA90; 蓝柱 <0,0,蓝柱,4,0),COLORDDCC99; 蓝柱 <0,0,蓝柱,1,0),COLORFFEEBB;【通达信】超准完美买卖主图M3:=EMA(CLOSE,3);M8:EMA(CLOSE,8),COLOR008000;M13:EMA(M8,13),COLOR0000FF;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;MA250:MA(CLOSE,250);RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;X:=LLV(J,2)=LLV(J,8);Y:=IF(CROSS(J,REF(J+0.01,1)) AND X AND J<20,30,0);主力 :=EMA( (CLOSE-MA(CLOSE,3))/MA(CLOSE,3),2);散户 :=EMA( (CLOSE-MA(CLOSE,20))/MA(CLOSE,20),7);VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);动能趋势线 :=100*EMA((CLOSE-VAR2)/(VAR3-VAR2),4);DRAWTEXT(CROS动能趋势线,70),HIGH*1.02,'风险'),COLORGREEN; DRAWTEXT(CROS动能趋势线,80),HIGH*1.02,'减仓'),COLOROOFFOO; DRAWTEXT(CROS动能趋势线,87.5),HIGH*1.02,'出局'),COLORWHITE; DRAWTEXT(CROSS(J,REF(J+O.O1,1)) AND X AND J<20,L短进'),COLORFF00FF; DRAWTEXT(CROS主(力 ,散户)AND 主力 <0 AND 散户 <0,LOW,'见底'),COLORRED; DRAWICON(CROS主力,散户)AND 主力 <0 AND 散户 <0,LOW,1);选股公式(可以预警)RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);。
新编筹码柱(1)指标公式
新编筹码柱(1)指标公式
新编筹码柱(1)指标公式是指在筹码分布图中,根据不同筹
码区间的比例计算出来的一个指标。
公式如下:
筹码柱(1)=(A1+B1+C1)/(A2+B2+C2)
其中,A1表示筹码区间1(最小值到20%)的筹码数量,B1
表示筹码区间2(20%到50%)的筹码数量,C1表示筹码区
间3(50%到最大值)的筹码数量。
A2、B2、C2表示相应筹
码区间的总筹码数量。
这个指标可以用来判断市场中不同筹码区间的比例,进而分析市场的趋势和投资情况。
如果筹码柱(1)大于1,表示筹码
分布相对均衡,市场处于横盘震荡状态;如果筹码柱(1)小
于1,表示筹码分布不均衡,市场可能存在较大的波动和风险。
筹码分布表现在主图中的公式
筹码分布表现在主图中的公式筹码分布表现在主图中的公式源码CM1:=INTPART(PPART(1)*100);CM2:=INTPART(PPART(2)*100);CM3:=INTPART(PPART(3)*100);CM4:=INTPART(PPART(4)*100);CM5:=INTPART(PPART(5)*100);CM6:=INTPART(PPART(6)*100);CM7:=INTPART(PPART(7)*100);CM8:=INTPART(PPART(8)*100);CM9:=INTPART(PPART(9)*100);CM10:=INTPART(PPART(10)*100);CM11:=INTPART(PPART(11)*100);CM12:=INTPART(PPART(12)*100);CM13:=INTPART(PPART(13)*100);CM14:=INTPART(PPART(14)*100);CM15:=INTPART(PPART(15)*100);CM16:=INTPART(PPART(16)*100);CM17:=INTPART(PPART(17)*100);CM18:=INTPART(PPART(18)*100);CM19:=INTPART(PPART(19)*100);CM20:=INTPART(PPART(20)*100);CM21:=INTPART(PPART(21)*100);CM22:=INTPART(PPART(22)*100);CM23:=INTPART(PPART(23)*100);CM24:=INTPART(PPART(24)*100);CM25:=INTPART(PPART(25)*100);CM26:=INTPART(PPART(26)*100);CM28:=INTPART(PPART(28)*100); CM29:=INTPART(PPART(29)*100); CM30:=INTPART(PPART(30)*100); CM31:=INTPART(PPART(31)*100); CM32:=INTPART(PPART(32)*100); CM33:=INTPART(PPART(33)*100); CM34:=INTPART(PPART(34)*100); CM35:=INTPART(PPART(35)*100); CM36:=INTPART(PPART(36)*100); CM37:=INTPART(PPART(37)*100); CM38:=INTPART(PPART(38)*100); CM39:=INTPART(PPART(39)*100); CM40:=INTPART(PPART(30)*100); CM41:=INTPART(PPART(41)*100); CM42:=INTPART(PPART(42)*100); CM43:=INTPART(PPART(43)*100); CM44:=INTPART(PPART(44)*100); CM45:=INTPART(PPART(45)*100); CM46:=INTPART(PPART(46)*100); CM47:=INTPART(PPART(47)*100); CM48:=INTPART(PPART(48)*100); CM49:=INTPART(PPART(49)*100); CM50:=INTPART(PPART(50)*100); CM51:=INTPART(PPART(51)*100); CM52:=INTPART(PPART(52)*100); CM53:=INTPART(PPART(53)*100); CM54:=INTPART(PPART(54)*100); CM55:=INTPART(PPART(55)*100); CM56:=INTPART(PPART(56)*100);CM58:=INTPART(PPART(58)*100);CM59:=INTPART(PPART(59)*100);CM60:=INTPART(PPART(60)*100);IF(CURRBARSCOUNT<INTPART(CM2/2),CONST(COSTEX(REF (C,1),REF(C,2))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM3/2),CONST(COSTEX(REF (C,2),REF(C,3))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM4/2),CONST(COSTEX(REF (C,3),REF(C,4))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM5/2),CONST(COSTEX(REF (C,4),REF(C,5))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM6/2),CONST(COSTEX(REF (C,5),REF(C,6))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM7/2),CONST(COSTEX(REF (C,6),REF(C,7))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM8/2),CONST(COSTEX(REF (C,8),REF(C,9))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM9/2),CONST(COSTEX(REF (C,9),REF(C,10))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM10/2),CONST(COSTEX(RE F(C,10),REF(C,11))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM11/2),CONST(COSTEX(RE F(C,11),REF(C,12))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM12/2),CONST(COSTEX(RE F(C,12),REF(C,13))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM13/2),CONST(COSTEX(RE F(C,13),REF(C,14))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM14/2),CONST(COSTEX(RE F(C,14),REF(C,15))),DRAWNULL),COLORBLUE;F(C,15),REF(C,16))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM16/2),CONST(COSTEX(RE F(C,16),REF(C,17))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM17/2),CONST(COSTEX(RE F(C,17),REF(C,18))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM18/2),CONST(COSTEX(RE F(C,18),REF(C,19))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM19/2),CONST(COSTEX(RE F(C,19),REF(C,20))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM20/2),CONST(COSTEX(RE F(C,20),REF(C,21))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM21/2),CONST(COSTEX(RE F(C,21),REF(C,22))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM22/2),CONST(COSTEX(RE F(C,22),REF(C,23))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM23/2),CONST(COSTEX(RE F(C,23),REF(C,24))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM24/2),CONST(COSTEX(RE F(C,24),REF(C,25))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM25/2),CONST(COSTEX(RE F(C,25),REF(C,26))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM26/2),CONST(COSTEX(RE F(C,26),REF(C,27))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM27/2),CONST(COSTEX(RE F(C,27),REF(C,28))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM28/2),CONST(COSTEX(RE F(C,28),REF(C,29))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM29/2),CONST(COSTEX(RE F(C,29),REF(C,30))),DRAWNULL),COLORBLUE;F(C,30),REF(C,31))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM31/2),CONST(COSTEX(RE F(C,31),REF(C,32))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM32/2),CONST(COSTEX(RE F(C,32),REF(C,33))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM33/2),CONST(COSTEX(RE F(C,33),REF(C,34))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM34/2),CONST(COSTEX(RE F(C,34),REF(C,35))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM35/2),CONST(COSTEX(RE F(C,35),REF(C,36))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM36/2),CONST(COSTEX(RE F(C,36),REF(C,37))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM37/2),CONST(COSTEX(RE F(C,37),REF(C,38))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM38/2),CONST(COSTEX(RE F(C,38),REF(C,39))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM39/2),CONST(COSTEX(RE F(C,39),REF(C,40))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM40/2),CONST(COSTEX(RE F(C,40),REF(C,41))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM41/2),CONST(COSTEX(RE F(C,41),REF(C,42))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM42/2),CONST(COSTEX(RE F(C,42),REF(C,43))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM43/2),CONST(COSTEX(RE F(C,43),REF(C,44))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM44/2),CONST(COSTEX(RE F(C,44),REF(C,45))),DRAWNULL),COLORBLUE;F(C,45),REF(C,46))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM46/2),CONST(COSTEX(RE F(C,46),REF(C,47))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM47/2),CONST(COSTEX(RE F(C,47),REF(C,48))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM48/2),CONST(COSTEX(RE F(C,48),REF(C,49))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM49/2),CONST(COSTEX(RE F(C,49),REF(C,50))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM50/2),CONST(COSTEX(RE F(C,50),REF(C,51))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM51/2),CONST(COSTEX(RE F(C,51),REF(C,52))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM52/2),CONST(COSTEX(RE F(C,52),REF(C,53))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM53/2),CONST(COSTEX(RE F(C,53),REF(C,54))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM54/2),CONST(COSTEX(RE F(C,54),REF(C,55))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM55/2),CONST(COSTEX(RE F(C,55),REF(C,56))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM56/2),CONST(COSTEX(RE F(C,56),REF(C,57))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM57/2),CONST(COSTEX(RE F(C,57),REF(C,58))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM58/2),CONST(COSTEX(RE F(C,58),REF(C,59))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM59/2),CONST(COSTEX(RE F(C,59),REF(C,60))),DRAWNULL),COLORBLUE;F(C,60),REF(C,61))),DRAWNULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM1/2),CONST(C),DRAWNU LL),COLORRED;DRAWKLINE(H,O,L,C);。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
{空心红}
STICKLINE(CO,H,L,0,0),COLORRED;
STICKLINE(CO,C,O,3,1),COLORRED;
{深绿}
STICKLINE(CTYX5 AND CO,H,L,0,0 ),COLOR00EEFF;
STICKLINE(C>TYX5 AND C>O,C,O,3,0 ),COLOR00AAFF;
STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORWHITE;
{突破}
STICKLINE(REF(COUNT(CTYX3 AND C>O,C,O,1,0),COLOR00CCFF;
STICKLINE(C>TYX5 AND C>O,C,O,2,0 ),COLOR00CCFF;
STICKLINE(C>TYX5 AND C>O,C,O,1,0 ),COLOR00EEFF;
{粉红}
STICKLINE(C>TYX4 AND C>O,H,L,0,0),COLORFF66AA;
STICKLINE(C>TYX4 AND C>O,C,O,3,0 ),COLORFF11FF;
STICKLINE(ZX=C85,W85,W70,5,0),COLORFF8800;
STICKLINE(ZX=C90,W90,W85,5,0),COLORFF8800;
STICKLINE(ZX=C95,W95,W90,5,0),COLORFF8800;
STICKLINE(ZX=C100,W100,W95,5,0),COLORFF8800;
筹宽:=W100-W00;
J90:=W90-W60;
J80:=W80-W50;
J70:=W70-W40;
J60:=W60-W30;
J50:=W50-W20;
J40:=W40-W10;
J30:=W30-W00;
STICKLINE(J90/筹宽<0.08,W90,W60,5,0),COLOR74D9A4;
C75:=W75-W70;
C80:=W80-W75;
C85:=W85-W80;
C90:=W90-W85;
C95:=W95-W90;
C100:=W100-W95;
ZX:=MIN(C5,MIN(C10,MIN(C15,MIN(C20,MIN(C25,MIN(C30,MIN(C35,MIN(C40,MIN(C45,MIN(C50,MIN(C55,MIN(C60,MIN(C65,MIN(C70,MIN(C75,MIN(C80,MIN(C85,MIN(C90,MIN(C95,C100)))))))))))))))))));
STICKLINE(ZX=C5,W00,W5,5,0),COLORFF8800;
STICKLINE(ZX=C10,W10,W5,5,0),COLORFF8800;
STICKLINE(ZX=C15,W15,W10,5,0),COLORFF8800;
STICKLINE(ZX=C20,W20,W15,5,0),COLORFF8800;
STICKLINE(J40/筹宽<0.08,W40,W10,5,0),COLOR74D9A4;
JJ90:=W90-W70;
JJ80:=W80-W60;
JJ70:=W70-W50;
JJ60:=W60-W40;
JJ50:=W50-W30;
JJ40:=W40-W20;
JJ30:=W30-W10;
STICKLINE(JJ90/筹宽<0.05,W90,W70,5,0),COLORFFFF00;
STICKLINE(ZX=C65,W65,W60,5,0),COLORFF8800;
STICKLINE(ZX=C70,W70,W65,5,0),COLORFF8800;
STICKLINE(ZX=C75,W75,W70,5,0),COLORFF8800;
STICKLINE(ZX=C80,W80,W75,5,0),COLORFF8800;
STICKLINE(JJ40/筹宽<0.05,W40,W20,5,0),COLORFFFF00;
STICKLINE(JJ30/筹宽<0.05,W30,W10,5,0),COLORFFFF00;
{彩色K线}
TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);
TYX4:=MA((C+L+O+H)/4,13);
真实筹码主图指标公式
W10:=COST(10);
W20:=COST(20OST(40);
W50:=COST(50);
W60:=COST(60);
W70:=COST(70);
W80:=COST(80);
W90:=COST(90);
W100:=COST(99);
W5:=COST(5);
W15:=COST(15);
W25:=COST(25);
W35:=COST(35);
W45:=COST(45);
W55:=COST(55);
W65:=COST(65);
W75:=COST(75);
W85:=COST(85);
W95:=COST(95);
C5:=W5-W00;
C10:=W10-W5;
STICKLINE(C>TYX4 AND C>O,C,O,2,0 ),COLORFF44FF;
STICKLINE(C>TYX4 AND C>O,C,O,1,0 ),COLORFF66FF;
{亮灰}
STICKLINE(C>TYX4 AND CO,H,L,0,0),COLOR0000DD;
STICKLINE(C>TYX3 AND C>O,C,O,3,0),COLOR000099;
STICKLINE(J80/筹宽<0.08,W80,W50,5,0),COLOR74D9A4;
STICKLINE(J70/筹宽<0.08,W70,W40,5,0),COLOR74D9A4;
STICKLINE(J60/筹宽<0.08,W60,W30,5,0),COLOR74D9A4;
STICKLINE(J50/筹宽<0.08,W50,W20,5,0),COLOR74D9A4;
STICKLINE(ZX=C25,W25,W20,5,0),COLORFF8800;
STICKLINE(ZX=C30,W30,W25,5,0),COLORFF8800;
STICKLINE(ZX=C35,W35,W30,5,0),COLORFF8800;
STICKLINE(ZX=C40,W40,W35,5,0),COLORFF8800;
STICKLINE(JJ80/筹宽<0.05,W80,W60,5,0),COLORFFFF00;
STICKLINE(JJ70/筹宽<0.05,W70,W50,5,0),COLORFFFF00;
STICKLINE(JJ60/筹宽<0.05,W60,W40,5,0),COLORFFFF00;
STICKLINE(JJ50/筹宽<0.05,W50,W30,5,0),COLORFFFF00;
STICKLINE(ZX=C45,W45,W40,5,0),COLORFF8800;
STICKLINE(ZX=C50,W50,W45,5,0),COLORFF8800;
STICKLINE(ZX=C55,W55,W50,5,0),COLORFF8800;
STICKLINE(ZX=C60,W60,W55,5,0),COLORFF8800;
STICKLINE(C>TYX3 AND C>O,C,O,2,0),COLOR0000BB;
STICKLINE(C>TYX3 AND C>O,C,O,1,0),COLOR0000DD;
{涨跌停K线}
STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORYELLOW;
C15:=W15-W10;
C20:=W20-W15;
C25:=W25-W20;
C30:=W30-W25;
C35:=W35-W30;
C40:=W40-W35;
C45:=W45-W40;
C50:=W50-W45;
C55:=W55-W50;
C60:=W60-W55;
C65:=W65-W60;
C70:=W70-W65;