在主图在看筹码分布通达信指标公式源码

合集下载

筹码均线通达信源码主图附图

筹码均线通达信源码主图附图

筹码均线通达信源码主图附图{成本火力}AP1:=AMOUNT/(VOL*1000);AP2:=(O+H+L+C)/4;YES:=AP1>H OR AP1<L;AMT:=IF(YES,AP2*VOL*1000,AMOUNT);CB3:=SUM(AMT,3)/SUM(VOL,3)/100;CB5:=SUM(AMT,5)/SUM(VOL,5)/100;CB8:=SUM(AMT,8)/SUM(VOL,8)/100;CB13:=SUM(AMT,13)/SUM(VOL,13)/100;CB21:=SUM(AMT,21)/SUM(VOL,21)/100;CB34:=SUM(AMT,34)/SUM(VOL,34)/100;CB55:=SUM(AMT,55)/SUM(VOL,55)/100;CB89:=SUM(AMT,89)/SUM(VOL,89)/100;CB144:=SUM(AMT,144)/SUM(VOL,144)/100;CB233:=SUM(AMT,233)/SUM(VOL,233)/100;CB377:=SUM(AMT,377)/SUM(VOL,377)/100;CB610:=SUM(AMT,610)/SUM(VOL,610)/100;短期成本:(CB8+CB13+CB21)/3,POINTDOT,LINETHICK2;中期成本:(CB34+CB55+CB89)/3,POINTDOT,LINETHICK2;长期成本:(CB144+CB233+CB377)/3,POINTDOT,LINETHICK2; 平均成本:=(短期成本+中期成本+长期成本)/3,LINETHICK2;获利20:长期成本*0.191+长期成本,POINTDOT;获利30:长期成本*0.382+长期成本,POINTDOT;亏损20:长期成本-(长期成本*0.191),POINTDOT;亏损30:长期成本-(长期成本*0.382),POINTDOT;牛市启动:EMA(COST(72),21),LINETHICK2,COLORYELLOW; 牛市成本:EMA(COST(34),3),POINTDOT,COLORYELLOW;2.AP1:=AMOUNT/(CAPITAL);AP2:=(O+H+L+C)/4;YES:=AP1>=H OR AP1<=L;AMT:=IF(YES,AP2*CAPITAL,AMOUNT);CB6:=SUM(AMT,6)/SUM(VOL,6)/100;CB13:=SUM(AMT,13)/SUM(VOL,13)/100;CB21:=SUM(AMT,21)/SUM(VOL,21)/100;CB34:=SUM(AMT,34)/SUM(VOL,34)/100;CB55:=SUM(AMT,55)/SUM(VOL,55)/100;CB89:=SUM(AMT,89)/SUM(VOL,89)/100;CB144:=SUM(AMT,144)/SUM(VOL,144)/100;CB233:=SUM(AMT,233)/SUM(VOL,233)/100;CB377:=SUM(AMT,377)/SUM(VOL,377)/100;短期成本:(CB6+CB13+CB21)/3;中期成本:(CB34+CB55+CB89)/3,COLORRED;长期成本:=(CB144+CB233+CB377)/3;平均成本:=(短期成本+中期成本+长期成本)/3;启动:EMA(COST(71),21),COLORGREEN;牛市成本:EMA(COST(34),3),COLORWHITE,LINETHICK2;牛市启动:EMA(COST(81),30),COLORYELLOW;[本帖最后由昆卡船长于 2015-2-3 14:31 编辑]{成本获利主图}STICKLINE(18,100,0,5,0),COLORBLUE;DRAWKLINE(INDEXO,INDEXH,INDEXL,INDEXC); DRAWKLINE(H,O,L,C);{========================额外==========================}Z1:=STRCAT(DYBLOCK,' ');Z2:=STRCAT(Z1,HYBLOCK);Z3:=STRCAT(Z2,' ');Z4:=STRCAT(Z3,GNBLOCK);Z5:=STRCAT(Z4,' ');Z6:=STRCAT(Z5,FGBLOCK);DRAWTEXT_FIX(ISLASTBAR,0.01,0.012,0,STRCAT(Z6,ZHBLOC K)),COLORCYAN;DRAWTEXT_FIX(1,0,0.075,0,STRCAT('【所属板块】:',ZDBLOCK)),COLORYELLOW;{====================================== ================};AP1:=AMOUNT/(VOL*1000);AP2:=(O+H+L+C)/4;YES:=AP1>H OR AP1<L;AMT:=IF(YES,AP2*VOL*1000,AMOUNT);CB3:=SUM(AMT,3)/SUM(VOL,3)/100;CB5:=SUM(AMT,5)/SUM(VOL,5)/100;CB8:=SUM(AMT,8)/SUM(VOL,8)/100;CB13:=SUM(AMT,13)/SUM(VOL,13)/100;CB21:=SUM(AMT,21)/SUM(VOL,21)/100;CB34:=SUM(AMT,34)/SUM(VOL,34)/100;CB55:=SUM(AMT,55)/SUM(VOL,55)/100;CB89:=SUM(AMT,89)/SUM(VOL,89)/100;CB144:=SUM(AMT,144)/SUM(VOL,144)/100;CB233:=SUM(AMT,233)/SUM(VOL,233)/100;CB377:=SUM(AMT,377)/SUM(VOL,377)/100;CB610:=SUM(AMT,610)/SUM(VOL,610)/100;CB6:=SUM(AMT,6)/SUM(VOL,6)/100;短期成本:(CB8+CB13+CB21)/3,POINTDOT,LINETHICK2;中期成本:(CB34+CB55+CB89)/3,POINTDOT,LINETHICK2;长期成本:(CB144+CB233+CB377)/3,POINTDOT,LINETHICK2;短期成本1:(CB6+CB13+CB21)/3;中期成本1:(CB34+CB55+CB89)/3,COLORRED;长期成本1:=(CB144+CB233+CB377)/3;平均成本:=(短期成本+中期成本+长期成本)/3,LINETHICK2;获利20:长期成本*0.191+长期成本,POINTDOT;获利30:长期成本*0.382+长期成本,POINTDOT;亏损20:长期成本-(长期成本*0.191),POINTDOT;亏损30:长期成本-(长期成本*0.382),POINTDOT;成本3:EMA(COST(34),3),COLORRED,DOTLINE;启动21:EMA(COST(71),21),COLORGREEN,DOTLINE;启动30:EMA(COST(81),30),COLORYELLOW,DOTLINE;MA1:MA(CLOSE,1),COLORFF80FF,DOTLINE;DRAWICON(CROSS(成本3,启动30),启动30-0.05 ,5);DRAWTEXT(CROSS(成本3,启动30),启动30-0.05,'↖买'),COLORYELLOW;DRAWICON(CROSS(MA1,成本3),成本3-0.05 ,1);DRAWTEXT(CROSS(MA1,成本3),成本3-0.05,'↖买'),COLORYELLOW;DRAWICON(CROSS(MA1,启动21),启动21-0.05 ,1);DRAWTEXT(CROSS(MA1,启动21),启动21-0.05,'↖买'),COLORRED;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2.8,0),COLORFF5B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2.5,0),COLORFF6C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2.2,0),COLORFF7B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2,0),COLORFF9C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.8,0),COLORFFBE00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.5,0),COLORFFCC00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1,0),COLORFFFF00;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2.8,0),COLOR070084;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2.5,0),COLOR0000A3;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2.2,0),COLOR0000B7;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2,0),COLOR0000CD;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.8,0),COLOR0000E9;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.5,0),COLOR0754E9;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.2,0),COLOR076EF3;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,0,0),COLOR077BF3;STICKLINE((CLOSE > OPEN),OPEN,LOW,0,0),COLOR0726CA;STICKLINE((CLOSE > OPEN),CLOSE,HIGH,0,0),COLOR0726CA;STICKLINE((OPEN > CLOSE),CLOSE,LOW,0,0),COLORDE9100;STICKLINE((OPEN > CLOSE),OPEN,HIGH,0,0),COLORDE9100;{跳空}STICKLINE(REF(L,1)>H,H,REF(L,1),5,0),COLORGRAY;STICKLINE(REF(H,1)<L,L,REF(H,1),5,0),COLORGRAY;涨停:=IF(REF(C,1)*1.095-C<0.01 ,1,0),COLORYELLOW;STICKLINE(涨停,OPEN,CLOSE,2.5,0),COLORYELLOW;{涨停}STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,3.5,-1),COLORYELLOW;{涨跌停K线}STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORYELLOW;三线成本3:=EMA(COST(34),3);启动21:=EMA(COST(71),21);启动30:=EMA(COST(81),30);MA1:=MA(CLOSE,1);多头排列:=启动30>启动21 AND 启动21>成本3;成本获利:CROSS(成本3,启动30) OR CROSS(MA1,成本3) OR CROSS(MA1,启动21) AND 多头排列;牛市成本获利ap1:=amount/(vol*volunit);ap2:=(o+h+l+c)/4;yes:=ap1>h or ap1<l;amt:=if(yes,ap2*vol*volunit,amount);CB3:=SUM(amt,3)/SUM(VOL,3)/100;CB5:=SUM(amt,5)/SUM(VOL,5)/100;CB8:=SUM(amt,8)/SUM(VOL,8)/100;CB21:=SUM(amt,21)/SUM(VOL,21)/100;CB34:=SUM(amt,34)/SUM(VOL,34)/100;CB55:=SUM(amt,55)/SUM(VOL,55)/100;CB89:=SUM(amt,89)/SUM(VOL,89)/100;CB144:=SUM(amt,144)/SUM(VOL,144)/100;CB233:=SUM(amt,233)/SUM(VOL,233)/100;CB377:=SUM(amt,377)/SUM(VOL,377)/100;CB610:=SUM(amt,610)/SUM(VOL,610)/100;短期成本:(CB8+CB13+CB21)/3,pointdot,linethick2;中期成本:(CB34+CB55+CB89)/3,pointdot,linethick2;长期成本:(CB144+CB233+CB377)/3,pointdot,linethick2; 平均成本:=(短期成本+中期成本+长期成本)/3,linethick2; 获利20:长期成本*0.191+长期成本,pointdot;获利30:长期成本*0.382+长期成本,pointdot;亏损20:长期成本-(长期成本*0.191),pointdot;亏损30:长期成本-(长期成本*0.382),pointdot;牛市启动:ema(cost(72),21),linethick2,COLORYELLOW; 牛市成本:ema(cost(34),3),pointdot,COLORYELLOW;{成本火力}ap1:=amount/(vol*volunit);ap2:=(o+h+l+c)/4;yes:=ap1>h or ap1<l;amt:=if(yes,ap2*vol*volunit,amount);CB3:=SUM(amt,3)/SUM(VOL,3)/100;CB5:=SUM(amt,5)/SUM(VOL,5)/100;CB8:=SUM(amt,8)/SUM(VOL,8)/100;CB13:=SUM(amt,13)/SUM(VOL,13)/100;CB21:=SUM(amt,21)/SUM(VOL,21)/100;CB55:=SUM(amt,55)/SUM(VOL,55)/100;CB89:=SUM(amt,89)/SUM(VOL,89)/100;CB144:=SUM(amt,144)/SUM(VOL,144)/100;CB233:=SUM(amt,233)/SUM(VOL,233)/100;CB377:=SUM(amt,377)/SUM(VOL,377)/100;CB610:=SUM(amt,610)/SUM(VOL,610)/100;短期成本:(CB8+CB13+CB21)/3,pointdot,linethick2;中期成本:(CB34+CB55+CB89)/3,pointdot,linethick2;长期成本:(CB144+CB233+CB377)/3,pointdot,linethick2; 平均成本:(短期成本+中期成本+长期成本)/3,linethick2;获利20:长期成本*0.191+长期成本,pointdot;获利30:长期成本*0.382+长期成本,pointdot;亏损20:长期成本-(长期成本*0.191),pointdot;亏损30:长期成本-(长期成本*0.382),pointdot;牛市启动:ema(cost(72),21),linethick2,COLORYELLOW; 牛市成本:ema(cost(34),3),pointdot,COLORYELLOW;筹码均线ap1:=amount/(vol*volunit);ap2:=(o+h+l+c)/4;yes:=ap1>=h or ap1<=l;amt:=if(yes,ap2*vol*volunit,amount);CB6:=SUM(amt,6)/SUM(VOL,6)/100;CB13:=SUM(amt,13)/SUM(VOL,13)/100;CB21:=SUM(amt,21)/SUM(VOL,21)/100;CB34:=SUM(amt,34)/SUM(VOL,34)/100;CB55:=SUM(amt,55)/SUM(VOL,55)/100;CB89:=SUM(amt,89)/SUM(VOL,89)/100;CB144:=SUM(amt,144)/SUM(VOL,144)/100;CB233:=SUM(amt,233)/SUM(VOL,233)/100; CB377:=SUM(amt,377)/SUM(VOL,377)/100;短期成本:(CB6+CB13+CB21)/3;中期成本:(CB34+CB55+CB89)/3,colorred;长期成本:=(CB144+CB233+CB377)/3;平均成本:=(短期成本+中期成本+长期成本)/3;启动:ema(cost(71),21),COLORgreen;牛市成本:ema(cost(34),3),COLORwhite,linethick2; 牛市启动:ema(cost(81),30),COLORyellow;嘻嘻,其实就三条线足够了。

