内容导航:
1、通达信预测指标公式无未来
2、通达信最准无未来数据指标
推荐阅读:通达信预测未来走势公式
每日公式解答
通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信预测指标公式无未来
REFLINE:0,20,50,80,100;
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:SMA(RSV,3,1),PRECIS2;
D:SMA(K,3,1);
J:3*K-2*D,PRECIS2;
拐点:((9/7*ref(j,1)-2*ref(k,1)+12/7*ref(d,1))/100)*(HHV(H,9)-LLV(L,9))+LLV(L,9),PRECIS2,colorEE88FF,linethick0;
强100a:=((9/7*100-2*ref(k,1)+12/7*ref(d,1))/100)*(HHV(H,9)-LLV(L,9))+LLV(L,9);
强100:IF(强100a<=HHV(H,9),强100a,((9/7*100-2*ref(k,1)+12/7*ref(d,1))/100)*(强100a-LLV(L,9))+LLV(L,9)),PRECIS2,color0088FF,linethick0;
弱10a:=((9/7*10-2*ref(k,1)+12/7*ref(d,1))/100)*(HHV(H,9)-LLV(L,9))+LLV(L,9);
弱10:IF(弱10a>=LLV(L,9),弱10a,((9/7*10-2*ref(k,1)+12/7*ref(d,1))/100)*(HHV(H,9)-弱10a)+弱10a),PRECIS2,colorFF8800,linethick0;
50,dotline,color00eeee;
10,dotline,ColorDDDD00;
100,dotline,Color5555DD;
A:=PERIOD;
N:=IF(A=0,1,IF(A=1,5,IF(A=2,15,IF(A=3,30,IF(A=4,60,IF(A=5,240,DRAWNULL))))));
M:=IF(N=1,IF(MOD(FROMOPEN,1)=0,1,
MOD(FROMOPEN,1)),IF(N=5,IF(MOD(FROMOPEN,5)=0,5,
MOD(FROMOPEN,5)),IF(N=15,IF(MOD(FROMOPEN,15)=0,15,
MOD(FROMOPEN,15)),IF(N=30,IF(MOD(FROMOPEN,30)=0,30,
MOD(FROMOPEN,30)),IF(N=60,IF(MOD(FROMOPEN,60)=0,60,
MOD(FROMOPEN,60)),IF(N=240,FROMOPEN,DRAWNULL))))));
现量:VOL,NODRAW;
虚拟:IF(CURRBARSCOUNT=0,V*N/M,DRAWNULL),NODRAW,COLORFFFF00;
STICKLINE(CURRBARSCOUNT=0ANDN,虚拟,0,10,-1),COLORFFFF00;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,10,0),COLOR0099FF;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,8,0),COLOR11AAFF;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,6,0),COLOR22BBFF;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,4.2,0),COLOR33CCFF;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3.3,0),COLOR44DDFF;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,2.2,0),COLOR55EEFF;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,0.6,0),COLOR66FFFF;
STICKLINE(CLOSE>=REF(CLOSE,1),0,VOL,10,0),COLOR880000;
STICKLINE(CLOSE>=REF(CLOSE,1),0,VOL,8,0),COLOR991100;
STICKLINE(CLOSE>=REF(CLOSE,1),0,VOL,6,0),COLORAA2200;
STICKLINE(CLOSE>=REF(CLOSE,1),0,VOL,4.2,0),COLORBB3300;
STICKLINE(CLOSE>=REF(CLOSE,1),0,VOL,3.3,0),COLORCC4400;
STICKLINE(CLOSE>=REF(CLOSE,1),0,VOL,2.2,0),COLORDD5500;
STICKLINE(CLOSE>=REF(CLOSE,1),0,VOL,1.2,0),COLOREE6600;
STICKLINE(CLOSE>=REF(CLOSE,1),0,VOL,0.6,0),COLORFF7700;
建仓成本:MAXCYC,precis2,LINETHICK0,COLORFFBB77;
心理价位:DMA(AMOUNT/(100*VOL),VOL/(100*FINANCE2(37)))*1.12,precis2,LINETHICK0,COLORC78EFF;
DRAWTEXTREL(60,470,’○建仓成本:’+NUMTOSTRN(建仓成本,2)+’元’),LINETHICK5,COLORFFBB77;
DRAWTEXTREL(60,660,’◎心理价位:’+NUMTOSTRN(心理价位,2)+’元’),LINETHICK5,COLORC78EFF;
散户线:100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),COLORGREEN,LINETHICK2;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
主力线:EMA(J,6),COLORRED,LINETHICK2;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
吸筹:STICKLINE(VAR9>-120,0,VAR9,2,5),COLORMAGENTA;
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:CEILING(SMA(AA5,13,8)),COLORFF00FF;
AA6:=SMA(AA3,21,8);
买观注:STICKLINE(走势-AA6<-65,0,7,15,1);
DRAWICON(FILTER(J>REF(J,1)AND走势>=REF(走势,1)AND走势<25,5),走势,3);
卖观注:STICKLINE(走势-AA6>85,98,90,15,1),COLORFFFF00;
DRAWICON(FILTER(J<REF(J,1)AND走势<=REF(走势,1)ANDJ>85,5),J,6);
二、通达信最准无未来数据指标
VAR1F:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);
VAR21:=SMA(VAR1F,3,1);
趋势:SMA(VAR21,3,1),COLOR0000FF,LINETHICK2;
人气:SMA(趋势,3,1),coloryellow,LINETHICK2;
出击:IF(CROSS(趋势,人气)AND(趋势<30),20,0),COLOR0000FF,LINETHICK2;
短卖:IF(CROSS(人气,趋势)AND(人气>75),85,100),COLOR008000,LINETHICK2;
A:=IF((CLOSE>126.32),(AMOUNT/100000),VOL);
主力:MA(A,4),LINETHICK0,coloryellow;
游资:MA(A,8),LINETHICK0,colorgreen;
大户:MA(A,16),LINETHICK0,colorred;
散户:MA(A,32),LINETHICK0,colorliblue;
主力比例:CEILING(((主力/(((主力+游资)+大户)+散户))*100)),LINETHICK0,coloryellow;
游资比例:CEILING(((游资/(((主力+游资)+大户)+散户))*100)),LINETHICK0,colorgreen;
大户比例:CEILING(((大户/(((主力+游资)+大户)+散户))*100)),LINETHICK0,colorred;
散户比例:CEILING(((散户/(((主力+游资)+大户)+散户))*100)),LINETHICK0,colorliblue;
警戒线:MA(A,180),colormagenta;
STICKLINE((主力>0),0,主力,3,0),COLOR009CFF;
STICKLINE((主力>0),0,主力,2.8,0),COLOR009CFF;
STICKLINE((主力>0),0,主力,2.5,0),COLOR00C0FF;
STICKLINE((主力>0),0,主力,1.5,0),COLOR00D1FF;
STICKLINE((主力>0),0,主力,1,0),COLOR00EAFF;
STICKLINE((主力>0),0,主力,0.7,0),COLOR00FFFF;
DRAWTEXT(CROSS(主力,游资),主力,’始’);
DRAWTEXT(CROSS(游资,主力),游资,’终’);
DRAWGBKLAST(DYNAINFO(3)<DYNAINFO(7){OPEN},STRIP(RGB(50,0,150),RGB(150,0,50),1));
DRAWGBKLAST({CLOSE}DYNAINFO(3)>DYNAINFO(7){OPEN},STRIP(RGB(50,0,150),RGB(150,0,50),1));
{所属板块和基本面}
报告日期:=FINANCE2(1);
所属板块:=BKNAME;
总股本:=FINANCE2(35)/10000;
流通股:=FINANCE2(37)/10000;
限售股:=FINANCE2(35)/10000-FINANCE2(37)/10000;
收益:=FINANCE2(3);
净资产:=FINANCE2(4);
净利润率:=PFFIN(1657,0);
净资产收益率:=FINANCE2(5);
公积金:=FINANCE2(7);
净利润同比:=FINANCE2(10);
主营收同比:=FINANCE2(11);
市净率:=DYNAINFO(58);
市盈率:=DYNAINFO(39);
上市交易日:=BARSCOUNT(C);
毛利润率:=FINANCE2(12);
资产负债率:=PFFIN(1701,0);
DRAWTEXTABS(12,5,’所属板块:’+所属板块),COLORYELLOW;
DRAWTEXTABS(12,20,’总股本:’+NUMTOSTRN(总股本,2)+’亿’),COLORYELLOW;
DRAWTEXTABS(12,35,’流通股:’+NUMTOSTRN(流通股,2)+’亿’),COLORBF3EFF;
DRAWTEXTABS(12,50,’限售股:’+NUMTOSTRN(限售股,2)+’亿’),COLORYELLOW;
DRAWTEXTABS(12,65,’上市交易日:’+上市交易日),COLORYELLOW;
DRAWTEXTABS(8,95,’【财务报告日期】:’+NUMTOSTRN(报告日期,0)+’日’),COLORBF3EFF;
DRAWTEXTABS(150,20,’收益:’+NUMTOSTRN(收益,2)+’元’),COLORYELLOW;
DRAWTEXTABS(150,35,’公积金:’+NUMTOSTRN(公积金,2)+’元’),LINETHICK1,COLORYELLOW;
DRAWTEXTABS(150,50,’市盈率:’+NUMTOSTRN(市盈率,0)+’倍’),LINETHICK2,COLORBF3EFF;
DRAWTEXTABS(150,65,’市净率:’+NUMTOSTRN(市净率,0)+’倍’),LINETHICK2,COLORBF3EFF;
DRAWTEXTABS(277,20,’历史最高:’+HHV(HIGH,0)),COLORYELLOW;
DRAWTEXTABS(477,20,’历史最低:’+LLV(LOW,0)),COLORYELLOW;
DRAWTEXTABS(12,127,’净利润率:’+NUMTOSTRN(净利润率,2)+’%’),LINETHICK3,COLORYELLOW;
DRAWTEXTABS(12,157,’净利润同比:’+NUMTOSTRN(净利润同比,2)+’%’),LINETHICK3,COLORYELLOW;
DRAWTEXTABS(12,187,’主营收同比:’+NUMTOSTRN(主营收同比,2)+’%’),LINETHICK3,COLORYELLOW;
DRAWTEXTABS(12,217,’销售毛利率:’+NUMTOSTRN(毛利润率,2)+’%’),LINETHICK3,COLORYELLOW;
DRAWTEXTABS(227,157,’资产负债率:’+NUMTOSTRN(资产负债率,2)+’%’),LINETHICK3,COLOR00FF00;
DRAWTEXTABS(227,127,’净资产收益率:’+NUMTOSTRN(净资产收益率,2)+’%’),LINETHICK3,COLORYELLOW;
{三年复合净利润}
年末净利润:=PFFIN(1272,3);
三年前净利润:=PFFIN(1272,15);
三年复合增长率:(POW(年末净利润/三年前净利润,1/3)-1)*100,LINETHICK2,COLORred;
DRAWTEXTABS(227,187,’三年复合增长率:’+NUMTOSTRN(三年复合增长率,2)+’%’),LINETHICK3,COLORBF3EFF;
{年报季报,N需要随着年度更改}
N:=2017;
年报:=PFFININ(1001,N-1,1231);
去年增长率:=PFFININ(1604,N-1,1231);
去年收益率:=PFFININ(1002,N-1,1231);
一季收益率:=PFFININ(1002,N,0331);
二季收益率:=PFFININ(1002,N,0630);
三季收益率:=PFFININ(1002,N,0930);
四季收益率:=PFFININ(1002,N,1231);
一季增长率:=PFFININ(1604,N,0331);
二季增长率:=PFFININ(1604,N,0630);
三季增长率:=PFFININ(1604,N,0930);
四季增长率:=PFFININ(1604,N,1231);
DRAWTEXTREL(677,120,’2017净利润同比:’+去年增长率),LINETHICK1,Coloryellow;
DRAWTEXTREL(850,120,’2017净资产收益:’+去年收益率),LINETHICK1,Coloryellow;
DRAWTEXTREL(677,180,’一季净利润同比:’+一季增长率),LINETHICK1,Coloryellow;
DRAWTEXTREL(677,240,’二季净利润同比:’+二季增长率),LINETHICK1,Coloryellow;
DRAWTEXTREL(677,300,’三季净利润同比:’+三季增长率),LINETHICK1,Coloryellow;
DRAWTEXTREL(677,360,’四季净利润同比:’+四季增长率),LINETHICK1,Coloryellow;
DRAWTEXTREL(850,180,’一季收益率:’+一季收益率),LINETHICK1,Coloryellow;
DRAWTEXTREL(850,240,’二季收益率:’+二季收益率),LINETHICK1,Coloryellow;
DRAWTEXTREL(850,300,’三季收益率:’+三季收益率),LINETHICK1,Coloryellow;
DRAWTEXTREL(850,360,’四季收益率:’+四季收益率),LINETHICK1,Coloryellow;
{年报季报,N需要随着年度更改}
N:=2018;
年报:=PFFININ(1001,N-1,1231);
去年增长率:=PFFININ(1604,N-1,1231);
去年收益率:=PFFININ(1002,N-1,1231);
一季收益率:=PFFININ(1002,N,0331);
二季收益率:=PFFININ(1002,N,0630);
三季收益率:=PFFININ(1002,N,0930);
四季收益率:=PFFININ(1002,N,1231);
一季增长率:=PFFININ(1604,N,0331);
二季增长率:=PFFININ(1604,N,0630);
三季增长率:=PFFININ(1604,N,0930);
四季增长率:=PFFININ(1604,N,1231);
DRAWTEXTREL(677,500,’2018净利润同比:’+去年增长率),LINETHICK1,Coloryellow;
DRAWTEXTREL(850,500,’2018净资产收益:’+去年收益率),LINETHICK1,Coloryellow;
DRAWTEXTREL(677,560,’一季净利润同比:’+一季增长率),LINETHICK1,Coloryellow;
DRAWTEXTREL(677,620,’二季净利润同比:’+二季增长率),LINETHICK1,Coloryellow;
DRAWTEXTREL(677,680,’三季净利润同比:’+三季增长率),LINETHICK1,Coloryellow;
DRAWTEXTREL(677,740,’四季净利润同比:’+四季增长率),LINETHICK1,Coloryellow;
DRAWTEXTREL(850,560,’一季收益率:’+一季收益率),LINETHICK1,Coloryellow;
DRAWTEXTREL(850,620,’二季收益率:’+二季收益率),LINETHICK1,Coloryellow;
DRAWTEXTREL(850,680,’三季收益率:’+三季收益率),LINETHICK1,Coloryellow;
DRAWTEXTREL(850,740,’四季收益率:’+四季收益率),LINETHICK1,Coloryellow;
{获利盘与套牢盘}
F:=COST(5);J:=COST(95);
M:=COST(15);N:=COST(85);
F1:=(J-F)/(F+J)*100;M1:=(N-M)/(N+M)*100;
莸利比例:=WINNER(c)*100;
净资产:=FINANCE2(4);
获利盘:=WINNER(CLOSE)*100;
套牢盘:=100*(1-WINNER(C));
成本集中度90﹪:=F1;
成本集中度70﹪:=M1;
浮筹比例:=(winner(c*1.1)-winner(c*0.9))/winner(hhv(h,0))*100;
DRAWTEXTABS(277,50,’获利盘:’+NUMTOSTRN(获利盘,2)+’%’),LINETHICK2,COLORBF3EFF;
DRAWTEXTABS(477,50,’套牢盘:’+NUMTOSTRN(套牢盘,2)+’%’),LINETHICK0,Color00FF00;
{主力成本与压力}
n1:=barslast(cross(c,MA(c,60)));
n2:=barslast(cross(MA(c,60),c));
建仓成本:=MAXCYC;
压力位:=DMA(AMOUNT/(100*VOL),VOL/(100*FINANCE2(37)))*1.12;
强股排序:=if(n1<n2,n1+1,0);
DRAWTEXTABS(277,35,’庄家成本:’+NUMTOSTRN(建仓成本,2)+’元’),LINETHICK2,COLORBF3EFF;
DRAWTEXTABS(12,80,’上穿60均线:’+NUMTOSTRN(强股排序,0)+’天’),COLORYELLOW;
DRAWTEXTABS(477,35,’心理压力:’+NUMTOSTRN(压力位,2)+’元’),Color00FF00;
日换手率:=(VOL*100/CAPITAL);;
5日换手率:=SUM(日换手率,5);;
DRAWTEXTABS(477,65,’换手率:’+NUMTOSTRN(日换手率,2)+’%’),COLORYELLOW;
DRAWTEXTABS(277,65,’5日换手:’+NUMTOSTRN(5日换手率,2)+’%’),LINETHICK2,COLORBF3EFF;
{该股代码和名称当日股价和当日涨幅}
DRAWTEXTREL(277,850,STKLABEL+”+STKNAME+”+DYNAINFO(7)+’元’+”+DYNAINFO(14)*100+’%’),LINETHICK4,COLORFFFF00;
[源码注释]通达信公式动态翻译结果
VAR2赋值:(最高价 – 最低价)
VAR3赋值:(开盘价-收盘价)的绝对值
VAR4赋值:(最高价 – 如果(收阳线),返回收盘价,否则返回开盘价)
VAR5赋值:(如果(收阳线),返回开盘价,否则返回收盘价 – 最低价)
VAR6赋值:((VAR3 / VAR2) * 成交量(手))
VAR7赋值:((VAR4 / VAR2) * 成交量(手))
VAR8赋值:((VAR5 / VAR2) * 成交量(手))
QQ赋值:VAR6 >= VAR7 AND VAR6 >= VAR8 AND 收阴线
MMM赋值:收盘价 < 收盘价的5日指数移动平均 AND QQ
输出JJJ:收盘价 >= 收盘价的5日指数移动平均 AND QQ
JJ赋值:VAR6 >= VAR7 AND VAR6 >= VAR8 AND 收阳线
输出XX:VAR8 > VAR6 AND VAR8 > VAR7
输出MM:VAR7 > VAR6 AND VAR7 > VAR8
CDP赋值:1日前的最高价+最低价+收盘价/3
PT赋值:1日前的最高价-1日前的最低价
AH赋值:CDP+PT
NH赋值:CDP*2-1日前的最低价
输出平衡:1日前的最高价+最低价+收盘价/3,NODRAW
输出阻力二:如果AH>1日前的收盘价*1.1,返回1日前的收盘价*1.1,否则返回AH,NODRAW
输出阻力一:如果NH>阻力二,返回(阻力二-CDP)*0.618+CDP,否则返回NH,NODRAW
输出支撑一:CDP*2-1日前的最高价,NODRAW
输出支撑二:CDP-1日前的最高价-最低价,NODRAW
输出MA5:成交量(手)的5日简单移动平均,画白色,线宽为2
输出实量:成交量(手),VOLSTICK
当满足条件JJ=1时,在0和实量*0.9位置之间画柱状线,宽度为0.6,0不为0则画空心柱.,画黄色
当满足条件MM=1时,在0和实量*0.9位置之间画柱状线,宽度为0.6,0不为0则画空心柱.,画洋红色
当满足条件XX=1时,在0和实量*0.9位置之间画柱状线,宽度为0.6,0不为0则画空心柱.,画白色
当满足条件JJJ=1时,在0和实量*0.9位置之间画柱状线,宽度为0.6,0不为0则画空心柱.,画绿色
当满足条件MMM=1时,在0和实量*0.9位置之间画柱状线,宽度为0.6,0不为0则画空心柱.,画蓝色
当满足条件1时,在横轴0.01纵轴0.05位置书写文字COLOR00FFFF
当满足条件1时,在横轴0.1纵轴0.05位置书写文字,COLOR00FFFF,线宽为2
当满足条件1时,在横轴0.01纵轴0.15位置书写文字COLOR00FFFF
当满足条件1时,在横轴0.1纵轴0.15位置书写文字,COLORFF00FF,线宽为2
当满足条件1时,在横轴0.01纵轴0.25位置书写文字COLOR00FFFF
当满足条件1时,在横轴0.1纵轴0.25位置书写文字,COLORFFFFFF,线宽为2
当满足条件1时,在横轴0.01纵轴0.35位置书写文字COLOR00FFFF
当满足条件1时,在横轴0.1纵轴0.35位置书写文字,画绿色,线宽为2
当满足条件1时,在横轴0.01纵轴0.45位置书写文字COLOR00FFFF
当满足条件1时,在横轴0.1纵轴0.45位置书写文字,COLORFF9900,线宽为2
当满足条件1时,在横轴0.01纵轴0.55位置书写文字COLOR00FFFF
当满足条件1时,在横轴0.1纵轴0.55位置书写文字,COLOR00FF00,线宽为2
V2赋值:(最高价-最低价)
V3赋值:(开盘价-收盘价)的绝对值
V4赋值:(最高价-如果(收阳线),返回收盘价,否则返回开盘价)
V5赋值:(如果(收阳线),返回开盘价,否则返回收盘价-最低价)
V6赋值:((V3/V2)*成交量(手))
V7赋值:((V4/V2)*成交量(手))
V8赋值:((V5/V2)*成交量(手))
V9赋值:如果((成交量(手)/当前流通股本(手))>0.001),返回1,否则返回((成交量(手)/当前流通股本(手))*100)的对数的绝对值的指数
VA赋值:(((收盘价-收盘价的5日简单移动平均)/收盘价的5日简单移动平均)*100)
VB赋值:(((收盘价的5日简单移动平均>收盘价的10日简单移动平均) AND (收盘价的10日简单移动平均>收盘价的30日简单移动平均)) AND (收盘价的30日简单移动平均>收盘价的60日简单移动平均))
VC赋值:((收盘价的5日简单移动平均<收盘价的10日简单移动平均) AND (收盘价的10日简单移动平均<收盘价的30日简单移动平均))
输出逢高出货:当满足条件((((((((V7>V6)AND(VA>2))AND(V9>V8))AND(收盘价>收盘价的5日简单移动平均))AND(收盘价>收盘价的30日简单移动平均))AND(最高价>收盘价的60日简单移动平均))AND(成交量(手)>成交量(手)的5日简单移动平均))AND(V7>=成交量(手)的5日简单移动平均))时,在成交量(手)位置书写文字,COLORF00FF0
输出逢低跟进:当满足条件((((((V8>V6)AND(V8>V7))AND(VA<(0-2)))AND(收盘价<收盘价的30日简单移动平均))AND(V8<(成交量(手)的5日简单移动平均/2)))AND(成交量(手)的5日简单移动平均<成交量(手)的10日简单移动平均))时,在成交量(手)位置书写文字,COLORFF00FF
输出强势参与:当满足条件(((((V6>(成交量(手)的5日简单移动平均*2))AND(V6>=V7))AND(V6>=V8))AND(收阳线))OR((成交量(手)>(成交量(手)的5日简单移动平均*3))ANDVB))时,在成交量(手)位置书写文字,COLORCC99CC
输出空头释放:当满足条件((((((V6>=V7)AND(V6>=V8))AND(收阴线))AND((V6/成交量(手))>0.7))ANDVC)AND(V6>成交量(手)的5日简单移动平均))时,在(V6*2)位置书写文字,COLORF00FF0
推荐阅读:通达信预测未来走势公式
UEJ1:=5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1);
UEJ2:=3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
UEJ3:=SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1);
IDG:UEJ1-UEJ2-UEJ3;
UFF:AMA(IDG,0.2);
XG:CROSS(IDG,5),NODRAW;
DRAWICON(XG,IDG,1);
量比:(VOL*(TRADETIME+1))/(FIVEDAYVOL/5*(FROMOPEN+1));
预测量:IF(FIVEDAYVOL>0AND量比*REF(MA(VOL,5),1)>VOLANDFROMOPEN<241,量比*REF(MA(VOL,5),1),VOL);
实量:VOL;
预换:预测量/CAPITAL*100;
实换:VOL/CAPITAL*100;
MA5:MA(VOL,5);
MA20:MA(VOL,20);
短换:MA(实换,5);
长换:MA(实换,20);
换和:SUM(实换,10);
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<OPEN,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>93000andCURRENTTIME<150000andDYNAINFO(7)=CLOSEANDDYNAINFO(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;
VAR1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
VAR2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=SMA(VAR2,13,8);
看涨:SMA(VAR3,13,8),COLORRED;
看跌:SMA(VAR1,21,8),COLORFFFF00;
绿柱震仓:IF(看涨,1,DRAWNULL),COLORLIGREEN,LINETHICK9;
红柱买入:IF(看涨>看跌,1,DRAWNULL),COLORRED,LINETHICK9;
蓝柱卖出:IF(看涨<看跌,1,DRAWNULL),COLORFFFF00,LINETHICK9;
DRAWFLAGTEXT(1,V,'<*t=80FF00*><*c=0000FF*><*p=95*>’+datestr(date)+’ ‘+'<*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;};
每日公式解答:
股票公式编写要求:
MACD刚翻红的选股公式。
股票公式编写结果:
XG:CROSS(MACD.MACD>0,0.5);
评论(0)