未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:DHIGH
该公式包含未来函数:DOPEN
该公式包含未来函数:DLOW
该公式包含未来函数:DCLOSE
该公式包含未来函数:DVOL
该公式包含未来函数:REFX
指标源码:
原理解析:
如果DATE>TOTALBARSCOUNT返回TOTALBARSCOUNT否则返回DATE
如果 到最后交易的周期>DA1返回DATE否则返回DA1
HI赋值:REFDATE(DA日内H最高值,DATE)
LO赋值:REFDATE(DA日内L最低值,DATE)
如果 到最后交易的周期<=DA返回C否则返回DRAWNULL
GZ赋值:EXP(LN(HI/LO)/10)
LH1赋值:SUM(IF(C1>=(HI/GZ),V,0),DA)
LH2赋值:SUM(IF(C1>=(HI/POW(GZ,2)) AND C1<(HI/GZ),V,0),DA)
LH3赋值:SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA)
LH4赋值:SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA)
LH5赋值:SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA)
LH6赋值:SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA)
LH7赋值:SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA)
LH8赋值:SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA)
LH9赋值:SUM(IF(C1>=(LO*GZ) AND C1
L2赋值:REFDATE(DA日内LH2最高值,DATE),LINETHICK0
L3赋值:REFDATE(DA日内LH3最高值,DATE),LINETHICK0
L4赋值:REFDATE(DA日内LH4最高值,DATE)
L5赋值:REFDATE(DA日内LH5最高值,DATE)
L6赋值:REFDATE(DA日内LH6最高值,DATE)
L7赋值:REFDATE(DA日内LH7最高值,DATE)
L8赋值:REFDATE(DA日内LH8最高值,DATE)
L9赋值:REFDATE(DA日内LH9最高值,DATE)
L10:=REFDATE(DA日内LH10最高值,DATE)
SS赋值:(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10)
STICKLINE(CEILING(DA*L1/SS)*3>= 到最后交易的周期,HI*99/100,HI/GZ,9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L2/SS)*3>= 到最后交易的周期,HI/POW(GZ,1)*99/100,HI/POW(GZ,2),9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L3/SS)*3>= 到最后交易的周期,HI/POW(GZ,2)*99/100,HI/POW(GZ,3),9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L4/SS)*3>= 到最后交易的周期,HI/POW(GZ,3)*99/100,HI/POW(GZ,4),9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L5/SS)*3>= 到最后交易的周期,HI/POW(GZ,4)*99/100,HI/POW(GZ,5),9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L6/SS)*3>= 到最后交易的周期,HI/POW(GZ,5)*99/100,HI/POW(GZ,6),9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L7/SS)*3>= 到最后交易的周期,HI/POW(GZ,6)*99/100,HI/POW(GZ,7),9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L8/SS)*3>= 到最后交易的周期,LO*POW(GZ,2),LO*POW(GZ,3)*99/100,9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L9/SS)*3>= 到最后交易的周期,LO*POW(GZ,1),LO*POW(GZ,2)*99/100,9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L10/SS)*3>= 到最后交易的周期,LO,LO*POW(GZ,1)*99/100,9,0)COLOR3C3C3A,LINETHICK3
当满足条件D开盘价
当满足条件D开盘价>DCLOSE时,在D开盘价和DCLOSE之间画柱状线
DRAWKLINE(HIGH,开盘价,LOW,CLOSE)
输出{以下是涨跌周期大阳线}
趋势大阳线:((DCLOSE/D开盘价>=1.07) AND DCLOSE>D开盘价)
输出趋势假阳线:((DCLOSE/D开盘价>=1.01) AND DCLOSE
DYX11赋值:上次趋势大阳线距今天数
GH1赋值:趋势大阳线的DATE过滤
BH1赋值:上次趋势大阳线距今天数
STICKLINE(趋势大阳线,BH1日前的DHIGH,BH1日前的DLOW,4,0),COLOR0F03A0
STICKLINE(趋势大阳线,BH1日前的D开盘价,BH1日前的DCLOSE,4,0),COLOR3207FC
STICKLINE(DCLOSE,BH1日前的DLOW,BH1日前的D开盘价,4,0),COLORGREEN
STICKLINE(DCLOSE,BH1日前的DCLOSE,BH1日前的DHIGH,4,0),COLORMAGENTA
{涨停板回马枪}
ZT赋值:DCLOSE/1日前的DCLOSE>1.05
XH赋值:ZT的DATE过滤
BH赋值:上次ZT距今天数
STICKLINE(ZT,BH日前的D开盘价,BH日前的DCLOSE,1,0),COLORYELLOW
当满足条件C>=O时,在H和L之间画柱状线
当满足条件C<=O时,在H和L之间画柱状线
输出{以下是常规周期大阳线}
常规大阳线:((CLOSE/开盘价>=1.07) AND CLOSE>开盘价)
输出常规假阳线:((CLOSE/开盘价>=1.01) AND CLOSE<开盘价)
当满足条件CLOSE/开盘价>=1.07时,在LOW和'大阳线'位置书写文字
DRAWKLINE(HIGH,开盘价,LOW,CLOSE)
{黄金分割 普通 等系坐标}
DRAWRECTREL(990,2,998,188,RGB(0,150,180)),NOFRAME
DRAWRECTREL(990,188,998,375,RGB(200,200,0)),NOFRAME
DRAWRECTREL(990,375,998,491,RGB(100,200,0)),NOFRAME
DRAWRECTREL(990,491,998,607,RGB(200,10,80)),NOFRAME
DRAWRECTREL(990,607,998,794,RGB(150,0,0)),NOFRAME
DRAWRECTREL(990,794,998,982,RGB(150,150,150)),NOFRAME
输出当期收盘:DCLOSE,NODRAW
输出当期最高:DHIGH,NODRAW
输出当期最低:DLOW,NODRAW
输出当期上影:DHIGH-D开盘价和DCLOSE较大值,NODRAW
输出当期下影:D开盘价和DCLOSE的较小值-DLOW,NODRAW
输出当期实体:DCLOSE-D开盘价的绝对值,NODRAW
输出当期涨幅:(DCLOSE-D开盘价)/D开盘价*100,NODRAW
输出当期波幅:(DHIGH-DLOW)/DLOW*100,NODRAW
输出涨跌周期统计:上次O=D开盘价 AND D成交量!=1日前的D成交量距今天数+1,NODRAW,COLORRED,COLORWHITE
DRAWNUMBER(REFX(涨跌周期统计,1)<=涨跌周期统计 OR ISLASTBAR ,DHIGH,涨跌周期统计),DRAWABOVE
DRAWTEXT_FIX(1,0.12,0.991,1,STRCAT('多空涨跌周期统计数据:',CON2STR(涨跌周期统计,2))),COLORWHITE
日量比赋值:V/1日前的V,COLORRED,LINETHICK4,成交量STICK
日换手赋值:1的成交量日累和*100/当前流通股本,NODRAW
输出回头波:(现价-DYNAINFO(5))/DYNAINFO(5)*100,LINETHICK0
输出攻击波:(现价-DYNAINFO(6))/DYNAINFO(6)*100,LINETHICK0
{空间距离色块,普通等系坐标,自下而上,颜色越深风险越大}
DRAWRECTREL(0,0.1,10,999,RGB(255,0,0)),NOFRAME
{6}
DRAWRECTREL(0,1, 10,888,RGB(255,0,50)),NOFRAME
{5}
DRAWRECTREL(0,100,10,777,RGB(255,0,100)),NOFRAME
{4}
DRAWRECTREL(0,200,10,666,RGB(255,0,150)),NOFRAME
{3}
DRAWRECTREL(0,300,10,555,RGB(255,0,200)),NOFRAME
{2}
DRAWRECTREL(0,400,10,444,RGB(255,0,250)),NOFRAME
{1}
DRAWRECTREL(0,500,10,333,RGB(255,0,255)),NOFRAME
{0}
DRAWRECTREL(0,600,10,444,RGB(0,255,250)),NOFRAME
{1}