筹码分布表现在主图中通达信指标公式源码

筹码分布表现在主图中通达信指标公式源码

筹码分布表现在主图中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);。

主力散户筹码通达信指标公式源码

主力散户筹码通达信指标公式源码

主⼒散户筹码通达信指标公式源码主⼒散户筹码指标,主⼒散户动向⼀⽬了然弱势区: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;。

通达信指标公式源码 主力散户筹码集中度 副图源码

通达信指标公式源码 主力散户筹码集中度 副图源码

主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORMAGENTA,LI NETHICK2;主力筹码集中度:WINNER(C)*100 ,COLORRED,LINETHICK2;散筹筹码集中度:(WINNER(C*1.1)-WINNER(C*0.9))*100 ,COLORGREEN,LINETHICK2;强弱分界: 80,COLORYELLOW;趋势线: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLO SE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);XIAO1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);XIAO2:=SMA(ABS(LOW-XIAO1),13,1)/SMA(MAX(LOW-XIAO1,0),10,1);XIAO3:=EMA(XIAO2,10);XIAO4:=LLV(LOW,33);XIAO5:=EMA(IF(LOW<=XIAO4,XIAO3,0),3);STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,3,0 ),COLOR000055;STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,2.6,0 ),COLOR000077;STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,2.1,0 ),COLOR000099;STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,1.5,0 ),COLOR0000BB;STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,0.9,0 ),COLOR0000DD;STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,0.3,0 ),COLOR0000FF;STICKLINE(XIAO5<REF(XIAO5,1),0,XIAO5,3,0),COLOR005500;STICKLINE(XIAO5<REF(XIAO5,1),0,XIAO5,2.6,0),COLOR007700;STICKLINE(XIAO5<REF(XIAO5,1),0,XIAO5,2.1,0),COLOR009900;STICKLINE(XIAO5<REF(XIAO5,1),0,XIAO5,1.5,0),COLOR00BB00;STICKLINE(XIAO5<REF(XIAO5,1),0,XIAO5,0.9,0),COLOR00DD00;STICKLINE(XIAO5<REF(XIAO5,1),0,XIAO5,0.3,0),COLOR00FF00;私募进场:IF(XIAO5>REF(XIAO5,1),XIAO5,0),COLORRED,NODRAW;私募洗盘:IF(XIAO5<REF(XIAO5,1),XIAO5,0),COLORGREEN,NODRAW;B1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100- 70;B2:=SMA(B1,9,1)+100;B3:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;B4:=SMA(B3,3,1);B5:=SMA(B4,3,1)+100;B6:=B5-B2;观望期:=IF(B6>60,B6-60,0);T1:=STICKLINE(REF(观望期,1)<观望期,观望期,REF(观望期,1),9,0),COLORYELLOW; T2:=STICKLINE(REF(观望期,1)>观望期,观望期,REF(观望期,1),9,0),COLORCYAN;TAI1:=MA(C,1)/MA(REF(C,13),8)*100;TAI2:=MA(FORCAST(TAI1,21),3);TAI3:=REF(TAI1,1);TAI4:=REF(TAI1,2);邰1:=LLV(LOW,8);邰2:=HHV(HIGH,13);股市黑客:= EMA((CLOSE-邰1)/(邰2-邰1)*100,5),COLORRED;升跌临界:= EMA(0.667*REF(股市黑客,1)+0.333*股市黑客,2),COLORGREEN;VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));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) AND CLOSE>=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)); VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIFF,9),COLORFFFF00;MACD:=(DIFF-DEA)*2;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF> REF(DIFF,A1+1) AND CROSS(DIFF,DEA); 顶背离:=REF(CLOSE,A2+1)< CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);①:IF(REF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5)) /MA(C,5)>0.04 AND观望期=0 AND C> REF(C,1),1),44,0),LINETHICK3,COLORCYAN;②:IF(REF("KDJ.J",1)<0 AND "KDJ.J">0 AND TAI1>=TAI2 ANDTAI3> TAI4,34,0),LINETHICK3,COLOR0000FF;③:IF(REF(股市黑客,1)<=13&&CROSS(股市黑客,升跌临界)&&REF(MA(C,55),1)>REF (MA(C,55),2)&& (VAR19 OR REF(VAR19,1)),23,0),COLORBLUE;④:IF(底背离,57,0),LINETHICK3,COLORBROWN;DRAWTEXT(底背离,54,'←MACD 底背离'),COLORWHITE;DRAWICON(REF(股市黑客,1)<=13&&CROSS(股市黑客,升跌临界)&&REF(MA(C,55),1)>REF(MA(C,55),2)&&(VAR19 OR REF(VAR19,1)),25,23);DRAWICON(REF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5)) /MA(C,5)>0.04AND 观望期=0 AND C>REF(C,1),1),46,23);DRAWICON(REF("KDJ.J",1)<0 AND "KDJ.J">0 AND TAI1>=TAI2 ANDTAI3>TAI4,36,23),COLORYELLOW;。

