来函数检测结果如下:
该公式没有未来函数
指标源码:
原理解析:
如果130>TOTALBARSCOUNT返回TOTALBARSCOUNT否则返回130
如果CURRBARSCOUNT>DA1返回0否则返回DA1
HI赋值:REFDATE(DA日内H最高值,DATE)
LO赋值:REFDATE(DA日内L最低值,DATE)
如果CURRBARSCOUNT<=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>=CURRBARSCOUNT,HI*99/100,HI/GZ,9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*99/100,HI/POW(GZ,2),9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*99/100,HI/POW(GZ,3),9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*99/100,HI/POW(GZ,4),9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*99/100,HI/POW(GZ,5),9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*99/100,HI/POW(GZ,6),9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*99/100,HI/POW(GZ,7),9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3)*99/100,9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2)*99/100,9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)*99/100,9,0)COLOR3C3C3A,LINETHICK3
DRAWKLINE(H,O,L,C)
N赋值:20
N1:=7
N2:=69
T1赋值:IF((DATE<=1341231),1,0)
M3赋值:CLOSE的3日指数移动平均
输出M8:CLOSE的8日指数移动平均,COLOR008000
输出M13:M8的13日指数移动平均,COLOR0000FF
输出M62:M8的55日指数移动平均,COLORF0F000
VAR1赋值:M13的62日指数移动平均
M81:M62的81日指数移动平均,COLOR00FFFF
输出M144:VAR1的144日指数移动平均,LINETHICK2,COLORGREEN
输出M250:VAR1的250日指数移动平均,POINTDOT,LINETHICK2,COLORF00FF0
VAR2赋值:(CLOSE+HIGH+LOW)/(3)
VAR3赋值:(VAR2的10日指数移动平均)*(T1)
VAR4赋值:(1日前的VAR3)*(T1)
STICKLINE((VAR3>VAR4),VAR3,VAR4,4,0),COLOR00FFFF
STICKLINE((VAR3
VAR6赋值:CLOSE的N日简单移动平均+((2)*(CLOSE的N估算标准差))*(T1)
DRAWTEXT(VAR3上穿VAR4,(VAR3)*(0.98),'↑买'),COLORFFFFFF
DRAWTEXT(VAR5上穿VAR6,(HIGH)*(1.04),'↓卖'),COLOR008000
VAR7赋值:1日前的CLOSE
VAR8赋值:((SMA(CLOSE-VAR7和0较大值,N1,1))/(SMA(CLOSE-VAR7的绝对值,N1,1)))*(100)
VAR9赋值:N2上穿VAR8
VARA赋值:(VAR9的4过滤)*(T1)
DRAWTEXT(VARA,(HIGH)*(1.04),'↓卖'),COLORFFFFFF
VARB赋值:((2)*(CLOSE)+HIGH+LOW)/(4)
VARC赋值:34日内LOW最低值
VARD赋值:34日内HIGH最高值
VARE赋值:(EMA(((VARB-VAR1)/(VAR5-VAR1))*(100),7))*(T1)
VARF赋值:(EMA((0.667)*(1日前的VARE)+(0.333)*(VARE),5))*(T1)
DRAWTEXT(IF(((COUNT((CLOSE<1日前的CLOSE),8))/(8)>0.6) AND (成交量>=(1.5)*(成交量的5日简单移动平均)) AND COUNT((VARE>=VARF),3) AND (1日前的LOW=120日内LOW最低值),1,0),LOW,'●买进'),COLORFF00FF
DRAWTEXT(IF(((COUNT((CLOSE<1日前的CLOSE),13))/(13)>0.6) AND COUNT((VARE>VARF),6) AND (5日前的LOW=120日内LOW最低值) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>1日前的CLOSE),1,0),LOW,'●买进'),COLOR00FFFF
VAR10:=(CLOSE的80日简单移动平均-(CLOSE的10日简单移动平均)/(3))*(T1)
DRAWTEXT(IF((CLOSE