未来函数检测结果如下:
该公式包含未来函数:BARSNEXT
该公式包含未来函数:REFX
指标源码:
原理解析:
T赋值:HHVBARS(H,120)
HT赋值:上次T=0 AND C
LT赋值:上次L=HT+1日内L最低值距今天数
ZF赋值:(C-HT+1日前的C)/HT+1日前的C*100
DT赋值:上次ZF=HT+1日内ZF最低值距今天数
LT1:=上次LT=0 AND DT=0 AND ZF<-10距今天数
ZFA:=LT1日前的ZF
{股票指标网}
XZF赋值:REFX(ZF,BARSNEXT(LT1=0))
ZF2:=(C-LT1+1日前的C)/LT1+1日前的C*100
A赋值:ZF2/LT1日前的ZF的绝对值
HT1:=上次H=LT1+1日内H最高值 AND C>O AND RANGE(A,2,2.5距今天数)
EXT2:DRAWLINE(HT1=0,H,1日前的HT1=0,HT1日前的H,1),画黄色,DOTLINE
EXT1:DRAWLINE(HT=0 AND XZF<-10,H,LT1=0,HT日前的H,1),画红色,DOTLINE
ST赋值:上次EXT2!=DRAWNULL上穿0.5距今天数
XT赋值:上次EXT1!=DRAWNULL上穿0.5距今天数
GL赋值:(C/EXT2-1)*100
BL赋值:(EXT2/EXT1-1)*100
TJ:=BL>10 AND XT>ST AND C>O AND BL<22.8 AND GL>0.1
TJ1:=EVERY(C和O较大值>EXT1,ST+1)
TJ2:=C
XG赋值:C上穿EXT2 AND EXT1!=DRAWNULL AND TJ AND TJ1 AND 1日前的TJ2
当满足条件XG时,在C和O之间画柱状线
当满足条件XG时,在H和L之间画柱状线
当满足条件XG时,在L*0.95和1之间画图标
{
选股公式:
T赋值:HHVBARS(H,120)
HT赋值:上次T=0 AND C
LT赋值:上次L=HT+1日内L最低值距今天数
ZF赋值:(C-HT+1日前的C)/HT+1日前的C*100
DT赋值:上次ZF=HT+1日内ZF最低值距今天数
LT1:=上次LT=0 AND DT=0 AND ZF<-10距今天数
ZFA:=LT1日前的ZF
XZF赋值:REFX(ZF,BARSNEXT(LT1=0))
ZF2:=(C-LT1+1日前的C)/LT1+1日前的C*100
A赋值:ZF2/LT1日前的ZF的绝对值
HT1:=上次H=LT1+1日内H最高值 AND C>O AND RANGE(A,2,2.5距今天数)
EXT2:=DRAWLINE(HT1=0,H,1日前的HT1=0,HT1日前的H,1)
EXT1:=DRAWLINE(HT=0 AND XZF<-10,H,LT1=0,HT日前的H,1)
ST赋值:上次EXT2!=DRAWNULL上穿0.5距今天数
XT赋值:上次EXT1!=DRAWNULL上穿0.5距今天数
GL赋值:(C/EXT2-1)*100
BL赋值:(EXT2/EXT1-1)*100
TJ:=BL>10 AND XT>ST AND C>O AND BL<22.8 AND GL>0.1
TJ1:=EVERY(C和O较大值>EXT1,ST+1)
TJ2:=C
XG:C上穿EXT2 AND EXT1!=DRAWNULL AND TJ AND TJ1 AND 1日前的TJ2
}