通达信指标公式源码移动筹码分布主图指标

通达信指标公式源码移动筹码分布主图指标

使用方法:公式的左上角写明的不同周期内量和价的情况。

如果背景色是红色,预示着对应周期内的均线指标会上涨。

如果背景颜色是绿色,预示着对应周期内均线指标会下跌。

只有当对应周期内的价和量都预示为上涨或者都预示为下跌的时候。

才会在右边出现文字,提示这条均价线是助长涨(支撑),还是领跌(压力)的作用。

DRAWTEXT(CURRBARSCOUNT=5,HIGH*1.01,'5日');{DRAWLINE(扣抵5,C,C,MA(C,5),0),COLORWHITE,LINETHICK2;} DRAWTEXT(CURRBARSCOUNT=10,HIGH*1.01,'10日');{DRAWLINE(扣抵10,C,C, MA(C,10),0),COLORYELLOW,LINETHICK2;} DRAWTEXT(CURRBARSCOUNT=20,HIGH*1.01,'20日');{DRAWLINE(扣抵20,C,C, MA(C,20),0),COLORMAGENTA,LINETHICK2;} DRAWTEXT(CURRBARSCOUNT=60,HIGH*1.01,'60日');{DRAWLINE(扣抵60,C,C, MA(C,60),0),COLORRED,LINETHICK2;} DRAWTEXT(CURRBARSCOUNT=120,HIGH*1.01,'120日');{DRAWLINE(扣抵120,C,C, MA(C,120),0),COLORGRAY,LINETHICK2;} DRAWTEXT(CURRBARSCOUNT=250,HIGH*1.01,'250日');{DRAWLINE(扣抵250,C,C, MA(C,250),0),COLORBLUE,LINETHICK2;} {DRAWICON(CURRBARSCOUNT=5,HIGH,14);DRAWICON(CURRBARSCOUNT=10,HIGH,14);DRAWICON(CURRBARSCOUNT=20,HIGH,14);DRAWICON(CURRBARSCOUNT=60,HIGH,14);DRAWICON(CURRBARSCOUNT=120,HIGH,14);DRAWICON(CURRBARSCOUNT=250,HIGH,14);}MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA20:MA(CLOSE,20);MA60:MA(CLOSE,60);MA120:MA(CLOSE,120);MA250:MA(CLOSE,250);DRAWRECTREL(0,0,240,350,RGB(0,0,1));DRAWTEXT_FIX(C>0,0.04 ,0.07,1,'当前情况:'),COLORYELLOW; DRAWTEXT_FIX(C>0,0.04 ,0.11,1,'005日扣抵:'),COLORYELLOW; DRAWTEXT_FIX(C>0,0.04 ,0.15,1,'010日扣抵:'),COLORYELLOW; DRAWTEXT_FIX(C>0,0.04 ,0.19,1,'020日扣抵:'),COLORYELLOW; DRAWTEXT_FIX(C>0,0.04 ,0.23,1,'060日扣抵:'),COLORYELLOW; DRAWTEXT_FIX(C>0,0.04 ,0.27,1,'120日扣抵:'),COLORYELLOW; DRAWTEXT_FIX(C>0,0.005 ,0.090,0,'----------------------------------------------------------------------------------------'),COLORGRAY;DRAWTEXT_FIX(C>0,0.065 ,0.03,1,'价(元)'),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>0,0.065 ,0.07,1,VAR2STR(C,2)),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,4),0.065 ,0.11,1,VAR2STR(REF(C,4),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,4),0.065 ,0.11,1,VAR2STR(REF(C,4),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,4),0.065 ,0.11,1,VAR2STR(REF(C,4),2)),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,9),0.065 ,0.15,1,VAR2STR(REF(C,9),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,9),0.065 ,0.15,1,VAR2STR(REF(C,9),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,9),0.065 ,0.15,1,VAR2STR(REF(C,9),2)),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,19),0.065 ,0.19,1,VAR2STR(REF(C,19),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,19),0.065 ,0.19,1,VAR2STR(REF(C,19),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,19),0.065 ,0.19,1,VAR2STR(REF(C,19),2)),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,59),0.065 ,0.23,1,VAR2STR(REF(C,59),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,59),0.065 ,0.23,1,VAR2STR(REF(C,59),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,59),0.065 ,0.23,1,VAR2STR(REF(C,59),2)),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,119),0.065 ,0.27,1,VAR2STR(REF(C,119),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,119),0.065 ,0.27,1,VAR2STR(REF(C,119),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,119),0.065 ,0.27,1,VAR2STR(REF(C,119),2)),COLORGREEN; VART1:=ABS((C-REF(C,4)))*100/C,NODRAW;VART1_1:=IF(VART1>999,999.9,VART1),NODRAW;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,4),0.09 ,0.11,1,STRCAT(VAR2STR(VART1_1,1),'%')),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,4),0.09 ,0.11,1,VAR2STR(0,2)),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,4),0.09 ,0.11,1,STRCAT(VAR2STR(VART1_1,1),'%')),COLORGREEN; VART2:=ABS((C-REF(C,9)))*100/C,NODRAW;VART2_1:=IF(VART2>999,999.9,VART2),NODRAW;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,9),0.09 ,0.15,1,STRCAT(VAR2STR(VART2_1,1),'%')),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,9),0.09 ,0.15,1,VAR2STR(0,2)),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,9),0.09 ,0.15,1,STRCAT(VAR2STR(VART2_1,1),'%')),COLORGREEN; VART3:=ABS((C-REF(C,19)))*100/C,NODRAW;VART3_1:=IF(VART3>999,999.9,VART3),NODRAW;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,19),0.09 ,0.19,1,STRCAT(VAR2STR(VART3_1,1),'%')),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,19),0.09 ,0.19,1,VAR2STR(0,2)),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,19),0.09 ,0.19,1,STRCAT(VAR2STR(VART3_1,1),'%')),COLORGREEN ;VART4:=ABS((C-REF(C,59)))*100/C,NODRAW;VART4_1:=IF(VART4>999,999.9,VART4),NODRAW;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,59),0.09 ,0.23,1,STRCAT(VAR2STR(VART4_1,1),'%')),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,59),0.09 ,0.23,1,VAR2STR(0,2)),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,59),0.09 ,0.23,1,STRCAT(VAR2STR(VART4_1,1),'%')),COLORGREEN ;VART5:=ABS((C-REF(C,119)))*100/C,NODRAW;VART5_1:=IF(VART5>999,999.9,VART5),NODRAW;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,119),0.09 ,0.27,1,STRCAT(VAR2STR(VART5_1,1),'%')),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,119),0.09 ,0.27,1,VAR2STR(0,2)),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,119),0.09 ,0.27,1,STRCAT(VAR2STR(VART5_1,1),'%')),COLORGREE N;DRAWTEXT_FIX(C>0,0.12 ,0.03,1,'量(万)'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>0,0.12 ,0.07,1,VAR2STR(V/10000,2)),COLORYELLOW;TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60, IF(PERIOD=5,TOTALFZNUM,1))))),NODRAW;MTIME:=MOD(FROMOPEN,TOTAL),NODRAW;CTIME:=IF(MTIME<0.5,TOTAL,MTIME),NODRAW;VVOL:=IF((CURRBARSCOUNT=1 ANDDYNAINFO(8)>1),VOL*(TOTAL+3)/(CTIME+3),0),NODRAW; DRAWTEXT_FIX(C>0,0.18 ,0.03,1,'虚拟量(万)'),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDVVOL>0,0.18 ,0.07,1,VAR2STR(VVOL/10000,2)),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,4),0.12 ,0.11,1,VAR2STR(REF(V/10000,4),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,4),0.12 ,0.11,1,VAR2STR(REF(V/10000,4),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,4),0.12 ,0.11,1,VAR2STR(REF(V/10000,4),2)),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,9),0.12 ,0.15,1,VAR2STR(REF(V/10000,9),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,9),0.12 ,0.15,1,VAR2STR(REF(V/10000,9),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,9),0.12 ,0.15,1,VAR2STR(REF(V/10000,9),2)),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,19),0.12 ,0.19,1,VAR2STR(REF(V/10000,19),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,19),0.12 ,0.19,1,VAR2STR(REF(V/10000,19),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,19),0.12 ,0.19,1,VAR2STR(REF(V/10000,19),2)),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,59),0.12 ,0.23,1,VAR2STR(REF(V/10000,59),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,59),0.12 ,0.23,1,VAR2STR(REF(V/10000,59),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,59),0.12 ,0.23,1,VAR2STR(REF(V/10000,59),2)),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,119),0.12 ,0.27,1,VAR2STR(REF(V/10000,119),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,119),0.12 ,0.27,1,VAR2STR(REF(V/10000,119),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,119),0.12 ,0.27,1,VAR2STR(REF(V/10000,119),2)),COLORGREEN; VART21:=ABS((V-REF(V,4)))*100/V;VART21_1:=IF(VART21>999,999.9,VART21),NODRAW;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,4),0.155 ,0.11,1,STRCAT(VAR2STR(VART21_1,1),'%')),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,4),0.155 ,0.11,1,VAR2STR(0,2)),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,4),0.155 ,0.11,1,STRCAT(VAR2STR(VART21_1,1),'%')),COLORGREE N;VART22:=ABS((V-REF(V,9)))*100/V;VART22_1:=IF(VART22>999,999.9,VART22);DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,9),0.155 ,0.15,1,STRCAT(VAR2STR(VART22_1,1),'%')),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,9),0.155 ,0.15,1,VAR2STR(0,2)),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,9),0.155 ,0.15,1,STRCAT(VAR2STR(VART22_1,1),'%')),COLORGREE N;VART23:=ABS((V-REF(V,19)))*100/V;VART23_1:=IF(VART23>999,999.9,VART23);DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,19),0.155 ,0.19,1,STRCAT(VAR2STR(VART23_1,1),'%')),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,19),0.155 ,0.19,1,VAR2STR(0,2)),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,19),0.155 ,0.19,1,STRCAT(VAR2STR(VART23_1,1),'%')),COLORGRE EN;VART24:=ABS((C-REF(C,59)))*100/C;VART24_1:=IF(VART24>999,999.9,VART24);DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,59),0.155 ,0.23,1,STRCAT(VAR2STR(VART24_1,1),'%')),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,59),0.155 ,0.23,1,VAR2STR(0,2)),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,59),0.155 ,0.23,1,STRCAT(VAR2STR(VART24_1,1),'%')),COLORGRE EN;VART25:=ABS((C-REF(C,119)))*100/C;VART25_1:=IF(VART25>999,999.9,VART25);DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,119),0.155 ,0.27,1,STRCAT(VAR2STR(VART25_1,1),'%')),COLORRE D;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,119),0.155 ,0.27,1,VAR2STR(0,2)),COLORWHITE;{W } DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,119),0.155 ,0.27,1,STRCAT(VAR2STR(VART25_1,1),'%')),COLORGR EEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,4) ANDVVOL>REF(V,4),0.16 ,0.11,0,'5日均线助涨'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,4) ANDVVOL<REF(V,4),0.16 ,0.11,0,'5日均线领跌'),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,9) ANDVVOL>REF(V,9),0.16 ,0.15,0,'10日均线助涨'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,9) ANDVVOL<REF(V,9),0.16 ,0.15,0,'10日均线领跌'),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,19) ANDVVOL>REF(V,19),0.16 ,0.19,0,'20日均线助涨'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,19) ANDVVOL<REF(V,19),0.16 ,0.19,0,'20日均线领跌'),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,59) ANDVVOL>REF(V,59),0.16 ,0.23,0,'60日均线助涨'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,59) ANDVVOL<REF(V,59),0.16 ,0.23,0,'60日均线领跌'),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,119) ANDVVOL>REF(V,119),0.16 ,0.27,0,'120日均线助涨'),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,119) ANDVVOL<REF(V,119),0.16 ,0.27,0,'120日均线领跌'),COLORGREEN;。

