未来函数检测结果如下:
该公式包含未来函数:BACKSET
指标源码:
原理解析:
X3赋值:收盘价的55日指数移动平均
STICKLINE(((C >= X3) AND (C >= O)),H,L,0,1),COLOR0000AA
STICKLINE(((C >= X3) AND (C >= O)),O,C,3,0),COLOR0000AA
STICKLINE(((C >= X3) AND (C >= O)),O,C,2.3,0),COLOR0000CC
STICKLINE(((C >= X3) AND (C >= O)),O,C,1.8,0),COLOR0000FF
STICKLINE(((C >= X3) AND (C >= O)),O,C,1,0),COLORCC66FF
STICKLINE(((C >= X3) AND (C <= O)),H,L,0,1),COLOR0000AA
STICKLINE(((C >= X3) AND (C <= O)),O,C,3,0),COLOR0000AA
STICKLINE(((C >= X3) AND (C <= O)),O,C,2.3,0),COLOR0000CC
STICKLINE(((C >= X3) AND (C <= O)),O,C,1.8,0),COLOR0000FF
STICKLINE(((C >= X3) AND (C <= O)),O,C,1,0),COLORCC66FF
STICKLINE(((C <= X3) AND (C >= O)),H,L,0,1),COLORFF6600
STICKLINE(((C <= X3) AND (C >= O)),O,C,3,0),COLORFF6600
STICKLINE(((C <= X3) AND (C >= O)),O,C,2.3,0),COLORFF9900
STICKLINE(((C <= X3) AND (C >= O)),O,C,1.8,0),COLORFFCC00
STICKLINE(((C <= X3) AND (C >= O)),O,C,1,0),COLORFFFF00
STICKLINE(((C <= X3) AND (C <= O)),H,L,0,0),COLORFF6600
STICKLINE(((C <= X3) AND (C <= O)),O,C,3,0),COLORFF6600
STICKLINE(((C <= X3) AND (C <= O)),O,C,2.3,0),COLORFF9900
STICKLINE(((C <= X3) AND (C <= O)),O,C,1.8,0),COLORFFCC00
STICKLINE(((C <= X3) AND (C <= O)),O,C,1,0),COLORFFFF00
Z1赋值:8日前的H=2*8+1日内H最高值
Y1赋值:Z1的8过滤
X1赋值:BACKSET(Y1,8+1)
W1赋值:X1的8过滤
R11赋值:BACKSET(ISLASTBAR,上次W1距今天数+1)
S11赋值:R11>1日前的R11
DRAWLINE(W1,H,S11,H,1),COLORBLACK, 线宽为2
Z2赋值:8日前的L=2*8+1日内L最低值
Y2赋值:Z2的8过滤
X2赋值:BACKSET(Y2,8+1)
W2赋值:X2的8过滤
T11赋值:BACKSET(ISLASTBAR,上次W2距今天数+1)
U11赋值:T11>1日前的T11
DRAWLINE(W2,L,U11,L,1),COLORBLACK, 线宽为2
M赋值:INTPART(3*8/5)
Z12:=M日前的H=2*M+1日内H最高值
Y12:=Z12的M过滤
X12:=BACKSET(Y12,M+1)
W12:=X12的M过滤
R112:=BACKSET(ISLASTBAR,上次W12距今天数+1)
S112:=R112>1日前的R112
DRAWLINE(W12,H,S112,H,1),画红色, 线宽为2
Z22:=M日前的L=2*M+1日内L最低值
Y22:=Z22的M过滤
X22:=BACKSET(Y22,M+1)
W22:=X22的M过滤
T112:=BACKSET(ISLASTBAR,上次W22距今天数+1)
U112:=T112>1日前的T112
DRAWLINE(W22,L,U112,L,1),画红色, 线宽为2
VAR1111:=BACKSET(2日前的最高价=5日内最高价最高值,3)
VAR2222赋值:VAR1111上穿0.9
VAR3333赋值:BACKSET(2日前的最低价=5日内最低价最低值,3)
VAR4444赋值:VAR3333上穿0.9
压力赋值: REF(最高价,上次VAR2222距今天数)
STICKLINE(收盘价,REF(最高价,上次VAR2222距今天数),REF (最高价,上次VAR2222距今天数),0.5,1),COLORBLACK, 线宽为2
支撑赋值: REF(最低价,上次VAR4444距今天数)
STICKLINE(收盘价,REF(最低价,上次VAR4444距今天数),REF (最低价,上次VAR4444距今天数),0.5,1),COLORBLACK, 线宽为2