成交量买点选股源码通达信指标公式源码
通达信指标公式源码 预测成交量公式
{VOL,VOLSTICK;}INPUT:M1(5,1,10),M2(10,5,30),M3(20,10,60);成交量:VOL,PRECIS2,LINETHICK0;成交额:AMOUNT/100000000,PRECIS2,LINETHICK0;五日均量:MA(VOL,M1),PRECIS2,LINETHICK1;十日均量:MA(VOL,M2),PRECIS2,LINETHICK1;廿日均量:MA(VOL,M3),PRECIS2,LINETHICK1;预估今日成交量:IF((DYNAINFO(7)=CLOSE), DYNAINFO(38)*DYNAINFO(17),成交量)/10000,Color0000FF,LINETHICK0,PRECIS2;{如果最新价=收盘价,选五日均量*量比,否则就选成交量}FILLRGN(五日均量,十日均量,五日均量>=十日均量,RGB(255,0,0),五日均量<=十日均量,RGB(0,255,0));{当五日均量>=十日均量时为红色飘带,反之为绿色飘带}AAA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));{系数=成交量/((最高价-最低价)*2-绝对值(收盘价-开盘价))}主买:=IF(CLOSE>OPEN,AAA*(HIGH-LOW),IF(CLOSE<OPEN,AAA*((HIGH-OPEN) +(CLOSE-LOW)),VOL/2));主卖:=-IF(CLOSE>OPEN,0-AAA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPE N,0-AAA*(HIGH-LOW),0-成交量/2));STICKLINE(主买>=主卖,成交量,0,7.5,0),Color0E96A9;{黄色柱表示主力的净买量}STICKLINE(主买>=主卖,成交量,0,7,0),Color10A7BC;{黄色框2} STICKLINE(主买>=主卖,成交量,0,6,0),Color11B5CC;{黄色框3} STICKLINE(主买>=主卖,成交量,0,5,0),Color13C6DF;{黄色框4} STICKLINE(主买>=主卖,成交量,0,4,0),Color1CD2EC;{黄色框5} STICKLINE(主买>=主卖,成交量,0,2,0),Color39D8EE;{黄色框6} STICKLINE(主买>=主卖,成交量,0,0.5,0),ColorFFFFFF;{黄色框7} STICKLINE(主买<主卖,成交量,0,7.5,0),ColorCA6500;{蓝色柱主力的净卖量} STICKLINE(主买<主卖,成交量,0,7,0),ColorE17100;{蓝色框2}STICKLINE(主买<主卖,成交量,0,6,0),ColorF27900;{蓝色框3}STICKLINE(主买<主卖,成交量,0,5,0),ColorFF850B;{蓝色框4}STICKLINE(主买<主卖,成交量,0,4,0),ColorFF9326;{蓝色框5}STICKLINE(主买<主卖,成交量,0,2,0),ColorFFA042;{蓝色框6}STICKLINE(主买<主卖,成交量,0,0.5,0),colorFFFF00;{蓝色框7} STICKLINE(1>0,0,主买,7.5,0),ColorA200A2;{玫红柱1}STICKLINE(1>0,0,主买,7,0),ColorB700B7;{玫红柱2}STICKLINE(1>0,0,主买,6,0),ColorCE00CE;{玫红柱3}STICKLINE(1>0,0,主买,5,0),ColorE800E8;{玫红柱4}STICKLINE(1>0,0,主买,4,0),ColorFF00FF;{玫红柱5}STICKLINE(1>0,0,主买,2,0),ColorFF60FF;{玫红柱6}STICKLINE(1>0,0,主买,0.5,0),ColorFFD2FF;{玫红柱7}BBB:=LONGCROSS(成交量,五日均量,4);{全红柱表示今天的成交量超过五日均量}STICKLINE(BBB,0,成交量,7.5,0),color070084;{全红柱1}STICKLINE(BBB,0,成交量,7,0),color0000A3;{全红柱2}STICKLINE(BBB,0,成交量,6,0),color0000B7;{全红柱3}STICKLINE(BBB,0,成交量,5,0),color0000CD;{全红柱4}STICKLINE(BBB,0,成交量,4,0),color0000E9;{全红柱5}STICKLINE(BBB,0,成交量,2,0),color0754E9;{全红柱6}STICKLINE(BBB,0,成交量,0.5,0),Color68B8FF;{全红柱7}DL:=FILTER(成交量=LLV(成交量,20),5);{全绿柱表示今天是最近5天的成交量中是20日均量的最低量}STICKLINE(DL,0,成交量,7.5,0),Color006400;{全绿柱1}STICKLINE(DL,0,成交量,7,0),Color007500;{全绿柱2}STICKLINE(DL,0,成交量,6,0),Color008400;{全绿柱3}STICKLINE(DL,0,成交量,5,0),Color009900;{全绿柱4}STICKLINE(DL,0,成交量,4,0),Color00AE00;{全绿柱5}STICKLINE(DL,0,成交量,2,0),Color00BD00;{全绿柱6}STICKLINE(DL,0,成交量,0.5,0),Color8EFF8E;{全绿柱7}{预计今天成交量}今天成交额:=AMOUNT/10000;昨天成交额:=REF(今天成交额,1);交易分钟数:=if(CURRENTTIME>93000 and CURRENTTIME<150000 and DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,if(CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-34200)/60,if(CURRENTTIME>130000,(TIMETOT0(CURRENTTIME)-39600)/60,120)),240); 预测今天:=今天成交额/交易分钟数*240;交易分时:=FRACPART( 交易分钟数/60);剩余分时:=交易分时*60;剩余秒:=FRACPART( 剩余分时);剩余秒时:=剩余秒*60;交易小时:=交易分钟数/60 ;{显示文字}DRAWTEXTABS(125,0,'昨天金额:'+NUMTOSTRN(昨天成交额/10000,2)+'亿'),ColorF5FF00,LINETHICK1;DRAWTEXTABS(125,13,'预计今天:'+NUMTOSTRN(预测今天/10000,2)+'亿'),COLOR00FFFF,LINETHICK1;DRAWTEXTABS(450,2,'交易时间:'+INTPART(交易小时)+'小时'+NUMTOSTRN(剩余分时,0)+'分'+NUMTOSTRN(剩余秒时,0)+'秒'+' 已成交金额'+':'+NUMTOSTRN(今天成交额/10000,2)+'亿元'),ColorF5FF00,LINETHICK2,PRECIS2;DRAWFLAGTEXT(1,V,'<*t=80FF00*><*c=0000FF*><*p=95*>'+datestr(dat e)+'\n'+'<*t=E7FFFF*><*c=111100*><*p=95*>'+'成交量'+成交量+'<*t=E7FFFF*><*c=0000FF*><*p=95*>'+' 成交额'+NUMTOSTRN(成交额*10000,0)+'万元');{柱图}图长度像素:=230*0.5;昨天图长度:=230+图长度像素;预测今天图:=(预测今天/昨天成交额)*图长度像素+230;目前成交图:=(今天成交额/昨天成交额)*图长度像素+230; DRAWRECTABS(230,1,昨天图长度,9 ,RGB(0,255,150)); DRAWRECTABS(230,13,目前成交图, 23 ,RGB(255,73,20)); DRAWRECTABS(230,16,预测今天图,20 ,RGB(255,255,0));{立柱说明}DRAWRECTREL( 0,140,115,860,RGB(20,20,20));DRAWRECTREL( 0,140,15,280,RGB(255,255,0));DRAWTEXTREL(20,140,'主力的净买量'),COLORYELLOW; DRAWRECTREL( 0,280,15,420,RGB(0,255,255));DRAWTEXTREL(20,280,'主力的净卖量'),COLORFFFF00; DRAWRECTREL( 0,420,15,560,RGB(255,25,0));DRAWTEXTREL(20,420,'超过五日均量'),COLOR0025FF; DRAWRECTREL( 0,560,15,700,RGB(0,255,0));DRAWTEXTREL(20,560,'低于廿日均量'),COLOR00FF00; DRAWRECTREL( 0,700,15,840,RGB(200,0,200));DRAWTEXTREL(20,700,'主力外成交量'),COLORFF00FF; DRAWTEXTREL(0,0,'成交量'),COLORYELLOW;{DRAWTEXTREL(600,900,'证券代码: '+STKLABEL+' 证券名称:'+STKNAME+''),ColorFFAA00;};。
通达信三个公式源码准确率90%以上超级指标精准买卖绝世指标
通达信三个公式源码准确率90%以上超级指标精准买卖绝世指标1 超级指标指标公式:买卖提示非常明显(适合通达信)指标源码如下:M:3 100 60N 3 100 30散户线: 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M));RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,5,1);D:=SMA(K,3,1);J:=3*K-2*D;主力线:EMA(J,6),COLORYELLOW;VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,30);VAR6:=HHV(VAR4,30);VAR7:=IF(MA(CLOSE,58),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VA R7;VAR9:=IF(VAR8>100,100,VAR8);吸筹:STICKLINE(VAR9>-120,0,VAR9,2,5),COLORMAGENTA;AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;AA5:=SMA(AA4,13,8);走势:CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;AA6:=SMA(AA3,21,8);买观注: STICKLINE(走势-AA6<-65,0,7,15,1);DRAWICON(FILTER(J>REF(J,1)AND 走势>=REF(走势,1)AND 走势<25 ,5),走势,4);卖观注: STICKLINE(走势-AA6>85,98,90,15,1),COLORFFFF00;DRAWICON(FILTER(J<REF(J,1)AND 走势<=REF(走势,1)AND J>85 ,5),J,5);DIF1:=EMA(CLOSE,7)-EMA(CLOSE,19),COLORWHITE;DEA1:=EMA(DIF1,9);MACD1:=(DIF1-DEA1)*100,COLORSTICK;STICKLINE(MACD1>REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORRED;STICKLINE(MACD1<=REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORYELLOW;STICKLINE(MACD1<REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLOR00FF00;STICKLINE(MACD1>=REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLORMAGENTA;STICKLINE(C>0,0,0,50,1),COLORBLUE;RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K日:SMA(RSV1,3,1),COLORWHITE;D日:SMA(K日,3,1),COLORYELLOW;J日:3*K日-2*D日,COLORFF00FF;底部:0,COLORF00FF0,LINETHICK2;DRAWICON(CROSS(J日,底部),底部,1);2 精准买卖支撑价:LLV(LOW,19),LINETHICK2 , COLOR00FF00;阻力价:HHV(HIGH,19),COLORBLUE, LINETHICK2;VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);VAR2:=EMA(VAR1,9);VAR3:=(CLOSE*2.5/100+CLOSE);VAR4:EMA(C,3);VAR5:=LLV(HIGH,240);VAR6:=100*(CLOSE-VAR5)/VAR5;VAR7:=REF(LLV(CLOSE,480),1);VAR8:=REF(HHV(CLOSE,480),1);VAR9:=100*(CLOSE-VAR7)/(VAR8-VAR7);VARA:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100;VARB:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;VARC:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100;VARD:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100;VARE:=VARC>98.5 OR VARD>98.5;VARF:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4;VAR13:=VARA=0 AND VARC=0 AND VAR6<0;VAR14:=VARA=100 AND VARC=100;VAR15:=VARB=0 OR VARD=0 AND VAR9<0;VAR16:=VARB=100 AND VARD=100;VAR17:=VAR6<0 AND VAR9<0;VAR18:=VAR13 AND VAR15;VAR19:=VAR14 AND VAR16;VAR1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;VAR1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100;VAR1D:=BARSCOUNT(CLOSE);VAR1E:=VAR1B<20 AND VAR1C<23 AND VAR1D>35;VAR1F:=VAR1E AND COUNT(VAR1E,1)=1;VAR20:=REF(CLOSE,1);VAR21:=SMA(MAX(CLOSE-VAR20,0),34,1)/SMA(ABS(CLOSE-VAR20),7,1)*100;VAR22:=SMA(MAX(CLOSE-VAR20,0),13,1)/SMA(ABS(CLOSE-VAR20),13,1)*100;VAR23:=BARSCOUNT(CLOSE);VAR24:=VAR21<20 AND VAR22<23 AND VAR23>35;VAR25:=VARA=0 AND VARF<1.2 AND VAR17;VAR27:=VAR18 AND VARF<1.2 AND VAR17;VAR29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100;VAR2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LOW),77)*100;VAR2B:=CROSS(VAR29,69) AND CROSS(VAR2A,80)<150;VAR2C:=VAR24 AND VAR1F AND COUNT(VAR24,30)=1;买点:=VAR25 AND VAR2B;绝对卖点:=(VAR19 OR VARA)AND VARF>23 OR VARE ;VAR2D:=VAR1F AND VAR2C AND VAR25;股海万元户:=(CLOSE/REF(CLOSE,1)>1.04 AND (CLOSE>10.8 AND CLOSE<10.83 OR CLOSE>6.86 AND CLOSE<6.88 OR CLOSE>13.82 AND CLOSE<13.84 OR CLOSE>7.28 AND CLOSE<7.3 OR CLOSE>12.4 AND CLOSE<12.42 OR CLOSE>22.33 AND CLOSE<22.35 OR CLOSE>4.68 AND CLOSE<4.7 OR CLOSE>26.29 AND CLOSE<26.31 OR CLOSE>7.65 AND CLOSE<7.67 OR CLOSE>13.4 AND CLOSE<13.42 OR CLOSE>7.58 AND CLOSE<7.6 OR CLOSE>20.43 AND CLOSE<20.45 OR CLOSE>19.57 AND CLOSE<19.59 OR CLOSE>6.26 ANDCLOSE<6.28 OR CLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 AND VOL<11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21));DRAWTEXT(FILTER(绝对卖点>0,3),H,'别贪'), COLOR00FF00;DRAWTEXT(股海万元户>0,L,'☆追涨'),COLORYELLOW ;DRAWICON(买点>0,L,4);DRAWTEXT(买点>0,L,'扫描神针'),COLORF00FF0;DRAWTEXT(VARF<0.7 AND VAR27 AND VAR25>0,L,'万元'),COLORYELLOW;STICKLINE(VAR2D>0,O,C,10,0), COLORRED;DRAWTEXT(VAR2D>0,L,'大方神针'),COLORRED;DRAWICON(COUNT(REF(VAR4,1)<REF(VAR4,2),5)=5 AND VAR4>REF(VAR4,1),L*0.98,5);DRAWICON(FILTER(COUNT(VAR6<0,5)ANDCROSS(VAR6,0)AND VARF>REF(VARF,1)AND C>O,3),L,1);DRAWICON(FILTER(REF(VAR4,1)>REF(VAR4,2)ANDVAR4<REF(VAR4,1)AND VARF>17 AND VAR1>VAR2,5),H,2);DRAWICON(阻力价>REF(阻力价,1)AND CROSS(阻力价,VAR3)AND C<O,H*1.02,15);DIF1:=EMA(CLOSE,7)-EMA(CLOSE,19),COLORWHITE;DEA1:=EMA(DIF1,9);MACD1:=(DIF1-DEA1)*100,COLORSTICK;STICKLINE(MACD1>REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORRED;STICKLINE(MACD1<=REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORYELLOW;STICKLINE(MACD1<REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLOR00FF00;STICKLINE(MACD1>=REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLORMAGENTA;STICKLINE(C>0,0,0,50,1),COLORBLUE;RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K日:SMA(RSV1,3,1),COLORWHITE;D日:SMA(K日,3,1),COLORYELLOW;J日:3*K日-2*D日,COLORFF00FF;底部:0,COLORF00FF0,LINETHICK2;DRAWICON(CROSS(J日,底部),底部,1);3 绝世指标GLL:-4;顶:80,COLORFFA500;大顶:100,COLORBLUE;VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;VAR2:=SMA(VAR1,10,1);慢速:SMA(VAR2,5,1),COLORRED;RSV:= ((HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100)-70;RSV1:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;FATK:=SMA(RSV1,3,1);形态:SMA(FATK,3,1),COLORBB24DB;VARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VARB:=SMA(VARA,3,1);VARC:=SMA(VARB,3,1);加速: EMA(3*VARB-2*VARC,3),COLORYELLOW;底:6,COLOR00BF00;大底:-6,COLOR007300;VAR11:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;VAR22:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;买入:=VAR11 AND VAR22,STICK,LINETHICK2,COLORRED;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;卖出:=CROSS(80,VAR4),STICK,LINETHICK2,COLORGREEN;{波段介入点}A1:=REF(CLOSE,2);A2:=SMA(MAX(CLOSE-A1,0),7,1)/SMA(ABS(CLOSE-A1),7,1)*100;波段介入点:IF(A2<19,19,0)COLORWHITE;。
通达信指标公式源码 经典成交量跟庄抓主升浪副图指标
N1:=3;N2:=5;N3:=9;N4:=13;DIFF:=EMA(CLOSE,N3)-EMA(CLOSE,N4);DEA:=EMA(DIFF,N2);A1:=DIFF>DEA;RSV1:=(CLOSE-LLV(LOW,N3))/(HHV(HIGH,N3)-LLV(LOW,N3))*100;K0:=SMA(RSV1,N1,1);D0:=SMA(K0,N1,1);A2:=K0>D0;LC0:=REF(CLOSE,1);RSI1:=(SMA(MAX(CLOSE-LC0,0),N2,1))/(SMA(ABS(CLOSE-LC0),N2,1))*100; RSI2:=(SMA(MAX(CLOSE-LC0,0),N4,1))/(SMA(ABS(CLOSE-LC0),N4,1))*100; A3:=RSI1>RSI2;RSV0:=-(HHV(HIGH,N4)-CLOSE)/(HHV(HIGH,N4)-LLV(LOW,N4))*100; LWR1:=SMA(RSV0,N1,1);LWR2:=SMA(LWR1,N1,1);A4:=LWR1>LWR2;BBI:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4; A5:=CLOSE>BBI;MTM:=CLOSE-REF(CLOSE,1);MMS:=100*EMA(EMA(MTM,N2),N1)/EMA(EMA(ABS(MTM),N2),N1); MMM:=100*EMA(EMA(MTM,N4),N3)/EMA(EMA(ABS(MTM),N4),N3);A6:=MMS>MMM;BIAS:=(C-MA(C,N2))/MA(C,N2);DIF:=(BIAS-REF(BIAS,16));DBCD:=SMA(DIF,76,1);MM1:=MA(DBCD,5);A7:=DBCD>MM1;持股:=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),LINETHICK0,CO LORRED;下跌:=MA(持股,12),COLOR6B8E23,LINETHICK0;A8:=持股>下跌;MT:=C-REF(C,1);ZLGJ:=100*EMA(EMA(MT,N3),N3)/EMA(EMA(ABS(MT),N3),N3);MAZL:=MA(ZLGJ,5);A9:=ZLGJ>MAZL;QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));XVL:=IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN +CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HI GH-LOW),0-VOL/2));HSL:=(XVL/20)/1.15;攻击流量:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));LLJX:=EMA(攻击流量,3);资金流量:=LLJX,LINETHICK0,COLOR0000FF;A10:=资金流量>0;指导线:=(A1+A2+A3+A4+A5+A6+A7+A8+A9+A10),LINETHICK0,COLORFFFF00; 跟庄操作:IF(指导线>6 ,33.38,0),LINETHICK1,COLOR0000FF;{成交量比%}AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+( CLOSE-LOW)),VOL /2));量比%:主买/VOL*100,COLOR00FFFF,LINETHICK1,NODRAW;量:=V/CONST(HHV(V,90))*30,LINETHICK0,VOLSTICK;STICKLINE(CLOSE>=OPEN,0,量*1,0.5,0 ),COLOR8080FF;STICKLINE(CLOSE>=OPEN,0,量*1,3.6,0 ),COLOR000033;STICKLINE(CLOSE>=OPEN,0,量*1,2.2,0 ),COLOR000099;STICKLINE(CLOSE>=OPEN,0,量*1,1.5,0 ),COLOR0000D2;STICKLINE(CLOSE>=OPEN,0,量*1,0,0 ),COLOR0000FF;STICKLINE(CLOSE<=OPEN,0,量*1,0.5,0 ),COLORFFFF00; STICKLINE(CLOSE<=OPEN,0,量*1,3.6,0 ),COLOR000000; STICKLINE(CLOSE<=OPEN,0,量*1,2.2,0 ),COLOR6A6A00; STICKLINE(CLOSE<=OPEN,0,量*1,1.5,0 ),COLORDDDD00; STICKLINE(CLOSE<=OPEN,0,量*1,0,0),COLORFFFF00;{立体青色}; {地量买点}STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),量<0,-3,1.2,0),COLORGREEN,LINETHICK2;DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),量<0,'地量'),COLORFFFFFF,LINETHICK1;{倍量}倍量:(量/REF(量,1)>=1.91 AND COUNT(C>O,1)) OR (L>REF(H,1) AND COUNT(O>C,1) AND 量/REF(量,1)>=1.91),NODRAW,COLORYELLOW; STICKLINE(倍量,0,量,0.0001,0),COLOR00FFFF;DRAWTEXT(倍量,量*0.99,'倍'),COLORFFFFFF,LINETHICK1;VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VAR6:=(VAR3+VAR4+VAR5)/3;VAR7:=EMA(VAR6,5);K:EMA(VAR7,5)*2, , COLORFFFFFF;D:EMA(K,5), , COLOR00FFFF;J:K*3-D*2, ,COLORFFFFFF;DRAWBAND(K,RGB(498,0,0),D,RGB(0,188,198));M2:=EMA(C,5);M18:=EMA(C,18);买点:=IF(CROSS(M18,M2),5,10* 10000),COLORGREEN,LINETHICK1; RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100; VARB2:=(RSVV/2+22)*1;Q:=EMA(VOL,13);Y:=EMA(AMOUNT,13);S:=((Y /Q) / 100);X:=(((CLOSE -S) / S) * 100);F:=((X < (0)) AND ZXNH);XQ:=F AND RSVV;阴线买:买点AND XQ STICK,COLOR0000FF;DRAWICON(阴线买>0,阴线买,1);。
通达信经典成交量指标共五个源码
通达信经典成交量指标共五个源码以下是通达信经典成交量指标共五个源码(无源码的请下载附件导入)通达信经典成交量指标共五个源码第一个:{FT-自用VOL}量:VOL,LINETHICK,COLOR00FFFF;STICKLINE(CLOSE>REF(CLOSE,1),量,0,3.5,0),COLOR0054A8;STICKLINE(CLOSE1,AMOUNT/VOL/100,(HIGH+LOW+2* CLOSE)/4);空1:=IF((HIGH-LOW)>0 AND CLOSE>CB,((HIGH-CLOSE)/(HIGH-CB))*((HIGH-CLOSE)/(HIGH-CB)) *((HIGH-CB)/(HIGH-LOW)*VOL) ,0);多1:=IF((HIGH-LOW)>0 AND CLOSE>CB, VOL-空1 ,0);多2:=IF((HIGH-LOW)>0 AND CLOSEREF(CLOSE,1), VOL,0);空3:=IF((HIGH-LOW)=0 AND CLOSE<=REF(CLOSE,1), VOL,0);多方量:多1+多2+多3,NODRAW,COLORRED;空方量:空1+空2+空3,NODRAW,COLORGREEN;STICKLINE(空方量,量,O,3,0),COLOR005A00;STICKLINE(空方量,量,O,2.5,0),COLOR006600;STICKLINE(空方量,量,O,2,0),COLOR006B00;STICKLINE(空方量,量,O,1.5,0),COLOR007700;STICKLINE(空方量,量,O,1,0),COLOR007B00;STICKLINE(空方量,量,0,0.5,0),COLOR009900;STICKLINE(多方量,多方量,O,3,0),COLOR000066;STICKLINE(多方量,多方量,O,2.5,0),COLOR000077; STICKLINE(多方量,多方量,O,2,0),COLOR000099; STICKLINE(多方量,多方量,O,1.5,0),COLOR0000BB; STICKLINE(多方量,多方量,O,1,0),COLOR0000DD; STICKLINE(多方量,多方量,O,0.5,0),COLOR0000FF; 多量线:EMA(多方量,3),COLOR00DBDB,LINETHICK2;空量线:EMA(空方量,3),COLORBFBFBF,LINETHICK2; 第二个:{FT-量子力学}N:=5;QJ0:=(HIGH+LOW+CLOSE)/3;QJ1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE)); QJ2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-QJ0); QJ3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW); QJ4:=IF(HIGH=LOW,1,QJ0-MIN(CLOSE,OPEN)); QJ5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));QJ6:="MACD.DIF">"MACD.DEA" AND"MACD.DEA""KDJ.D" AND "KDJ.D"小单;量振2:=特大0,A,0);B0:=IF(A<0,A,0);STICKLINE(A0,0,A0,3,0),COLOR000044; STICKLINE(A0,0,A0,2.5,0),COLOR000088; STICKLINE(A0,0,A0,1.5,0),COLOR0000AA; STICKLINE(A0,0,A0,1,0),COLOR0000CC;STICKLINE(B0,0,-B0,3,0),COLOR004400;STICKLINE(B0,0,-B0,2.5,0),COLOR008800; STICKLINE(B0,0,-B0,1.5,0),COLOR00AA00; STICKLINE(B0,0,-B0,1,0),COLOR00CC00;周趋势:MA(A,5),COLORFFFFFF;平滑值:EMA(周趋势,5),COLOR00FFFF;STICKLINE(标振1 AND 量振1 AND 周趋势>平滑值,0,A0,3,0),COLORYELLOW;DRAWTEXT(标振1 AND 量振1 AND 周趋势>平滑值,A0,'振'),COLORYELLOW;第三个:{FT-提前量}N1:=12;N2:=26;M:=9;CC:=(C+L+H+O)/4;DIFF:=EMA(CC,5)-EMA(CC,13),COLORBB00BB,LINETHI CK2;DEA:=EMA(DIFF,4),COLOR00BB00,LINETHICK2;MACD:=XMA((DIFF-DEA)*200,2),COLORSTICK;红柱持股:MACD,NODRAW;黄色高抛:MACD,NODRAW;蓝柱持币:MACD,NODRAW;紫色反弹:MACD,NODRAW;STICKLINE(MACD0,0,MACD,6,0 ),COLOR003333;STICKLINE(MACD0,0,MACD,3.5,0 ),COLOR004444;STICKLINE(MACD0,0,MACD,3,0 ),COLOR005555;STICKLINE(MACD0,0,MACD,2.5,0 ),COLOR007777; STICKLINE(MACD0,0,MACD,2,0 ),COLOR009999; STICKLINE(MACD0,0,MACD,1.5,0 ),COLOR00BBBB; STICKLINE(MACD0,0,MACD,1,0 ),COLOR00DDDD; STICKLINE(MACD0,0,MACD,0.5,0 ),COLOR00FFFF;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,6 ,0 ),COLOR000033;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,3.5 ,0 ),COLOR000044;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,3 ,0 ),COLOR000055;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,2.5 ,0 ),COLOR000077;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,2 ,0 ),COLOR000099;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,1.5 ,0 ),COLOR0000BB;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,1 ,0 ),COLOR0000DB;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,0.5 ,0 ),COLOR0000FF;STICKLINE(MACD>REF(MACD,1)AND MACDREF(MACD,1)AND MACDREF(MACD,1)AND MACDREF(MACD,1)ANDMACD<0,0,MACD,0.5,0 ),COLORFF00FF;STICKLINE(MACD<=REF(MACD,1)ANDMACD<0,0,MACD,6,0 ),COLOR333300;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3.5,0 ),COLOR444400;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3,0 ),COLOR555500;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2.5,0 ),COLOR777700;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLOR999900;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.5,0 ),COLORBBBB00;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1,0 ),COLORDDDD00;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.5,0 ),COLORFFFF00;DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;DEAA:=EMA(DIF,9);RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5)) *100;K:=SMA(RSV,2,1);D:=SMA(K,2,1);J:=3*K-2*D;主流资金:=(EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,3 4)),3))/100, COLORRED,LINETHICK2;非主流资金:=(EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH ,34)-LLV(INDEXL,34)),3))/100,COLORGREEN,LINETHIC K2;KJ共振:CROSS(DIF,DEAA) AND CROSS(K,D) AND 主流资金>非主流资金;DRAWTEXT(KJ共振,红柱持股,'B'),COLORGREEN;四连阳:EVERY(红柱持股>REF(红柱持股,1),4),NODRAW;LAST((H-L)/REF(C,1)REF(VOL,1)*2 ANDC>REF(C,1)*1.03AND "DMI.PDI">"DMI.MDI" ANDCROSS("DMI.ADX","DMI.ADXR")AND"DMI.ADXR">"DMI.MDI" AND "DMI.PDI">"DMI.ADX" AND"KDJ.D">REF("KDJ.D",1);第四个:{FT-L001}{N 1.00 100.00 15.0}{M1:5;M2:10;M3:20;M4:60}公积金:FINANCE(18),COLORRED,NODRAW;现金流亿:FINANCE(26)/100000000,NODRAW;市值:FINANCE(40)/100000000,COLORFF00FF,NODRAW;SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100 >100,100,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*10 0);能量:=SAT,VOLSTICK;DRAWTEXT(FILTER(SAT>=100,100),VOL*1.06,'爆'),COLORRED;DRAWTEXT(SAT=100 AND ISLASTBAR,VOL*1.03,'发'),COLORYELLOW;VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));成交:=VOL;买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH -LOW)),IF((CLOSE OPEN),(0 - (VAR1 * ((HIGH - CLOSE) +(OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));买卖差:=(买盘+ 卖盘);STICKLINE((买卖差< 0),0,买卖差,3,0),LINETHICK3,COLOR339933;STICKLINE((买卖差< 0),0,买卖差,2,0),LINETHICK3,COLOR33AA33;STICKLINE((买卖差JX1) AND (JX1 > 0)),JX1,120);JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);VAR30:=MA(VOL,JY2);动神:=买盘;鬼力:=VAR20;神比:=(动神/ VAR30);鬼比:=(鬼力/ VAR30);VAR2:=(HIGH - LOW);VAR3:=ABS((OPEN - CLOSE));VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN)); VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW); VAR6:=((VAR3 / VAR2) * VOL);VAR7:=((VAR4 / VAR2) * VOL);VAR8:=((VAR5 / VAR2) * VOL);VAR9:=IF(((VOL / CAPITAL) >0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND(MA(CLOSE,10) > MA(CLOSE,30))) AND(MA(CLOSE,30) > MA(CLOSE,60)));VARC:=((MA(CLOSE,5) = VAR8)) AND (CLOSE > OPEN)),VAR6,动神) + 动神) / 2);VAR41:=((IF(((VAR7 > VAR6) AND (VAR7 >VAR8)),VAR7,动神) + 动神) / 2);VAR42:=((IF(((VAR8 > VAR6) AND (VAR8 >VAR7)),VAR8,动神) + 动神) / 2);VAR50:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSEMA(CLOSE,30)),0,VOL,2,0),COLOR0000AA;STICKLINE((CLOSE >MA(CLOSE,30)),0,VOL,1,0),COLOR0000DD;STICKLINE((CLOSE >MA(CLOSE,30)),0,VOL,0.5,0),COLOR0000FF;空头:STICKLINE((CLOSE <MA(CLOSE,30)),0,VOL,3,0),COLOR008800; STICKLINE((CLOSE 0),鬼力,0,4,0),COLORFF3399;加仓:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE > OPEN)),0,VAR6,3,0),COLOR880088; STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,2,0),COLORAA00AA;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE > OPEN)),0,VAR6,1,0),COLORDD00DD; STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,0.5,0),COLORFF00FF;减仓:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE = VAR8))AND (CLOSE VAR7)),0,VAR8,3,0),COLOR999999;STICKLINE(((VAR8 > VAR6) AND (VAR8 >VAR7)),0,VAR8,2,0),COLORAAAAAA;STICKLINE(((VAR8 > VAR6) AND (VAR8 >VAR7)),0,VAR8,1,0),COLORDDDDDD;STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,0.6,0),COLORFFFFFF;高卖:STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,3,0),COLOR008888;STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,2,0),COLOR00AAAA;STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,1,0),COLOR00DDDD;STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,0.5,0),COLOR00FFFF;相对地量:=STICKLINE(((VAR9 > 2) AND (VOL < (MA(VOL,5) / 2))),0,VOL,3,0);白洗盘进:1,NODRAW,COLORWHITE;黄高抛低吸:1,NODRAW,COLOR00FFFF;粉庄进追:1,NODRAW,COLORFF00FF;兰绿庄撤卖:1,NODRAW,COLOR00FF00;MAV1:MA(V,M1),LINETHICK1,COLOR00FF00;MAV2:=MA(V,M2),LINETHICK1,COLORFF00FF;IF(MA(V,5)>=REF(MA(V,5),1),MA(V,5),DRAWNULL),COL ORRED,LINETHICK2;DRAWICON(V>=3*REF(V,1),V*1.01,23);DRAWICON(V>=2*REF(V,1),V*0.5,25);第五个:{变色成交量东郭专用系列副图}万手:VOL/10000,LINETHICK0;AA:=IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL);预测:AA/10000,LINETHICK0;BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买:=BUYVOL;卖:=SELLVOL;主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSEOPEN, 0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSEREF(CL OSE,1),0,VOL,3.5,0),COLORRED;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3.5,0),COLO RGREEN;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 3.5 , 0 ) , COLORYELLOW ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 3.2 , 0 ) , COLOR0088FF ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 2.7 , 0 ) , COLOR00AAFF ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 2.1 , 0 ) , COLOR00CCFF ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 1.5 , 0 ) , COLOR22FFFF ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 0.9 , 0 ) , COLOR66FFFF ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 0.3 , 0 ) , COLOR99FFFF ; STICKLINE(主动买>0,0,主动买,3.2,0),COLOR000033; STICKLINE(主动买>0,0,主动买,2.7,0),COLOR000066; STICKLINE(主动买>0,0,主动买,2.1,0),COLOR000099;STICKLINE(主动买>0,0,主动买,1.5,0),COLOR0000CC; STICKLINE(主动买>0,0,主动买,0.9,0),COLOR0000FF; STICKLINE(主动买>0,0,主动买,0.3,0),COLORCC66FF; STICKLINE(主动卖<0,VOL,主动买,3.2,0),COLOR990000; STICKLINE(主动卖<0,VOL,主动买,2.7,0),COLORCC0000; STICKLINE(主动卖<0,VOL,主动买,2.1,0),COLORFF4400; STICKLINE(主动卖<0,VOL,主动买,1.5,0),COLORFF8800; STICKLINE(主动卖<0,VOL,主动买,0.9,0),COLORFFCC00; STICKLINE(主动卖<0,VOL,主动买,0.3,0),COLORCYAN; MA5:MA(V,5),COLORWHITE;MA35:MA(V,35),COLORYELLOW;MA135:MA(V,135),COLORGREEN;。
通达信经典成交量指标共五个源码
通达信经典成交量指标共五个源码以下是通达信经典成交量指标共五个源码(无源码的请下载附件导入)通达信经典成交量指标共五个源码第一个:{FT-自用VOL}量:VOL,LINETHICK,COLOR00FFFF;STICKLINE(CLOSE>REF(CLOSE,1),量,0,3.5,0),COLOR0054A8;STICKLINE(CLOSE1,AMOUNT/VOL/100,(HIGH+LOW+2* CLOSE)/4);空1:=IF((HIGH-LOW)>0 AND CLOSE>CB,((HIGH-CLOSE)/(HIGH-CB))*((HIGH-CLOSE)/(HIGH-CB)) *((HIGH-CB)/(HIGH-LOW)*VOL) ,0);多1:=IF((HIGH-LOW)>0 AND CLOSE>CB, VOL-空1 ,0);多2:=IF((HIGH-LOW)>0 AND CLOSEREF(CLOSE,1), VOL,0);空3:=IF((HIGH-LOW)=0 AND CLOSE<=REF(CLOSE,1), VOL,0);多方量:多1+多2+多3,NODRAW,COLORRED;空方量:空1+空2+空3,NODRAW,COLORGREEN;STICKLINE(空方量,量,O,3,0),COLOR005A00;STICKLINE(空方量,量,O,2.5,0),COLOR006600;STICKLINE(空方量,量,O,2,0),COLOR006B00;STICKLINE(空方量,量,O,1.5,0),COLOR007700;STICKLINE(空方量,量,O,1,0),COLOR007B00;STICKLINE(空方量,量,0,0.5,0),COLOR009900;STICKLINE(多方量,多方量,O,3,0),COLOR000066;STICKLINE(多方量,多方量,O,2.5,0),COLOR000077; STICKLINE(多方量,多方量,O,2,0),COLOR000099; STICKLINE(多方量,多方量,O,1.5,0),COLOR0000BB; STICKLINE(多方量,多方量,O,1,0),COLOR0000DD; STICKLINE(多方量,多方量,O,0.5,0),COLOR0000FF; 多量线:EMA(多方量,3),COLOR00DBDB,LINETHICK2;空量线:EMA(空方量,3),COLORBFBFBF,LINETHICK2; 第二个:{FT-量子力学}N:=5;QJ0:=(HIGH+LOW+CLOSE)/3;QJ1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE)); QJ2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-QJ0); QJ3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW); QJ4:=IF(HIGH=LOW,1,QJ0-MIN(CLOSE,OPEN)); QJ5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));QJ6:="MACD.DIF">"MACD.DEA" AND"MACD.DEA""KDJ.D" AND "KDJ.D"小单;量振2:=特大0,A,0);B0:=IF(A<0,A,0);STICKLINE(A0,0,A0,3,0),COLOR000044; STICKLINE(A0,0,A0,2.5,0),COLOR000088; STICKLINE(A0,0,A0,1.5,0),COLOR0000AA; STICKLINE(A0,0,A0,1,0),COLOR0000CC;STICKLINE(B0,0,-B0,3,0),COLOR004400;STICKLINE(B0,0,-B0,2.5,0),COLOR008800; STICKLINE(B0,0,-B0,1.5,0),COLOR00AA00; STICKLINE(B0,0,-B0,1,0),COLOR00CC00;周趋势:MA(A,5),COLORFFFFFF;平滑值:EMA(周趋势,5),COLOR00FFFF;STICKLINE(标振1 AND 量振1 AND 周趋势>平滑值,0,A0,3,0),COLORYELLOW;DRAWTEXT(标振1 AND 量振1 AND 周趋势>平滑值,A0,'振'),COLORYELLOW;第三个:{FT-提前量}N1:=12;N2:=26;M:=9;CC:=(C+L+H+O)/4;DIFF:=EMA(CC,5)-EMA(CC,13),COLORBB00BB,LINETHI CK2;DEA:=EMA(DIFF,4),COLOR00BB00,LINETHICK2;MACD:=XMA((DIFF-DEA)*200,2),COLORSTICK;红柱持股:MACD,NODRAW;黄色高抛:MACD,NODRAW;蓝柱持币:MACD,NODRAW;紫色反弹:MACD,NODRAW;STICKLINE(MACD0,0,MACD,6,0 ),COLOR003333;STICKLINE(MACD0,0,MACD,3.5,0 ),COLOR004444;STICKLINE(MACD0,0,MACD,3,0 ),COLOR005555;STICKLINE(MACD0,0,MACD,2.5,0 ),COLOR007777; STICKLINE(MACD0,0,MACD,2,0 ),COLOR009999; STICKLINE(MACD0,0,MACD,1.5,0 ),COLOR00BBBB; STICKLINE(MACD0,0,MACD,1,0 ),COLOR00DDDD; STICKLINE(MACD0,0,MACD,0.5,0 ),COLOR00FFFF;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,6 ,0 ),COLOR000033;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,3.5 ,0 ),COLOR000044;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,3 ,0 ),COLOR000055;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,2.5 ,0 ),COLOR000077;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,2 ,0 ),COLOR000099;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,1.5 ,0 ),COLOR0000BB;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,1 ,0 ),COLOR0000DB;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,0.5 ,0 ),COLOR0000FF;STICKLINE(MACD>REF(MACD,1)AND MACDREF(MACD,1)AND MACDREF(MACD,1)AND MACDREF(MACD,1)ANDMACD<0,0,MACD,0.5,0 ),COLORFF00FF;STICKLINE(MACD<=REF(MACD,1)ANDMACD<0,0,MACD,6,0 ),COLOR333300;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3.5,0 ),COLOR444400;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3,0 ),COLOR555500;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2.5,0 ),COLOR777700;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLOR999900;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.5,0 ),COLORBBBB00;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1,0 ),COLORDDDD00;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.5,0 ),COLORFFFF00;DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;DEAA:=EMA(DIF,9);RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5)) *100;K:=SMA(RSV,2,1);D:=SMA(K,2,1);J:=3*K-2*D;主流资金:=(EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,3 4)),3))/100, COLORRED,LINETHICK2;非主流资金:=(EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH ,34)-LLV(INDEXL,34)),3))/100,COLORGREEN,LINETHIC K2;KJ共振:CROSS(DIF,DEAA) AND CROSS(K,D) AND 主流资金>非主流资金;DRAWTEXT(KJ共振,红柱持股,'B'),COLORGREEN;四连阳:EVERY(红柱持股>REF(红柱持股,1),4),NODRAW;LAST((H-L)/REF(C,1)REF(VOL,1)*2 ANDC>REF(C,1)*1.03AND "DMI.PDI">"DMI.MDI" ANDCROSS("DMI.ADX","DMI.ADXR")AND"DMI.ADXR">"DMI.MDI" AND "DMI.PDI">"DMI.ADX" AND"KDJ.D">REF("KDJ.D",1);第四个:{FT-L001}{N 1.00 100.00 15.0}{M1:5;M2:10;M3:20;M4:60}公积金:FINANCE(18),COLORRED,NODRAW;现金流亿:FINANCE(26)/100000000,NODRAW;市值:FINANCE(40)/100000000,COLORFF00FF,NODRAW;SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100 >100,100,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*10 0);能量:=SAT,VOLSTICK;DRAWTEXT(FILTER(SAT>=100,100),VOL*1.06,'爆'),COLORRED;DRAWTEXT(SAT=100 AND ISLASTBAR,VOL*1.03,'发'),COLORYELLOW;VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));成交:=VOL;买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH -LOW)),IF((CLOSE OPEN),(0 - (VAR1 * ((HIGH - CLOSE) +(OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));买卖差:=(买盘+ 卖盘);STICKLINE((买卖差< 0),0,买卖差,3,0),LINETHICK3,COLOR339933;STICKLINE((买卖差< 0),0,买卖差,2,0),LINETHICK3,COLOR33AA33;STICKLINE((买卖差JX1) AND (JX1 > 0)),JX1,120);JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);VAR30:=MA(VOL,JY2);动神:=买盘;鬼力:=VAR20;神比:=(动神/ VAR30);鬼比:=(鬼力/ VAR30);VAR2:=(HIGH - LOW);VAR3:=ABS((OPEN - CLOSE));VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN)); VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW); VAR6:=((VAR3 / VAR2) * VOL);VAR7:=((VAR4 / VAR2) * VOL);VAR8:=((VAR5 / VAR2) * VOL);VAR9:=IF(((VOL / CAPITAL) >0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND(MA(CLOSE,10) > MA(CLOSE,30))) AND(MA(CLOSE,30) > MA(CLOSE,60)));VARC:=((MA(CLOSE,5) = VAR8)) AND (CLOSE > OPEN)),VAR6,动神) + 动神) / 2);VAR41:=((IF(((VAR7 > VAR6) AND (VAR7 >VAR8)),VAR7,动神) + 动神) / 2);VAR42:=((IF(((VAR8 > VAR6) AND (VAR8 >VAR7)),VAR8,动神) + 动神) / 2);VAR50:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSEMA(CLOSE,30)),0,VOL,2,0),COLOR0000AA;STICKLINE((CLOSE >MA(CLOSE,30)),0,VOL,1,0),COLOR0000DD;STICKLINE((CLOSE >MA(CLOSE,30)),0,VOL,0.5,0),COLOR0000FF;空头:STICKLINE((CLOSE <MA(CLOSE,30)),0,VOL,3,0),COLOR008800; STICKLINE((CLOSE 0),鬼力,0,4,0),COLORFF3399;加仓:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE > OPEN)),0,VAR6,3,0),COLOR880088; STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,2,0),COLORAA00AA;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE > OPEN)),0,VAR6,1,0),COLORDD00DD; STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,0.5,0),COLORFF00FF;减仓:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE = VAR8))AND (CLOSE VAR7)),0,VAR8,3,0),COLOR999999;STICKLINE(((VAR8 > VAR6) AND (VAR8 >VAR7)),0,VAR8,2,0),COLORAAAAAA;STICKLINE(((VAR8 > VAR6) AND (VAR8 >VAR7)),0,VAR8,1,0),COLORDDDDDD;STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,0.6,0),COLORFFFFFF;高卖:STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,3,0),COLOR008888;STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,2,0),COLOR00AAAA;STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,1,0),COLOR00DDDD;STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,0.5,0),COLOR00FFFF;相对地量:=STICKLINE(((VAR9 > 2) AND (VOL < (MA(VOL,5) / 2))),0,VOL,3,0);白洗盘进:1,NODRAW,COLORWHITE;黄高抛低吸:1,NODRAW,COLOR00FFFF;粉庄进追:1,NODRAW,COLORFF00FF;兰绿庄撤卖:1,NODRAW,COLOR00FF00;MAV1:MA(V,M1),LINETHICK1,COLOR00FF00;MAV2:=MA(V,M2),LINETHICK1,COLORFF00FF;IF(MA(V,5)>=REF(MA(V,5),1),MA(V,5),DRAWNULL),COL ORRED,LINETHICK2;DRAWICON(V>=3*REF(V,1),V*1.01,23);DRAWICON(V>=2*REF(V,1),V*0.5,25);第五个:{变色成交量东郭专用系列副图}万手:VOL/10000,LINETHICK0;AA:=IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL);预测:AA/10000,LINETHICK0;BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买:=BUYVOL;卖:=SELLVOL;主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSEOPEN, 0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSEREF(CL OSE,1),0,VOL,3.5,0),COLORRED;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3.5,0),COLO RGREEN;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 3.5 , 0 ) , COLORYELLOW ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 3.2 , 0 ) , COLOR0088FF ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 2.7 , 0 ) , COLOR00AAFF ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 2.1 , 0 ) , COLOR00CCFF ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 1.5 , 0 ) , COLOR22FFFF ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 0.9 , 0 ) , COLOR66FFFF ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 0.3 , 0 ) , COLOR99FFFF ; STICKLINE(主动买>0,0,主动买,3.2,0),COLOR000033; STICKLINE(主动买>0,0,主动买,2.7,0),COLOR000066; STICKLINE(主动买>0,0,主动买,2.1,0),COLOR000099;STICKLINE(主动买>0,0,主动买,1.5,0),COLOR0000CC; STICKLINE(主动买>0,0,主动买,0.9,0),COLOR0000FF; STICKLINE(主动买>0,0,主动买,0.3,0),COLORCC66FF; STICKLINE(主动卖<0,VOL,主动买,3.2,0),COLOR990000; STICKLINE(主动卖<0,VOL,主动买,2.7,0),COLORCC0000; STICKLINE(主动卖<0,VOL,主动买,2.1,0),COLORFF4400; STICKLINE(主动卖<0,VOL,主动买,1.5,0),COLORFF8800; STICKLINE(主动卖<0,VOL,主动买,0.9,0),COLORFFCC00; STICKLINE(主动卖<0,VOL,主动买,0.3,0),COLORCYAN; MA5:MA(V,5),COLORWHITE;MA35:MA(V,35),COLORYELLOW;MA135:MA(V,135),COLORGREEN;。
通达信指标公式源码 成交量贴士
获利比例:EMA(WINNER(C)*100,2);超买:90,COLORYELLOW,LINETHICK2;超卖:10,COLORGREEN,LINETHICK2;中上:70,COLORLIGREEN,LINETHICK1;中下:30,COLORWHITE,LINETHICK1;DRAWTEXT(REF(获利比例,1)<10 AND 获利比例>10,获利比例,'买'),COLORMAGENTA;DRAWTEXT(REF(获利比例,1)>90 AND 获利比例<90,获利比例,'卖'),COLORCYAN;底部区域:MA(IF(L<=LLV(L,15),MA(C,20),0),3)/200,VOLSTICK;入货点:=IF(REF(底部区域,1)>0 AND REF(C,1)<=REF(O,1) AND 底部区域>0 AND C>O,1,0);DRAWICON(入货点=1,底部区域*1.2,1);虚量:=IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚量,0,-1,-1),COLOR00C0C0;实量:VOL,VOLSTICK;VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)), COLORRED,POINTDOT;STICKLINE(主买>0,0,主买,0,0),COLORYELLOW;STICKLINE(主买>0 AND 主买/VOL*100>85,0,主买,0.05,0), COLORYELLOW; DRAWICON(主买>0 AND 主买/VOL*100>85 AND DYNAINFO(37)>0.03 AND DYNAINFO(37)<0.19,VOL*1.2,1);主买量比%:主买/VOL*100,COLORWHITE,NODRAW;量能突变:=V+REF(V,1)>=(REF(V,2)+REF(V,3)+REF(V,4)+REF(V,5)+REF(V,6))/5*3 AND V<2*REF(V,1) AND C>O AND C>MA(C,21);STICKLINE(量能突变,2*V/3,V,1,0),COLORRED;量价配合:=REF(V,1)<MAX(MA(V,5),MAX(MA(V,10),MA(V,20))) ANDV>MAX(MA(V,5),MAX(MA(V,10),MA(V,20))) AND V<2*REF(V,1) AND CROSS(C,MA(C,21));STICKLINE(量价配合,V/3,2*V/3,2,0),COLORBROWN;STICKLINE(V=LLV(V,15),0,V,0.7,0),COLORLICYAN;量价突破:=C>=HHV(C,15) AND V>=HHV(V,15);STICKLINE(量价突破,0,V/3,1,0),COLORFF00FF;价量突破15:0,COLORFF00FF;量能堆积:0,COLORRED;量3价21:0,COLORBROWN;量15新低:0,COLORLICYAN;STICKLINE(主买>0,0,主买,0,0),COLORYELLOW;大盘%:(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*100,NODRAW,COLORWHITE; MA5:MA(VOL,5);MA10:MA(VOL,10);MA60:MA(VOL,60);T1:=V+REF(V,1)>=(REF(V,2)+REF(V,3)+REF(V,4)+REF(V,5)+REF(V,6))/5*3 AND V<2*REF(V,1)AND C>O AND C>MA(C,21) ANDC>=HHV(C,15) AND V>=HHV(V,15);。
通达信指标公式源码 成交量决定买卖指标
万手:VOL/10000,LINETHICK0;AA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);预测:AA/10000,LINETHICK0;BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买:=BUYVOL;卖:=SELLVOL;主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LO W)),VOL/2));主买:主动买/10000,COLORFF00FF,LINETHICK0;主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH -LOW),0-VOL/2));主卖:-主动卖/10000,COLORGREEN,LINETHICK0;差额:主买-主卖,LINETHICK0;预比昨:VOL*(240/FROMOPEN)/REF(V,1),LINETHICK0;STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.5,0),COLORWHITE;STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,3.5,0),COLORRED;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3.5,0),COLORGREEN;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.5 , 0 ) , COLORYELLOW ; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.2 , 0 ) , COLOR0088FF ; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.7 , 0 ) , COLOR00AAFF ; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.1 , 0 ) , COLOR00CCFF ; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 1.5 , 0 ) , COLOR22FFFF ; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.9 , 0 ) , COLOR66FFFF ; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.3 , 0 ) , COLOR99FFFF ; STICKLINE(主动买>0,0,主动买,3.2,0),COLOR000033;STICKLINE(主动买>0,0,主动买,2.7,0),COLOR000066;STICKLINE(主动买>0,0,主动买,2.1,0),COLOR000099;STICKLINE(主动买>0,0,主动买,1.5,0),COLOR0000CC;STICKLINE(主动买>0,0,主动买,0.9,0),COLOR0000FF;STICKLINE(主动买>0,0,主动买,0.3,0),COLORCC66FF;STICKLINE(主动卖<0,VOL,主动买,3.2,0),COLOR990000;STICKLINE(主动卖<0,VOL,主动买,2.7,0),COLORCC0000;STICKLINE(主动卖<0,VOL,主动买,2.1,0),COLORFF4400;STICKLINE(主动卖<0,VOL,主动买,1.5,0),COLORFF8800;STICKLINE(主动卖<0,VOL,主动买,0.9,0),COLORFFCC00;STICKLINE(主动卖<0,VOL,主动买,0.3,0),COLORCYAN;持币:IF(SAR(10,2,20)>=H,1,DRAWNULL),CIRCLEDOT,COLORGREEN;持股:IF(SAR(10,2,20)<=L,1,DRAWNULL),CIRCLEDOT,COLORRED;五日平均: MA(V,5)/10000, COLORWHITE;十日平均: MA(V,10)/10000, COLORYELLOW;百日平均: MA(V,100)/10000, COLORYELLOW;。
成交量波段操盘通达信指标公式源码
VAR3:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K13:SMA(VAR3,3,1) ;D14:SMA(K13,3,1) ;J13:=3*K13-2*D14;VAR31:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;K21:=SMA(VAR31,3,1) ;D21:=SMA(K21,3,1) ;VAR34:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;K34:=SMA(VAR34,3,1);D34:=SMA(K34,3,1) ;VAR55:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;K55:SMA(VAR55,5,1) ,COLORGREEN,LINETHICK1;D55:SMA(K55,5,1),COLORFF9933;J55:=3*K55-2*D55;VAR79:IF(WINNER(CLOSE),WINNER(CLOSE)*100,20),VOLSTICK;DIBU:= K13<20 AND D14<20 AND K21<20 AND D21<20 AND K34<20 AND D34<20 AND K55<20 AND D55<20;STICKLINE(DIBU=1,80,60,5.8,1),COLORRED;TOBU:= K13>80 AND D14>80 AND K21>80 AND D21>80 AND K34>80 AND D34>80 AND K55>80 AND D55>80;STICKLINE(TOBU=1,40,20,5.8,1),COLORGREEN;顶部:80,COLOR55AA77,LINETHICK1;底部:20,COLOR55AA77,LINETHICK1;中轴线:50,POINTDOT,COLORWHITE;天线:100, POINTDOT,COLORWHITE;底线:0, POINTDOT,COLORWHITE;现价:=C;VAR108:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2 *SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR118:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2* SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR128:=VAR108<REF(VAR118,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(VAR128 AND COUNT(VAR128,30)=1,40,'有大资金进场迹象,关注!');VAR2:=LLV(LOW,10);VAR33:=HHV(HIGH,25);动力线:= EMA((CLOSE-VAR2)/(VAR33-VAR2)*4,4);底部2:=0.2,COLOR70DB93;关注:=0.5,COLORYELLOW;数值:=动力线,COLORA8A8A8;阶段底部:=CROSS(动力线,底部2);STICKLINE(阶段底部,0.2,49,1,0),COLORRED;DRAWICON(阶段底部,50,11);阶段关注:=CROSS(动力线,关注);STICKLINE(阶段关注,0.1,20,1,0),COLORMAGENTA;阶段卖出:= 3.2,COLORC6C600;BB:=3.5,COLOR0088FF;清仓卖出:=3.5,COLORFF75FF;清仓:=CROSS(清仓卖出,动力线);STICKLINE(清仓,100,70,1,0),COLORBLUE;短线卖出:=CROSS(阶段卖出,动力线);STICKLINE(短线卖出,100,90,2,0),COLORGREEN;A1:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A2:=SMA(A1,3,1);A3:=SMA(A2,3,1);A4:=3*A2-2*A3;X:=LLV(A4,2)=LLV(A4,8);LC:=REF(CLOSE,1);RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);PDI:=((DMP * 100) / TR1);MDI:=((DMM * 100) / TR1);ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);AV:=(RSI5 + ADX); DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10))); NEWVOL:=(RSI5 - WR10);最佳买入:=(AV + NEWVOL);最佳买入选股:=IF(CROSS(最佳买入,0),1,0);VAR11:=SMA(最佳买入选股,3,1);VAR22:=SMA(VAR11,3,1);VAR333:=SMA(VAR22,3,1);XG:=CROSS(A4,REF(A4+0.01,1)) AND X AND A4<20 AND CROSS(VAR22,VAR333) AND VAR22<40;STICKLINE(XG,0.2,10,2,0),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=60,90,'K值线多头排列,做多'),COLORRED;地量:DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L*1,'地量'),COLOR00FFFF;STICKLINE(地量>0,0,30,2,0),COLOR008888;STICKLINE(地量>0,0,30,1.5,0),COLOR00AAAA;STICKLINE(地量>0,0,30,0.8,0),COLOR00DDDD;STICKLINE(地量>0,0,30,0.3,0),COLOR00FFFF;。
通达信经典成交量指标共五个源码
通达信经典成交量指标共五个源码(无源码的请下载附件导入)通达信经典成交量指标共五个源码第一个:{FT-自用VOL}量:VOL,LINETHICK,COLOR00FFFF;STICKLINE(CLOSE& gt;REF(CLOSE,1),量,0,3.5,0),COLOR0054A8;STICKLINE(CLOSE<=REF(CL OSE,1),量,0,3.5,0),COLOR999900;预量:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),COLORFF 00FF; 预量增:预量-REF(V,1),LINETHICK,COLORWHITE;CB:=IF(CAPITAL> ;1,AMOUNT/VOL/100,(HIGH+LOW+2*CLOSE)/4);空1:=IF((HIGH-LOW)>0 AND CLOSE>CB,((HIGH-CLOSE)/(HIGH-CB))*((HIGH-CLOSE)/(HIGH-CB))* ((HIGH-CB)/(HIGH-LOW)*VOL) ,0);多1:=IF((HIGH-LOW)>0 AND CLOSE>CB, VOL-空1 ,0);多2:=IF((HIGH-LOW)>0 AND CLOSE<=CB, ((CLOSE-LOW)/(CB-LOW))*((CLOSE-LOW)/(CB-LOW))*(( CB-LOW)/(HIGH-LOW)*VOL) ,0);空2:=IF((HIGH-LOW)>0 AND CLOSE<=CB, VOL-多2 ,0);多3:=IF((HIGH-LOW)=0 AND CLOSE>REF(CLOSE,1),VOL,0);空3:=IF((HIGH-LOW)=0 ANDCLOSE<=REF(CLOSE,1), VOL,0);多方量:多1+多2+多3,NODRAW,COLORRED;空方量:空1+空2+空3,NODRAW,COLORGREEN;STICKLINE(空方量,量,O,3,0),COLOR005A00;STICKLINE(空方量,量,O,2.5,0),COLOR006600;STICKLINE(空方量,量,O,2,0),COLOR006B00;STICKLINE(空方量,量,O,1.5,0),COLOR007700;STICKLINE(空方量,量,O,1,0),COLOR007B00;STICKLINE(空方量,量,0,0.5,0),COLOR009900;STICKLINE(多方量,多方量,O,3,0),COLOR000066;STICKLINE(多方量,多方量,O,2.5,0),COLOR000077;STICKLINE(多方量,多方量,O,2,0),COLOR000099;STICKLINE(多方量,多方量,O,1.5,0),COLOR0000BB;STICKLINE(多方量,多方量,O,1,0),COLOR0000DD;STICKLINE(多方量,多方量,O,0.5,0),COLOR0000FF;多量线:EMA(多方量,3),COLOR00DBDB,LINETHICK2;空量线:EMA(空方量,3),COLORBFBFBF,LINETHICK2;第二个:{FT-量子力学}N:=5;QJ0:=(HIGH+LOW+CLOSE)/3;QJ1:=IF(HIGH=LO W,1,HIGH-MAX(OPEN,CLOSE));QJ2:=IF(HIGH=LOW,1,MA X(CLOSE,OPEN)-QJ0);QJ3:=IF(HIGH=LOW,1,MIN(OPEN,C LOSE)-LOW);QJ4:=IF(HIGH=LOW,1,QJ0-MIN(CLOSE,OPEN));QJ5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));QJ6:="MAC D.DIF">"MACD.DEA" AND"MACD.DEA"<0;QJ7:="KDJ.K">"KDJ.D" AND "KDJ.D"<30;QJ8:="MACD.DIF"<"MACD.DEA";QJ9:=" KDJ.K"<"KDJ.D" AND "KDJ.K">80;特大:QJ4*QJ5,NODRAW;大单:QJ3*QJ5,NODRAW;中单:QJ1*QJ5,NODRAW;小单:QJ2*QJ5,NODRAW;W1:=SUM(大单,N)+SUM(特大,N);W2:=SUM(小单,N)+SUM(中单,N);量振1:=特大>大单AND 大单>小单;量振2:=特大<小单AND 大单<小单;标振1:=QJ6 AND QJ7;标振2:=QJ8 ANDQJ9;A:=W1-W2;A0:=IF(A>0,A,0);B0:=IF(A<0,A,0);STI CKLINE(A0,0,A0,3,0),COLOR000044;STICKLINE(A0,0,A0,2 .5,0),COLOR000088;STICKLINE(A0,0,A0,1.5,0),COLOR0000 AA;STICKLINE(A0,0,A0,1,0),COLOR0000CC;STICKLINE(B 0,0,-B0,3,0),COLOR004400;STICKLINE(B0,0,-B0,2.5,0),COL OR008800;STICKLINE(B0,0,-B0,1.5,0),COLOR00AA00;STIC KLINE(B0,0,-B0,1,0),COLOR00CC00;周趋势:MA(A,5),COLORFFFFFF;平滑值:EMA(周趋势,5),COLOR00FFFF;STICKLINE(标振1 AND 量振1 AND 周趋势>平滑值,0,A0,3,0),COLORYELLOW; DRAWTEXT(标振1 AND 量振1 AND 周趋势>平滑值,A0,'振'),COLORYELLOW;第三个:{FT-提前量}N1:=12;N2:=26;M:=9;CC:=(C+L+H+O)/4;DIFF:=EMA(CC ,5)-EMA(CC,13),COLORBB00BB,LINETHICK2;DEA:=EMA (DIFF,4),COLOR00BB00,LINETHICK2;MACD:=XMA((DIFF -DEA)*200,2),COLORSTICK;红柱持股:MACD,NODRAW;黄色高抛:MACD,NODRAW;蓝柱持币:MACD,NODRAW;紫色反弹:MACD,NODRAW;STICKLINE(MACD<REF(MACD,1) ANDMACD>0,0,MACD,6,0 ),COLOR003333;STICKLINE(MA CD<REF(MACD,1)ANDMACD>0,0,MACD,3.5,0 ),COLOR004444;STICKLINE(M ACD<REF(MACD,1)ANDMACD>0,0,MACD,3,0 ),COLOR005555;STICKLINE(MA CD<REF(MACD,1)ANDMACD>0,0,MACD,2.5,0 ),COLOR007777;STICKLINE(M ACD<REF(MACD,1)ANDMACD>0,0,MACD,2,0 ),COLOR009999;STICKLINE(MA CD<REF(MACD,1)ANDMACD>0,0,MACD,1.5,0 ),COLOR00BBBB;STICKLINE( MACD<REF(MACD,1)ANDMACD>0,0,MACD,1,0 ),COLOR00DDDD;STICKLINE(MMACD>0,0,MACD,0.5,0 ),COLOR00FFFF;STICKLINE(M ACD>=REF(MACD,1)ANDMACD>0,0,MACD,6 ,0 ),COLOR000033;STICKLINE(MA CD>=REF(MACD,1)ANDMACD>0,0,MACD,3.5 ,0 ),COLOR000044;STICKLINE(M ACD>=REF(MACD,1)ANDMACD>0,0,MACD,3 ,0 ),COLOR000055;STICKLINE(MA CD>=REF(MACD,1)ANDMACD>0,0,MACD,2.5 ,0 ),COLOR000077;STICKLINE(M ACD>=REF(MACD,1)ANDMACD>0,0,MACD,2 ,0 ),COLOR000099;STICKLINE(MA CD>=REF(MACD,1)ANDMACD>0,0,MACD,1.5 ,0 ),COLOR0000BB;STICKLINE( MACD>=REF(MACD,1)ANDMACD>0,0,MACD,1 ,0 ),COLOR0000DB;STICKLINE(M ACD>=REF(MACD,1)ANDMACD>0,0,MACD,0.5 ,0 ),COLOR0000FF;STICKLINE(M ACD>REF(MACD,1)ANDMACD<0,0,MACD,6,0 ),COLORFF00CA;STICKLINE(MA CD>REF(MACD,1)ANDMACD<0,0,MACD,3.5,0 ),COLORFF00CC;STICKLINE(MMACD<0,0,MACD,3,0 ),COLORFF00DB;STICKLINE(MA CD>REF(MACD,1)ANDMACD<0,0,MACD,2.5,0 ),COLORFF00DD;STICKLINE(M ACD>REF(MACD,1)ANDMACD<0,0,MACD,2,0 ),COLORFF00DF;STICKLINE(MA CD>REF(MACD,1)ANDMACD<0,0,MACD,1.5,0 ),COLORFF00EE;STICKLINE(M ACD>REF(MACD,1)ANDMACD<0,0,MACD,1,0 ),COLORFF00EF;STICKLINE(MA CD>REF(MACD,1)ANDMACD<0,0,MACD,0.5,0 ),COLORFF00FF;STICKLINE(M ACD<=REF(MACD,1)ANDMACD<0,0,MACD,6,0 ),COLOR333300;STICKLINE(MAC D<=REF(MACD,1)ANDMACD<0,0,MACD,3.5,0 ),COLOR444400;STICKLINE(M ACD<=REF(MACD,1)ANDMACD<0,0,MACD,3,0 ),COLOR555500;STICKLINE(MAC D<=REF(MACD,1)ANDMACD<0,0,MACD,2.5,0 ),COLOR777700;STICKLINE(M ACD<=REF(MACD,1)ANDMACD<0,0,MACD,2,0 ),COLOR999900;STICKLINE(MACD<=REF(MACD,1)ANDMACD<0,0,MACD,1.5,0 ),COLORBBBB00;STICKLINE(M ACD<=REF(MACD,1)ANDMACD<0,0,MACD,1,0 ),COLORDDDD00;STICKLINE(M ACD<=REF(MACD,1)ANDMACD<0,0,MACD,0.5,0 ),COLORFFFF00;DIF:=(EMA(CL OSE,12)-EMA(CLOSE,26))*100;DEAA:=EMA(DIF,9);RSV:=( CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;K:= SMA(RSV,2,1);D:=SMA(K,2,1);J:=3*K-2*D;主流资金:=(EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34 )),3))/100, COLORRED,LINETHICK2;非主流资金:=(EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH ,34)-LLV(INDEXL,34)),3))/100,COLORGREEN,LINETHICK 2;KJ共振:CROSS(DIF,DEAA) AND CROSS(K,D) AND 主流资金>非主流资金;DRAWTEXT(KJ共振,红柱持股,'B'),COLORGREEN;四连阳:EVERY(红柱持股>REF(红柱持股,1),4),NODRAW;LAST((H-L)/REF(C,1)<0.1,20,0) AND VOL>REF(VOL,1)*2 ANDC>REF(C,1)*1.03AND "DMI.PDI">"DMI.MDI" AND CROSS("DMI.ADX","DMI.ADXR")AND"DMI.ADXR">" DMI.MDI" AND "DMI.PDI">"DMI.ADX" AND"KDJ.D">REF("KDJ.D",1);第四个:{FT-L001}{N 1.00100.00 15.0}{M1:5;M2:10;M3:20;M4:60}公积金:FINANCE(18),COLORRED,NODRAW;现金流亿:FINANCE(26)/100000000,NODRAW;市值:FINANCE(40)/100000000,COLORFF00FF,NODRAW;SAT: =IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100>1 00,100,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100);能量:=SAT,VOLSTICK;DRAWTEXT(FILTER(SAT>=100,100 ),VOL*1.06,'爆'),COLORRED;DRAWTEXT(SAT=100 AND ISLASTBAR,VOL*1.03,'发'),COLORYELLOW;V AR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));成交:=VOL;买盘:=IF((CLOSE > OPEN),(V AR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(V AR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));卖盘:=IF((CLOSE > OPEN),(0 - (V AR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (V AR1 * (HIGH - LOW))),(0 - (VOL / 2))));买卖差:=(买盘+ 卖盘);STICKLINE((买卖差< 0),0,买卖差,3,0),LINETHICK3,COLOR339933;STICKLINE((买卖差< 0),0,买卖差,2,0),LINETHICK3,COLOR33AA33;STICKLINE((买卖差< 0),0,买卖差,1,0),LINETHICK3,COLOR33DD33;STICKLINE((买卖差< 0),0,买卖差,0.5,0),LINETHICK3,COLOR33FF33;量比1:=(VOL / MA(VOL,5));V AR10:=买盘;V AR20:=卖盘;JX1:=BARSSINCE(买盘);JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);JY2:=IF(((4 > JX1) AND (JX1 >0)),JX1,3);V AR30:=MA(VOL,JY2);动神:=买盘;鬼力:=V AR20;神比:=(动神/ V AR30);鬼比:=(鬼力/ V AR30);V AR2:=(HIGH - LOW);V AR3:=ABS((OPEN - CLOSE));V AR4:=(HIGH -IF((CLOSE > OPEN),CLOSE,OPEN));V AR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);V AR6:=((V AR3 / V AR2) * VOL);V AR7:=((V AR4 / V AR2) * VOL);V AR8:=((V AR5 /V AR2) * VOL);V AR9:=IF(((VOL / CAPITAL) >0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));V ARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);V ARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND(MA(CLOSE,30) >MA(CLOSE,60)));V ARC:=((MA(CLOSE,5) <MA(CLOSE,10)) AND (MA(CLOSE,10) <MA(CLOSE,30)));V ARD:=REF(CLOSE,1);V ARE:=((SMA(M AX((CLOSE - VARD),0),6,1) / SMA(ABS((CLOSE -V ARD)),6,1)) * 100);V AR40:=((IF((((V AR6 >= VAR7) AND(V AR6 >= VAR8)) AND (CLOSE > OPEN)),VAR6,动神) + 动神) / 2);V AR41:=((IF(((VAR7 > V AR6) AND (V AR7 > V AR8)),V AR7,动神) + 动神) / 2);V AR42:=((IF(((V AR8 > V AR6) AND (V AR8 > VAR7)),V AR8,动神) + 动神) / 2);V AR50:=((IF((((V AR6 >= VAR7) AND (V AR6 >=V AR8)) AND (CLOSE < OPEN)),V AR6,鬼力) + 鬼力) / 2);三日上攻:=MA((((V AR40 + V AR41) + V AR42) / 3),JY2);三日下攻:=MA(V AR50,JY2);多头:STICKLINE((CLOSE >MA(CLOSE,30)),0,VOL,3,0),COLOR000088;STICKLINE((CL OSE >MA(CLOSE,30)),0,VOL,2,0),COLOR0000AA;STICKLINE((C LOSE >MA(CLOSE,30)),0,VOL,1,0),COLOR0000DD;STICKLINE((C LOSE > MA(CLOSE,30)),0,VOL,0.5,0),COLOR0000FF;空头:STICKLINE((CLOSE <MA(CLOSE,30)),0,VOL,3,0),COLOR008800;STICKLINE((CL OSE <MA(CLOSE,30)),0,VOL,2,0),COLOR00AA00;STICKLINE((C LOSE <MA(CLOSE,30)),0,VOL,1,0),COLOR00DD00;STICKLINE((C LOSE <MA(CLOSE,30)),0,VOL,0.5,0),COLOR00FF00;STICKLINE((鬼力> 0),鬼力,0,4,0),COLORFF3399;加仓:STICKLINE((((V AR6 >= VAR7) AND (V AR6 >=V AR8)) AND (CLOSE >OPEN)),0,V AR6,3,0),COLOR880088;STICKLINE((((V AR6>= V AR7) AND (V AR6 >= VAR8)) AND (CLOSE > OPEN)),0,V AR6,2,0),COLORAA00AA;STICKLINE((((V AR6 >= V AR7) AND (V AR6 >= VAR8)) AND (CLOSE > OPEN)),0,V AR6,1,0),COLORDD00DD;STICKLINE((((V AR6 >= V AR7) AND (V AR6 >= VAR8)) AND (CLOSE > OPEN)),0,V AR6,0.5,0),COLORFF00FF;减仓:STICKLINE((((V AR6 >= VAR7) AND (V AR6 >=V AR8)) AND (CLOSE <OPEN)),0,V AR6,3,0),COLOR880000;STICKLINE((((V AR6>= V AR7) AND (V AR6 >= VAR8)) AND (CLOSE < OPEN)),0,V AR6,2,0),COLORBB0000;STICKLINE((((V AR6>= V AR7) AND (V AR6 >= VAR8)) AND (CLOSE < OPEN)),0,V AR6,1,0),COLORDD0000;STICKLINE((((V AR6>= V AR7) AND (V AR6 >= VAR8)) AND (CLOSE < OPEN)),0,V AR6,0.5,0),COLORFF0000;洗盘:STICKLINE(((V AR8 > V AR6) AND (V AR8 >V AR7)),0,V AR8,3,0),COLOR999999;STICKLINE(((VAR8 > V AR6) AND (V AR8 >V AR7)),0,V AR8,2,0),COLORAAAAAA;STICKLINE(((V AR8 > V AR6) AND (V AR8 >V AR7)),0,VAR8,1,0),COLORDDDDDD;STICKLINE(((V AR8 > V AR6) AND (V AR8 >V AR7)),0,V AR8,0.6,0),COLORFFFFFF;高卖:STICKLINE(((V AR7 > V AR6) AND (V AR7 >V AR8)),0,V AR7,3,0),COLOR008888;STICKLINE(((VAR7 > V AR6) AND (V AR7 >V AR8)),0,V AR7,2,0),COLOR00AAAA;STICKLINE(((V AR7> V AR6) AND (V AR7 >V AR8)),0,V AR7,1,0),COLOR00DDDD;STICKLINE(((V AR7> V AR6) AND (V AR7 >V AR8)),0,V AR7,0.5,0),COLOR00FFFF;相对地量:=STICKLINE(((V AR9 > 2) AND (VOL < (MA(VOL,5) / 2))),0,VOL,3,0);白洗盘进:1,NODRAW,COLORWHITE;黄高抛低吸:1,NODRAW,COLOR00FFFF;粉庄进追:1,NODRAW,COLORFF00FF;兰绿庄撤卖:1,NODRAW,COLOR00FF00;MA V1:MA(V,M1),LINETHIC K1,COLOR00FF00;MA V2:=MA(V,M2),LINETHICK1,COLO RFF00FF;IF(MA(V,5)>=REF(MA(V,5),1),MA(V,5),DRAW NULL),COLORRED,LINETHICK2;DRAWICON(V>=3*R EF(V,1),V*1.01,23);DRAWICON(V>=2*REF(V,1),V*0.5,25);第五个:{变色成交量东郭专用系列副图}万手:VOL/10000,LINETHICK0;AA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);预测:AA/10000,LINETHICK0;BB:=VOL/((HIGH-LOW)*2-ABS (CLOSE-OPEN));买:=BUYVOL;卖:=SELLVOL;主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<O PEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));主买:主动买/10000,COLORFF00FF,LINETHICK0;主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LO W)),IF(CLOSE<OPEN,0-BB*(HIGH-LOW),0-VOL/2));主卖:-主动卖/10000,COLORGREEN,LINETHICK0;差额:主买+主卖,LINETHICK0;STICKLINE(CLOSE=REF(CLOSE,1),0,VO L,3.5,0),COLORWHITE;STICKLINE(CLOSE>REF(CLOS E,1),0,VOL,3.5,0),COLORRED;STICKLINE(CLOSE<REF( CLOSE,1),0,VOL,3.5,0),COLORGREEN;STICKLINE(CURR BARSCOUNT=1 AND PERIOD=5,AA,1 , 3.5 , 0 ) , COLORYELLOW ;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.2 , 0 ) ,COLOR0088FF ;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.7 , 0 ) ,COLOR00AAFF ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 2.1 , 0 ) ,COLOR00CCFF ;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 1.5 , 0 ) ,COLOR22FFFF ;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.9 , 0 ) ,COLOR66FFFF ;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.3 , 0 ) , COLOR99FFFF ;STICKLINE(主动买>0,0,主动买,3.2,0),COLOR000033;STICKLINE(主动买>0,0,主动买,2.7,0),COLOR000066;STICKLINE(主动买>0,0,主动买,2.1,0),COLOR000099;STICKLINE(主动买>0,0,主动买,1.5,0),COLOR0000CC;STICKLINE(主动买>0,0,主动买,0.9,0),COLOR0000FF;STICKLINE(主动买>0,0,主动买,0.3,0),COLORCC66FF;STICKLINE(主动卖<0,VOL,主动买,3.2,0),COLOR990000;STICKLINE(主动卖<0,VOL,主动买,2.7,0),COLORCC0000;STICKLINE(主动卖<0,VOL,主动买,2.1,0),COLORFF4400;STICKLINE(主动卖<0,VOL,主动买,1.5,0),COLORFF8800;STICKLINE(主动卖<0,VOL,主动买,0.9,0),COLORFFCC00;STICKLINE(主动卖<0,VOL,主动买,0.3,0),COLORCYAN;MA5:MA(V,5),COLORWHITE;MA35 :MA(V,35),COLORYELLOW;MA135:MA(V,135),COLORGR EEN;。
自用的成交量公式通达信指标公式源码
虚拟VOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,AMOUNT*240/FROMOPEN,DRAWNULL),NODRAW;{STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚拟VOL,0,-1,-1),COLORWHITE;}加速:=IF(100*WINNER(CLOSE*0.95)>50 AND COST(85)<CLOSE AND(EMA(EMA(CLOSE,9),9)-REF(EMA(EMA(CLOSE,9),9),1))/REF(EMA(EMA(CLOSE,9),9),1)*1 000>0,(EMA(EMA(CLOSE,9),9)-REF(EMA(EMA(CLOSE,9),9),1))/REF(EMA(EMA(CLOSE,9),9),1)*1 000,0),COLORFF00FF,NODRAW;成交量:AMOUNT,VOLSTICK;换手:VOL/CAPITAL*100,NODRAW;量能饱和:(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26)*100,COLORLIMAGENTA,NODRAW; VAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOS E-LOW)),AMOUNT/2));STICKLINE(量能饱和=100,主动买盘,0,1.2,0),COLORMAGENTA;DRAWTEXT((AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26)*100=100,AMOUNT*1.2,'◎'),COLORMAGENTA;DRAWTEXT((AMOUNT-主动买盘)/AMOUNT<0.10,AMOUNT*1.00,'*'),COLORRED;MA8:MA(AMOUNT,8),COLORRED, LINETHICK2;MA97:MA(AMOUNT,97),COLORFFAA66, LINETHICK3;VUME:=V,VOLSTICK;FL4:=成交量=HHV(成交量,250);FL3:=成交量=HHV(成交量,120) AND V!=HHV(V,250);FL2:=成交量=HHV(成交量,60) AND V!=HHV(V,120) AND V!=HHV(V,250);FL1:=成交量=HHV(成交量,30) AND V!=HHV(V,60) AND V!=HHV(V,120) AND V!=HHV(V,250);DRAWTEXT(FL4,1.05*成交量,'④'),COLORYELLOW;DRAWTEXT(FL3,1.00*成交量,'③'),COLORYELLOW;DRAWTEXT(FL2,0.95*成交量,'②'),COLORYELLOW;DRAWTEXT(FL1,0.90*成交量,'①'),COLORYELLOW;XG:SUM(FL1,10),NODRAW;提示A:DRAWTEXT_FIX(C=C,0,0.1,0,'①30天最大量、②60天最大量'),COLOR0000FF;提示B:DRAWTEXT_FIX(C=C,0,0.3,0,'③120天最大量.④250天最大量'),COLOR0000FF; {示:DRAWTEXT_FIX(C=C,0,0.5,0,' 有票的话建议出局规避了'),COLOR0000FF;};。
准确交易点通达信指标代码源码
准确交易点通达信指标代码源码本文档旨在提供准确交易点通达信指标的代码源码。
这些代码可以帮助用户在通达信软件中实现准确交易点指标的计算和显示。
为了实现准确交易点指标的计算和显示,您可以使用以下代码源码:var hl = REF(HIGH, 1) - REF(LOW, 1); // 最高价与最低价的差值var hc = REF(HIGH, 1) - REF(CLOSE, 1); // 最高价与收盘价的差值var lc = REF(CLOSE, 1) - REF(LOW, 1); // 收盘价与最低价的差值var tr = MAX(MAX(hl, hc), lc); // 最大的价格差值var pd = (HIGH - LOW) / tr; // 真实波动范围的百分比var ad = IF(CLOSE > REF(CLOSE, 1), HIGH - CLOSE +REF(CLOSE, 1) - LOW, LOW - CLOSE + REF(CLOSE, 1) - HIGH); // 上升或下降段的价格差值var adl = SUM(ad, 14); // 上升或下降段的价格差值的14日总和var adr = ad / adl * 100; // 上升或下降段的价格差值的百分比RETURN adr;以上代码源码用于计算准确交易点指标的值。
您可以将此代码粘贴到通达信软件的自定义指标中使用。
请注意,本文档提供的代码源码是基于通达信软件的特定格式和函数进行编写的。
在使用代码时,请确保已正确设置软件环境并具备相应的编程能力。
希望本文档能够帮助您实现准确交易点指标的计算和显示。
如有任何问题或需要进一步帮助,请随时与我联系。
通达信难得一见的成交量公式-(源码)
通达信难得一见的成交量公式-(源码)周换:SUM(V/CAPITAL*100,5),NODRAW,COLORMAGENTA;预测:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,VOL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,预测,0,-1,-1),COLOR00C0C0;持币:IF(SAR(10,2,20)>=H,SAR(10,2,20),DRAWNULL),CIRCLE DOT,COLORGREEN;持股:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),CIRCLED OT,COLORMAGENTA;JJ:=(HIGH+LOW+CLOSE)/3;QJ9:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);TD1:=QJ9*(MIN(OPEN,CLOSE)-LOW);XD1:=QJ9*(JJ-MIN(CLOSE,OPEN));XD2:=QJ9*(HIGH-MAX(OPEN,CLOSE));TD2:=QJ9*(MAX(CLOSE,OPEN)-JJ);日净:((TD1+XD1)-(TD2+XD2))/10000,NODRAW; 周净:SUM(日净,5),NODRAW;QJ0:=(HIGH+LOW+CLOSE)/3;QJ1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE)); QJ2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-QJ0); QJ3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW); QJ4:=IF(HIGH=LOW,1,QJ0-MIN(CLOSE,OPEN));QJ5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));特大:QJ4*QJ5,NODRAW;大单:QJ3*QJ5,NODRAW;中单:QJ1*QJ5,NODRAW;小单:QJ2*QJ5,NODRAW;AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0;卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN;主力净流入:MA(买量+卖量/2,3)*AMO/V/100000000,COLORYELLOW,LINETHICK1;量〗:VOL,NODRAW,VOLSTICK;STICKLINE(V>=3*REF(V,1),V/3,V/3,3.9,0),COLORGREEN;STICKLINE(V>=2*REF(V,1),V/2,V/2,3.9,0),COLORYELLOW;DRAWLINE(V>=HHV(V,30),V,V<=LLV(V,10),HHV(V,6),1), COLORFFCCCC;VAR7:=(HIGH - LOW);VAR8:=ABS((OPEN - CLOSE));VAR9:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));VAR10:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);VAR11:=((VAR8 / VAR7) * VOL);VAR12:=((VAR9 / VAR7) * VOL);VAR13:=((VAR10 / VAR7) * VOL);VAR14:=IF(((VOL / CAPITAL) >0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND(MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60)));VARC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND(MA(CLOSE,10) < MA(CLOSE,30)));VARD:=REF(CLOSE,1);DRAWTEXT(((VAR14 > 2) AND (VOL < (MA(VOL,5) / 2))),V-15000,''),COLORFB2DFB;DRAWTEXT(((VAR14 > 2) AND (VOL < (MA(VOL,5) / 2))),V+59000,'地'),COLORFB2DFB;换手率:=((VOL / CAPITAL) * 100);DRAWTEXT((((VOL / REF((SUM(VOL,5) / 5),1)) >= 2) AND (换手率> 1)),(V+55000),'变'),COLORFFFFCC;量:=IF((CLOSE > 200),(VOL / 1000000),(VOL / 100)), LINETHICK0;振幅:=(((HIGH - LOW) / LOW) * 100);DRAWTEXT(VAR12>VAR11 AND VARA>2 ANDVAR12>VAR13 AND CLOSE>MA(CLOSE,5) AND CLOSE>MA (CLOSE,30) AND HIGH>MA(CLOSE,60) AND VOL>MA(VOL,5) ANDVAR12>=MA(VOL,5),V+5000,'高'),COLORGREEN;DRAWTEXT(VAR13>VAR11 AND VAR13>VAR12 AND VARA<-2 AND CLOSE<MA(CLOSE,30) ANDVAR13<MA (VOL,5)/2 ANDMA(VOL,5)<MA(VOL,10),V+5000,'低'), COLORYELLOW;LC1:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC1,0),6,1)/SMA(ABS(CLOSE-LC1),6,1)*100;抓大牛:CROSS(RSI1,11);DRAWTEXT(抓大牛,V+55000,'抓'),COLORRED;EMA13:=EMA(C,13),COLORFF8080;DRAWTEXT(CROSS(HIGH,EMA13),V+5000,'底'),COLORYELLOW;A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);VAR1:=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);VAR2:=EMA(VAR1,8);VAR3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势:=EMA(VAR3,3)-10;STICKLINE((A09>0) AND 趋势<40,0,V/6,2,0),COLORMAGENTA;粉色机构建仓区:0,LINETHICK0,COLORMAGENTA;A011:=DYNAINFO( 5);A013:=BARSCOUNT(HIGH);A014:=(SMA((HIGH / HHV(CLOSE,120)),3,1) * 100);A015:=IF((A013 > 20),A014,0);A016:=IF((HIGH < A011),0,IF((LOW > A011),1,(((A011 - HIGH) + 0.009) / ((LOW - HIGH) + 0.009))));A017:=DMA(A016,(VOL / CAPITAL)) * 60;A019:=IF((((A017 >0) AND (A017 > REF(A017,1))) AND (A015 >= 88)),A017,0);VAR21:=3*SMA((CLOSE-HHV(HIGH,27))/(LLV(LOW,27)-HHV(HIGH,27))*100,5,1)-2*SMA(SMA((HIGH-HHV(HIGH,27))/(LLV(LOW,27)-HHV(HIGH,27))*100,5,1),3,1);VAR22:=EMA(VAR21,8);VAR23:=3*SMA((HIGH-HHV(HIGH,55))/(LLV(LOW,55)-HHV(HIGH,55))*100,5,1)-2*SMA(SMA((HIGH-HHV(HIGH,55))/(LLV(LOW,55)-HHV(HIGH,55))*100,5,1),3,1);趋势1:=EMA(VAR23,3)-10;STICKLINE((A019 > 0 AND (趋势1<20 OR 趋势1>REF(趋势1,1)AND 趋势1<50)),0,V/5,2,0),COLORGREEN;绿色机构出仓区:0,LINETHICK0,COLORGREEN;AB:DRAWLINE(V>=HHV(V,10),V,V<=LLV(V,3),HHV(V,3), 1),COLORYELLOW;DRAWTEXT(CROSS(C,AB),C+5000,'B'),COLORYELLOW;。
新量能成交量通达信指标公式源码
新量能成交量通达信指标公式源码1.首先计算股票的收盘价与开盘价的差值(收盘价-开盘价),得到价格变动值。
2.然后计算股票的成交量,即交易日的成交量。
3.接下来计算价格变动值的累积和,即将每个交易日的价格变动值加总,得到价格变动值的累积和。
4.接下来计算成交量的累积和,即将每个交易日的成交量加总,得到成交量的累积和。
5.最后计算新量能成交量指标的值,即将成交量的累积和除以价格变动值的累积和,得到新量能成交量指标的值。
以下是新量能成交量通达信指标的公式源码解释:```Python#计算新量能成交量指标def calculate_new_momentum_volatility(close_prices,open_prices, trading_volumes):#初始化价格变动值和成交量的累积和price_diff_sum = 0volume_sum = 0#计算价格变动值和成交量的累积和for i in range(len(close_prices)):price_diff = close_prices[i] - open_prices[i]price_diff_sum += price_diffvolume_sum += trading_volumes[i]#计算新量能成交量指标new_momentum_volatility = volume_sum / price_diff_sumreturn new_momentum_volatility#定义股票的收盘价、开盘价和成交量close_prices = [10, 12, 15, 13, 11]open_prices = [9, 11, 14, 12, 10]trading_volumes = [1000, 2000, 1500, 1200, 1000]#调用函数计算新量能成交量指标new_momentum_volatility =calculate_new_momentum_volatility(close_prices, open_prices, trading_volumes)#输出新量能成交量指标的值print("新量能成交量指标的值为:", new_momentum_volatility)```以上源码是使用Python编写的新量能成交量指标计算示例。