通达信指标公式源码 立庄量 筹码主图 疯狂拉升 副图指标

通达信指标公式源码 立庄量 筹码主图 疯狂拉升 副图指标

{立庄量}VOLUME:=VOL,LINETHICK0;MAVOL1:=MA(VOLUME,5);MAVOL2:=MA(VOLUME,10);V2:=IF(BARSTATUS=2,VOL*240/MINUTE/REF(VOL,1)-1,VOL/REF(VOL,1)-1),COLORRED; STICKLINE(V2>=1,(LLV(L,10)/2+HHV(H,10)/2),C,2,0),COLORYELLOW;{筹码主图}底线:=COST(30),COLOR00FF00;拉升线:=COST(70),COLORFF00FF;逃顶线:=COST(90);风险线:=HHV(COST(90),20);VV:=HHV(COST(90),10);XX:=LLV(COST(70),20);拉升阶级:=IF(XX<拉升线,XX,0),COLORWHITE,LINETHICK0;STICKLINE(XX<拉升线,XX,拉升线,1,0),COLORFF5B90;疯狂拉升:=IF(XX<底线,底线,0),COLORYELLOW,LINETHICK0;STICKLINE(XX<底线,底线,拉升线,1,0),COLOR98A154;套牢筹码:=IF(逃顶线<VV,逃顶线,0),COLORWHITE,LINETHICK0;STICKLINE(逃顶线<VV,逃顶线,VV,1,0),COLORBLUE;{鱼身}M1:=IF(CAPITAL<1,EMA(VOL,55),C);M2:=IF(CAPITAL<1,WMA(M1,360),DMA(M1,VOL/CAPITAL));M3:=IF(CAPITAL<1,DMA(MA(C,5),VOL/VOL/CAPITAL),DMA(MA(C,5),VOL/CAPITAL)); STICKLINE(M1>M2,MA(C,14)*0.97,M3*0.97,1,0),COLORMAGENTA;持股:IF(M1>M2,1,0),COLORCC00CC,LINETHICK0,NODRAW;持币:IF(M1<=M2,1,0),COLORCC00CC,LINETHICK0,NODRAW;STICKLINE(M1<M2,MA(C,14)*0.97,M3*0.97,1,0),COLORCYAN;{STICKLINE(C>=O ,O ,C ,3 ,0 ),COLORRED;STICKLINE(O> C ,C ,O ,3 ,0 ),COLORFFFFCC;STICKLINE(C>=O ,C ,H ,0 ,0 ),COLORRED;STICKLINE(C>=O ,O ,L ,0 ,0 ),COLORRED;STICKLINE(O> C ,C ,L ,0 ,0 ),COLORFFFFCC;STICKLINE(O> C ,O ,H ,0 ,0 ),COLORFFFFCC;}市场重心:(HHV(H,0)+LLV(L,0))/2,COLORYELLOW;{八线}七天线:EMA(C,7);持股线:EMA(C,15),COLORRED,LINETHICK2;生命线:EMA(C,25),COLORGREEN;初月线:EMA(C,34),COLORYELLOW;双月线:EMA(C,56),COLOR0099FF,LINETHICK2;长牛线:EMA(C,235),COLORMAGENTA;牛熊线:EMA(C,453),COLORWHITE,LINETHICK3;STICKLINE(C<持股线,H,L,0,1),COLORGREEN;STICKLINE(C<持股线,O,C,2,1),COLORGREEN;STICKLINE(C>持股线,H,L,0,0),COLORRED;STICKLINE(C>持股线,O,C,2,0),COLORRED;{大箱体}{顶: COST(95)*1, LINEDOT,COLORRED;}VAR11:=(2*CLOSE+HIGH+LOW)/4;底: EMA(VAR11,99)*0.91,DOTLINE,COLORGREEN;{霸王庄}主力持仓:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);指数趋势:=EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3); 强弱分界:=80;主力筹码集中度:=WINNER(C)*100;散筹筹码集中度:=(WINNER(C*1.1)-WINNER(C*0.9))*100;QIANG:=(主力持仓-散筹筹码集中度)>20 AND (主力筹码集中度-散筹筹码集中度)>0 AND 主力持仓>50;强庄坐镇:=IF(QIANG,1,0),COLORRED,LINETHICK0;DRAWTEXT(强庄坐镇,(底* 0.99),'●'),COLORYELLOW;●霸王庄●:=IF(QIANG AND 主力筹码集中度-散筹筹码集中度>20,1,0),LINETHICK0,COLORFF80FF,NODRAW;DRAWTEXT(●霸王庄●,(底* 0.98),'●'),COLORRED;。

