通达信指标公式源码 线上阴线买经常涨停板
通达信抓涨停分时指标公式
通达信抓涨停分时指标公式XX:=SUM(AMOUNT,BARSCOUNT(DCLOSE))/SUM(V*100,BA RSCOUNT(DCLOSE));黄线:=EXPMA(DCLOSE/XX,20);粉线:=EXPMA(DCLOSE/XX,60);绿线:=EXPMA(DCLOSE/XX,120);底:1,COLORAAAAAA,LINETHICK2;1.02,COLORAAAAAA,LINETHICK1,DOTLINE;高:1.03,COLORFFAA00,LINETHICK2;DRAWICON(CROSS(黄线,1.02),1.025,25);AA:=黄线>粉线AND 黄线>1.003 AND 粉线>绿线AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60);STICKLINE(AA=1,1.039,1.03,4,0),COLORDD00CC;STICKLINE(C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60) AND黄线>MAX(粉线,绿线),1.03,1.034,1,0),COLORRED;STICKLINE(C<EXPMA(C,20) AND EXPMA(C,10)<EXPMA(C,20) AND EXPMA(C,20)<EXPMA(C,60) AND黄线<MIN(粉线,绿线) AND 黄线<0.969,1.03,1.02,1,0),COLOR00CC00;STICKLINE(C<EXPMA(C,20) AND EXPMA(C,10)<EXPMA(C,20) AND EXPMA(C,20)<EXPMA(C,60) AND黄线<MIN(粉线,绿线),1.03,1.025,1,0),COLORFFAA00;黄色主力线:黄线,COLORYELLOW;粉色大户线:粉线,COLORMAGENTA,LINETHICK2;绿色散户线:绿线,COLORGREEN,LINETHICK2;DRAWICON(黄线>粉线 AND 粉线>绿线 AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60) AND 黄线=HHV(黄线,30) AND CROSS(黄线,1.003),1.015,11);DRAWTEXT(黄线>粉线 AND 粉线>绿线 AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60) AND 黄线=HHV(黄线,30) AND CROSS(黄线,1.003),1.025,'放量才买'),COLORFFFF00;DRAWTEXT(CROSS(黄线,1.02),1.02,'拉升'),COLORWHITE;DRAWTEXT(CROSS(黄线,1.04),1.015,'可能冲涨停'),COLORFFFFFF;DRAWICON(CROSS(黄线,1.04),1.01,9);。
通达信单线涨停板主图指标公式源码编程思路破译
通达信单线涨停板主图指标公式源码编程思路破译编程思路破译AD1赋值:收盘价>4日前的收盘价NT赋值:条件连续成立次数TJ11赋值:NT=9TJ13赋值:是否最后一个周期 AND NT位于5和8之间AY赋值:(若TJ11>0则将最近9周期置为1 OR 若TJ13>0则将最近NT周期置为1)*NT当满足条件AY>0时,在最高价*1.02位置书写文字,COLORFF00FF 当满足条件NT=9时,在最高价*1.02位置书写文字,画绿色B1赋值:收盘价<4日前的收盘价NT0赋值:条件连续成立次数TJ21赋值:NT0=9TJ23赋值:是否最后一个周期 AND NT0位于5和8之间AY1赋值:(若TJ21>0则将最近9周期置为1 OR 若TJ23>0则将最近NT0周期置为1)*NT0当满足条件AY1>0时,在最低价*0.98位置书写文字,COLORFF00FF当满足条件NT0=9时,在最低价*0.98位置书写文字,画绿色TJ赋值: 收盘价/1日前的收盘价<0.95当满足条件TJ时,在(开盘价+收盘价)/2位置画直线起点,当满足条件1日前的TJ时,在1日前的(开盘价+收盘价)/2位置画直线终点,1表示是否延长.,COLORFF0000输出生命线:收盘价的10日指数移动平均的10日指数移动平均,画红色,线宽为3B赋值:生命线>1日前的生命线如果B-1,返回生命线,否则返回无效数画蓝色,线宽为3当满足条件最低价上穿生命线时,在最低价*0.99位置画7号图标当满足条件生命线上穿最低价时,在最高价*1.01位置画8号图标AB赋值:收盘价的5日指数移动平均 > 收盘价的20日指数移动平均BB赋值:收盘价的5日指数移动平均 < 收盘价的20日指数移动平均CA赋值: 收盘价的5日指数移动平均> 收盘价的10日指数移动平均CA1赋值:收盘价的5日指数移动平均 < 收盘价的10日指数移动平均DD赋值:收阴线当满足条件AB时,在最高价和最低价位置之间画柱状线,宽度为0.1,0不为0则画空心柱.,画红色当满足条件AB时,在开盘价和收盘价位置之间画柱状线,宽度为3,1不为0则画空心柱.,画红色当满足条件ABANDDD时,在开盘价和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,画红色当满足条件BB时,在最高价和最低价位置之间画柱状线,宽度为0.1,0不为0则画空心柱.,画绿色当满足条件BB时,在开盘价和收盘价位置之间画柱状线,宽度为3,1不为0则画空心柱.,画绿色当满足条件BBANDDD时,在开盘价和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,画绿色当满足条件BBANDCA时,在最高价和最低价位置之间画柱状线,宽度为0.1,1不为0则画空心柱.,画白色当满足条件BBANDCA时,在开盘价和收盘价位置之间画柱状线,宽度为3,0.1不为0则画空心柱.,画白色当满足条件BBANDCAANDDD时,在开盘价和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,画白色当满足条件ABANDCA1时,在最高价和最低价位置之间画柱状线,宽度为0.1,0不为0则画空心柱.,画白色当满足条件ABANDCA1时,在开盘价和收盘价位置之间画柱状线,宽度为3,1不为0则画空心柱.,画白色当满足条件ABANDCA1ANDDD时,在开盘价和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,画白色HIGHN赋值:10LOWN赋值:10HIGHDISPLAY赋值:0LOWDISPLAY赋值:0ZGDISPLAY赋值:0MADISPLAY赋值:0AA赋值:HIGHN日前的最高价=2*HIGHN+1日内最高价的最高值QY赋值:若AA则将最近HIGHN+1周期置为1CC赋值:QY的HIGHN日过滤 AND 最高价=HIGHN+1日内最高价的最高值当满足条件CC时,在最高价*1.02位置画2号图标DDD赋值:上次CC距今天数GDTS赋值:如果CC,返回到最后交易的周期,否则返回0DINGBU赋值:如果DDD,返回DDD日前的最高价,否则返回最高价DINGBUTS赋值:如果DDD,返回DDD日前的GDTS,否则返回GDTSDINGBU1赋值:DDD+1日前的DINGBUGDCS1赋值:DINGBUTS的最后一日取值设为常数DINGBUTS1赋值:DDD+1日前的DINGBUTSGDCS2赋值:DINGBUTS1的最后一日取值设为常数DINGBU2赋值:DDD+1日前的DINGBU1MM赋值:如果到最后交易的周期>GDCS2,返回0,否则返回1输出高点压力:当满足条件到最后交易的周期=GDCS2时,在最高价位置画直线起点,当满足条件到最后交易的周期=GDCS1时,在最高价位置画直线终点,1表示是否延长. 画绿色,线宽为0点,当满足条件是否最后一个周期时,在GDCS2-1日前的最高价位置画直线终点,1表示是否延长.,画绿色,DOTLINE当满足条件到最后交易的周期=GDCS1时,在最高价位置画直线起点,当满足条件是否最后一个周期时,在GDCS1-1日前的最高价位置画直线终点,1表示是否延长.,COLORFF0000,DOTLINEAA1赋值:LOWN日前的最低价=2*LOWN+1日内最低价的最低值QY1赋值:若AA1则将最近LOWN+1周期置为1CC1赋值:QY1的LOWN日过滤 AND 最低价=LOWN+1日内最低价的最低值当满足条件CC1时,在最低价*0.98位置画1号图标DD1赋值:上次CC1距今天数DDTS赋值:如果CC1,返回到最后交易的周期,否则返回0YDB赋值:如果DD1,返回DD1日前的最低价,否则返回最低价DDTS1赋值:如果DD1,返回DD1日前的DDTS,否则返回DDTS DDCS1赋值:DDTS1的最后一日取值设为常数ZDB赋值:DD1+1日前的YDBDDTS2赋值:DD1+1日前的DDTS1DDCS2赋值:DDTS2的最后一日取值设为常数输出低点支撑:当满足条件到最后交易的周期=DDCS2时,在最低价位置画直线起点,当满足条件到最后交易的周期=DDCS1时,在最低价位置画直线终点,1表示是否延长. COLORFF00FF,线宽为0 ZGSTAR赋值:(高点压力+低点支撑)/2ZGEND赋值:(高点压力+低点支撑)/2的最后一日取值设为常数STARDAY赋值:如果DDCS2<GDCS2,返回DDCS2,否则返回GDCS2输出中轨:当满足条件到最后交易的周期=STARDAY时,在ZGSTAR 位置画直线起点,当满足条件是否最后一个周期时,在ZGEND位置画直线终点,1表示是否延长.,COLORFFFFFF,线宽为0点,当满足条件是否最后一个周期时,在DDCS1-1日前的最低价位置画直线终点,1表示是否延长.,COLOR0000FF,DOTLINE当满足条件到最后交易的周期=DDCS2时,在最低价位置画直线起点,当满足条件是否最后一个周期时,在DDCS2-1日前的最低价位置画直线终点,1表示是否延长.,COLORFF00FF,DOTLINE涨停开板赋值:最高价>1日前的收盘价*1.090 AND 收盘价<最高价当满足条件涨停开板时,在最高价*1.02位置书写文字,画绿色涨停赋值:如果1日前的收盘价*1.1-收盘价<0.01,返回1,否则返回0当满足条件涨停时,在开盘价和收盘价位置之间画柱状线,宽度为4,0不为0则画空心柱.,画红色当满足条件涨停时,在开盘价和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,画黄色D2赋值:1日前的收盘价跌停赋值:如果(D2-收盘价)*100/D2>=(10-0.01*100/D2),返回1,否则返回0当满足条件跌停时,在开盘价和收盘价位置之间画柱状线,宽度为2,0不为0则画空心柱.,画蓝色当满足条件跌停时,在最高价和最低价位置之间画柱状线,宽度为0,1不为0则画空心柱.,画蓝色当满足条件1时,在横轴0.01纵轴0位置书写文字,COLOR0000FF 当满足条件1时,在横轴0.04纵轴0位置书写文字,画黄色当满足条件1时,在横轴0.01纵轴0.06位置书写文字,COLOR0000FF当满足条件1时,在横轴0.04纵轴0.06位置书写文字,画黄色当满足条件1时,在横轴0.01纵轴0.12位置书写文字,COLOR0000FF当满足条件1时,在横轴0.04纵轴0.12位置书写文字,画黄色当满足条件1时,在横轴0.01纵轴0.18位置书写文字,COLOR0000FF当满足条件1时,在横轴0.04纵轴0.18位置书写文字,画黄色当满足条件1时,在横轴0.01纵轴0.24位置书写文字,COLOR0000FF当满足条件1时,在横轴0.04纵轴0.24位置书写文字,画黄色平均成本赋值:字符串相加主力成本赋值:字符串相加重心赋值:字符串相加套牢盘%赋值:字符串相加获利盘%赋值:字符串相加筹码分析赋值:字符串相加当满足条件是否最后一个周期时,在横轴0纵轴1位置书写文字,COLOR0000FF输出MA5:收盘价的5日简单移动平均输出流通市值:(流通市值/100000000),NODRAW,画红色程序源码{TD结构序列=神奇9转}AD1:=C>REF(C,4);NT:=BARSLASTCOUNT(AD1);TJ11:=NT=9;TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;DRAWTEXT(AY>0,H*1.02,VAR2STR(AY,0)),COLORFF00FF;DRAWTEXT(NT=9,H*1.02,'9'),COLORGREEN;B1:=C<REF(C,4);NT0:=BARSLASTCOUNT(B1);TJ21:=NT0=9 ;TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0;DRAWTEXT(AY1>0,L*0.98,VAR2STR(AY1,0)),COLORFF00FF;DRAWTEXT(NT0=9,L*0.98,'9'),COLORGREEN;{极阴极阳二一位}TJ:= C/REF(C,1)<0.95;DRAWLINE(TJ,(O+C)/2,REF(TJ,1),REF((O+C)/2,1),1),COLORFF 0000;{生命线:EMA(EMA(C,10),10),COLORBLUE,LINETHICK3;B:=生命线<REF(生命线,1);IF(B-1,生命线,DRAWNULL)COLORRED,LINETHICK3;}生命线:EMA(EMA(C,10),10),COLORRED,LINETHICK3;B:=生命线>REF(生命线,1);IF(B-1,生命线,DRAWNULL)COLORBLUE,LINETHICK3;DRAWICON(CROSS(L,生命线),L*0.99,7);DRAWICON(CROSS(生命线,L),H*1.01,8);AB:=EMA(C,5) > EMA(C,20);BB:=EMA(C,5) < EMA(C,20);CA:= EMA(C,5) > EMA(C,10);CA1:=EMA(C,5) < EMA(C,10);DD:=CLOSE<OPEN;STICKLINE(AB,H,L,0.1,0),COLORRED;STICKLINE(AB,O,C,3,1),COLORRED;STICKLINE(AB AND DD,O,C,3,0),COLORRED;STICKLINE(BB,H,L,0.1,0),COLORGREEN;STICKLINE(BB,O,C,3,1),COLORGREEN;STICKLINE(BB AND DD,O,C,3,0),COLORGREEN;STICKLINE(BB AND CA,H,L,0.1,1),COLORWHITE;STICKLINE(BB AND CA,O,C,3,0.1),COLORWHITE;STICKLINE(BB AND CA AND DD,O,C,3,0),COLORWHITE;STICKLINE(AB AND CA1,H,L,0.1,0),COLORWHITE;STICKLINE(AB AND CA1,O,C,3,1),COLORWHITE;STICKLINE(AB AND CA1 AND DD,O,C,3,0),COLORWHITE;{缠论画笔}{黄金柱:=V/REF(V,1)>=1.9;DRAWLINE(黄金柱,L,REF(黄金柱,1),REF(L,1),1),COLORFFFFFF;DRAWLINE(黄金柱,H,REF(黄金柱,1),REF(H,1),1),COLORFFFFFF;} HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;Z GDISPLAY:=0;MADISPLAY:=0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DRAWICON(CC,H*1.02,2);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT= GDCS1,H,1) COLORGREEN,LINETHICK;DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H, GDCS2-1),1),COLORGREEN,DOTLINE;DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H, GDCS1-1),1),COLORFF0000,DOTLINE;AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);DRAWICON(CC1,L*0.98,1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT= DDCS1,L,1) COLORFF00FF,LINETHICK;ZGSTAR:=(高点压力+低点支撑)/2;ZGEND:=CONST((高点压力+低点支撑)/2);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR, ZGEND,1),COLORFFFFFF,LINETHICK;DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,D DCS1-1),1),COLOR0000FF,DOTLINE;DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,D DCS2-1),1),COLORFF00FF,DOTLINE;涨停开板:=H>REF(C,1)*1.090 AND C<H;DRAWTEXT(涨停开板,HIGH*1.02,'炸板'),COLORGREEN;{涨停公式提示}涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);STICKLINE(涨停,OPEN,CLOSE,4,0),COLORRED;STICKLINE(涨停,OPEN,CLOSE,3,0),COLORYELLOW;{跌停公式提示}D2:=REF(C,1);跌停:=IF((D2-C)*100/D2>=(10-0.01*100/D2),1,0);STICKLINE(跌停,OPEN,CLOSE,2,0),COLORBLUE;STICKLINE(跌停,H,L,0,1),COLORBLUE;{板块公式}DRAWTEXT_FIX(1,0.01,0,0,'行业:'),COLOR0000FF;DRAWTEXT_FIX(1,0.04,0,0,HYBLOCK),COLORYELLOW;DRAWTEXT_FIX(1,0.01,0.06,0,'概念:'),COLOR0000FF;DRAWTEXT_FIX(1,0.04,0.06,0,GNBLOCK),COLORYELLOW;DRAWTEXT_FIX(1,0.01,0.12,0,'地区:'),COLOR0000FF;DRAWTEXT_FIX(1,0.04,0.12,0,DYBLOCK),COLORYELLOW;DRAWTEXT_FIX(1,0.01,0.18,0,'风格:'),COLOR0000FF;DRAWTEXT_FIX(1,0.04,0.18,0,FGBLOCK),COLORYELLOW;DRAWTEXT_FIX(1,0.01,0.24,0,'指数:'),COLOR0000FF;DRAWTEXT_FIX(1,0.04,0.24,0,ZSBLOCK),COLORYELLOW;{盘面分析}平均成本:=STRCAT(' 平均成本:',CON2STR(COST(50),2));主力成本:=STRCAT(' 主力成本:',CON2STR(COST(4),2));重心:=STRCAT(' 重心:',CON2STR((H+L+C)/3,2));套牢盘%:=STRCAT(' 【套牢概率】:',CON2STR((1-WINNER(C))*100,2));获利盘%:=STRCAT(' 【获利概率】:',CON2STR(100*WINNER(C),2));筹码分析:=STRCAT('【筹码分析】',STRCAT(STRCAT(STRCAT(STRCAT(平均成本,主力成本),重心),套牢盘%),获利盘%));{DRAWTEXT_FIX(ISLASTBAR,0,0,0,所属板块),COLORLIRED;}DRAWTEXT_FIX(ISLASTBAR,0,1,0,筹码分析),COLOR0000FF;{均线}MA5:MA(C,5);{MA8:=MA(C,8);MA10:MA(C,10);MA20:MA(C,20);MA30:=MA(C,30);}{MA60:MA(C,60),COLORFFFFFF;牛熊线:MA(C,100),COLORFF0000;}{MA250:MA(C,250);};流通市值:(FINANCE(40)/100000000),NODRAW,COLORRED; {程序使用说明:1、生命线红做多趋势(绿线下方不做,白K线观望,红线上方做多);2、神奇9转;3、极阴二一位(大于3%阴线实体半分位都过不去不会涨);4、压力位和支撑位;5、涨停板黄S,跌停板蓝色一目了然;6、涨停炸板提示;7、板块属性;8、盘面分析;9、流通市值。
阴线买入通达信指标公式源码
阴线买入,敢赌未必是输!!M01:=EMA(C,2);M02:=EMA(C,18);TJ1:=IF(CROSS(M02,M01),1,0);A01:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100; TJ2:=(A01/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 A01<TJ2-2;阴线买:TJ1 AND XQ,STICK,COLORRED,LINETHICK3; DRAWTEXT(阴线买,0.7,' 阴线买'),COLORFFFF00; DRAWICON(阴线买>0,阴线买,1);N:=5;M1:=6;M2:=6;M3:=8;R:=IF(DATE<1900612,1,0);EE:=(H+MAX(C,O))/2;EE1:=MA(EE,3);EE2:=(L+MIN(C,O))/2;EE3:=MA(EE2,3);超短生命线:=MA(EE,3);FF:=(H+L+C+O)/4;FF1:=MA(FF,3);FF3:=REF((C+O)/2,1)>REF((C+O)/2,2) AND REF(MIN(C,O),1)>REF(MAX(C,O),2);实际乖离:=(MAX(FF,FF1)-MIN(FF,FF1))/MIN(FF,FF1)*100;FF4:=(((FF1-(REF(FF1,1)-FF1))-L)/L)*100;FF5:=(((EE1+(EE1-REF(EE1,1)))-L)/L)*100;FF6:=FF1-(REF(FF1,1)-FF1);FF7:=EE1+(EE1-REF(EE1,1));期望获利率:=IF(FF3,FF5,FF4);YY1:=REF(EVERY(C>=O,4),1) AND REF(EVERY((C+O)/2>FF1,4),1) AND (C+O)/2<FF1; YY2:=NOT(YY1) AND (FF1-O)/O*1000>5 AND O<REF(MIN(C,O),1);A:=SMA(L,4,3);B:=SMA(H,4,3);BB:=SMA(MIN(C,O),4,3);BB1:=REF(L,1)-HHV((MAX(REF(L,2),REF(L,1))-MIN(REF(L,2),REF(L,1))),2);BB2:=REF((C+O)/2,1)>REF((C+O)/2,2);BB3:=L<=BB1+BB1*0.01 AND O>REF(O,2) AND O>=REF(L,3) AND COUNT(C>O,7)>3; BB6:=(BB1-L)/L*100;BB7:=(REF(L,1)-BB1)/BB1*100;A1:=(A-L)/L>N/1000 ;A8:=A1;A9:=(REF(H,1)-O)/O*100-(REF(MAX(C,O),2)-REF(MAX(C,O),1))/REF(MAX(C,O),1)*100; A10:=IF(BB2,BB6,A9);BB4:=BB6+A10>2;BB5:=IF(BB2,BB3,BB4) AND 期望获利率>2;D5:=R AND A8 AND BB5;阴买:(REF((D5),1) AND (L<REF((L/0.995),1))),STICK,LINETHICK3;DRAWTEXT(阴买,0.3,' 阴买');DRAWICON(阴买>0,阴买,1);VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,35);动力块:=EMA((CLOSE-VAR2)/(VAR3-VAR2),4);生命线:MA(动力块,3),COLORRED LINETHICK2;NOTEXTSA:IF(动力块<REF(动力块,2) OR 动力块<=REF(动力块,1),生命线,DRAWNULL),COLORBLUE,LINETHICK2;周均线:EMA(生命线,7),DOTLINE;NOTEXTDA:IF(周均线>REF(周均线,1),周均线,DRAWNULL),COLORYELLOW,LINETHICK2;0.5;。
阴线过后买入通达信指标公式源码
{可以买入选股预警}RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;A:=((REF(C,3)-REF(C,1))/C)*100>6;A1:= CLOSE>REF(CLOSE,1)*1.03 ;A2:=CROSS(J,MA(J,2)) AND C>O;A3:= REF(((H-O)/C)*100<2,1);A4:=REF(C<O,2) AND REF(C<O,1);A5:=((H-C)/C)*100<2 AND H>REF(H,1);A6:=((REF(O,1)-REF(C,1))/C)*100>1;A7:=((REF(O,2)-REF(C,2))/C)*100<9;A8:=SUM(VOL/CAPITAL*100,3)>10;BB:A AND A1 AND A2 AND A3 AND A4 AND A5 AND A7;{关注盘后选股,选股完毕后,单独列出一版块,第二天可以把可以买入选股预警设置在这个版块里,可以提高预警时间}B1:=((REF(C,2)-C)/C)*100>6;B2:=REF(C<O,1) AND C<O;B3:= ((H-O)/C)*100<2 ;B4:B1 AND B2 AND B3;{附图}RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;A:=((REF(C,3)-REF(C,1))/C)*100>6;A1:= CLOSE>REF(CLOSE,1)*1.03 ;A2:=CROSS(J,MA(J,2)) AND C>O;A3:= REF(((H-O)/C)*100<2,1);A4:=REF(C<O,2) AND REF(C<O,1);A5:=((H-C)/C)*100<2 AND H>REF(H,1);A6:=((REF(O,1)-REF(C,1))/C)*100>1;A7:=((REF(O,2)-REF(C,2))/C)*100<9;A8:=SUM(VOL/CAPITAL*100,3)>10;BB:=A AND A1 AND A2 AND A3 AND A4 AND A5 AND A7;B1:=((REF(C,2)-C)/C)*100>6;B2:=REF(C<O,1) AND C<O;B3:= ((H-O)/C)*100<2 ;B4:=B1 AND B2 AND B3;STICKLINE(B4,1,60,0.2,0),COLORBLUE;STICKLINE(B4,1,60,0.15,0),COLORFF7700;STICKLINE(B4,1,60,0.10,0),COLORFF9900;STICKLINE(B4,1,60,0.05,0),COLORFFBB00;DRAWTEXT(B4 ,95,'关'),COLORYELLOW;DRAWTEXT(B4 , 75,'注'),COLORYELLOW;STICKLINE(BB,1,100,0.3,0),COLOR000099;STICKLINE(BB,1,100,0.2,0),COLOR0000CC;STICKLINE(BB,1,100,0.1,0),COLOR0000FF;STICKLINE(BB,1,100,0,0),COLORCC66FF;DRAWTEXT(BB,95,'可'),COLORYELLOW;DRAWTEXT(BB,75,'以'),COLORYELLOW;DRAWTEXT(BB,55,'买'),COLORYELLOW;DRAWTEXT(BB,35,'入'),COLORYELLOW;送大家的!一年出信号200多个!附图选股预警一体,适合今买明卖,先观察几天!每句公式原理说明,希望大家自己理解,如需优化,请短信联系!感谢支持!争取让每位都满意!直接复制!AA:=(REF(H,4)-REF(L,1))/C*100>10;{4天前的最高到昨天最低跌幅为10个点}AA1:=(REF(L,1)-L)/C*100>=0;{昨天的最低价跟今天最低价相平或收下影线}AA2:=REF(C<O,1) AND C>O;{昨天收阴,今天收阳线}AA3:= CLOSE>REF(CLOSE,1)*1.03 ;{股价3个点预警}AA4:=(H-C)/C*100<1.5;{上影线少于1.5个点}AA5:=V<=LLV(V,5) OR V>=HHV(V,5);{成交量是五天最低或五天最高}AA AND AA1 AND AA2 AND AA3 AND AA4 AND AA5;{满足所有条件}。
阴线买主图通达信指标公式源码
一个在阴线买入的指标,最好等跌倒重要均线附近,第二天收阳线买入C2:=REF(C,1);ZTB:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(ZTB,OPEN,CLOSE,1,0),COLORYELLOW;工作线:EMA(CLOSE,55),COLORGREEN,LINETHICK2;工作线2:EMA(CLOSE,17),LINETHICK1;IF(工作线>REF(工作线,1),工作线,DRAWNULL),LINETHICK2,COLORRED;IF(工作线2>REF(工作线2,1),工作线2,DRAWNULL),LINETHICK1,COLORRED; A11:=REF(H,5)=HHV(H,2*5+1);B11:=FILTER(A11,10);C11:=BACKSET(B11,5+1);HDD:=FILTER(C11,10);前期高位:=REF(H,BARSLAST(HDD));STICKLINE(H,前期高位,前期高位+0.015,15,0),COLOR0000AA,LINETHICK4; A111:=REF(L,5)=LLV(L,2*5+1);B111:=FILTER(A111,10);C111:=BACKSET(B111,5+1);HDD1:=FILTER(C111,10);前期低位:REF(L,BARSLAST(HDD1)),LINETHICK0;STICKLINE(L,前期低位,前期低位-0.015,15,0),COLOR00AA00,LINETHICK4; VAR1:=LLV(LOW,21);VAR2:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB = 1),(LOW * 0.99),'○牛窝'),COLORYELLOW;总股本:=STRCAT(STRCAT('总股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'亿');流通盘:=STRCAT(STRCAT(' 流通盘: ',CON2STR(CAPITAL/1000000,2)),'亿');全流通:=STRCAT(' 全流通:',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2));市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'亿');上市日期:=STRCAT(' 上市日期: ',CON2STR(FINANCE(42),0));股本市值:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值),上市日期));{}市盈率:=STRCAT('市盈率: ',CON2STR(C/FINANCE(33),2));市销率:=STRCAT(' 市销率: ',CON2STR(C/(FINANCE(20)/FINANCE(1)),2));市净率:=STRCAT(' 市净率: ',CON2STR(C/FINANCE(34),2));净资收益率:=STRCAT(' 净资收益率: ',CON2STR(FINANCE(33)/FINANCE(34)*100,2)); 毛利率:=STRCAT(' 毛利率:',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));净利润率:=STRCAT(' 净利润率',CON2STR(FINANCE(30)/FINANCE(20)*100,2));主营利润率:=STRCAT(' 主营利润率',CON2STR(FINANCE(23)/FINANCE(20)*100,2));当前业绩:=STRCAT('当前业绩: ',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(市盈率,市销率),市净率),净资收益率),毛利率),净利润率),主营利润率));{}X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替};X3:=FINANCE(23)/FINANCE(10)*3.3;X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额}X5:=FINANCE(20)/FINANCE(15)*0.999;Z值:=X1+X2+X3+X4+X5;预警:=IF(Z值<1.2,'重警',IF(Z值>=1.2 AND Z值<2.6,'轻警','无警'));财务预警:=STRCAT('财务预警: ',STRCAT(预警,STRCAT('-Z值: ',CON2STR(Z值,3))));优质资产率:=STRCAT(' 优质资产率:',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2));{理论上越大越好但不同行业有不同标准};现金负债比:=STRCAT(' 现金负债比: ',CON2STR(FINANCE(25)/FINANCE(15),3));{缺长期负债或负债总额,理论上越大越好但不同行业有不同标准};财务系数:=STRCAT('风险系数: ',STRCAT(STRCAT(财务预警,优质资产率),现金负债比));{}DRAWTEXT_FIX(ISLASTBAR,0.005,0.01,0,财务系数),COLORBLUE;DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,当前业绩),COLORRED ;DRAWTEXT_FIX(ISLASTBAR,0.005,0.115,0,股本市值),COLORYELLOW;A7:=C-REF(C,1);A81:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买:=LLV(A81,2)=LLV(A81,7) AND COUNT(A81<0,2) AND CROSS(A81,MA(A81,2)); DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORYELLOW;STICKLINE(买,OPEN,CLOSE,2,0),COLORWHITE;VAR100:=IF(DATE<1530730 AND DATE>900101,1,0);N:=5;M1:=6;M2:=6;M3:=8;R:=IF(DATE<1910612,1,0);EE:=(H+MAX(C,O))/2;EE1:=MA(EE,3);EE2:=(L+MIN(C,O))/2;EE3:=MA(EE2,3);FF:=(H+L+C+O)/4,COLORWHITE;FF1:=MA(FF,3),COLORGREEN;FF3:=REF((C+O)/2,1)>REF((C+O)/2,2) AND REF(MIN(C,O),1)>REF(MAX(C,O),2);实际乖离:=(MAX(FF,FF1)-MIN(FF,FF1))/MIN(FF,FF1)*100,LINETHICK;FF4:=(((FF1-(REF(FF1,1)-FF1))-L)/L)*100;FF5:=(((EE1+(EE1-REF(EE1,1)))-L)/L)*100;FF6:=FF1-(REF(FF1,1)-FF1);FF7:=EE1+(EE1-REF(EE1,1));期望获利率:=IF(FF3,FF5,FF4),LINETHICK;YY1:=REF(EVERY(C>=O,4),1) AND REF(EVERY((C+O)/2>FF1,4),1) AND (C+O)/2<FF1; YY2:=NOT(YY1) AND (FF1-O)/O*1000>5 AND O<REF(MIN(C,O),1);A:=SMA(L,4,3);B:=SMA(H,4,3);BB1:=REF(L,1)-HHV((MAX(REF(L,2),REF(L,1))-MIN(REF(L,2),REF(L,1))),2);BB2:=REF((C+O)/2,1)>REF((C+O)/2,2);BB3:=L<=BB1+BB1*0.01 AND O>REF(O,2) AND O>=REF(L,3) AND COUNT(C>O,7)>3; BB6:=(BB1-L)/L*100;BB7:=(REF(L,1)-BB1)/BB1*100;A1:=(A-L)/L>N/1000 ;A8:=A1;A9:=(REF(H,1)-O)/O*100-(REF(MAX(C,O),2)-REF(MAX(C,O),1))/REF(MAX(C,O),1)*100; A10:=IF(BB2,BB6,A9);BB4:=BB6+A10>2;BB5:=IF(BB2,BB3,BB4) AND 期望获利率>2;准备:=R AND A8 AND BB5;STICKLINE(准备,A*0.995,A*0.992,4,0)COLORYELLOW;DRAWICON(R AND (REF((准备),1)) AND (L<REF((L/0.995),1)),L*0.97,11);AA1:=AMOUNT/V;BB11:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE11:=V<MA(V,5)*1.5;FF11:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(FF11,(LOW* 0.97),'老鼠仓'),COLOR4080FF;。
阴线买入通达信指标公式源码
阴线买入通达信指标公式源码涨停:=C/REF(C,1)>1.095;涨停10日:=COUNT(涨停,10);涨幅:=C/REF(C,1)-1<0.05;选股1:=涨停10日 AND 涨幅 ;BS:=COUNT(涨停,10)<2;M10:=MA(C,7);M20:=MA(C,14);M30:=MA(C,25);VV:=M10>M20 AND M20>M30 ;S1:=IF(NAMELIKE('S'),0,1);S2:=IF(NAMELIKE('*'),0,1);回踩均线:=C>MA(C,7) AND CROSS(MA(C,7),L);S3:=DYNAINFO(17)>0;XG:S1 AND S2 AND S3 AND 选股1 AND 回踩均线 AND VV ; MA5:=EMA(C,5);MA10:=EMA(C,10);VV1:=CROSS(MA5,MA10);VVV1:=COUNT(VV1,5)>=1;MV5:=EMA(V,5);MV10:=EMA(V,10);VV2:=CROSS(MV5,MV10);VVV2:=COUNT(VV2,5)>=1;DIF:="MACD.DIF"(12,26,9);DEA:="MACD.DEA"(12,26,9);VV3:=CROSS(DIF,DEA);VVV3:=COUNT(VV3,5)>=1;VVV4:=ABS((C-MA10)/MA10)*100<2 AND C<REF(C,1);涨停N:=C/REF(C,1)>=1.097;VVV5:=COUNT(涨停N,5)>=1;买入:VVV1 AND VVV2 AND VVV3 AND VVV4 AND VVV5;VAR1N:CROSS(MA(C,13),C) AND MA(C,13)>REF(MA(C,13) ,1) AND INDEXC>MA(INDEXC,13) AND MA(C,13)>MA(C,55) AND V<REF(V,1);VAR6B:=REF(LOW,1)*0.83;VAR7B:=LOW*0.1;VAR8B:=(VAR7B*VOL+VAR6B*(CAPITAL-VOL))/CAPITAL;VAR9B:=EMA(VAR8B,60);VARA:=EMA(VAR6B,60);VARB:=VARA-2;VARCB:=IF(C<=VAR9B,VARB,VARA);VARDB:=MA(C,80)-MA(C,10)/17;抄底:FILTER(VARCB-VARB=0 AND CROSS((EMA(EMA(EMA(C,2),2),2)-REF(EMA(EMA(EMA(C,2),2),2),1))/REF(EMA(EMA(EMA(C,2),2),2),1)*100,MA((EMA(EMA(EMA(C,2),2 ),2)-REF(EMA(EMA(EMA(C,2),2),2),1))/REF(EMA(EMA(EMA(C,2),2),2),1 )*100,3)),4);ZT:=CLOSE>REF(CLOSE,1)*1.095;涨停后回调:REF(ZT,2) AND REF(C,1)>C AND REF(V,1)>V AND REF(C<O,1) AND C<O AND REF(C,1)<REF(C,2) AND REF(V,2)>REF(V,1),COLORYELLOW;JJ:=(3*C+H+L+O)/6;VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4) +3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>REF(C,1);LJL:=FILTER(TJ1,3);黄金线:=REF(LOW,BARSLAST(LJL));黄金柱:=FILTER(TJ1,3);{2.倍量过左峰}SR1:=REF(HIGH,10)=HHV(HIGH,2*10+1);SR2:=FILTER(SR1,10);SR3:=BACKSET(SR2,10+1);HD:=FILTER(SR3,10);前高:=REF(H,BARSLAST(HD));倍量:=(VOL/REF(VOL,1)>2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>2);突破前高:=CROSS(C,前高);倍量过左峰:= 突破前高 AND 倍量;{3.凹口起柱}T7:=REF(VOL,6)/REF(VOL,7)>=2;T6:=REF(VOL,5)/REF(VOL,6)>=2;T5:=REF(VOL,5)/REF(VOL,4)>=1.5;T4:=REF(VOL,4)/REF(VOL,3)>=1.5;T3:=REF(VOL,2)/REF(VOL,3)>=1.5;T1:=V/REF(VOL,1)>2;T0:=C>O AND C>REF(C,1);凹口起柱:= T7 AND T1 AND T0 OR T6 AND T1 AND T0 OR T5 AND T1 AND T0 OR T4 AND T1 AND T0OR T3 AND T1 AND T0 ;{凹口起柱}AKQZ:= 黄金柱 AND 凹口起柱;{4.前高低位}X:=21;TTY:=H;AAT:=REF(TTY,X)=HHV(TTY,2*X+1);BBT:=FILTER(AAT,X);CCT:=BACKSET(BBT,X+1);HD10T:=FILTER(CCT,X);AA1T:=REF(TTY,X)=LLV(TTY,2*X+1);BB1T:=FILTER(AA1T,X);CC1T:=BACKSET(BB1T,X+1);LD10T:=FILTER(CC1T,X);前期高位:=REF(H,BARSLAST(HD10T));前期低位:=REF(L,BARSLAST(LD10T));{突破前高}TPQG:= 黄金柱 AND 倍量过左峰 AND C>前期高位;{选股}XGNNB: (COUNT(TPQG,10) OR COUNT(AKQZ,10)) AND COUNT(CROSS(黄金线*1.01,L),3)>0 AND L>=黄金线AND C>REF(C,1) AND REF(C,2)>REF(C,1) AND COUNT(LJL,3)=0;A:=C<O;B:=COUNT(A,4)=4;D:=OBV-MA(OBV,30);E:=MA(C,20)>REF(MA(C,20),1) AND MA(C,55)>REF(MA(C,55),1);XGB:B AND D>0 AND E;连跌不超五天:=COUNT(DOWNNDAY(CLOSE,5),14)<1;EMA14:=EMA(C,14);最近放量:= (SUM(V,17)-HHV(V,17))/(SUM(V,60)-LLV(V,60))>=0.45;创新高:=HHV(C,10)/HHV(C,144)>=0.8;大趋势涨:= EMA14>EMA(C,60);小趋势跌:= ABS(LLV(C,3)-EMA14)/EMA14<0.03;最近放量 AND 大趋势涨 AND 小趋势跌 AND 创新高 AND 连跌不超五天;N:=60;XGNN:IF(CURRBARSCOUNT<=N,V=CONST(LLV(V,N)),DRAW NULL);AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;FF1:BB1 AND CC1 AND DD1 AND EE1;VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1);VARD:=EMA(IF(C< EMA(C,250),VARC*1000,VARC*10),3);火焰山:EMA(IF(L<=LLV(L,30),VARD/2+HHV(VARD,30),0),3)/618>100;VAR3:=1;VAR4:=MA(CLOSE,5);VAR5:=MA(CLOSE,10);VAR6:=MA(CLOSE,30);VAR7:=MA(CLOSE,60);VAR8:=EMA(COST(85),7);VAR9:=EMA(COST(15),7);VARAB:=SUM(CLOSE*VOL*100,4)/SUM(VOL*100,4);VARBB:=INTPART(VARAB*100)/100;VARCV:=SUM(CLOSE*VOL*100,7)/SUM(VOL*100,7);VARDV:=INTPART(VARCV*100)/100;VAREV:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);VARFV:=INTPART(VAREV*100)/100;短线趋势:=EMA(CLOSE,5)-EMA(CLOSE,10);中线趋势:=EMA(短线趋势,30);VAR10:=-100*(HHV(CLOSE,5)-CLOSE)/(HHV(CLOSE,5)-LLV(LOW,5))+100;VAR11:=-100*(HHV(CLOSE,10)-CLOSE)/(HHV(CLOSE,10)-LLV(LOW,10))+100;VAR12:=-100*(HHV(CLOSE,20)-CLOSE)/(HHV(CLOSE,20)-LLV(LOW,20))+100;VAR13:=-100*(HHV(CLOSE,30)-CLOSE)/(HHV(CLOSE,30)-LLV(LOW,30))+100;VAR14:=REF(中线趋势,1);VAR15:=中线趋势;VAR16:=VAR15-VAR14;VAR17:=REF(短线趋势,1);VAR18:=短线趋势;VAR19:=VAR18-VAR17;VAR1A:=OPEN;VAR1B:=CLOSE;超级牛魔王:IF(VAR1A<=VAR4 AND VAR1A<=VAR5 AND VAR1A<=VAR6 AND VAR1B>=VAR4 AND VAR1B>=VARFV AND VAR16>0 AND VAR19>0 AND VAR3=1,0.5,0);短线指标:IF(CROSS(短线趋势,中线趋势) AND 短线趋势<0 AND 中线趋势<-0.2 AND VAR11>45 AND VAR16>0 AND VAR3=1,1,0);RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*10000;RSV2:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*10000;短线:=SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21),COLOR00FF00;中线:=SMA(RSV2,5,1)+2*STD(CLOSE,37),COLORRED;RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*10000;长线:=SMA(RSV3,5,1),COLORYELLOW;黄金坑:=短线<2000 AND 中线<2000 AND 长线<2000;短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;强市线:=80,POINTDOT;弱市线:=20,POINTDOT;分水岭:=50,POINTDOT;多空:=长期<10;NC:=5;N1:=1;M1:=22;P:=19;SJV:=C/FINANCE(34)<NC;FZL:=FINANCE(11)/FINANCE(15)>N1;XGC:=SJV AND FZL;DC:=FINANCE(34)>0;AC:=FINANCE(34);BC:=CLOSE;T1CC:IF(((BC/AC<3) AND DC AND 黄金坑AND 多空AND XGC),1,0);NB:=10;VAR1C:=AMOUNT/VOL/7;VAR2C:=(3*HIGH+LOW+OPEN+2*CLOSE)/7; VAR3C:=SUM(AMOUNT,NB)/VAR1C/7; VAR4C:=DMA(VAR2C,VOL/VAR3C);抄底C:=(CLOSE-VAR4C)/VAR4C*100; CROSS(-7.0,抄底);。
通达信指标公式源码 让你天天涨停
N 2 100 20M 2 100 40A1:=(DVOL/CLOSE)/2;A2:=SUM(IF(A1>500 AND CLOSE>REF(CLOSE,1),A1,0),0);A3:=SUM(IF(A1>500 AND CLOSE<REF(CLOSE,1),A1,0),0);A4:=SUM(IF(A1<100 AND CLOSE>REF(CLOSE,1),A1,0),0);A5:=SUM(IF(A1<100 AND CLOSE<REF(CLOSE,1),A1,0),0);机构买盘:=A2,LINETHICK3, COLORRED;机构卖盘:=A3,LINETHICK3,COLORGREEN;TH:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),N);TL:=SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),N);TQ:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),N);VR:=100*(TH*2+TQ)/(TL*2+TQ);MAVR:=MA(VR,M);B:VR/MAVR;BB:机构买盘/机构卖盘;BBB:BB/REF(BB,1);DRAWICON(BB/REF(BB,1)>1.05 AND BB>7 AND BBB/REF(BBB,1)>4,10,13); DRAWICON(BB/REF(BB,1)>1.05 AND BB>7 AND BBB/REF(BBB,1)>4,20,13); DRAWICON(BB/REF(BB,1)>1.05 AND BB>7 AND BBB/REF(BBB,1)>4,30,13); DRAWICON(BB/REF(BB,1)>1.05 AND BB>7 AND BBB/REF(BBB,1)>4,40,13); DRAWICON(BB/REF(BB,1)>1.05 AND BB>7 AND BBB/REF(BBB,1)>4,50,13);DRAWICON(BB/REF(BB,1)>1.05 AND BB>7 AND BBB/REF(BBB,1)>4,300,1); DRAWTEXT(BB/REF(BB,1)>1.05 AND BB>7 AND BBB/REF(BBB,1)>4,400,'买')COLORYELLOW;DRAWTEXT(BB>120 AND BBB/REF(BBB,1)>4,1000+BB,'全买')COLORYELLOW; STICKLINE(BB>120 AND BBB/REF(BBB,1)>4,0,2000,1,0)COLORRED;。
天天涨停[选股公式】通达信指标公式源码
天天涨停[选股公式】通达信指标公式源码选股公式:天天涨停在早上10点之前进行选股,使用以下公式:T = IF(BARSCOUNT(C)。
7.(100*(MA(C,7)/LLV(MA(C,7),7))-1)。
1)N = IF(T。
0.35.6.65)W = -((100*(HHV(H,N)-C))/(HHV(HIGH,N)-LLV(L,N)))RV = (CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100RG = (CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100J0 = (HIGH+LOW)/2QJ = EMA(J0,3)J1 = IF(CLOSE>QJ。
VOL。
0)J2 = IF(CLOSE<QJ。
VOL。
0)BB = MA(SUM(J1-J2,22),3)修改1 = DYNAINFO(8)*240/FROMOPEN修改2 = IF(CLOSE>QJ。
修改1.0)修改3 = IF(CLOSE<QJ。
修改1.0)修改4 = MA(SUM(修改2-修改3,22),3)累加 = 21*修改4+20*REF(BB,1)+19*REF(BB,2)+18*REF(BB,3)+17*REF(BB,4 )+16*REF(BB,5)+15*REF(BB,6)+14*REF(BB,7)+13*REF(BB,8) +12*REF(BB,9)+11*REF(BB,10)+10*REF(BB,11)+9*REF(BB,1 2)+8*REF(BB,13)+7*REF(BB,14)+6*REF(BB,15)+5*REF(BB,1 6)+4*REF(BB,17)+3*REF(BB,18)+2*REF(BB,19)+REF(BB,20)WMA = 累加/(21+1)/21*2CC = WMAVAR3 = BB-CCVAR4 = SMA(RV,3,1)VAR5 = SMA(VAR4,3,1)KK = EMA(SMA(RG,3,1),2)DD = SMA(KK,3,1)这个公式可以帮助你选出可能会涨停的股票。
通达信指标公式源码狙击涨停
1.盘中抓涨停;2.注意大势;3.选出的股不是很多,但决不是一个让人亏损的指标,只要不贪出现指标买入第二天卖出几个点是相当可观的,个股形态好多则几十个点!4.股市不败法则,就是不贪5.应大家要求做了选股器!T:=IF((BARSCOUNT(C) > 7),(100)*((MA(C,7))/(LLV(MA(C,7),7)) - 1),1);N:=IF((T > 0.35),6,65);W:=((-((100)*(HHV(H,N) - C))/(HHV(HIGH,N) - LLV(L,N))));RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);J1:=IF(CLOSE>QJ,VOL,0);J2:=IF(CLOSE<QJ,VOL,0);BB:=MA(SUM(J1-J2,22),3),COLOR00DDDD,NODRAW;累加:=21*BB+20*REF(BB,1)+19*REF(BB,2)+18*REF(BB,3)+17*REF(BB,4) +16*REF(BB,5)+15*REF(BB,6)+14*REF(BB,7)+13*REF(BB,8)+12*REF (BB,9)+11*REF(BB,10)+10*REF(BB,11)+9*REF(BB,12)+8*REF(BB,13)+7*REF(BB,14)+6*REF(BB,15)+5*REF(BB,16)+4*REF(BB,17)+3*REF (BB,18)+2*REF(BB,19)+REF(BB,20);WMA1:=累加/(21+1)/21*2;CC:=WMA1,COLOR008800,NODRAW;VAR3:=(BB-CC);VAR4:=SMA(RV,3,1);VAR5:=SMA(VAR4,3,1);KK:=EMA(SMA(RG,3,1),2),COLORFFFFFF;DD:=SMA(KK,3,1),COLOR00FFFF;涨停:CROSS(W,-2) AND CROSS(VAR4,VAR5) AND CROSS(KK,DD);。
隐秘涨停指标通达信指标公式源码
隐秘涨停指标通达信指标公式源码本文档将为您提供隐秘涨停指标通达信指标公式的源码。
隐秘涨停指标是一种用于识别股票可能出现的涨停板的技术指标,它可以帮助投资者更好地抓住股票价格上涨的机会。
隐秘涨停指标公式通达信指标公式如下:HDYG:=(CMP>REF(LOW,1) AND STOCKDAY5=1 AND VOL>=800);SELINE(Y:CMP,COLORWHITE) ;SEREGION(HDYG,COLORRED,0.5,6) ;公式解释- `HDYG` 表示隐秘涨停信号,它的计算条件是当前价格(`CMP`)大于昨日最低价(`REF(LOW,1)`)并且股票连续5个交易日上涨(`STOCKDAY5=1`)并且成交量大于等于800。
- `SELINE(Y:CMP,COLORWHITE)` 绘制价格线,线的颜色为白色。
- `SEREGION(HDYG,COLORRED,0.5,6)` 绘制隐秘涨停信号区域,区域颜色为红色,透明度为0.5,线宽为6。
通过以上公式,我们可以在通达信软件中使用这个指标进行相关股票的分析和实时监测。
当隐秘涨停信号出现时,我们可以根据这个信号可能会有涨停板的机会,从而做出相应的投资决策。
注意事项- 在使用该指标进行股票分析时,应结合其他技术指标和基本面数据进行综合分析,避免单一指标的误导。
- 涨停板是股票价格波动的极端情况,投资者应谨慎对待,制定合理的交易策略,并注意风险控制。
希望本文档能为您提供隐秘涨停指标通达信指标公式的源码,帮助您更好地进行股票分析和决策。
参考资料:- 通达信软件使用手册- 股市常用技术指标解读与应用。
通达信三日内涨停指标公式
通达信三日内涨停指标公式通达信三日内涨停指标公式源码如下:V1:=EMA(CLOSE,168)-EMA(CLOSE,315);V2:=EMA(V1,315);V3:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;V4:SMA(V3,2,1);V5:SMA(V4,2,1);V6:=CLOSE/REF(CLOSE,3)>=1.1;V7:=(V6,3);买入:IF((V7 AND COUNT(V7,3)=1),70,0),COLORYELLOW,LINETHICK3;DRAWTEXT(买入,70,'买入 '),COLORYELLOW,LINETHICK3;买:=IF("KDJ.J"<0,10,0);条件:=CROSS(9.9,买);VAR1:=(2*CLOSE+HIGH+LOW)/4;VAR2:=LLV(LOW,5);VAR3:=HHV(HIGH,5);VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5);MA1:=MA(VAR4,2);AA:STICKLINE(VAR4>MA1,VAR4,MA1,3,1),COLORRED;BBB:STICKLINE(VAR4>MA1 AND REF(VAR4,1)<30,VAR4,MA1,3,1),COLORRED;STICKLINE(VAR4<=MA1,VAR4,MA1,3,1),COLORFFCC66;DRAWICON(CROSS(9.9,买),VAR4-12,5);STICKLINE(CROSS(9.9,买),VAR4+5,MA1-4,3,1),COLORYELLOW;XXX:=STICKLINE(BBB,VAR4+5,MA1-4,3,1),COLORYELLOW;STICKLINE(FILTER(XXX ,5) ,VAR4+5,MA1-4,3,1),COLORYELLOW;Y1:=LLV(L,17);Y2:=SMA(ABS(L-REF(L,1)),17,1);Y3:=SMA(MAX(L-REF(L,1),0),17,2);Q:=-(EMA(IF(L<=Y1,Y2/Y3,-3),1));STICKLINE(CROSS(Q,0),15,0,4,0), , COLORYELLOW;强拉升: IF(CROSS(Q,0),1,0),COLORYELLOW;{ 股旁网_最新股票指标公式}Q1:= (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, , COLOR00FF00,LINETHICK2;STICKLINE(CROSS(Q1,-24),20,0,4,0), , COLORMAGENTA;加强拉升: IF(CROSS(Q1,-24),1,0),COLORMAGENTA;VAR5:=EXPMA(EXPMA(EXPMA((2*CLOSE+HIGH+LOW)/4,4), 4),4);天:=( MA((VAR5-REF(VAR5,1))/REF(VAR5,1)*100,2));地:=( MA((VAR5-REF(VAR5,1))/REF(VAR5,1)*100,1));STICKLINE(地>天 AND 地<0,10,0,1,0),COLORRED;开始拉升:STICKLINE(地>天 AND 地<0,10,0,1,0)=1,COLORRED;。
最牛涨停板指标 用实际操作来说话通达信指标公式源码
最牛涨停板指标用实际操作来说话当红线上穿灰线且灰线大于白线一定有一波涨停潮出现,当蓝线与红线都大于灰线,亲们要自己看看!此指标已经过优化,请大家慢慢研究,学会了才能成为你自己的。
CA:=MA(CLOSE,5);CJ5:=CA*102/100;HA:=MA(H,5);HJ5:=HA*102/100;TGH1:=IF(C>O&&H>REF(C,1),ATAN(HJ5-REF(CJ5,1)),0);TGH2:=IF(C>O&&H<REF(C,1),-ATAN(REF(CJ5,1)-HJ5),0);TGH3:=IF(C>O&&H=REF(C,1),0,0);LGH1:=IF(C<O&&H>REF(C,1),ATAN(HJ5-REF(CJ5,1)),0);LGH2:=IF(C<O&&H<REF(C,1),-ATAN(REF(CJ5,1)-HJ5),0);LGH3:=IF(C<O&&H=REF(C,1),0,0);GGH:=(TGH1+TGH2+TGH3+LGH1+LGH2+LGH3);突破高点:MA(REF(GGH,1),26),COLORWHITE;AA:=MA((2*CLOSE+HIGH+LOW)/4,9);通道1:=AA*102/100;CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(C,26))/MA(C,26);DD:=DMA(CLOSE,CC);通道2:=(1+7/100)*DD;TA2:MA(ATAN((通道2-REF(通道2,1))),3),COLORCYAN;T1:=ATAN((通道1-REF(通道1,1)));T2:=ATAN((通道1-REF(通道1,2)));T3:=ATAN((通道1-REF(通道1,3)));T4:=ATAN((通道1-REF(通道1,4)));T5:=ATAN((通道1-REF(通道1,5)));T6:=ATAN((通道1-REF(通道1,6)));T7:=ATAN((通道1-REF(通道1,7)));T8:=ATAN((通道1-REF(通道1,8)));T9:=ATAN((通道1-REF(通道1,9)));T10:=ATAN((通道1-REF(通道1,10)));TJD:MA((((T1+T2+T3+T4+T5+T6+T7+T8+T9+T10)/10)),3),COLORGRAY,LI NETHICK2;TT1:=ATAN((通道2-REF(通道2,1)));TT2:=(ATAN((通道2-REF(通道2,2))));TT3:=(ATAN((通道2-REF(通道2,3))));TT4:=(ATAN((通道2-REF(通道2,4))));TT5:=(ATAN((通道2-REF(通道2,5))));TT6:=(ATAN((通道2-REF(通道2,6))));TT7:=(ATAN((通道2-REF(通道2,7))));TT8:=(ATAN((通道2-REF(通道2,8))));TT9:=(ATAN((通道2-REF(通道2,9))));TT10:=(ATAN((通道2-REF(通道2,10))));TJD2:MA((((TT1+TT2+TT3+TT4+TT5+TT6+TT7+TT8+TT9+TT10)/10)),3),C OLORRED;。
天天涨停通达信指标公式源码
天天涨停通达信指标公式源码```pythonimport pandas as pd#定义天天涨停通达信指标的计算函数def tiantian_zhangting(df):#计算涨跌幅df['涨跌幅'] = (df['收盘价'] - df['昨收价']) / df['昨收价'] * 100#计算涨停板df['涨停板'] = df['昨收价'] * 1.1#初始化天天涨停通达信指标df['天天涨停通达信指标'] = 0#根据涨跌幅和涨停板计算天天涨停通达信指标for i in range(1, len(df)):if df.loc[i, '涨跌幅'] == 9.9 and df.loc[i, '收盘价'] == df.loc[i, '涨停板']:df.loc[i, '天天涨停通达信指标'] = 1elif df.loc[i, '涨跌幅'] != 9.9:df.loc[i, '天天涨停通达信指标'] = df.loc[i-1, '天天涨停通达信指标']return df#读取股票数据data = pd.read_csv('stock_data.csv')#调用天天涨停通达信指标计算函数result = tiantian_zhangting(data)#打印计算结果print(result)```在上面的代码中,首先导入了Pandas库用于读取和处理股票数据。
接下来定义了一个`tiantian_zhangting`函数,用于计算天天涨停通达信指标。
在这个函数中,首先计算出每一天的涨跌幅,然后根据涨跌幅和涨停板来计算天天涨停通达信指标。
最后,将计算结果存储在一个新的列`天天涨停通达信指标`中,并返回整个数据集。
阴线买主图通达信指标公式源码
阴线买主图通达信指标公式源码⼀个在阴线买⼊的指标,最好等跌倒重要均线附近,第⼆天收阳线买⼊C2:=REF(C,1);ZTB:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(ZTB,OPEN,CLOSE,1,0),COLORYELLOW;⼯作线:EMA(CLOSE,55),COLORGREEN,LINETHICK2;⼯作线2:EMA(CLOSE,17),LINETHICK1;IF(⼯作线>REF(⼯作线,1),⼯作线,DRAWNULL),LINETHICK2,COLORRED;IF(⼯作线2>REF(⼯作线2,1),⼯作线2,DRAWNULL),LINETHICK1,COLORRED; A11:=REF(H,5)=HHV(H,2*5+1); B11:=FILTER(A11,10);C11:=BACKSET(B11,5+1);HDD:=FILTER(C11,10);前期⾼位:=REF(H,BARSLAST(HDD));STICKLINE(H,前期⾼位,前期⾼位+0.015,15,0),COLOR0000AA,LINETHICK4; A111:=REF(L,5)=LLV(L,2*5+1); B111:=FILTER(A111,10);C111:=BACKSET(B111,5+1);HDD1:=FILTER(C111,10);前期低位:REF(L,BARSLAST(HDD1)),LINETHICK0;STICKLINE(L,前期低位,前期低位-0.015,15,0),COLOR00AA00,LINETHICK4; VAR1:=LLV(LOW,21);VAR2:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB = 1),(LOW * 0.99),'○⽜窝'),COLORYELLOW;总股本:=STRCAT(STRCAT('总股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'亿');流通盘:=STRCAT(STRCAT(' 流通盘: ',CON2STR(CAPITAL/1000000,2)),'亿');全流通:=STRCAT(' 全流通:',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2));市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'亿');上市⽇期:=STRCAT(' 上市⽇期: ',CON2STR(FINANCE(42),0));股本市值:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值),上市⽇期));{}市盈率:=STRCAT('市盈率: ',CON2STR(C/FINANCE(33),2));市销率:=STRCAT(' 市销率: ',CON2STR(C/(FINANCE(20)/FINANCE(1)),2));市净率:=STRCAT(' 市净率: ',CON2STR(C/FINANCE(34),2));净资收益率:=STRCAT(' 净资收益率: ',CON2STR(FINANCE(33)/FINANCE(34)*100,2)); ⽑利率:=STRCAT(' ⽑利率:',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));净利润率:=STRCAT(' 净利润率',CON2STR(FINANCE(30)/FINANCE(20)*100,2));主营利润率:=STRCAT(' 主营利润率',CON2STR(FINANCE(23)/FINANCE(20)*100,2));当前业绩:=STRCAT('当前业绩: ',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(市盈率,市销率),市净率),净资收益率),⽑利率),净利润率),主营利润率));{}X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积⽤资本公积⾦代替};X3:=FINANCE(23)/FINANCE(10)*3.3;X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额}X5:=FINANCE(20)/FINANCE(15)*0.999;Z值:=X1+X2+X3+X4+X5;预警:=IF(Z值<1.2,'重警',IF(Z值>=1.2 AND Z值<2.6,'轻警','⽆警'));财务预警:=STRCAT('财务预警: ',STRCAT(预警,STRCAT('-Z值: ',CON2STR(Z值,3))));优质资产率:=STRCAT(' 优质资产率:',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2));{理论上越⼤越好但不同⾏业有不同标准};现⾦负债⽐:=STRCAT(' 现⾦负债⽐: ',CON2STR(FINANCE(25)/FINANCE(15),3));{缺长期负债或负债总额,理论上越⼤越好但不同⾏业有不同标准};财务系数:=STRCAT('风险系数: ',STRCAT(STRCAT(财务预警,优质资产率),现⾦负债⽐));{}DRAWTEXT_FIX(ISLASTBAR,0.005,0.01,0,财务系数),COLORBLUE;DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,当前业绩),COLORRED ;DRAWTEXT_FIX(ISLASTBAR,0.005,0.115,0,股本市值),COLORYELLOW;A7:=C-REF(C,1);A81:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买:=LLV(A81,2)=LLV(A81,7) AND COUNT(A81<0,2) AND CROSS(A81,MA(A81,2)); DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORYELLOW;STICKLINE(买,OPEN,CLOSE,2,0),COLORWHITE;VAR100:=IF(DATE<1530730 AND DATE>900101,1,0);N:=5;M1:=6;M2:=6;M3:=8;R:=IF(DATE<1910612,1,0);EE:=(H+MAX(C,O))/2;EE1:=MA(EE,3);EE2:=(L+MIN(C,O))/2;EE3:=MA(EE2,3);FF:=(H+L+C+O)/4,COLORWHITE;FF1:=MA(FF,3),COLORGREEN;FF3:=REF((C+O)/2,1)>REF((C+O)/2,2) AND REF(MIN(C,O),1)>REF(MAX(C,O),2);实际乖离:=(MAX(FF,FF1)-MIN(FF,FF1))/MIN(FF,FF1)*100,LINETHICK;FF4:=(((FF1-(REF(FF1,1)-FF1))-L)/L)*100;FF5:=(((EE1+(EE1-REF(EE1,1)))-L)/L)*100;FF6:=FF1-(REF(FF1,1)-FF1);FF7:=EE1+(EE1-REF(EE1,1));期望获利率:=IF(FF3,FF5,FF4),LINETHICK;YY1:=REF(EVERY(C>=O,4),1) AND REF(EVERY((C+O)/2>FF1,4),1) AND (C+O)/25 AND OA:=SMA(L,4,3);B:=SMA(H,4,3);BB1:=REF(L,1)-HHV((MAX(REF(L,2),REF(L,1))-MIN(REF(L,2),REF(L,1))),2);BB2:=REF((C+O)/2,1)>REF((C+O)/2,2);BB3:=L<=BB1+BB1*0.01 AND O>REF(O,2) AND O>=REF(L,3) AND COUNT(C>O,7)>3; BB6:=(BB1-L)/L*100;BB7:=(REF(L,1)-BB1)/BB1*100;A1:=(A-L)/L>N/1000 ;A8:=A1;A9:=(REF(H,1)-O)/O*100-(REF(MAX(C,O),2)-REF(MAX(C,O),1))/REF(MAX(C,O),1)*100; A10:=IF(BB2,BB6,A9);BB4:=BB6+A10>2;BB5:=IF(BB2,BB3,BB4) AND 期望获利率>2;准备:=R AND A8 AND BB5;STICKLINE(准备,A*0.995,A*0.992,4,0)COLORYELLOW;DRAWICON(R AND (REF((准备),1)) AND (LAA1:=AMOUNT/V;BB11:=LCC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=LEE11:=VFF11:=BB1 AND CC1 AND DD1 AND EE1; DRAWTEXT(FF11,(LOW* 0.97),'⽼⿏仓'),COLOR4080FF;。
通达信指标公式源码 涨停板主图
支撑价:LLV(LOW,19) ,COLORGREEN,LINETHICK3;阻力价:HHV(HIGH,19),COLORBLUE, LINETHICK3;VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);JL01:=MA(C,3);LJL07:=(3*C+L+O+H)/6;牛线:(20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07,3)+16*REF (LJL07,4)+15*REF(LJL07,5)+14*REF(LJL07,6)+13*REF(LJL07,7)+12*REF(LJL 07,8)+11*REF(LJL07,9)+10*REF(LJL07,10)+9*REF(LJL07,11)+8*REF(LJL07, 12)+7*REF(LJL07,13)+6*REF(LJL07,14)+5*REF(LJL07,15)+4*REF(LJL07,16) +3*REF(LJL07,17)+2*REF(LJL07,18)+REF(LJL07,20))/210,COLORRED;马线:MA(牛线,5),COLORYELLOW,LINETHICK4,POINTDOT;等待:IF(JL01<=牛线,马线,DRAWNULL),COLORRED,LINETHICK4,POINTDOT; VAR1L:=(C>REF(C,1) AND C>REF(C,2));VAR2L:=(REF(VAR1L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR3L:=(REF(VAR2L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR4L:=(REF(VAR3L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR5L:=(REF(VAR4L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR6L:=(REF(VAR5L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR7L:=(REF(VAR6L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR8L:=(REF(VAR7L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR9L:=(REF(VAR8L,1) AND C>=REF(C,1) AND C<=REF(C,2));VARAL:=(REF(VAR9L,1) AND C<=REF(C,1) AND C>=REF(C,2));VARBL:=(REF(VARAL,1) AND C>=REF(C,1) AND C<=REF(C,2));VARCL:=(REF(VARBL,1) AND C<=REF(C,1) AND C>=REF(C,2));持股:IF(VAR1L OR VAR2L OR VAR3L OR VAR4L OR VAR5L OR VAR6L OR VAR7L OR VAR8L OR VAR9L OR VARAL OR VARBL OR VARCL,牛线,DRAWNULL),COLORRED,LINETHICK1;VARDL:=(C<REF(C,1) AND C<REF(C,2));VAREL:=(REF(VARDL,1) AND C>=REF(C,1) AND C<=REF(C,2));VARFL:=(REF(VAREL,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L0:=(REF(VARFL,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L1:=(REF(VAR1L0,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L2:=(REF(VAR1L1,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L3:=(REF(VAR1L2,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L4:=(REF(VAR1L3,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L5:=(REF(VAR1L4,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L6:=(REF(VAR1L5,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L7:=(REF(VAR1L6,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L8:=(REF(VAR1L7,1) AND C>=REF(C,1) AND C<=REF(C,2));持币:IF(VARDL OR VAREL OR VARFL OR VAR1L0 OR VAR1L1 OR VAR1L2 OR VAR1L3 OR VAR1L4 OR VAR1L5 OR VAR1L6 OR VAR1L7 OR VAR1L8,牛线,DRAWNULL),COLORGREEN,LINETHICK1;V5日涨跌%: (C-REF(CLOSE,5))/REF(CLOSE,5)*100,COLORWHITE,NODRAW; V10日涨跌%:(C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORYELLOW,NODRAW;V30日涨跌%:(C-REF(CLOSE,30))/REF(CLOSE,30)*100,COLORMAGENTA,NODRAW; STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C>=O,C,O,2.5,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2.5,0),COLOR454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1.5,0),COLOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,0.5,0),COLOR858500;STICKLINE(C<O,H,L,0,0),COLOR959500;VAR2:=EMA(VAR1,9);VAR3:=(CLOSE*2.5/100+CLOSE);VAR4:EMA(C,3), LINETHICK4,POINTDOT;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(CLO SE,1)),6,1)*100;VAR1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLO SE,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)*10 0;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)-LO W),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 ANDCLOSE<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 AND CLOSE<6.28 OR CLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 ANDVOL<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), COLORYELLOW;DRAWTEXT(VAR2D>0,L,'大方神针'),COLORRED;DRAWICON(COUNT(REF(VAR4,1)<REF(VAR4,2),5)=5 ANDVAR4>REF(VAR4,1),L*0.98,5);DRAWICON(FILTER(COUNT(VAR6<0,5)AND CROSS(VAR6,0)ANDVARF>REF(VARF,1)AND C>O,3),L,11);DRAWICON(FILTER(REF(VAR4,1)>REF(VAR4,2)AND VAR4<REF(VAR4,1)AND VARF>17 AND VAR1>VAR2,5),H,12);DRAWICON(阻力价>REF(阻力价,1)AND CROSS(阻力价,VAR3)ANDC<O,H*1.02,6);Y:=CLOSE/REF(CLOSE,1)>1.07;X:=VOL>MA(VOL,5);A1:=Y AND X;DRAWTEXT(A1,MA(CLOSE,5),'攻涨停'),COLORMAGENTA;Z:=CLOSE/REF(CLOSE,1)<0.93;W:=VOL<MA(VOL,5);A2:=Z AND W;DRAWTEXT(A2,MA(CLOSE,5),'小心跌停'),COLORGREEN;。