未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
指标源码:
原理解析:
X_1赋值:MAX(DYNAINFO(3),DYNAINFO(5))
X_2赋值:MIN(DYNAINFO(3),DYNAINFO(6))
X_3赋值:X_1-X_2
X_4赋值:X_2+X_3*7/8
X_5赋值:X_2+X_3*0.5/8
DRAWICON(LONGCROSS(X_5,CLOSE,2),CLOSE,1)
DRAWICON(LONGCROSS(CLOSE,X_4,2),CLOSE,2)
X_6赋值:开盘价
X_7赋值:DYNAINFO(5)
X_8赋值:DYNAINFO(6)
X_9赋值:均价
X_10:=CLOSE
X_11:=X_10的有效数据周期数
X_12:=0的成交量*CLOSE日累和/0的成交量日累和
X_13:=X_10的X_11日简单移动平均
X_14:=X_13+2*X_10的3估算标准差
X_15:=X_13-2*X_10的3估算标准差
DRAWICON(X_12上穿X_13,X_12,38)
X_16:=TIME>93000
X_17:=X_10/1日前的CLOSE>1.02
X_18:=X_10/1日前的CLOSE<0.98
X_19:=(X_11日内X_10最高值-X_11日内X_10最低值)/X_10<0.05
成交量的30日[1日权重]移动平均
X_21:=(X_20-1日内X_20最低值,30))/(1日内X_20最高值,30)-1日内X_20最低值,30))>0.95
X_22:=X_17 OR X_18
X_23:=X_22=0 AND X_19 AND X_21 AND X_12上穿X_13
DRAWTEXT(X_23的10过滤,X_12,3),COLORYEL最低价
X_24:=X_22=0 AND X_19 AND X_21 AND CLOSE上穿X_12 AND CLOSE上穿X_13
DRAWTEXT(X_24的10过滤,X_12*0.99,4),COLORRED
FX1赋值:成交量/CLOSE/3
FX2赋值:SUM(IF(FX1>0.2 AND CLOSE>1日前的CLOSE,FX1,0),0)
FX3赋值:SUM(IF(FX1>0.2 AND CLOSE<1日前的CLOSE,FX1,0),0)
FX4赋值:FX2+FX3
FX5赋值:1
FX6赋值:FX2/FX3
FX7赋值:EMA((-100)*(34日内最高价最高值-CLOSE)/(34日内最高价最高值-34日内最低价最低值),4)+100
FX8赋值:MAX(DYNAINFO(3),DYNAINFO(5))
FX9赋值:MIN(DYNAINFO(3),DYNAINFO(6))
FX10:=FX8-FX9
FX11:=FX9+FX10*7/8
FX12:=FX9+FX10*0.5/8
FX13:=240的CLOSE*成交量日累和/240的成交量日累和
FX14:=CLOSE的有效数据周期数
FX15:=CLOSE的FX14日简单移动平均
FX16:=FX15+2*CLOSE的3估算标准差
FX17:=FX15-2*CLOSE的3估算标准差
FX18:=TIME>93000
FX19:=CLOSE/1日前的CLOSE>1.02
FX20:=CLOSE/1日前的CLOSE<0.98
FX21:=(FX14日内CLOSE最高值-FX14日内CLOSE最低值)/CLOSE<0.05
成交量的30日[1日权重]移动平均
FX23:=(FX22-1日内FX22最低值,30))/(1日内FX22最高值,30)-1日内FX22最低值,30))>0.95
FX24:=FX19 OR FX20
FX25:=FX24=0 AND FX21 AND FX23 AND FX13上穿FX15
如果MACD.DEA<0返回CLOSE否则返回DRAWNULL
FX26:=SUM(成交额,CLOSE的有效数据周期数)/SUM(成交量*100,CLOSE的有效数据周期数)
FX27:=CLOSE/FX26的20日指数移动平均
FX28:=CLOSE/FX26的60日指数移动平均
FX29:=CLOSE/FX26的120日指数移动平均
FX30:=1
1.02,NODRAW
FX31:=1.03
FX32:=FX27>FX28 AND FX27>1.003 AND FX28>FX29 AND CLOSE>CLOSE的20日指数移动平均 AND CLOSE的10日指数移动平均>CLOSE的20日指数移动平均 AND CLOSE的20日指数移动平均>CLOSE的60日指数移动平均
DRAWICON(FX27>FX28 AND FX28>FX29 AND CLOSE>CLOSE的20日指数移动平均 AND CLOSE的10日指数移动平均>CLOSE的20日指数移动平均 AND CLOSE的20日指数移动平均>CLOSE的60日指数移动平均 AND FX27=30日内FX27最高值 AND FX27上穿1.003,CLOSE,25)
DRAWICON(FX27上穿1.02,CLOSE,24)
DRAWICON(FX27上穿1.04,CLOSE,26)
FX36:=SUM(IF(CLOSE>1日前的CLOSE AND 成交量>4000,成交量/1000,0),0)
FX37:=SUM(IF(CLOSE<1日前的CLOSE AND 成交量>4000,成交量/1000,0),0)
FX38:=SUM(IF(CLOSE>1日前的CLOSE,成交量/1000,0),0)
FX39:=SUM(IF(CLOSE<1日前的CLOSE,成交量/1000,0),0)
FX40:=FX38-FX36
FX41:=FX39-FX37
FX42:=FX36
FX43:=FX37
FX44:=FX40
FX45:=FX41
FX46:=FX36-FX37
FX47:=FX40-FX41
FX48:=FX38-FX39
FX49:=CONST(MAX(FX42的绝对值,MAX(ABS(FX43),MAX(ABS(FX44),ABS(FX45)))))
输出地:FX13的50日指数移动平均/0.97,COLORGREEN,LINETHICK2
IF(地>1日前的地,地,DRAWNULL),COLORRED,LINETHICK2
输出平衡线:(FX13+地)/2,DOTLINE,COLORGREEN
FX50:=COUNT(成交量>4000 AND CLOSE>1日前的CLOSE,0)
输出黄次数:COUNT(成交量>DYNAINFO(16)*10 AND CLOSE>1日前的CLOSE,0),NODRAW,COLORYEL最低价
DRAWICON(FX50>1日前的FX50 AND 黄次数>1日前的黄次数 AND CLOSE上穿地,CLOSE,7)
当满足条件FX40>FX41 AND FX36>FX40 AND FX41>FX37时,在FX13和38之间画图标
H1赋值:MAX(DYNAINFO(3),DYNAINFO(5))
L1赋值:MIN(DYNAINFO(3),DYNAINFO(6))
P1赋值:H1-L1
输出阻力:L1+P1*7/8,COLORLIMAGENTA,DOTLINE
输出支撑:L1+P1*0.5/8,画青色,DOTLINE
输出中:(支撑+阻力)/2,COLORLIGRAY,POINTDOT,LINETHICK2
输出均价:0的V*C日累和/0的V日累和,COLORYEL最低价,DOTLINE,NODRAW
输出现价:CLOSE,COLORWHITE,LINETHICK1,NODRAW
DRAWTEXT(ISLASTBAR AND 现价,现价,STRCAT('←',CON2STR(现价,2))),COLORYEL最低价
STICKLINE(支撑上穿现价,支撑,中,0,-1),COLORYEL最低价
STICKLINE(现价上穿阻力,阻力,中,0,-1),COLORGREEN
DRAWTEXT(LONGCROSS(支撑,现价,2),C*0.9982,' 买'),COLORYEL最低价
DRAWTEXT(LONGCROSS(现价,阻力,2),C*1.0018,' 卖'),画青色,LINETHICK2
当满足条件C<支撑时,在支撑和C之间画柱状线
DRAWICON(支撑上穿现价,(支撑-中)/5+支撑,26)
DRAWICON(现价上穿阻力,阻力-(支撑-中)/5,15)
当满足条件 到最后交易的周期=8时,在阻力+0.003和'顶'位置书写文字
当满足条件 到最后交易的周期=8时,在支撑-0.003和'底'位置书写文字
DRAWTEXT( 到最后交易的周期=8,(支撑+阻力)/2,'中'),COLORLIRED,LINETHICK2
成交额赋值:V*C/100,NODRAW
A2赋值:SUM((IF(((成交额/8>20) AND (CLOSE>(1日前的CLOSE))),成交额,0)),0)
A3赋值:SUM((IF(((成交额/8>20) AND (CLOSE<(1日前的CLOSE))),成交额,0)),0)
A6赋值:(A2+A3)
A7赋值:IF((ISLASTBAR),((100*A2)/A6),0)
A8赋值:IF((ISLASTBAR),((100*A3)/A6),0)
DD1赋值:1
AAA1赋值:STRCAT(STRCAT('机构买',CON2STR((100*A2)/A6,0)),'%')
535648104730847185A2赋值:STRCAT(STRCAT('机构卖',CON2STR((100*A3)/A6,0)),'%')
535648104730847185A3赋值:STRCAT(STRCAT('机构总买入',CON2STR((100*(A2-A3))/A6,0)),'%')
当满足条件DD1=1时,在横轴0纵轴0.02位置书写文字
当满足条件DD1=1时,在横轴0纵轴0.13位置书写文字
当满足条件DD1=1时,在横轴0.842纵轴1位置书写文字
输出现手买:BUY成交量*现价*100/10000 COLOR0000FF,NODRAW
输出现手卖:SELL成交量*现价*100/10000 COLOR00FF00,NODRAW
合赋值:现手买的绝对值+ABS(现手卖)COLOR80FFFF,NODRAW
差赋值:现手买的绝对值-ABS(现手卖)COLOR80FFFF,NODRAW
MPB1赋值:现手买的绝对值/合*100
MPB2赋值:现手卖的绝对值/合*100
TESTSKIP(NOT(现手买 OR 现手卖 OR 合 OR 差 OR MPB1 OR MPB2)!=0)
DRAWRECTREL(595,1000,795,940,RGB(0,128,0))
DRAWRECTREL(595,995,795,945,RGB(0,148,0))
DRAWRECTREL(595,990,795,950,RGB(0,168,0))
DRAWRECTREL(595,985,795,955,RGB(0,188,0))
DRAWRECTREL(595,980,795,960,RGB(0,208,0))
DRAWRECTREL(595,975,795,965,RGB(0,228,0))
DRAWRECTREL(595,970,795,970,RGB(0,248,0))
DRAWRECTREL(595,1000,595+现手买*210/合,940,RGB(128,0,0))
DRAWRECTREL(595,995,595+现手买*210/合,945,RGB(148,0,0))
DRAWRECTREL(595,990,595+现手买*210/合,950,RGB(168,0,0))
DRAWRECTREL(595,985,595+现手买*210/合,955,RGB(188,0,0))
DRAWRECTREL(595,980,595+现手买*210/合,960,RGB(208,0,0))
DRAWRECTREL(595,975,595+现手买*210/合,965,RGB(228,0,0))
DRAWRECTREL(595,970,595+现手买*210/合,970,RGB(248,0,0))
DRAWRECTREL(595+现手买*210/合,940,595+现手买*210/合,1000,RGB(128,0,0))
DRAWRECTREL(795,940,795,1000,RGB(0,0.0,10))
DRAWRECTREL(594.8,939.8,594.8,1000,RGB(0,0,10))
DRAWRECTREL(594.8,939.8,594.8,939.8,RGB(0,0,10))
DRAWRECTREL(594.8,1000,594.8,1000,RGB(0,0,10))
DRAWTEXT_FIX(1,0.560,0.89,0,STRCAT(STRCAT('',CON2STR(现手买,1)),'万')),COLORRED
DRAWTEXT_FIX(1,0.800,0.89,0,STRCAT(STRCAT('',CON2STR(现手卖,1)),'万')),COLORGREEN
DRAWTEXT_FIX( 到最后交易的周期=1 AND(差)>0,0.678,0.888,0,STRCAT(' ',STRCAT(CON2STR(差,1),'万'))) COLORRED
DRAWTEXT_FIX( 到最后交易的周期=1 AND(差)<0,0.678,0.888,0,STRCAT(' ',STRCAT(CON2STR(差,1),'万'))) COLORGREEN,LINETHICK2
DRAWTEXT_FIX( 到最后交易的周期=1 AND(差)=0,0.678,0.888,0,STRCAT(' ',STRCAT(CON2STR(差,1),'万'))) COLOR80FFFF
DRAWTEXT_FIX(1,0.800,0.98,0,STRCAT(STRCAT(' ',CON2STR(MPB2,1)),'%')),COLORGREEN
DRAWTEXT_FIX(1,0.560,0.98,0,STRCAT(STRCAT('',CON2STR(MPB1,1)),'%')),COLORRED
市盈率:=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('利润同比: ',CON2STR(FINANCE(43),2))
收入同比:=STRCAT('收入同比: ',CON2STR(FINANCE(44),2))
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(财务预警,优质资产率),现金负债比))
当满足条件ISLASTBAR时,在横轴0.222纵轴0.96位置书写文字
D1赋值:YEAR AND MONTH AND DAY
AA1赋值:STRCAT(CON2STR(YEAR,0),'年')
AA2赋值:STRCAT(CON2STR(MONTH,0),'月')
AA3赋值:STRCAT(CON2STR(DAY,0),'日')
AA4赋值:STRCAT('星期',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日')))))))
AA赋值:STRCAT(STRCAT(STRCAT(AA1,AA2),STRCAT(AA3,AA4)),'')
当满足条件D1时,在横轴0.888纵轴0.001位置书写文字
MZ0赋值:(上次((HOUR=9距今天数 AND (MINUTE=31)))+1)
输出上穿分时:IF(((SETCODE<2) AND (CONST(MZ0)<241)),CONST(IF((TIME<1000),0日内CLOSE最高值,SUM((IF((TIME=1000),1,0)*0日内CLOSE最高值),0))),DRAWNULL),LINETHICK2,COLORLIRED
输出底支:IF(((SETCODE<2) AND (CONST(MZ0)<241)),CONST(IF((TIME<1000),0日内CLOSE最高值,SUM((IF((TIME=1000),1,0)*0日内CLOSE最低值),0))),DRAWNULL),LINETHICK2,COLORLIGREEN
当满足条件TIME=931 OR TIME=1000时,在上穿分时和底支之间画柱状线
分时上突赋值:C上穿上穿分时
上突赋值:C<上穿分时 AND 上穿分时>底支
当满足条件分时上突时,在C和5之间画图标
股价支撑线:=CLOSE的20日简单移动平均
输出底价线:股价支撑线-2*CLOSE的20估算标准差,NODRAW,COLORMAGENTA,LINETHICK2
DRAWTEXT_FIX(1,0.0001,0.00,0,STRCAT(STRCAT('【今日强势有效突破】',CON2STR(上穿分时,2)),' 元 买入稳赚')),COLORWHITE,LINETHICK1
DRAWTEXT_FIX(1,0.5001,0.00,0,STRCAT(STRCAT('【底部得到有效支撑】',CON2STR(底支,2)),' 元 可以参考')),COLORLIRED,LINETHICK1
所属板块赋值:STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT(' [行业]—',HYBLOCK),STRCAT(' [地域]—',DYBLOCK)),STRCAT(' [概念]—',GNBLOCK)))
当满足条件ISLASTBAR时,在横轴0.005纵轴0.05位置书写文字
当满足条件ISLASTBAR时,在横轴0.005纵轴0.15位置书写文字
E赋值:C的50日指数移动平均,COLORRED,LINETHICK2
开盘赋值:'辅助公式.开盘价#DAY',DOTLINE,COLORWHITE
当满足条件1时,在横轴0.5纵轴0.87位置书写文字
万手额赋值:C*100
DRAWTEXT_FIX(1,0.6,0.87,0,STRCAT('',STRCAT(VAR2STR(万手额,0),'万')))COLORGRAY
成交额1:=DYNAINFO(10)/100000000
DRAWTEXT_FIX(1,0.75,0.76,0,STRCAT('额:',STRCAT(VAR2STR(成交额1,2),'亿')))画青色
开盘金额:=开盘金额/10000
DRAWTEXT_FIX(1,0.75,0.69,0,STRCAT('开:',STRCAT(VAR2STR(开盘金额,0),'万')))画青色
流赋值:FINANCE(46)*C/100000000
DRAWTEXT_FIX(1,0.75,0.83,0,STRCAT('流:',STRCAT(VAR2STR(流,2),'亿')))COLORLIGREEN
换手Z赋值:成交额1/流*100,NODRAW
DRAWTEXT_FIX(1,0.75,0.89,0,STRCAT('换:',STRCAT(VAR2STR(换手Z,2),'%')))COLORLIGREEN