筹码主图公式通达信指标公式源码

筹码主图公式通达信指标公式源码

筹码主图公式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;。

筹码分布主图通达信指标公式源码

筹码分布主图通达信指标公式源码

筹码分布主图通达信指标公式源码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(新势⼒AXA_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),DOTLINE,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);。

通达信L筹码A主图指标公式源码编程思路破译及成功率回测数据

通达信L筹码A主图指标公式源码编程思路破译及成功率回测数据

通达信L筹码A主图指标公式源码编程思路破译及成功率回测数据编程思路破译MM赋值:0.1输出筹码顶:日期日获利盘为99.999%的成本分布的最后一日取值设为常数,DOTLINE,画洋红色,线宽为2输出筹码底:日期日获利盘为0.001%的成本分布的最后一日取值设为常数,DOTLINE,画青色,线宽为2W50赋值:((筹码顶-筹码底)/2)+筹码底,DOTLINE,画黄色,线宽为1W赋值:(筹码顶-筹码底)/10W60赋值:(W*6)+筹码底,DOTLINE,画黄色,线宽为1W90赋值:(W*9)+筹码底,DOTLINE,画黄色,线宽为1W100赋值:筹码顶,DOTLINE,画黄色,线宽为1W110赋值:(W*11)+筹码底,DOTLINE,画黄色,线宽为1W80赋值:(W*8)+筹码底,DOTLINE,画黄色,线宽为1W70赋值:(W*7)+筹码底,DOTLINE,画黄色,线宽为1W30赋值:(W*3)+筹码底,DOTLINE,画黄色,线宽为1W40赋值:(W*4)+筹码底,DOTLINE,画黄色,线宽为1W20赋值:(W*2)+筹码底,DOTLINE,画黄色,线宽为1W10赋值:(W*1)+筹码底,DOTLINE,画黄色,线宽为1WA10赋值:(W*-1)+筹码底,DOTLINE,画黄色,线宽为1W00赋值:筹码底,DOTLINE,画黄色,线宽为1当满足条件到最后交易的周期=1时,在W90*0.998位置书写文字,画白色当满足条件到最后交易的周期=1时,在W100*0.998位置书写文字,画白色当满足条件到最后交易的周期=1时,在W70*0.998位置书写文字,画白色当满足条件到最后交易的周期=1时,在W50*0.998位置书写文字,画白色当满足条件到最后交易的周期=1时,在W30*0.998位置书写文字,画白色当满足条件到最后交易的周期=1时,在W10*0.998位置书写文字,画白色当满足条件到最后交易的周期=1时,在W00*0.998位置书写文字,画白色当满足条件到最后交易的周期=1时,在WA10*0.998位置书写文字,画白色VAR2赋值:5VAR3赋值:3VAR4赋值:(收盘价的5日指数移动平均*7+收盘价的10日指数移动平均*3)/10VAR5赋值:如果年份>=2025,返回0,否则返回1VAR6赋值:最低价的21日指数移动平均+6.8*最低价的2日估算标准差的55日指数移动平均VAR7赋值:收盘价/VAR6*(1.88*收盘价+最低价+开盘价)/2.75的3日指数移动平均VAR8赋值:(VAR7-VAR6)/VAR6/2VAR9赋值:VAR7-VAR8*VAR7的5日指数移动平均*VAR5VAR10赋值:收盘价的300日指数移动平均-3*收盘价的300日估算标准差输出漏斗下:如果VAR4>VAR9,返回VAR4,否则返回VAR9*VAR5,画黄色,线宽为2输出漏斗上:如果VAR9<VAR4ANDVAR9<收盘价*0.15,返回收盘价的300日指数移动平均-3*收盘价的300日估算标准差,否则返回VAR9,画黄色,线宽为2输出漏:如果VAR9>VAR4,返回漏斗上,否则返回无效数,画绿色,线宽为2开口XG赋值:条件连续成立次数=1,NODRAW输出生命线:如果到最后交易的周期<13,返回获利盘为67.5%的成本分布的最后一日取值设为常数,否则返回无效数,画白色,DOTLINE 漏斗赋值:漏斗下AAA赋值:最高价上穿漏斗下ZC赋值:统计6日中满足AAA的天数>=1PP赋值:最高价>=漏斗PPB赋值:收盘价<=漏斗PPA赋值:1日前的PP生命赋值:生命线BAAA赋值:190日内最高价的最高值的最后一日取值设为常数TS1赋值:0+0.01TS2赋值:TS1+0.03TS3赋值:TS2+0.07TS4赋值:TS3+0.08当满足条件到最后交易的周期=100时,在BAAA-(BAAA*TS2)位置书写文字,画黄色当满足条件到最后交易的周期=100时,在BAAA-(BAAA*TS3)位置书写文字,画黄色当满足条件到最后交易的周期=100时,在BAAA-(BAAA*TS4)位置书写文字,画黄色程序源码:MM:=0.1;筹码顶:REFDATE(CONST(COST(99.999)),DATE),DOTLINE,COLORMAGE NTA,LINETHICK2;筹码底:REFDATE(CONST(COST(0.001)),DATE),DOTLINE,COLORCYAN,LI NETHICK2;{DD:=筹码底;SD:=(C-DD)/2;SC:DD+SD,DOTLINE,COLORRED,LINETHICK1;}W50:=((筹码顶-筹码底)/2)+筹码底,DOTLINE,COLORYELLOW,LINETHICK1;W:=(筹码顶-筹码底)/10;W60:=(W*6)+筹码底,DOTLINE,COLORYELLOW,LINETHICK1;W90:=(W*9)+筹码底,DOTLINE,COLORYELLOW,LINETHICK1;W100:=筹码顶,DOTLINE,COLORYELLOW,LINETHICK1;W110:=(W*11)+筹码底,DOTLINE,COLORYELLOW,LINETHICK1;W80:=(W*8)+筹码底,DOTLINE,COLORYELLOW,LINETHICK1;W70:=(W*7)+筹码底,DOTLINE,COLORYELLOW,LINETHICK1;W30:=(W*3)+筹码底,DOTLINE,COLORYELLOW,LINETHICK1;W40:=(W*4)+筹码底,DOTLINE,COLORYELLOW,LINETHICK1;W20:=(W*2)+筹码底,DOTLINE,COLORYELLOW,LINETHICK1;W10:=(W*1)+筹码底,DOTLINE,COLORYELLOW,LINETHICK1;WA10:=(W*-1)+筹码底,DOTLINE,COLORYELLOW,LINETHICK1;W00:=筹码底,DOTLINE,COLORYELLOW,LINETHICK1;DRAWTEXT(CURRBARSCOUNT=1,W90*0.998,'90'),COLORWHITE;DRAWTEXT(CURRBARSCOUNT=1,W100*0.998,'100'),COLORWHITE;{DRAWTEXT(CURRBARSCOUNT=1,W110*0.998,'110'),COLORWHITE;}{DRAWTEXT(CURRBARSCOUNT=1,W80*0.998,'80'),COLORWHITE;}DRAWTEXT(CURRBARSCOUNT=1,W70*0.998,'70'),COLORWHITE;{DRAWTEXT(CURRBARSCOUNT=1,W60*0.998,'60'),COLORWHITE;}DRAWTEXT(CURRBARSCOUNT=1,W50*0.998,'50'),COLORWHITE;{DRAWTEXT(CURRBARSCOUNT=1,W40*0.998,'40'),COLORWHITE;}DRAWTEXT(CURRBARSCOUNT=1,W30*0.998,'30'),COLORWHITE;{DRAWTEXT(CURRBARSCOUNT=1,W20*0.998,'20'),COLORWHITE;}DRAWTEXT(CURRBARSCOUNT=1,W10*0.998,'10'),COLORWHITE;DRAWTEXT(CURRBARSCOUNT=1,W00*0.998,'0'),COLORWHITE;DRAWTEXT(CURRBARSCOUNT=1,WA10*0.998,'-10'),COLORWHITE;VAR2:=5;VAR3:=3;VAR4:=(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10;VAR5:=IF(YEAR>=2025,0,1);VAR6:=EMA(EMA(LOW,21)+6.8*STD(LOW,2),55);VAR7:=EMA(CLOSE/VAR6*(1.88*CLOSE+LOW+OPEN)/2.75,3 );VAR8:=(VAR7-VAR6)/VAR6/2;VAR9:=EMA(VAR7-VAR8*VAR7,5)*VAR5;VAR10:=EMA(CLOSE,300)-3*STD(CLOSE,300);漏斗下:IF(VAR4>VAR9,VAR4,VAR9)*VAR5,COLORYELLOW,LINETHICK2;漏斗上:IF(VAR9<VAR4 AND VAR9<CLOSE*0.15,EMA(CLOSE,300)-3*STD(CLOSE,300),VAR9),COLORYELLOW,LINETHICK2;漏:IF(VAR9>VAR4,漏斗上,DRAWNULL),COLORGREEN,LINETHICK2;开口XG:=BARSLASTCOUNT(漏斗下!=漏斗上)=1,NODRAW;{筹码平均成本线}生命线:IF(CURRBARSCOUNT<13,CONST(COST(67.5)),DRAWNULL),C OLORWHITE,DOTLINE;{DRAWTEXT(CURRBARSCOUNT=1,生命线*0.998,' 生命线'),COLORWHITE;}漏斗:=漏斗下;AAA:=CROSS(H,漏斗下);ZC:=COUNT(AAA,6)>=1;PP:=H>=漏斗;PPB:=C<=漏斗;PPA:=REF(PP,1);生命:=生命线;{ASR:(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100,NODRAW;} {ASRD:=-((WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100);分:=CONST(LLV(ASRD,90));百:=CONST(HHV(ASRD,90))-分;基点:=CONST(LLV(L,90));基:=CONST(HHV(H,90))-基点;CC比:=(ASRD-分)/百;XCX:=CC比*基+基点;ASRR:XCX,LINETHICK1,COLORWHITE;}{DRAWICON(ASRR<REF(ASRR,1) AND REF(ASRR,1)>REF(ASRR,2) AND ASRR>C AND C>REF(C,1),ASRR+1,2);}{IF(ASRR>REF(ASRR,1) AND C>REF(C,1),ASRR,DRAWNULL),LINETHICK1,COLORRED;};BAAA:=CONST(HHV(H,190));TS1:=0+0.01;TS2:=TS1+0.03;TS3:=TS2+0.07;TS4:=TS3+0.08;{DRAWTEXT(CURRBARSCOUNT=60,BAAA-(BAAA*TS1),'<一>.写上自己需要的文字'),COLORFF00FF ;}DRAWTEXT(CURRBARSCOUNT=100,BAAA-(BAAA*TS2),' 1.紫线为筹码顶, 蓝线为筹码低, 右则为筹码空间比例.80以上为高位,谨慎操作,小心被套'),COLORYELLOW ;DRAWTEXT(CURRBARSCOUNT=100,BAAA-(BAAA*TS3),' 2.绿线为区域顶, 绿变黄,并成两条黄线, 则为妖.当天股价超过绿线,但绿线未变黄则逢高减仓。

通达信筹码分布主图源码指标公式

通达信筹码分布主图源码指标公式

通达信筹码分布主图源码指标公式股票公式不明白请查阅:股票公式文件使用以及说明!{宝塔线}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;。

在主图在看筹码分布通达信指标公式源码

在主图在看筹码分布通达信指标公式源码

在主图在看筹码分布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;。

通达信指标公式源码 自用看筹码主图

通达信指标公式源码 自用看筹码主图

m 1 999 80 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;MAX1:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(A1,A2),A3),A4),A5),A6 ),A7),A8),A9),A10);MAX2:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(A11,A12),A13),A14),A 15),A16),A17),A18),A19),A20);MAX3:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(A21,A22),A23),A24),A 25),A26),A27),A28),A29),A30);MAX4:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(A31,A32),A33),A34),A 35),A36),A37),A38),A39),A40);MAX5:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(A41,A42),A43),A44),A 45),A46),A47),A48),A49),A50);MAX6:=MAX(MAX(MAX(MAX(MAX1,MAX2),MAX3),MAX4),MAX5);筹码线:IF(MAX6=A1,HB,IF(MAX6=A2,B31,IF(MAX6=A3,B32,IF(MAX6=A4,B33,IF( MAX6=A5,B34,IF(MAX6=A6,B35,IF(MAX6=A7,B36,IF(MAX6=A8,B37,IF(MAX6 =A9,B38,IF(MAX6=A10,B39,IF(MAX6=A11,B310,IF(MAX6=A12,B311,IF(MAX6=A13,B312,IF(MAX6=A14,B 313,IF(MAX6=A15,B314,IF(MAX6=A16,B315,IF(MAX6=A17,B316,IF(MAX6=A 18,B317,IF(MAX6=A19,B318,IF(MAX6=A20,B319,IF(MAX6=A21,B320,IF(MAX6=A22,B321,IF(MAX6=A23,B322,IF(MAX6=A24,B 323,IF(MAX6=A25,B324,IF(MAX6=A26,B325,IF(MAX6=A27,B326,IF(MAX6=A 28,B327,IF(MAX6=A29,B328,IF(MAX6=A30,B329,IF(MAX6=A31,B330,IF(MAX6=A32,B331,IF(MAX6=A33,B332,IF(MAX6=A34,B 333,IF(MAX6=A35,B334,IF(MAX6=A36,B335,IF(MAX6=A37,B336,IF(MAX6=A 38,B337,IF(MAX6=A39,B338,IF(MAX6=A40,B339,IF(MAX6=A41,B340,IF(MAX6=A42,B341,IF(MAX6=A43,B342,IF(MAX6=A44,B 343,IF(MAX6=A45,B344,IF(MAX6=A46,B345,IF(MAX6=A47,B346,IF(MAX6=A 48,B347,IF(MAX6=A49,B348,IF(MAX6=A50,B349,LB)))))))))))))))))))))))))))))) )))))))))))))))))))),LINETHICK2,COLORFF00FF;STICKLINE(CROSS(C,筹码线),C,O,1,0),COLOR00FFFF;TLAMSENR:=MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1)-HIGH))),ABS((REF( CLOSE,1)-LOW)));ATR:=MA(TLAMSENR,13);VAR1A:=(REF(CLOSE,1)-REF(ATR,1));黄金线:(HHV(VAR1A,12)),LINETHICK2,COLOR0080FF;半年开盘价:REF(O,BARSLAST(MOD(MONTH,6)=0)-1),COLOR009900,LINETHICK3;年:=YEAR,NODRAW;月:=MONTH,NODRAW;星期:=WEEKDAY,NODRAW;日1:=DATETODAY(DATE);上市日:=REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT);自然日:=日1-DATETODAY(上市日)+1;ZB:=(自然日-REF(自然日,1))!=星期-REF(星期,1)OR TOTALBARSCOUNT-CURRBARSCOUNT=0;本周第几天:=BARSLAST(ZB)+1;本月第几天:=BARSLAST(年*100+月!=REF(年*100+月,1))+1;MA1:=REF(C,本周第几天);MA2:=REF(MA1,本周第几天);MA3:=REF(MA2,本周第几天);MA4:=REF(MA3,本周第几天);MA5:=REF(MA4,本周第几天);MA6:=REF(MA5,本周第几天);MA7:=REF(MA6,本周第几天);MA8:=REF(MA7,本周第几天);MA9:=REF(MA8,本周第几天);十周价:=(C+MA1+MA2+MA3+MA4+MA5+MA6+MA7+MA8+MA9)/10;出击突破:REFDATE(十周价,DATE),COLORWHITE,DOTLINE;DRAWTEXT(ISLASTBAR,出击突破,' --------出击突破'),COLORWHITE;N:=10;T1:=CONST(HHVBARS(V,N));T0:IF(CURRBARSCOUNT<=N+3,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL), COLORWHITE;IF(CURRBARSCOUNT=T1+1,T0,DRAWNULL),CIRCLEDOT,COLORWHITE; DRAWTEXT(ISLASTBAR,T0,' --------量能平台'),COLORWHITE;DP:=IF(C=INDEXC,0,1);GJ:=AMOUNT/V/100;【明日阻力】:L+(GJ-L)+(C-L),COLORRED,NODRAW;【明日支撑】:L+(C-GJ),NODRAW;{通达信单阳不破}单阳:=C>O*1.03 AND VOL>REF(VOL,1)*1.5;不破价:=REF(L,BARSLAST(单阳));DRAWTEXT(单阳,L-L*0.02,'阳'),COLOR00FFFF;LS0:=BARSLAST(单阳);LS11:=IF(1,LS0=1,单阳);LS21:=IF(1,LLV(L,1)>REF(L,1),1);单阳不破:=LS11 AND LS21;STICKLINE(单阳不破,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破,不破价-不破价*0.02,'1'),COLORGREEN;LS12:=IF(2,LS0=2,单阳);LS22:=IF(2,LLV(L,2)>REF(L,2),1);单阳不破2:=LS12 AND LS22;STICKLINE(单阳不破2,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破2,不破价-不破价*0.02,'2'),COLORGREEN;LS13:=IF(3,LS0=3,单阳);LS23:=IF(3,LLV(L,3)>REF(L,3),1);单阳不破3:=LS13 AND LS23;STICKLINE(单阳不破3,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破3,不破价-不破价*0.02,'3'),COLORGREEN;LS14:=IF(4,LS0=4,单阳);LS24:=IF(4,LLV(L,4)>REF(L,4),1);单阳不破4:=LS14 AND LS24;STICKLINE(单阳不破4,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破4,不破价-不破价*0.02,'4'),COLORGREEN;LS15:=IF(5,LS0=5,单阳);LS25:=IF(5,LLV(L,5)>REF(L,5),1);单阳不破5:=LS15 AND LS25;STICKLINE(单阳不破5,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破5,不破价-不破价*0.02,'5'),COLORGREEN;LS16:=IF(6,LS0=6,单阳);LS26:=IF(6,LLV(L,6)>REF(L,6),1);单阳不破6:=LS16 AND LS26;STICKLINE(单阳不破6,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破6,不破价-不破价*0.02,'6'),COLORGREEN;LS17:=IF(7,LS0=7,单阳);LS27:=IF(7,LLV(L,7)>REF(L,7),1);单阳不破7:=LS17 AND LS27;STICKLINE(单阳不破7,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破7,不破价-不破价*0.02,'7'),COLORGREEN;LS18:=IF(8,LS0=8,单阳);LS28:=IF(8,LLV(L,8)>REF(L,8),1);单阳不破8:=LS18 AND LS28;STICKLINE(单阳不破8,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破8,不破价-不破价*0.02,'8'),COLORGREEN;LS19:=IF(9,LS0=9,单阳);LS29:=IF(9,LLV(L,9)>REF(L,9),1);单阳不破9:=LS19 AND LS29;STICKLINE(单阳不破9,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破9,不破价-不破价*0.02,'9'),COLORGREEN;LS110:=IF(10,LS0=10,单阳);LS210:=IF(10,LLV(L,10)>REF(L,10),1);单阳不破10:=LS110 AND LS210;STICKLINE(单阳不破10,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破10,不破价-不破价*0.02,'10'),COLORGREEN; {黄金分割线}顶1:=REFDATE(HHV(H,M),DATE);底1:=REFDATE(LLV(L,M),DATE);H1:=顶1-(顶1-底1)*0.191;H2:=顶1-(顶1-底1)*0.382;H3:=顶1-(顶1-底1)*0.5;H4:=顶1-(顶1-底1)*0.618;H5:=顶1-(顶1-底1)*0.809;顶:REFDATE(顶1,DATE),COLOR666666,DOTLINE;%19.8:REFDATE(H1,DATE),COLOR666666,DOTLINE;%38.2:REFDATE(H2,DATE),COLOR666666,DOTLINE;%50:REFDATE(H3,DATE),COLOR666666,DOTLINE;%61.8:REFDATE(H4,DATE),COLOR666666,DOTLINE;%80.9:REFDATE(H5,DATE),COLOR666666,DOTLINE;底:REFDATE(底1,DATE),COLOR666666,DOTLINE;DRAWTEXT(ISLASTBAR,顶,' 顶'),COLORGREEN;DRAWTEXT(ISLASTBAR,底,' 底'),COLORRED;。

