量能均线主图指标综合成交量通达信指标公式源码
OBV量能成交量指标通达信指标公式源码
OBV量能成交量指标通达信指标公式源码以下是OBV量能成交量指标的通达信指标公式源码:
var REF = REF(CLOSE,1);
var VOL_OBV = SUM(IF(CLOSE>REF,VOL,IF(CLOSE<REF,-VOL,0)),0);
HHV(函数用于求最高值,参数n表示周期数,例如HHV(HIGH,20)表
示求最近20个周期内的最高值。
LLV(函数用于求最低值,参数n表示周期数,例如LLV(LOW,20)表示
求最近20个周期内的最低值。
SMA(函数用于求简单移动平均线,参数data可以是任意数值型数据,参数n表示周期数,例如SMA(CLOSE, 10)表示求最近10个周期内的收盘
价的简单移动平均线。
HHVBARS(函数用于求最高价位置,返回最近一次最高价出现的位置到
当前位置的周期数,例如HHVBARS(HIGH,20)表示求最高价时间位置,返
回值为20,表示最高价最近一次出现在当前20个周期内。
LLVBARS(函数用于求最低价位置,返回最近一次最低价出现的位置到
当前位置的周期数,例如LLVBARS(LOW,20)表示求最低价时间位置,返回
值为20,表示最低价最近一次出现在当前20个周期内。
以上是OBV量能成交量指标的通达信指标公式源码,其中包括了一些
常用的技术分析函数,如REF函数、SUM函数、IF语句等。
这些函数和语
句可以根据具体的编程语言进行调整和使用,以实现OBV量能成交量指标
的计算和分析。
自用的成交量公式通达信指标公式源码
虚拟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;};。
通达信指标公式源码 预测成交量公式
{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;};。
通达信指标公式源码成交量指标
通达信指标公式源码成交量指标成交量指标(Volume Indicator)是衡量市场交易活跃程度的技术指标,通过分析成交量的变化,可以帮助投资者判断市场趋势及未来可能的价格走势。
本文将介绍一种常用的成交量指标,成交量的移动平均线(Volume Moving Average)的计算公式及源码。
成交量的移动平均线是通过计算一段时间内的成交量的平均值来表征成交量的变化趋势。
具体的计算公式为:VMA(n)=SUM(VOL,n)/n其中,VMA(n)表示第n日的成交量的移动平均线,VOL表示第n日的成交量,n表示计算移动平均值的周期。
下面是通达信软件中计算成交量的移动平均线的源码示例:'''VMAn = input(“周期”, 5)VOL=REF(MA(VOL,n),1)VMA_LOW=MA(VOL,n)*0.95/nVMA_HIGH=MA(VOL,n)*1.05/nVMA=MA(VOL,n)'''在这段源码中,首先通过input(函数获取计算移动平均线的周期n,并使用REF(函数获取前一周期的成交量移动平均值。
然后,通过MA(函数计算成交量的移动平均线,其中VMA_LOW表示当前成交量移动平均值的95%的值,VMA_HIGH表示当前成交量移动平均值的105%的值,VMA表示当前成交量的移动平均值。
通过计算成交量的移动平均线,可以得到一条反映成交活跃程度的曲线,可以与股价或其他指标结合使用,帮助判断市场趋势及价格走势。
需要注意的是,以上代码只是一个示例,实际使用时可能需要进行一些修改或适配,以便与具体的交易软件或平台进行兼容。
希望以上内容对您有帮助!。
通达信主图指标综合(附源码)
通达信主图指标综合(附源码)通达信主图指标综合(附源码)获利盘:WINNER(CLOSE)*100,NODRAW;DRAWBAND(MA(CLOSE,20),RGB(33,0,0),MA(CLOSE,60),RGB( 0,0,0));DRAWBAND(MA(CLOSE,5),RGB(150,150,0),MA(CLOSE,10),R GB(0,0,150));DRAWKLINE(H,O,L,C);MA5:MA(CLOSE,5),COLORWHITE;MA10:MA(CLOSE,10),COLORGREEN,LINETHICK2;短线进场:IF(C>=MA10 AND C>=MA5,MA10,DRAWNULL),COLORRED,LINETHICK2;MA20:MA(CLOSE,20),COLORBROWN;中线进场:IF(C>=MA20 AND C>=MA10,MA20,DRAWNULL),COLORYELLOW;MA60:MA(CLOSE,60),COLORCYAN;MA120:MA(CLOSE,120),COLOR006600,LINETHICK2;{趋势买卖}VAR1:=(C+H+O+L)/4;卖出:XMA(VAR1,20)*(1+80/1000),COLORGREEN,POINTDOT;买入:XMA(VAR1,32)*(1-100/1000),COLORMAGENTA,POINTDOT;DRAWTEXT(CROSS(CLOSE,买入),LOW*0.95,'B'),COLORRED,LINETHICK2;DRAWTEXT(CROSS(卖出,CLOSE),HIGH*1.02,'S'),COLORGREEN;VOL5:=MA(VOL,5); VOL10:=MA(VOL,10); VOL20:=MA(VOL,20);量托:=VOL5>VOL10 AND VOL5>VOL20 ANDCROSS(VOL10,VOL20); {月均线系统:5,10,20}{金蜘蛛:=MA5>MA10 AND MA10>MA20 AND CROSS(MA5,MA20)AND CROSS(MA10,MA20);}MA2:=MA(C,2);金蜘蛛:=MAX(MAX(MA5,MA10),MA20)<CLOSE AND OPEN<MIN(MIN(MA5,MA10),MA20) AND (MA5>=REF(MA5,1)) AND MA2>REF(MA2,1);出水芙蓉:=(CLOSE>MA5 AND CLOSE>MA10 AND CLOSE>MA20AND COUNT(CLOSE>MA5 AND CLOSE>MA10 AND CLOSE>MA20,8)==1);反弹托:=MA5>MA10 AND MA5>MA20 AND MA20<MA60 AND MA60<MA120 AND CROSS(MA10,MA20);月托:=MA5>MA10 AND MA5>MA20 AND (MA20>=MA60 OR MA60>=MA120)AND CROSS(MA10,MA20); {月均线系统:5,10,20}一阳穿三线:=CLOSE>OPEN {收阳} AND CLOSE>MA5 AND CLOSE>MA10 AND CLOSE>MA20AND OPEN<MA5 AND OPEN<MA10 AND OPEN<MA20AND (REF(CLOSE,1)<REF(MA5,1) OR REF(CLOSE,1)<REF(MA10,1)OR REF(CLOSE,1)<REF(MA20,1)){一阳穿月三根均线};底部:=COUNT(CROSS(MA5,MA10),5)>0 AND COUNT(CROSS(MACD.DIF,MACD.DEA),5)>0 AND COUNT(CROSS(MA(VOL,5),MA(VOL,10)),5)>0;VAR01:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR02:=SMA(SMA(VAR01,3,1),3,1);绝买:=CROSS(3*VAR02-2*EMA(VAR02,5),VAR02) AND VAR02<60 AND CLOSE>O;买的前提条件:=量托 OR 出水芙蓉 OR 金蜘蛛 OR 月托 OR 一阳穿三线 OR 底部 OR 绝买;价压:=MA5<MA10 AND MA5<MA20 AND CROSS(MA20,MA10);死蜘蛛:=MA5<MA10 AND CROSS(MA20,MA5) AND CROSS(MA20,MA10);头部:=COUNT(CROSS(MA10,MA5),5)>0 AND COUNT(CROSS(MACD.DEA,MACD.DIF),5)>0 AND COUNT(CROSS(MA(VOL,10),MA(VOL,5)),5)>0;{可看30分钟线买卖} 断头铡刀:=CLOSE<OPEN {收阴} AND CLOSE<MA5 AND CLOSE<MA10 AND CLOSE<MA20AND HIGH>MA5 AND HIGH>MA10 AND HIGH>MA20AND (REF(CLOSE,1)>REF(MA5,1) OR REF(CLOSE,1)>REF(MA10,1) OR REF(CLOSE,1)>REF(MA20,1)); {一阴下穿三根均线}卖的前提条件:=价压 OR 死蜘蛛 OR 头部 OR 断头铡刀;DRAWTEXT(量托 AND COUNT(量托,5)==1 AND COUNT(卖的前提条件,5)==0,MA5,'量托'),COLORRED;DRAWTEXT(出水芙蓉AND COUNT(出水芙蓉,5)==1 AND COUNT(卖的前提条件,5)==0,MA5,'芙蓉'),COLORRED; {买入};DRAWTEXT(反弹托AND COUNT(反弹托,5)==1 AND COUNT(卖的前提条件,5)==0,MA10,'反弹托'),COLORRED;DRAWTEXT(月托 AND COUNT(月托,5)==1 AND COUNT(卖的前提条件,5)==0,MA10,'月托'),COLORRED;DRAWTEXT(金蜘蛛AND COUNT(金蜘蛛,5)==1 AND COUNT(卖的前提条件,5)==0,MA10,'金蜘蛛');DRAWTEXT(一阳穿三线 AND COUNT(一阳穿三线,5)==1 AND COUNT(卖的前提条件,5)==0,MA5,'阳');DRAWTEXT(底部 AND COUNT(底部,5)==1 AND COUNT(卖的前提条件,5)==0 ,MA5,'底部'),COLORGREEN;DRAWTEXT(绝买 AND COUNT(绝买,5)==1 AND COUNT(卖的前提条件,5)==0,MA5,'绝买'),COLORRED;DRAWTEXT(价压 AND COUNT(价压,5)==1 AND COUNT(买的前提条件,5)==0,MA10,'价压'),COLORYELLOW;DRAWTEXT(死蜘蛛AND COUNT(死蜘蛛,5)==1 AND COUNT(买的前提条件,5)==0,HHV(HIGH,5),'死蜘蛛');DRAWTEXT(断头铡刀AND COUNT(断头铡刀,5)==1,HHV(HIGH,5),'断头'),COLORGREEN;DRAWTEXT(头部 AND COUNT(头部,5)==1 AND COUNT(买的前提条件,5)==0 AND COUNT(卖的前提条件,5)>0,HHV(HIGH,5),'头部');{公式条件:两阳夹一阴;后一个阳收盘价大于前一阴最高价;阴线成交量小于阳线成交量}O1:=REF(O,1); C1:=REF(C,1); H1:=REF(H,1); V1:=REF(V,1);O2:=REF(O,2); C2:=REF(C,2); V2:=REF(V,2);多方炮:=C2>O2 AND C1<O1 AND C>O AND C>H1 AND V1<V2 AND V>V1;DRAWTEXT(COUNT(月托,6)>0 AND 多方炮,CLOSE,'托炮');{短线高手}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) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);买1:=VAR10;买2:=(VAR11+VAR13+VAR15+VAR17);卖1:=(VAR12+VAR14+VAR16+VAR18);B:IF(买1>0 OR 买2>0,LOW*0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLORYEL LOW;DRAWTEXT(买1>0 OR 买2>0,LOW*0.98,'买'),COLORRED;S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGR EEN;DRAWTEXT(卖1>0,HIGH*1.02,'卖'),COLORGREEN;VAR100:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));VAR200:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));VAR300:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) - LLV(LOW,5))),34));F:IF(CROSS(VAR200,MA(VAR300,5)),LOW * 0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLOREE00EE;POSITION:=MA120;{买卖点}买卖点1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;买卖点2:=2*ABS(买卖点1);买卖点3:=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);情报:= 100-买卖点3;红军:= IF(买卖点1>0,买卖点1,0);绿军:= IF(买卖点1<0,买卖点2,0);{主力控盘度: 无庄控盘(白色)-动力线上升(深灰色)-开始控盘(红色)-高度控盘(粉色)-主力出货(绿色)}控盘V1:=EMA(EMA(CLOSE,9),9);控盘V2:=100*WINNER(CLOSE*0.95);控盘:=(控盘V1-REF(控盘V1,1))/REF(控盘V1,1)*1000;{专吸庄血修改说明:绿柱前有两条以上白柱的买入更可靠。
通达信指标公式源码(MA均线)主图指标
(MA均线)主图指标M5:MA(C,5),COLORWHITE;M10:MA(C,10),COLORYELLOW;M20:MA(C,20),COLORCYAN;M60:MA(C,60),COLORGREEN,LINETHICK2;M120:MA(C,120),COLORRED,LINETHICK2;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1);B1:=FILTER(A1,10);C1:=BACKSET(B1,10+1);HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1);B2:=FILTER(A2,10);C2:=BACKSET(B2,10+1);LD:=FILTER(C2,10);前期高位:REF(C,BARSLAST(HD)),COLOR8000FF,POINTDOT;STICKLINE(C,前期高位,前期高位,8,0),COLOR8000FF;JRH:=HHV(C,2);JRL:=LLV(C,2);VAR01:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR02:=(REF(VAR01,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR03:=(REF(VAR02,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR04:=(REF(VAR03,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR05:=(REF(VAR04,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR06:=(REF(VAR05,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR07:=(REF(VAR06,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR08:=(REF(VAR07,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR09:=(REF(VAR08,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARA:=(REF(VAR09,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)); 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)); VAR010:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR011:=(REF(VAR010,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR012:=(REF(VAR011,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR013:=(REF(VAR012,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR014:=(REF(VAR013,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR015:=(REF(VAR014,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR016:=(REF(VAR015,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR017:=(REF(VAR016,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR018:=(REF(VAR017,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR019:=((REF(VARD OR VARE OR VARF OR VAR010 OR VAR011 OR VAR012 OR VAR013OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,1)) AND VAR01);VAR1A:=((REF(VAR01 OR VAR02 OR VAR03 OR VAR04 OR VAR05 OR VAR06 OR VAR07 OR VAR08 OR VAR09 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股:=VAR01 OR VAR02 OR VAR03 OR VAR04 OR VAR05 OR VAR06 OR VAR07 OR VAR08 OR VAR09 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;青色观望:=VARD OR VARE OR VARF OR VAR010 OR VAR011 OR VAR012 OR VAR013 OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);今离场价:REF(离场,1),COLOR0000FF,NODRAW;明进场价:=进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLORGREEN,NODRAW;上涨家数:INDEXADV,COLOR0080FF,NODRAW;下跌家数:INDEXDEC,COLORGREEN,NODRAW;DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR00FFFF;DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0); 主力进:=(超B)+(大B),NODRAW;主力出:=(超S)+(大S),NODRAW;小散进:=(中B)+(小B),NODRAW;小散出:=(中S)+(小S),NODRAW;DAZHIV:=CONST(MAX(ABS(主力进),MAX(ABS(主力出),MAX(ABS(小散进),ABS(小散出))))),NODRAW;DRAWRECTREL(0,CONST(940-(ABS(主力进)*250/DAZHIV)),30,960,IF(CONST(主力进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(32,CONST(940-(ABS(主力出)*250/DAZHIV)),62,960,IF(CONST(主力出>0),RGB(23,125,255),RGB(255,0,0)));DRAWRECTREL(70,CONST(940-(ABS(小散进)*250/DAZHIV)),100,960,IF(CONST(小散进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(102,CONST(940-(ABS(小散出)*250/DAZHIV)),132,960,IF(CONST(小散出>0),RGB(23,125,255),RGB(255,0,0)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.0001,0.9,0,STRCAT('',CON2STR(主力进/10,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.033,0.9,0,STRCAT('',CON2STR(主力出/10,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.07,0.9,0,STRCAT('',CON2STR(小散进/10,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.101,0.9,0,STRCAT('',CON2STR(小散出/10,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.03,1,0,'(X10万元)'),COLOR00FFFF; DRAWTEXT_FIX(CURRBARSCOUNT=1,0,1,0,'主进出'),COLORCYAN;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,1,0,'散进出'),COLORCYAN;主力买力度:=LARGEINTRDVOL*1000/VOL;主力卖力度:=LARGEOUTTRDVOL*1000/VOL;AAD:=CONST(MAX(ABS(主力买力度),ABS(主力卖力度)))*4,NODRAW; DRAWRECTREL(0,515,CONST(ABS(主力买力度)*500/AAD),568,IF(CONST(主力买力度)>0,RGB(255,0,0),RGB(0,50,0)));DRAWRECTREL(0,570,CONST(ABS(主力卖力度)*500/AAD),623,IF(CONST(主力卖力度)>0,RGB(0,50,0),RGB(255,0,0)));DRAWTEXT_FIX(1,0,0.524,0,STRCAT('主买力度:',CON2STR(主力买力度,0))),COLORYELLOW;DRAWTEXT_FIX(1,0,0.576,0,STRCAT('主卖力度:',CON2STR(主力卖力度,0))),COLORYELLOW;VAR111:=ZIG(3,13);STICKLINE((REF(VAR111,2) < REF(VAR111,1)) AND (VAR111 <REF(VAR111,1)),CLOSE,OPEN,3,0),COLOR66FF00;DRAWTEXT_FIX(STICKLINE((REF(VAR111,2) < REF(VAR111,1)) AND (VAR111 < REF(VAR111,1)),CLOSE,OPEN,5,0),0.00,0.11,0,''),COLOR00FF00,LINETHICK1;VAR100:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20)))); VAR200:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20)))); VAR300:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) -LLV(LOW,5))),34));F:IF(CROSS(VAR200,MA(VAR300,5)),LOW *0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLOREE00EE;年:MA(CLOSE,22),LINETHICK2,COLORWHITE;MAA5:MA(C,5),COLORFF00FF,LINETHICK2;MAA10:=MA(C,10);MAA30:MA(C,30),COLORRED;KS:IF(MAA10>MAA30,MAA10,MAA30),COLORBLUE;A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A4:=SMA(A3,3,1);A5:=SMA(A4,3,1);A6:=3*A4-2*A5;A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖跟党走'),COLORYELLOW; STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;STICKLINE(ISLASTBAR,HHV(C,5)*0.95-0.01,HHV(C,5)*0.95,100,0),COLORWHITE; DRAWNUMBER(ISLASTBAR,HHV(C,5)*0.95-0.01,HHV(C,5)*0.95);。
通达信指标公式源码操盘均线主图源码
通达信指标公式源码操盘均线主图源码⽹1:=EXPMA(C,5),COLORYELLOW;⽹2:=EXPMA(⽹1,2);⽹3:=EXPMA(⽹2,2);⽹33:EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;TJ1A:IF(⽹1>⽹2,⽹1,⽹2),COLORLICYAN;TJ2A:IF(⽹1>⽹3,⽹1,⽹3),COLORGREEN;TJ3A:⽹1,COLORYELLOW,LINETHICK2;{QS}⽹A:=EXPMA(CLOSE,5),COLORWHITE;⽹B:=EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;IF(⽹BIF(⽹BIF(⽹1{HJ}HH:=CONST(HHV(H,160));LL:=CONST(LLV(L,160));{160可改成你习惯锁定的⽇K线数}HL1:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.76,0.04));HL2:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.80,0.08));HL3:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.84,0.12));HL4:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.88,0.16));HL5:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.92,0.20));HL6:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.96,0.24)); DRAWTEXT_FIX(1,0.00,0,0,'所属⾏业:')COLOR0080FF;DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.00,0.04,0,'主题投资:')COLOR0000FF;DRAWTEXT_FIX(1,0.07,0.04,0,EXTERNSTR(0,1))COLOR0000FF; {⽣成数据时第1项输1与这⾥1⼀致,描述部分输"主题投资"}DRAWTEXT_FIX(1,0.00,0.08,0,'主营业务:')COLORFF00FF;DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2))COLORFF00FF; {⽣成数据时第1项输2与这⾥2⼀致,描述部分输"主营业务"}DRAWTEXT_FIX(1,0.00,0.12,0,'出千概念:')COLORFF88FF;DRAWTEXT_FIX(1,0.07,0.12,0,EXTERNSTR(0,3))COLORFF88FF; {⽣成数据时第1项输3与这⾥3⼀致,描述部分输"出千概念"}⽇:=50;昨前:=3;⾼1:=REF(HHV(H,⽇),昨前);低1:=REF(LLV(L,⽇),昨前);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;L1:=低1+(⾼1-低1)*1.191;L2:=低1+(⾼1-低1)*1.382;L3:=低1+(⾼1-低1)*1.5;L4:=低1+(⾼1-低1)*1.618;L5:=低1+(⾼1-低1)*1.809;短压:REFDATE(⾼1,DATE),COLORGREEN,LINETHICK1;⽀撑19.1%:REFDATE(H1,DATE),COLORYELLOW;⽀撑38.2%:REFDATE(H2,DATE),COLORMAGENTA;⽀撑50%:REFDATE(H3,DATE),COLORLIGRAY;⽀撑61.8%:REFDATE(H4,DATE),COLORWHITE,LINETHICK1;⽀撑80.9%:REFDATE(H5,DATE),COLORWHITE;低:REFDATE(低1,DATE),COLORWHITE;阻⼒119.1%:REFDATE(L1,DATE),COLORYELLOW;阻⼒138.2%:REFDATE(L2,DATE),COLORMAGENTA;阻⼒150%:REFDATE(L3,DATE),COLORLIGRAY;阻⼒161.8%:REFDATE(L4,DATE),COLORRED;阻⼒180.9%:REFDATE(L5,DATE),COLORWHITE;{三线⾦叉显⽰钱袋⼦的源码}DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA1:=EMA(DIFF1,9);MACDD:=CROSS(DIFF1,DEA1);均线1:=CROSS(MA(C,5),MA(C,10));量线1:=CROSS(MA(V,5),MA(V,10));DRAWICON(MACDD AND 均线1 AND 量线1,L-0.20,25);{同时⾦叉显⽰25号图标}; DRAWICON( 均线1 AND 量线1,L-0.20,1);DRAWTEXT(量线1,L-0.25,'量'),COLORYELLOW;总额:=AMOUNT;买:=IF(O=C AND(C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L ));买%:=买/AMOUNT*100;流⼊:=AMOUNT*买%/10000000000;流出:=AMOUNT/100000000-流⼊;净流:=(流⼊-流出);总额3:=SUM(AMOUNT,3);流⼊3:=SUM(流⼊,3);流出3:=SUM(流出,3);净流3:=SUM(流⼊-流出,3);总额5:=SUM(AMOUNT,5);流⼊5:=SUM(流⼊,5);流出5:=SUM(流出,5);净流5:=SUM(流⼊-流出,5);总额10:=SUM(AMOUNT,10);流⼊10:=SUM(流⼊,10);流出10:=SUM(流出,10);净流10:=SUM(流⼊-流出,10);画:=CONST(FINDHIGH(总额10,0,190,1));DRAWTEXT_FIX(1,0.71,0.07,0,'净流(亿):'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.78,0.05,0,'1⽇'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.83,0.05,0,'3⽇'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.88,0.05,0,'5⽇'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.93,0.05,0,'10⽇'),COLORMAGENTA,LINETHICK1; DRAWNUMBER_FIX(1,0.78,0.10,0,CONST((净流))),COLORYELLOW; DRAWNUMBER_FIX(1,0.83,0.10,0,CONST((净流3))),COLORYELLOW; DRAWNUMBER_FIX(1,0.88,0.10,0,CONST((净流5))),COLORYELLOW; DRAWNUMBER_FIX(1,0.93,0.10,0,CONST((净流10))),COLORYELLOW;。
通达信软件指标公式源码通达信量学成交量指标公式源码.docx
通达信量学成交量指标公式源码{VOLUME:VOL Z VOLSTICK;MAV5:MA(VOLUME,M1);MAV20:MA(VOLUME,20);MAV60:MA(VOLUME,20);MAV120:MA(VOLUME Z M2);}绿低量: = 13;蓝低量:=55;灰低量: = 100;{ ------- VOL •量能饱和---- }Nl:=21;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和:IF(SAT>1,1,SAT)*100,COLOROOAAFF,NODRAW;中点:二REFDATE(HHV(V,180)*0.5QATE);STICKLINE(CURRBARSCOUNT=N1,中点*1・9,中点*1.5,100,1),COLOROOAAFF; STICKLINE(CURRBARSCOUNT=N1Z中点*1.88,中点*1.52,量能饱和,0),COLOR0077FF;DRAWTEXT(CU RRBARSCOUNT= N1+3,中点*1.8;饱和度COLORYELLOW;=======}H_L:=0.1*CONST(HHV(VOL,240));{MAV10:MA(V,10),COLORYELLOW;}启动5:=MA(V,5),COLORWHITE;洗盘40:=MA(V,40),COLORBLUE;异动135:=MA(V,135),COLORMAGENTA;WOL:=IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL);{模拟量}STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,O z l,-l),COLOROOCOCO;量:VOL, VOLSTICK;换手:VOL*10000/FINANCE(7),NODRAW; {DYNAINFO(37)*100}换10T:=SUM(换手,10),NODRAW;倍数: = 1・9;倍量:VOL> = REF(V,1)*倍数AND(IF(C<O Z C>REF(C,1),1)),COLORYELLOW,NODRAW;倍缩:REF(V,1)>=VOL*倍数,COLORMAGENTA,NODRAW;平量:RANGE(V/REF(V,1),0.97,1.03) ANDBARSCOUNT(V)>=2,COLORWHITE,NODRAW;彳氐量10: VOL=LLV(VOL,绿彳氐量)AND BARSCOUNT(V)>=绿彳氐量Z COLORGREEN,NODRAW;低量50: VOL=LLV(VOL,蓝低量)AND BARSCOUNT(V)>=蓝低量,COLORBLUE,NODRAW;地量:VOL=LLV(VOL,灰彳氐量)AND BARSCOUNT(V)>二灰彳氐量,COLORGRAY,NODRAW;V1:=VOL*0.9;{图标位置}V2:=VOL*0.8;STICKLINE(倍量/ 0,VI, 1,0),COLORYELLOW;STICKLINE(平量,O z VI, l z0),COLORWHITE;STICKLINE(低量10,0, V2,1,0),COLORLIGREEN;STICKLINE(低量50,0,V2,1,0),COLORBLUE;STICKLINE(地量z O,V2,l z O),COLORGRAY;STICKLINE(倍缩,0,V*0.45,1,0),COLORMAGENTA;均价:=AMOUNT/VOL/100;TJ01:=C<0 AND 均价>REF(CJ){ AND BARSCOUNT(C)>=240};{假阴真阳}; TJ02:=C<0 AND C>REF(C,1);STICKLINE(TJ01 OR TJ02,0,V,0,0),COLORRED;{假阴柱}真阳或假阴:=C>0 OR C>REF(C,1);收阳匸REF(真阳或假阴,3);倍量1:=REF(倍量Q);高量:=REF(V,3)>=H HV(V,7);三日不破:二LLV(C,3)>=REF(L,3);价升:二COUNT(C>=REF(C,1),3)=3;{收盘价逐升}量缩:=COUNT(Vv=REF(V」),3)=3;连阳:=COUNT(真阳或假阴,3)=3;倍量将军柱:二倍量1AND三日不破AND收阳;高量将军柱:二高量AND三日不破AND收阳;将军柱:二倍量将军柱OR高量将军柱;黄金柱:=将军柱AND价升AND量缩AND连阳;STICKLINE(黄金柱Z0.3*V,0.7*V Z1Z0),COLORRED; {红柱}DRAWICON(黄金柱,V*1.5,1);V100:= V<=LLV(V,100)*1.2 AND V>0 AND BARSCOUNT(V)> = 100; 百口地量群:=COUNT(V100,5)>=3;DRAWTEXT(FILTER(百R 地量群,4),V+3*H_L,地量群'),COLORGRAY;长阴短柱:=C/REF(C,l)<=0.96 AND V<HHV(V,30)/1.9;{DRAWTEXT(长阴短柱,V+1.6*H_L;! ^^OLORLICYAN};DRAWLINE(V=LLV(V,3)Z V,V=HHV(V,3),V,0),COLOR9A90FF;DRAWLINE(V=HHV(V Z7),V Z V=LLV(V Z7),V,0),COLOR9AFF89;DRAWLINE(L=LLV(L, 7),V Z H=HHV(H Z7),V Z0),COLOR9AFF89;DRAWLINE(V=HHV(V Z21)Z V,V=LLV(V,21)Z V,0)Z COLORC100FF;DRAWLINE(V=LLV(V,21)Z V,V=HHV(V Z21),V Z0)Z COLORC100FF;DRAWLINE(V=HHV(V/35),V,V=LLV(V,35)/V,0),COLORC1005B;DRAWLINE(V=LLV(V,35)Z V,V=HHV(V Z35),V,0),COLORC1005B;DRAWLINE(V=HHV(V,49)Z V Z V=LLV(V,49),V z0),COLORYELLOW;DRAWLINE(V=LLV(V,49)MV=HHV(V,49)M0),COLOR YELLOW;rT 1 79 地更 0 00 地里群 姬群 停 10^1 oroo 少• 「 倍g ooo 平更:aoo 氐虽M ow。
通达信指标公式源码 成交量+主力动向
{成交量+主力动向副图}量:V,VOLSTICK;PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);JJ:=REF(EMA(PJJ,3),1);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 * (HIGH - LOW))),(0 - (VOL / 2)))));ZLL:=(VOL / CAPITAL);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);进攻流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22));GJJ:=EMA(进攻流量,8); LLJX:=EMA(进攻流量,3);动态天量:=CONST(IF(V=HHV(V,20),V,REF(V,BARSLAST(V=HHV(V,20))))),COLOR00FF00,POINT DOT;STICKLINE(((HSL * 0.4) >= 0),动态天量+((HSL * 0.4) +LLJX)*20,动态天量,3,0),COLORYELLOW;STICKLINE(((HSL * 0.4) < 0),动态天量+((HSL * 0.4) +LLJX)*20,动态天量,3,0),COLOR00FF00;资金流入:=IF((HSL*0.4+LLJX)>0,(HSL*0.4+LLJX),DRAWNULL),COLORRED;资金流出:=IF((HSL*0.4+LLJX)<0,(HSL*0.4+LLJX),DRAWNULL),COLOR00FF00;资金收支:=(HSL*0.4+LLJX),LINETHICK0;万元:=AMOUNT/10000{0000},VOLSTICK,COLORFF00FF;资金净收支:IF((HSL*0.4+LLJX)>0,资金流入,资金流出),COLORWHITE,POINTDOT;收支比例%:IF((HSL*0.4+LLJX)>0,资金流入/万元*100,资金流出/万元*100),COLORYELLOW;连红天1:=BARSLASTCOUNT(资金净收支>0),,COLORA20FFD,NODRAW;连红天2:=IF(连红天1=0,REF(连红天1,1),连红天1),,COLORA20FFD,NODRAW;连红天3:=IF(连红天2=0,REF(连红天1,2),连红天2),,COLORA20FFD,NODRAW;连红天4:=IF(连红天3=0,REF(连红天1,3),连红天3),,COLORA20FFD,NODRAW;近期连红天:IF(连红天4=0,REF(连红天1,4),连红天4),,COLORYELLOW,NODRAW;三日资金:SUM(资金收支,3),COLORWHITE,NODRAW;五日资金:SUM(资金收支,5),COLORFF00FF,NODRAW;十日资金:SUM(资金收支,10),COLOR0000FF,NODRAW;资金流量:=LLJX,LINETHICK0,COLOR0000FF;STICKLINE((资金流量> 0),动态天量+资金流量*20,动态天量,3,0),COLOR0000FF; STICKLINE((资金流量< 0),动态天量+资金流量*20,动态天量,3,0),COLOR008000;。
通达信量能指标公式源码
通达信量能指标公式源码```周期=22if (BarNumber > 周期)当前成交量 = Volume前期成交量 = Ref(Volume, 周期)//计算主力买卖盘力量当前成交量力量 = IFF((Current成交量 - 前期成交量) > 0, (Current成交量 - 前期成交量), 0)主力买卖盘力量=SUM(当前成交量力量,周期)//计算散户买卖盘力量当前成交量力量反=IFF((前期成交量-当前成交量)>0,(前期成交量-当前成交量),0)散户买卖盘力量=SUM(当前成交量力量反,周期)//计算总体买卖盘力量总体买卖盘力量=主力买卖盘力量+散户买卖盘力量//计算主力买卖比例主力买卖比例=IFF(总体买卖盘力量>0,(主力买卖盘力量/总体买卖盘力量)*100,0)//计算散户买卖比例散户买卖比例=100-主力买卖比例//画出主力买卖比例曲线和散户买卖比例曲线Plot(主力买卖比例, "主力买卖比例", colorRed)Plot(散户买卖比例, "散户买卖比例", colorGreen)```这段源码采用了TradingView的Pine Script语言编写。
其中 `周期`为指定的周期长度,`BarNumber`为当前的K线数量,`Volume`为当前K 线的成交量。
通过计算当前成交量和前期成交量的差值,可以得到主力买卖盘力量和散户买卖盘力量。
然后将这些力量进行累计,并计算主力买卖比例和散户买卖比例。
最后,通过`Plot(`函数将主力买卖比例和散户买卖比例画在图表上,使用红色和绿色分别表示。
这段代码的作用是计算并绘制通达信量能指标中的主力买卖比例和散户买卖比例曲线。
这些曲线可以帮助分析市场的买卖力量和趋势,更好地理解市场的活跃度和价格行为。
通达信指标公式源码 操盘均线 主图源码
网1:=EXPMA(C,5),COLORYELLOW;网2:=EXPMA(网1,2);网3:=EXPMA(网2,2);网33:EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;TJ1A:IF(网1>网2,网1,网2),COLORLICYAN;TJ2A:IF(网1>网3,网1,网3),COLORGREEN;TJ3A:网1,COLORYELLOW,LINETHICK2;{QS}网A:=EXPMA(CLOSE,5),COLORWHITE;网B:=EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;IF(网B<REF(网B,1),网B,DRAWNULL),COLOR00FF00,LINETHICK3;IF(网B<REF(网A,1),网A,DRAWNULL),COLORWHITE,LINETHICK1;IF(网1<REF(网B,1),网A,DRAWNULL),COLORGREEN,LINETHICK1;{HJ}HH:=CONST(HHV(H,160));LL:=CONST(LLV(L,160));{160可改成你习惯锁定的日K线数}HL1:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.76,0.04)); HL2:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.80,0.08)); HL3:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.84,0.12)); HL4:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.88,0.16)); HL5:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.92,0.20)); HL6:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.96,0.24)); DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR0080FF;DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.00,0.04,0,'主题投资:')COLOR0000FF;DRAWTEXT_FIX(1,0.07,0.04,0,EXTERNSTR(0,1))COLOR0000FF; {生成数据时第1项输1与这里1一致,描述部分输"主题投资"}DRAWTEXT_FIX(1,0.00,0.08,0,'主营业务:')COLORFF00FF;DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2))COLORFF00FF; {生成数据时第1项输2与这里2一致,描述部分输"主营业务"}DRAWTEXT_FIX(1,0.00,0.12,0,'出千概念:')COLORFF88FF;DRAWTEXT_FIX(1,0.07,0.12,0,EXTERNSTR(0,3))COLORFF88FF; {生成数据时第1项输3与这里3一致,描述部分输"出千概念"}日:=50;昨前:=3;高1:=REF(HHV(H,日),昨前);低1:=REF(LLV(L,日),昨前);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;L1:=低1+(高1-低1)*1.191;L2:=低1+(高1-低1)*1.382;L3:=低1+(高1-低1)*1.5;L4:=低1+(高1-低1)*1.618;L5:=低1+(高1-低1)*1.809;短压:REFDATE(高1,DATE),COLORGREEN,LINETHICK1;支撑19.1%:REFDATE(H1,DATE),COLORYELLOW;支撑38.2%:REFDATE(H2,DATE),COLORMAGENTA;支撑50%:REFDATE(H3,DATE),COLORLIGRAY;支撑61.8%:REFDATE(H4,DATE),COLORWHITE,LINETHICK1;支撑80.9%:REFDATE(H5,DATE),COLORWHITE;低:REFDATE(低1,DATE),COLORWHITE;阻力119.1%:REFDATE(L1,DATE),COLORYELLOW;阻力138.2%:REFDATE(L2,DATE),COLORMAGENTA;阻力150%:REFDATE(L3,DATE),COLORLIGRAY;阻力161.8%:REFDATE(L4,DATE),COLORRED;阻力180.9%:REFDATE(L5,DATE),COLORWHITE;{三线金叉显示钱袋子的源码}DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA1:=EMA(DIFF1,9);MACDD:=CROSS(DIFF1,DEA1);均线1:=CROSS(MA(C,5),MA(C,10));量线1:=CROSS(MA(V,5),MA(V,10));DRAWICON(MACDD AND 均线1 AND 量线1,L-0.20,25);{同时金叉显示25号图标};DRAWICON( 均线1 AND 量线1,L-0.20,1);DRAWTEXT(量线1,L-0.25,'量'),COLORYELLOW;总额:=AMOUNT;买:=IF(O=C AND(C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L ));买%:=买/AMOUNT*100;流入:=AMOUNT*买%/10000000000;流出:=AMOUNT/100000000-流入;净流:=(流入-流出);总额3:=SUM(AMOUNT,3);流入3:=SUM(流入,3);流出3:=SUM(流出,3);净流3:=SUM(流入-流出,3);总额5:=SUM(AMOUNT,5);流入5:=SUM(流入,5);流出5:=SUM(流出,5);净流5:=SUM(流入-流出,5);总额10:=SUM(AMOUNT,10);流入10:=SUM(流入,10);流出10:=SUM(流出,10);净流10:=SUM(流入-流出,10);画:=CONST(FINDHIGH(总额10,0,190,1));DRAWTEXT_FIX(1,0.71,0.07,0,'净流(亿):'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.78,0.05,0,'1日'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.83,0.05,0,'3日'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.88,0.05,0,'5日'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.93,0.05,0,'10日'),COLORMAGENTA,LINETHICK1; DRAWNUMBER_FIX(1,0.78,0.10,0,CONST((净流))),COLORYELLOW; DRAWNUMBER_FIX(1,0.83,0.10,0,CONST((净流3))),COLORYELLOW; DRAWNUMBER_FIX(1,0.88,0.10,0,CONST((净流5))),COLORYELLOW; DRAWNUMBER_FIX(1,0.93,0.10,0,CONST((净流10))),COLORYELLOW;。
通达信指标公式源码分时主图指标
通达信指标公式源码分时主图指标通达信是一款流行的股票行情软件,拥有丰富的指标公式库。
下面是一些常见的通达信指标公式源码,这些公式可以用于绘制分时主图指标。
1.均线:均线是最常见的技术指标之一,它代表了一段时间内的平均价格。
通达信中绘制均线的公式如下:MA(N):N日均线MA(N,X):N日均线,显示为实线,X为线宽度具体实现如下:MA(N):REF(C,N)MA(N,X):MA(N)其中,C代表收盘价,N代表计算的天数,REF函数是通达信的内置函数,用于获取前N天的数据。
2.成交量:成交量是衡量市场活跃度的指标之一,可以使用以下公式绘制成交量:VOL:成交量具体实现如下:VOL:V其中,V代表成交量。
3.平均成交量:平均成交量是一种相对成交量指标,可以用来衡量一些时间段内股票成交量的相对活跃程度。
在通达信中,可以使用以下公式绘制平均成交量:MAVG(VOL,N):N日平均成交量具体实现如下:MAVG(VOL,N):MA(VOL,N)其中,N代表计算的天数。
4.布林线:布林线是一种用来衡量股票价格波动性的指标,它由三条线组成,分别是上轨线、中轨线和下轨线。
在通达信中,可以使用以下公式绘制布林线:BOLL(M,N):中轨线UB(M,N,K):上轨线LB(M,N,K):下轨线具体实现如下:BOLL(M,N):MA(C,N)UB(M,N,K):MA(C,N)+K*STDEV(C,N)LB(M,N,K):MA(C,N)-K*STDEV(C,N)其中,C代表收盘价,M代表计算的天数,N代表计算的天数,K是标准差系数。
5.相对强弱指标(RSI):RSI是一种相对强弱指标,用于衡量市场的超买超卖情况。
在通达信中,可以使用以下公式绘制RSI:RSI(N):N日相对强弱指标具体实现如下:RSI(N):RSI(C,N)其中,C代表收盘价,N代表计算的天数。
以上是通达信中常见的分时主图指标公式源码,可以根据需要进行相应的调整和修改。
新量能成交量通达信指标公式源码
新量能成交量通达信指标公式源码{量能饱和度}{N=1,100,30;M=1,100,1.2;N1:=10,100,34;}N2:=N1*1.05;N3:=N1+3;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和度:IF(SAT>1,1,SAT)*100,COLORLIBLUE,NODRAW;中点:=REFDATE(HHV(V,100)/2,DATE);{量能饱和的变色切换}STICKLINE(CURRBARSCOUNT=N1,中点*1.9,中点*1.5,100,1),COLOR00DDDD;STICKLINE(CURRBARSCOUNT=N1,中点*1.88,中点*1.52,量能饱和度,0),COLOR0033FF;STICKLINE(CURRBARSCOUNT=N1,中点*1.82,中点*1.58,量能饱和度,0),COLOR0077FF;STICKLINE(CURRBARSCOUNT=N1,中点*1.76,中点*1.64,量能饱和度,0),COLOR0099FF;STICKLINE(CURRBARSCOUNT=N1,中点*1.7,中点*1.7,量能饱和度,0),COLORFFDD55;DRAWTEXT(CURRBARSCOUNT=N3,中点*1.82,'量能饱和度'),COLORBLUE;VOLUME:VOL,VOLSTICK;{主力量能}SHORT:=12;LONG:=26;MID:=9;DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:=EMA(DIF,MID);MACD:=(DIF-DEA)*2,COLORSTICK;STICKLINE(DIF>DEA,0,VOL,3,0),COLORRED;STICKLINE(DIF<DEA,0,VOL,3,0),COLORGREEN;N:=9;M1:=3;M2:=3;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,M1,1);D:=SMA(K,M2,1);J:=3*K-2*D;STICKLINE(J>D,VOL/2,VOL,3,0),COLORRED;STICKLINE(J<D,VOL/2,VOL,3,0),COLORGREEN;{量能潮}VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);OBV1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);OBV2:=EMA(OBV1,3)-MA(OBV1,9);OBV3:=EMA(IF(OBV2>0,OBV2,0),3);MAC3:=MA(C,3);限制:=IF(OBV3>=VOL,VOL,IF(OBV3<VOL,OBV3,0));STICKLINE(OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1),0,限制,2,0),COLORYELLOW;{量:=V,VOLSTICK;}PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);JJ:=REF(EMA(PJJ,3),1);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 * (HIGH - LOW))),(0 - (VOL / 2)))));ZLL:=(VOL / CAPITAL);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);进攻流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22));GJJ:=EMA(进攻流量,8); LLJX:=EMA(进攻流量,3);动态天量:=CONST(IF(V=HHV(V,N),V,REF(V,BARSLAST(V=HHV(V,N))))),C OLOR00FF00,POINTDOT;STICKLINE(((HSL * 0.4) >= 0),动态天量*M+((HSL * 0.4) +LLJX)*20,动态天量*M,3,0),COLORYELLOW;STICKLINE(((HSL * 0.4) < 0),动态天量*M+((HSL * 0.4) +LLJX)*20,动态天量*M,3,0),COLOR00FF00;资金流入:=IF((HSL*0.4+LLJX)>0,(HSL*0.4+LLJX),DRAWNULL),COLORRE D;资金流出:=IF((HSL*0.4+LLJX)<0,(HSL*0.4+LLJX),DRAWNULL),COLOR00F F00;资金收支:=(HSL*0.4+LLJX),LINETHICK0;万元:=AMOUNT/10000{0000},VOLSTICK,COLORFF00FF;资金净收支:IF((HSL*0.4+LLJX)>0,资金流入,资金流出),COLORWHITE,POINTDOT;收支比例%:IF((HSL*0.4+LLJX)>0,资金流入/万元*100,资金流出/万元*100),COLORYELLOW;连红天1:=BARSLASTCOUNT(资金净收支>0),,COLORA20FFD,NODRAW;连红天2:=IF(连红天1=0,REF(连红天1,1),连红天1),,COLORA20FFD,NODRAW;连红天3:=IF(连红天2=0,REF(连红天1,2),连红天2),,COLORA20FFD,NODRAW;连红天4:=IF(连红天3=0,REF(连红天1,3),连红天3),,COLORA20FFD,NODRAW;近期连红天:IF(连红天4=0,REF(连红天1,4),连红天4),,COLORYELLOW,NODRAW;三日资金:SUM(资金收支,3),COLORWHITE,NODRAW;五日资金:SUM(资金收支,5),COLORFF00FF,NODRAW;十日资金:SUM(资金收支,10),COLOR0000FF,NODRAW;资金流量:=LLJX,LINETHICK0,COLOR0000FF;STICKLINE((资金流量> 0),动态天量*M+资金流量*20,动态天量*M,3,0),COLOR0000FF;STICKLINE((资金流量< 0),动态天量*M+资金流量*20,动态天量*M,3,0),COLOR008000;{135均线}MAVOL5:MA(VOLUME,5),LINETHICK1,COLORFFFFFF;资金异动135:MA(VOLUME,135),LINETHICK2,COLORFF80FF;主力洗盘35:MA(VOL,35),LINETHICK2,COLORFFFF80;TT:=240/FROMOPEN;比:=TT;AY2:=EMA(CLOSE,12)-EMA(CLOSE,26);AZ2:=EMA(AY2,9);LT2:=(AY2-AZ2);L211:=IF(LT2,LLV(L,21),DRAWNULL),COLOR217158,CIRCLED OT;ZGD:=HHV(H,80)*0.99;ZGD2:=CONST(ZGD);ZDD:=LLV(L211,80);ZDD2:=CONST(ZDD);YYA4:=MA(CLOSE,20);YYA5:=(CLOSE > MA(CLOSE,5));YYA6:=(MA(CLOSE,5) > MA(CLOSE,10));YYA7:=(CLOSE > MA(CLOSE,10));YYA8:=(MA(CLOSE,5) > MA(CLOSE,20));YYA9:=(CLOSE > MA(CLOSE,20));YYA10:=REF(YYA4,1);YYA11:=(YYA4 > YYA10);YYAVX:=(((((IF(YYA5,10,(0 - 10)) + IF(YYA6,10,(0 - 10))) + IF(YYA7,10,(0 - 10))) + IF(YYA8,10,(0 - 10))) + IF(YYA9,10,(0 - 10))) + IF(YYA11,10,(0 - 10)));DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);YYV1:=MA(VOL,5);YYV2:=MA(VOL,10);J1:=CONST(IF( YYAVX > 0,200,100));J2:=CONST(IF( YYAVX > 0,00,100));J3:=CONST(IF( YYAVX > 0,100,100));ZGD3:=ZGD2;ZDD3:=ZDD2;ZGD4:=ZGD2;{时代图文证券教学提供} 情况1:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0)),NODRAW;情况2:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));情况3:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 > YYV2)) AND (DSLX < DSLX1)),1,0));情况4:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 <= YYV2)) AND (DSLX < DSLX1)),1,0));情况5:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));情况6:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));情况7:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));情况8:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));情况9:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));情况10:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));情况11:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0)),NODRAW;情况12:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));情况13:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));情况14:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));情况15:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));情况16:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));大盘1:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 >= YYV2)),1,0));大盘2:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 < YYV2)),1,0));大盘3:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 >= YYV2)),1,0));大盘4:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 < YYV2)),1,0));大盘5:=CONST(IF((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)),1,0));大盘6:=CONST(IF((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)),1,0));大盘7:=CONST(IF((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)),1,0));大盘8:=CONST(IF((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)),1,0));MFI:=(HIGH-LOW)*1000000/(VOL*比);绿灯:=MFI>=REF(MFI,1)AND VOL*比>=REF(VOL,1);MMM1:=CONST(绿灯);衰退:=MFI<REF(MFI,1)AND VOL*比<REF(VOL,1);MMM2:=CONST(衰退);伪装:=MFI>=REF(MFI,1)AND VOL*比<REF(VOL,1);MMM3:=CONST(伪装);蛰伏:=MFI<REF(MFI,1)AND VOL*比>=REF(VOL,1);MMM4:=CONST(蛰伏);WJ:=(H+L+C)/3;V1:=IF(H=L,1,H-MAX(O,C));V2:=IF(H=L,1,MAX(C,O)-WJ);V3:=IF(H=L,1,MIN(O,C)-L);V4:=IF(H=L,1,WJ-MIN(C,O));V5:=VOL/IF(H=L,4,H-L);V6:=(V1*V5);V7:=(V2*V5);V8:=(V3*V5);V9:=(V4*V5);买盘1:=DYNAINFO(23)*比;卖盘1:=DYNAINFO(22)*比;买盘2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8));卖盘2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7));买盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,买盘1,买盘2);卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,卖盘1,卖盘2);{买卖差:=买盘-卖盘;}量大:=(卖盘+买盘)/REF(VOL,1)>2;MMM5:=CONST(量大);量缩:=REF(VOL,1)/(卖盘+买盘)>1.5;MMM6:=CONST(量缩);卖量大:=(卖盘-买盘)/买盘>0.4;MMM7:=CONST(卖量大);买量大:=(买盘-卖盘)/卖盘>0.4;MMM8:=CONST(买量大);TS1:=IF(情况1=1,0.06+0.06,0.06); TS2:=IF(情况2=1,TS1+0.06,TS1);TS3:=IF(情况3=1,TS2+0.06,TS2); TS4:=IF(情况4=1,TS3+0.06,TS3);TS5:=IF(情况5=1,TS4+0.06,TS4); TS6:=IF(情况6=1,TS5+0.06,TS5);TS7:=IF(情况7=1,TS6+0.06,TS6); TS8:=IF(情况8=1,TS7+0.06,TS7);TS9:=IF(情况9=1,TS8+0.06,TS8); TS10:=IF(情况10=1,TS9+0.06,TS9);TS11:=IF(情况11=1,TS10+0.06,TS10); TS12:=IF(情况12=1,TS11+0.06,TS11);TS13:=IF(情况13=1,TS12+0.06,TS12); TS14:=IF(情况14=1,TS13+0.06,TS13);TS15:=IF(情况15=1,TS14+0.06,TS14); TS16:=IF(情况16=1,TS15+0.06,TS15);TS17:=IF(大盘1=1,TS16+0.06,TS16); TS18:=IF(大盘2=1,TS17+0.06,TS17);TS19:=IF(大盘3=1,TS18+0.06,TS18); TS20:=IF(大盘4=1,TS19+0.06,TS19);TS21:=IF(大盘5=1,TS20+0.06,TS20); TS22:=IF(大盘6=1,TS21+0.06,TS21);TS23:=IF(大盘7=1,TS22+0.06,TS22); TS24:=IF(大盘8=1,TS23+0.06,TS23);TS25:=IF(MMM1=1,TS24+0.06,TS24);TS26:=IF(MMM2=1,TS25+0.06,TS25);TS27:=IF(MMM3=1,TS26+0.06,TS26);TS28:=IF(MMM4=1,TS27+0.06,TS27);TS29:=IF(MMM5=1,TS28+0.03,TS28);TS30:=IF(MMM6=1,TS29+0.03,TS29);TS31:=IF(MMM7=1,TS30+0.03,TS30);TS32:=IF(MMM8=1,TS31+0.03,TS31);DRAWTEXT_FIX(情况1=1 ,0.10,0,0,'量能理想,明显走强,中线参与,仓位控制在70%左右。
通达信经典成交量指标共五个源码
通达信经典成交量指标共五个源码以下是通达信经典成交量指标共五个源码(无源码的请下载附件导入)通达信经典成交量指标共五个源码第一个:{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;。
【精品】通达信均线主图均线、量线、涨停、换手、买点
【通达信】均线主图(均线、量线、涨停、换手、买点)—指标公式源码M1:=5;M2:=10;M3:=30;M4:=60;M5:=80;MA5:MA(CLOSE,M1),COLORFFFFFF;MA10:MA(CLOSE,M2),COLORFF00FF;MA30:MA(CLOSE,M3),COLOR00FFFF;MA60:MA(CLOSE,M4),COLOR00FF00,LINETHICK2;MA250:MA(CLOSE,M5),COLOR0000FF,LINETHICK2;MA5Z:=MA(C,5);MA10Z:=MA(C,10);MA30Z:=MA(C,30);MA60Z:=MA(CLOSE,60),LINETHICK2;DIFF:=EMA(CLOSE,12)—EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);MACD1:=CROSS(DIFF,DEA)ANDCOUNT(MACD〉0,1)=1;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,9,1);D:=SMA(K,9,1);J:=3*K-2*D;KDJ1:=CROSS(K,D)ANDCROSS(J,D);均线:=CROSS(MA(C,5),MA(C,10));量线:=CROSS(MA(V,5),MA(V,10)); SCC:=MACD1ANDKDJ1AND均线AND量线; SC1:=MACD1ANDKDJ1;SC2:=均线AND量线;SC3:=均线ANDMACD1;SC4:=量线ANDKDJ1;SC5:=均线ANDKDJ1;SC6:=MACD1AND量线;DRAWICON(SC1ORSC2ORSC3ORSC4ORSC5ORSC6,L-0.20,9);{两个以上指标同时金叉显示9号图标}DRAWICON(SCC,L—0。
通达信指标公式源码 量学主图指标 源码
STICKLINE(CLOSE>1.095*REF(CLOSE,1),CLOSE,OPEN,3,0),COLORYELLOW; STICKLINE(CLOSE<0.905*REF(CLOSE,1),CLOSE,OPEN,3,0),COLORWHITE;X_1:=1.3;X_2:=1;X_3:=0;X_4:=MA(CLOSE,5);X_5:=MA(CLOSE,10);X_6:=MA(CLOSE,20);X_7:=X_4>REF(X_4,1) AND X_5<REF(X_5,1) AND X_6<REF(X_6,1);X_8:=REF(VOL,1);X_9:=REF(VOL,2);X_10:=REF(VOL,3);X_11:=REF(CLOSE,1);X_12:=REF(CLOSE,2);X_13:=REF(CLOSE,3);X_14:=REF(CLOSE,4);X_15:=REF(OPEN,1);X_16:=REF(OPEN,2);X_17:=REF(OPEN,3);X_18:=REF(OPEN,4);X_19:=CLOSE>=X_13 AND X_11>=X_13 AND X_12>=X_13;X_20:=LOW>X_17 AND REF(LOW,1)>X_17 AND REF(LOW,2)>X_17;X_21:=AMOUNT/VOL/100;X_22:=REF(X_21,1);X_23:=REF(X_21,2);X_24:=CLOSE>=OPEN OR (CLOSE<OPEN AND X_21>X_11);X_25:=COUNT(X_24,3)>=2;X_26:=X_13>X_17;X_27:=X_21>=X_22 OR CLOSE>X_11 AND (X_22>=X_23 OR X_11>=X_12); X_28:=(CLOSE+X_11+X_12)/3>X_13;X_29:=VOL>X_8 AND X_8>X_9;X_30:=VOL<=X_8 AND X_8<=X_9;X_31:=(VOL+X_8+X_9)/3<=X_10 AND NOT(X_29);X_32:=CLOSE/VOL;X_33:=X_32>=REF(X_32,1) AND REF(X_32,1)>=REF(X_32,2);X_34:=(CLOSE+X_11+X_12)/3/X_13;X_35:=(VOL+X_8+X_9)/3/X_10;X_36:=X_1*X_34/X_35>1;X_37:=X_17>X_14 AND X_14>X_18;X_38:=X_26 AND X_27 AND X_30 AND X_19 AND X_20 AND X_37;X_39:=BACKSET(X_38,5);X_40:=FILTER(X_39,4);X_41:=X_26 AND X_27 AND X_30 AND X_19 AND X_20;X_42:=BACKSET(X_41,4);X_43:=FILTER(X_42,3);X_44:=X_41 AND REF(X_41,1);X_45:=BACKSET(X_44,4);X_46:=FILTER(X_45,3);X_47:=X_41 AND REF(X_41,2);X_48:=BACKSET(X_47,4);X_49:=FILTER(X_48,3);X_50:=X_41 AND REF(X_41,3);X_51:=BACKSET(X_50,4);X_52:=FILTER(X_51,3);X_53:=X_26 AND X_27 AND X_31 AND NOT(X_29) AND X_19 AND X_20 AND X_37 AND NOT(X_41) AND NOT(X_38);X_54:=BACKSET(X_53,5);X_55:=FILTER(X_54,4);X_56:=X_26 AND X_27 AND X_31 AND NOT(X_29) AND X_19 AND X_20 AND NOT(X_41) AND NOT(X_38);X_57:=BACKSET(X_56,4);X_58:=FILTER(X_57,3);X_59:=X_56 AND REF(X_56,1);X_60:=BACKSET(X_59,4);X_61:=FILTER(X_60,3);X_62:=X_56 AND REF(X_56,2);X_63:=BACKSET(X_62,4);X_64:=FILTER(X_63,3);X_65:=X_56 AND REF(X_56,3);X_66:=BACKSET(X_65,4);X_67:=FILTER(X_66,3);X_68:=X_26 AND X_28 AND X_30 AND X_19 AND X_20 AND X_37 AND NOT(X_41) AND NOT(X_56) AND NOT(X_38) AND NOT(X_53);X_69:=BACKSET(X_68,5);X_70:=FILTER(X_69,4);X_71:=X_26 AND X_28 AND X_30 AND X_19 AND X_20 AND NOT(X_41) AND NOT(X_56) AND NOT(X_38) AND NOT(X_53);X_72:=BACKSET(X_71,4);X_73:=FILTER(X_72,3);X_74:=X_71 AND REF(X_71,1);X_75:=BACKSET(X_74,4);X_76:=FILTER(X_75,3);X_77:=X_71 AND REF(X_71,2);X_78:=BACKSET(X_77,4);X_79:=FILTER(X_78,3);X_80:=X_71 AND REF(X_71,3);X_81:=BACKSET(X_80,4);X_82:=FILTER(X_81,3);X_83:=X_26 AND X_28 AND X_31 AND X_19 AND X_20 AND X_37 AND NOT(X_41) AND NOT(X_38) AND NOT(X_56) AND NOT(X_53) AND NOT(X_71) AND NOT(X_68);X_84:=BACKSET(X_83,5);X_85:=FILTER(X_84,4);X_86:=X_26 AND X_28 AND X_31 AND X_19 AND X_20 AND NOT(X_41) AND NOT(X_56) AND NOT(X_71) AND NOT(X_38) AND NOT(X_53) AND NOT(X_68);X_87:=BACKSET(X_86,4);X_88:=FILTER(X_87,3);X_89:=X_86 AND REF(X_86,1);X_90:=BACKSET(X_89,4);X_91:=FILTER(X_90,3);X_92:=X_86 AND REF(X_86,2);X_93:=BACKSET(X_92,4);X_94:=FILTER(X_93,3);X_95:=X_86 AND REF(X_86,3);X_96:=BACKSET(X_95,4);X_97:=FILTER(X_96,3);X_98:=X_26 AND X_28 AND X_36 AND X_19 AND X_20 AND X_37 AND NOT(X_41) AND NOT(X_56) AND NOT(X_71) AND NOT(X_86) AND NOT(X_38) AND NOT(X_53) AND NOT(X_68) AND NOT(X_83);X_99:=BACKSET(X_98,5);X_100:=FILTER(X_99,4);X_101:=X_26 AND X_28 AND X_36 AND X_19 AND X_20 AND NOT(X_41) AND NOT(X_56) AND NOT(X_71) AND NOT(X_86) AND NOT(X_38) AND NOT(X_53) AND NOT(X_68) AND NOT(X_83);X_102:=BACKSET(X_101,4);X_103:=FILTER(X_102,3);X_104:=X_101 AND REF(X_101,1);X_105:=BACKSET(X_104,4);X_106:=FILTER(X_105,3);X_107:=X_101 AND REF(X_101,2);X_108:=BACKSET(X_107,4);X_109:=FILTER(X_108,3);X_110:=X_101 AND REF(X_101,3);X_111:=BACKSET(X_110,4);X_112:=FILTER(X_111,3);X_113:=X_26 AND X_28 AND X_33 AND X_19 AND X_20 AND X_37 AND NOT(X_41) AND NOT(X_56) AND NOT(X_71) AND NOT(X_86) AND NOT(X_101) AND NOT(X_38) AND NOT(X_53) AND NOT(X_68) AND NOT(X_83) AND NOT(X_98);X_114:=BACKSET(X_113,5);X_115:=FILTER(X_114,4);X_116:=X_26 AND X_28 AND X_33 AND X_19 AND X_20 AND NOT(X_41) AND NOT(X_56) AND NOT(X_71) AND NOT(X_86) AND NOT(X_101) AND NOT(X_38) AND NOT(X_53) AND NOT(X_68) AND NOT(X_83) AND NOT(X_98);X_117:=BACKSET(X_116,4);X_118:=FILTER(X_117,3);X_119:=X_116 AND REF(X_116,1);X_120:=BACKSET(X_119,4);X_121:=FILTER(X_120,3);X_122:=X_116 AND REF(X_116,2);X_123:=BACKSET(X_122,4);X_124:=FILTER(X_123,3);X_125:=X_116 AND REF(X_116,3);X_126:=BACKSET(X_125,4);X_127:=FILTER(X_126,3);X_128:=X_43 AND NOT(REF(X_43,4)) OR (X_46 AND NOT(REF(X_46,4))) OR (X_49 AND NOT(REF(X_49,4))) OR (X_52 AND NOT(REF(X_52,4)));X_129:=X_58 AND NOT(REF(X_58,4)) OR (X_61 AND NOT(REF(X_61,4))) OR (X_64 AND NOT(REF(X_64,4))) OR (X_67 AND NOT(REF(X_67,4)));X_130:=X_73 AND NOT(REF(X_73,4)) OR (X_76 AND NOT(REF(X_76,4))) OR (X_79 AND NOT(REF(X_79,4))) OR (X_82 AND NOT(REF(X_82,4)));X_131:=X_88 AND NOT(REF(X_88,4)) OR (X_91 AND NOT(REF(X_91,4))) OR (X_94 AND NOT(REF(X_94,4))) OR (X_97 AND NOT(REF(X_97,4)));X_132:=X_103 AND NOT(REF(X_103,4)) OR (X_106 AND NOT(REF(X_106,4))) OR (X_109 AND NOT(REF(X_109,4))) OR (X_112 AND NOT(REF(X_112,4)));X_133:=X_118 AND NOT(REF(X_118,4)) OR (X_121 AND NOT(REF(X_121,4))) OR (X_124 AND NOT(REF(X_124,4))) OR (X_127 AND NOT(REF(X_127,4)));X_134:=X_128 OR X_129 OR X_130 OR X_131 OR X_132 OR X_133;STICKLINE(X_134,OPEN,CLOSE,1.2,0),COLORYELLOW;X_135:=FILTER(X_134,3);STICKLINE(X_135,OPEN,CLOSE,1.75,0),COLORYELLOW;STICKLINE(X_135,OPEN,CLOSE,0.75,0),COLORRED;STICKLINE(X_134 AND VOL/REF(VOL,1)>=1.95,OPEN,CLOSE,0.01,0),COLORBROWN;X_136:=SUMBARS(X_135,1);STICKLINE(X_136 AND X_2=1,REF(CLOSE,X_136-1),REF(CLOSE,X_136-1),10,0),COLORAA00FF;STICKLINE(X_136 AND X_2=1,REF(LOW,X_136-1),REF(LOW,X_136-1),10,0),COLORYELLOW;X_137:=X_40 AND NOT(REF(X_40,5));X_138:=X_55 AND NOT(REF(X_55,5));X_139:=X_70 AND NOT(REF(X_70,5));X_140:=X_85 AND NOT(REF(X_85,5));X_141:=X_100 AND NOT(REF(X_100,5));X_142:=X_115 AND NOT(REF(X_115,5));X_143:=X_137 OR X_138 OR X_139 OR X_140 OR X_141 OR X_142;STICKLINE(X_143,OPEN,CLOSE,0.5,0),COLORMAGENTA;X_144:=FILTER(X_143,3);STICKLINE(X_144 AND NOT(REF(X_143,5)),OPEN,CLOSE,2,0),COLORYELLOW; STICKLINE(X_144 AND NOT(REF(X_143,5)),OPEN,CLOSE,1,0),COLORMAGENTA;X_145:=SUMBARS(X_143,1);STICKLINE(CLOSE>OPEN AND REF(CLOSE,1)<REF(OPEN,1) AND HIGH<REF(OPEN,1) ANDCLOSE<(REF(OPEN,1)-REF(CLOSE,1))/2+REF(CLOSE,1),CLOSE,OPEN,0.57,0),COLORGRE EN;STICKLINE(OPEN>CLOSE AND CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>=REF(OPEN,1),CLOSE,OPEN,0.37,0),COLORRED;DRAWICON(VOL<=MA(VOL,60)*1/3 AND VOL<REF(LLV(VOL,100),1) OR (VOL/REF(VOL,1)<=0.51 AND VOL<REF(LLV(VOL,100),1)) AND HIGH>LOW,LOW*0.99,1); X_146:=STRCAT(HYBLOCK,1);X_147:=STRCAT(X_146,FGBLOCK);X_148:=STRCAT(X_147,DYBLOCK);X_149:=STRCAT(X_148,ZDBLOCK);X_150:=STRCAT(X_149,1);DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(X_150,GNBLOCK)),COLORYELLOW;X_151:=3;X_152:=0;X_153:=ABS(LOW-REF(LOW,1))<=X_152;X_154:=ABS(LOW-REF(LOW,2))<=X_152;X_155:=ABS(LOW-REF(LOW,3))<=X_152;X_156:=ABS(LOW-REF(LOW,4))<=X_152;X_157:=ABS(LOW-REF(LOW,5))<=X_152;X_158:=X_153 OR X_154 OR X_155 OR X_156 OR X_157;X_159:=FILTER(X_158,X_151);X_160:=BARSLAST(X_159);X_161:=REF(LOW,X_160);X_162:=ABS(LOW-X_161)<=X_152;STICKLINE(X_159,LOW,LOW,31,(-1)),COLORMAGENTA;X_163:=ABS(HIGH-REF(HIGH,1))<=X_152;X_164:=ABS(HIGH-REF(HIGH,2))<=X_152;X_165:=ABS(HIGH-REF(HIGH,3))<=X_152;X_166:=ABS(HIGH-REF(HIGH,4))<=X_152;X_167:=ABS(HIGH-REF(HIGH,5))<=X_152;X_168:=X_163 OR X_164 OR X_165 OR X_166 OR X_167;X_169:=FILTER(X_168,X_151);X_170:=BARSLAST(X_169);X_171:=REF(HIGH,X_170);X_172:=ABS(HIGH-X_171)<=X_152;STICKLINE(X_169,HIGH,HIGH,31,(-1)),COLORGREEN;STICKLINE(CLOSE/REF(CLOSE,1)>=1.04 OR CLOSE/REF(CLOSE,1)<=0.96,(CLOSE+OPEN)/2,(CLOSE+OPEN)/2,2,1),COLORLIBLUE; STICKLINE(CLOSE/REF(CLOSE,1)>=1.04 OR CLOSE/REF(CLOSE,1)<=0.96,(MAX(OPEN,CLOSE)-MIN(OPEN,CLOSE))*2/3+MIN(OPEN,C LOSE),(MAX(OPEN,CLOSE)-MIN(OPEN,CLOSE))*2/3+MIN(OPEN,CLOSE),2,1),COLORLIBL UE;STICKLINE(CLOSE/REF(CLOSE,1)>=1.04 OR CLOSE/REF(CLOSE,1)<=0.96,(MAX(OPEN,CLOSE)-MIN(OPEN,CLOSE))/3+MIN(OPEN,CLO SE),(MAX(OPEN,CLOSE)-MIN(OPEN,CLOSE))/3+MIN(OPEN,CLOSE),2,1),COLORLIBLUE; 中分线:(OPEN+CLOSE)/2,NODRAW,COLORRED;上31:(MAX(OPEN,CLOSE)-MIN(OPEN,CLOSE))*2/3+MIN(OPEN,CLOSE),NODRAW,COLORMA GENTA;下31:(MAX(OPEN,CLOSE)-MIN(OPEN,CLOSE))/3+MIN(OPEN,CLOSE),NODRAW,COLORYELL OW;X_173:=REF(LOW,1);X_174:=REF(HIGH,1);X_175:=LOW>X_174;X_176:=HIGH<X_173;STICKLINE(LOW>REF(HIGH,1),LOW,REF(HIGH,1),2.78,(-1)),COLORRED;STICKLINE(REF(LOW,1)>HIGH,REF(LOW,1),HIGH,2.78,(-1)),COLORGREEN;X_177:=0;X_178:=0.085;X_179:=IF(GNBLOCK=DRAWNULL,11,STRCAT(12,GNBLOCK));X_180:=IF(FGBLOCK=DRAWNULL,11,STRCAT(13,FGBLOCK));X_181:=IF(ZHBLOCK=DRAWNULL,11,STRCAT(14,ZHBLOCK));X_182:=STRCAT(X_179,STRCAT(X_180,X_181));X_183:=IF(GNBLOCK=DRAWNULL,11,STRCAT(15,GNBLOCK));X_184:=IF(FGBLOCK=DRAWNULL,11,STRCAT(15,FGBLOCK));X_185:=IF(ZHBLOCK=DRAWNULL,11,STRCAT(15,ZHBLOCK));X_186:=STRCAT(X_183,STRCAT(X_184,X_185));DRAWTEXT_FIX(IF(CODELIKE(16) OR CODELIKE(17) OR CODELIKE(18) OR NAMELIKE(19),DRAWNULL,1),X_177,X_178,0,X_186),COLORRED;DRAWTEXT_FIX(IF(CODELIKE(16) OR CODELIKE(17) OR CODELIKE(18) OR NAMELIKE(19),DRAWNULL,1),X_177,X_178,0,X_182),COLORWHITE;DRAWTEXT_FIX(1,0.02,0.19,0,20),COLORRED;。
通达信经典成交量指标共五个源码
通达信经典成交量指标共五个源码通达信经典成交量指标共五个源码以下是通达信经典成交量指标共五个源码(无源码的请下载附件导入)通达信经典成交量指标共五个源码第一个:{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)ANDMACDREF(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)ANDMACD<0,0,MACD,3.5,0 ),COLOR444400;STICKLINE(MACD<=REF(MACD,1)ANDMACD<0,0,MACD,3,0 ),COLOR555500;STICKLINE(MACD<=REF(MACD,1)ANDMACD<0,0,MACD,2.5,0 ),COLOR777700;STICKLINE(MACD<=REF(MACD,1)ANDMACD<0,0,MACD,2,0 ),COLOR999900;STICKLINE(MACD<=REF(MACD,1)ANDMACD<0,0,MACD,1.5,0 ),COLORBBBB00;STICKLINE(MACD<=REF(MACD,1)ANDMACD<0,0,MACD,1,0 ),COLORDDDD00;STICKLINE(MACD<=REF(MACD,1)ANDMACD<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);。
量能均线主图指标综合成交量通达信指标公式源码
设计思路是价量结合通过成交量看价格均线位置可以把均线类主图指标换成其他你满意的主图指标然后用这个成交量5日均线上持股安全破5日线有危险红色量就是股价一直在5日线上买入并持有其他自己体会吧很简单的指标只是思路无价1.CR>400时,其10日平均线向下滑落,视为卖出信号;CR<40买进;2.CR 由高点下滑至其四条平均线下方时,股价容易形成短期底部;3.CR 由下往上连续突破其四条平均线时,为强势买进点;4.CR 除了预测价格的外,最大的作用在于预测时间;5.BR、AR、CR、VR 四者合为一组指标群,须综合搭配使用。
VOLUME:=VOL,VOLSTICK;MA5:=MA(VOLUME,5),COLORWHITE,LINETHICK1;MA35:=MA(VOLUME,20),COLORYELLOW,LINETHICK1;MA135:=MA(VOLUME,120),COLORMAGENTA,LINETHICK2;MAC5:=SUM(C*V,5)/SUM(V,5);红色持股:C>MAC5 AND MAC5>=REF(MAC5,1),STICK,COLOR0000CC;小于五均:C<MAC5,COLORGREEN;下穿五均:CROSS(MAC5,C ),COLORWHITE;大五均下:C>MAC5 AND MAC5<REF(MAC5,1)COLORMAGENTA;STICKLINE(大五均下,0,VOL,2.5,0),COLORFF00FF;STICKLINE(大五均下,0,VOL,1.5,0),COLORFF33FF;STICKLINE(大五均下,0,VOL,0.8,0),COLORFF66FF;STICKLINE(大五均下,0,VOL,0.1,0),COLORFF99FF;STICKLINE(红色持股,0,VOL,2.8,0),COLOR000088;STICKLINE(红色持股,0,VOL,1.5,0),COLOR0000AA;STICKLINE(红色持股,0,VOL,0.8,0),COLOR0000CC;STICKLINE(红色持股,0,VOL,0.1,0),COLOR0000EE;STICKLINE(小于五均,0,VOL,2.5,0),COLOR009900;STICKLINE(小于五均,0,VOL,1.5,0),COLOR00BB00;STICKLINE(小于五均,0,VOL,0.8,0),COLOR00DD00;STICKLINE(小于五均,0,VOL,0.1,0),COLOR00FF00;STICKLINE(下穿五均,0,VOL,2.5,0),COLORCC0033;五日量均线价:SUM(C*V,5)/SUM(V,5),NODRAW;换手率:VOL/CAPITAL*100,COLORWHITE,NODRAW;十日换手:SUM(V/CAPITAL*100,10),COLOR0099FF,NODRAW;获利盘:WINNER(C)*100 ,COLORRED,NODRAW;当日获利套牢:获利盘-REF(获利盘,1),NODRAW;放量:IF(MA5>MA135 AND MA5>MA35,MA5,DRAWNULL),COLORWHITE,LINETHICK3; MA5,COLORWHITE,LINETHICK1;MA35,COLORYELLOW,LINETHICK1;MA135,COLORMAGENTA,LINETHICK2;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
设计思路是价量结合通过成交量看价格均线位置可以把均线类主图指标换成其他你满意的主图指标然后用这个成交量
5日均线上持股安全破5日线有危险
红色量就是股价一直在5日线上买入并持有
其他自己体会吧很简单的指标只是思路无价
1.CR>400时,其10日平均线向下滑落,视为卖出信号;CR<40买进;
2.CR 由高点下滑至其四条平均线下方时,股价容易形成短期底部;
3.CR 由下往上连续突破其四条平均线时,为强势买进点;
4.CR 除了预测价格的外,最大的作用在于预测时间;
5.BR、AR、CR、VR 四者合为一组指标群,须综合搭配使用。
VOLUME:=VOL,VOLSTICK;
MA5:=MA(VOLUME,5),COLORWHITE,LINETHICK1;
MA35:=MA(VOLUME,20),COLORYELLOW,LINETHICK1;
MA135:=MA(VOLUME,120),COLORMAGENTA,LINETHICK2;
MAC5:=SUM(C*V,5)/SUM(V,5);
红色持股:C>MAC5 AND MAC5>=REF(MAC5,1),STICK,COLOR0000CC;
小于五均:C<MAC5,COLORGREEN;
下穿五均:CROSS(MAC5,C ),COLORWHITE;
大五均下:C>MAC5 AND MAC5<REF(MAC5,1)COLORMAGENTA;
STICKLINE(大五均下,0,VOL,2.5,0),COLORFF00FF;
STICKLINE(大五均下,0,VOL,1.5,0),COLORFF33FF;
STICKLINE(大五均下,0,VOL,0.8,0),COLORFF66FF;
STICKLINE(大五均下,0,VOL,0.1,0),COLORFF99FF;
STICKLINE(红色持股,0,VOL,2.8,0),COLOR000088;
STICKLINE(红色持股,0,VOL,1.5,0),COLOR0000AA;
STICKLINE(红色持股,0,VOL,0.8,0),COLOR0000CC;
STICKLINE(红色持股,0,VOL,0.1,0),COLOR0000EE;
STICKLINE(小于五均,0,VOL,2.5,0),COLOR009900;
STICKLINE(小于五均,0,VOL,1.5,0),COLOR00BB00;
STICKLINE(小于五均,0,VOL,0.8,0),COLOR00DD00;
STICKLINE(小于五均,0,VOL,0.1,0),COLOR00FF00;
STICKLINE(下穿五均,0,VOL,2.5,0),COLORCC0033;
五日量均线价:SUM(C*V,5)/SUM(V,5),NODRAW;
换手率:VOL/CAPITAL*100,COLORWHITE,NODRAW;
十日换手:SUM(V/CAPITAL*100,10),COLOR0099FF,NODRAW;
获利盘:WINNER(C)*100 ,COLORRED,NODRAW;
当日获利套牢:获利盘-REF(获利盘,1),NODRAW;
放量:IF(MA5>MA135 AND MA5>MA35,MA5,DRAWNULL),COLORWHITE,LINETHICK3; MA5,COLORWHITE,LINETHICK1;
MA35,COLORYELLOW,LINETHICK1;
MA135,COLORMAGENTA,LINETHICK2;。