主力散户筹码通达信指标公式源码

主力散户筹码通达信指标公式源码

主力散户筹码指标,主力散户动向一目了然弱势区: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;。

通达信指标公式源码 主图上加筹码峰公式

通达信指标公式源码 主图上加筹码峰公式

DRAWTEXT_FIX(C>0,0.004,0.11,0,DYBLOCK),COLORYELLOW,LINETHICK2; DRAWTEXT_FIX(C>0,0.06,0.11,0,HYBLOCK),COLORRED,LINETHICK2; DRAWTEXT_FIX(C>0,0.12,0.11,0,EXTERNSTR(0,1)),COLORWHITE,LINETHIC K2;DA1:=IF(130>TOTALBARSCOUNT,TOTALBARSCOUNT,130);DA:=IF(CURRBARSCOUNT>DA1,0,DA1);HI:=REFDATE(HHV(H,DA),DATE);LO:=REFDATE(LLV(L,DA),DATE);C1:=IF(CURRBARSCOUNT<=DA,C,DRAWNULL);GZ:=EXP(LN(HI/LO)/10);LH1:=SUM(IF(C1>=(HI/GZ),V,0),DA);LH2:=SUM(IF(C1>=(HI/POW(GZ,2)) AND C1<(HI/GZ),V,0),DA);LH3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA); LH4:=SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA); LH5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA); LH6:=SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA); LH7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA); LH8:=SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA); LH9:=SUM(IF(C1>=(LO*GZ) AND C1<LO*POW(GZ,2),V,0),DA);LH10:=SUM(IF(C1>=LO AND C1<LO*GZ,V,0),DA);L1:=REFDATE(HHV(LH1,DA),DATE),LINETHICK0;L2:=REFDATE(HHV(LH2,DA),DATE),LINETHICK0;L3:=REFDATE(HHV(LH3,DA),DATE),LINETHICK0;L4:=REFDATE(HHV(LH4,DA),DATE);L5:=REFDATE(HHV(LH5,DA),DATE);L6:=REFDATE(HHV(LH6,DA),DATE);L7:=REFDATE(HHV(LH7,DA),DATE);L8:=REFDATE(HHV(LH8,DA),DATE);L9:=REFDATE(HHV(LH9,DA),DATE);L10:=REFDATE(HHV(LH10,DA),DATE);SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);STICKLINE(CEILING(DA*L1/SS)*3>=CURRBARSCOUNT,HI*99/100,HI/GZ,9,0 )COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*99/10 0,HI/POW(GZ,2),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*99/10 0,HI/POW(GZ,3),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*99/10 0,HI/POW(GZ,4),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*99/10 0,HI/POW(GZ,5),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*99/10 0,HI/POW(GZ,6),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*99/10 0,HI/POW(GZ,7),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*P OW(GZ,3)*99/100,9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*P OW(GZ,2)*99/100,9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)* 99/100,9,0)COLOR3C3C3A,LINETHICK3;DRAWKLINE(H,O,L,C);MA1:MA(CLOSE,5);MA2:MA(CLOSE,10);MA3:MA(CLOSE,30);MA4:MA(CLOSE,60);VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100; VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100; VAR7:=0;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE ,1)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE ,1)),13,1)*100;VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)<=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)<=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);{自动画线}HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0; MADISPLAY:=0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DRAWICON(CC,H*1.02,2);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2;DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COL OR0055FF,POINTDOT;相对高点:DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),C OLORYELLOW,POINTDOT;AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);DRAWICON(CC1,L*0.98,1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK2;ZGSTAR:=(高点压力+低点支撑)/2;ZGEND:=CONST((高点压力+低点支撑)/2);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),C OLORFF55BB,LINETHICK2;DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COL ORMAGENTA,POINTDOT,;DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COL ORCYAN,POINTDOT;。

主力散户筹码通达信指标公式源码

主力散户筹码通达信指标公式源码

主力散户筹码指标,主力散户动向一目了然弱势区: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;。

通达信指标公式源码 运筹帷幄带买卖价源码主图

通达信指标公式源码 运筹帷幄带买卖价源码主图

DA:=6;FY:=5;CT:=1;P:=0;N:=3;NS:=IF((HHV(ABS(((HHV(CLOSE,DA)/LLV(CLOSE,DA))-1)),DA)>(10/100)),3,DA);N1:=IF((MINUTE=5),(NS*48),IF((MINUTE=15),(NS*16),IF((MINUTE=30),(NS*8),IF((MI NUTE=60),(NS*4),NS))));MM:=IF(((P=0) OR (VOL=0)),MA(CLOSE,N1),((SUM(AMOUNT,N1)/SUM(VOL,N1))/100)); M1:=REF(MM,1);买入:=IF(CROSS(CLOSE,M1),M1,0);卖出:=IF(CROSS(M1,CLOSE),M1,0);DW:=BARSLAST((卖出>0));EX10:=HHV((买入>0),(DW+1));BJ:=IF((EX10>REF(EX10,1)),买入,0);SJ:=IF((EX10<REF(EX10,1)),卖出,0);DRAWICON(CROSS(CLOSE,M1),(LOW*0.995),1);DRAWICON(CROSS(M1,CLOSE),(HIGH*1.005),2);STICKLINE(BJ>0 AND CT=1,OPEN,(CLOSE+OPEN)/2,3,0), COLOR0044FF; STICKLINE(BJ>0 AND CT=1,OPEN,(CLOSE+OPEN)/2,2.6,0), COLOR0077FF; STICKLINE(BJ>0 AND CT=1,OPEN,(CLOSE+OPEN)/2,2.2,0), COLOR1199FF; STICKLINE(BJ>0 AND CT=1,OPEN,(CLOSE+OPEN)/2,1.8,0), COLOR22BBFF; STICKLINE(BJ>0 AND CT=1,OPEN,(CLOSE+OPEN)/2,1.4,0), COLOR33DDFF; STICKLINE(BJ>0 AND CT=1,OPEN,(CLOSE+OPEN)/2,1,0), COLOR33FFFF; STICKLINE(BJ>0 AND CT=1,CLOSE,(CLOSE+OPEN)/2,3,0), COLOR000055;STICKLINE(BJ>0 AND CT=1,CLOSE,(CLOSE+OPEN)/2,2.6,0), COLOR000077; STICKLINE(BJ>0 AND CT=1,CLOSE,(CLOSE+OPEN)/2,2.2,0), COLOR000099; STICKLINE(BJ>0 AND CT=1,CLOSE,(CLOSE+OPEN)/2,1.8,0), COLOR0000BB; STICKLINE(BJ>0 AND CT=1,CLOSE,(CLOSE+OPEN)/2,1.4,0), COLOR0000DD; STICKLINE(BJ>0 AND CT=1,CLOSE,(CLOSE+OPEN)/2,1,0), COLOR0033FF; STICKLINE(((SJ>0) AND (CT=1)),CLOSE,(CLOSE+OPEN)/2,3.0,0),COLORFF4400; STICKLINE(((SJ>0) AND (CT=1)),CLOSE,(CLOSE+OPEN)/2,2.6,0),COLORFF7700; STICKLINE(((SJ>0) AND (CT=1)),CLOSE,(CLOSE+OPEN)/2,2.2,0),COLORFF9911; STICKLINE(((SJ>0) AND (CT=1)),CLOSE,(CLOSE+OPEN)/2,1.8,0),COLORFFBB22; STICKLINE(((SJ>0) AND (CT=1)),CLOSE,(CLOSE+OPEN)/2,1.4,0),COLORFFDD33; STICKLINE(((SJ>0) AND (CT=1)),CLOSE,(CLOSE+OPEN)/2,1,0),COLORFFFF33; STICKLINE(((SJ>0) AND (CT=1)),OPEN,(CLOSE+OPEN)/2,3.0,0),COLOR550000; STICKLINE(((SJ>0) AND (CT=1)),OPEN,(CLOSE+OPEN)/2,2.6,0),COLOR770000; STICKLINE(((SJ>0) AND (CT=1)),OPEN,(CLOSE+OPEN)/2,2.2,0),COLOR990000; STICKLINE(((SJ>0) AND (CT=1)),OPEN,(CLOSE+OPEN)/2,1.8,0),COLORBB0000; STICKLINE(((SJ>0) AND (CT=1)),OPEN,(CLOSE+OPEN)/2,1.4,0),COLORDD0000; STICKLINE(((SJ>0) AND (CT=1)),OPEN,(CLOSE+OPEN)/2,1,0),COLORFF0000;双线持币:HHV(MA(HIGH,(3)),2),LINETHICK2,COLOR00FF00;单线持股:LLV(MA(HIGH,(3)),1),LINETHICK2,COLOR0000FF;买卖价格:M1,LINETHICK0;明日买卖价格:MM,COLORFFFFFF,LINETHICK0;DRAWNUMBER(CROSS(CLOSE,M1) ,L*0.99,买卖价格),COLORYELLOW; DRAWNUMBER(CROSS(M1,CLOSE) ,H*1.03,买卖价格),COLORWHITE;。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

在主图在看筹码分布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;。

相关文档
最新文档