未来函数检测结果如下:
该公式包含未来函数:BACKSET
指标源码:
原理解析:
{MACD支撑压力参考线}
DIF赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
DEA赋值:DIF的9日指数移动平均
输出MACD:(DIF-DEA)*2,画绿色
MACD1:EMA((DIF-DEA)*2,3)COLORFF20FF
M赋值:INTPART(3*20/5)
A12赋值:M日前的MACD=2*M+1日内MACD最高值
B12赋值:A12的M过滤
C12赋值:BACKSET(B12,M+1)
D12赋值:C12的M过滤
{高点}
R112赋值:BACKSET(ISLASTBAR,上次D12距今天数+1)
S112赋值:R112>1日前的R112
M1:=INTPART(3*10/5)
M2:=M1日前的MACD=2*M1+1日内MACD最高值
M3:=M2的M1过滤
M4:=BACKSET(M3,M1+1)
M5:=M4的M1过滤
M6:=BACKSET(ISLASTBAR,上次M5距今天数+1)
M7:=M6>1日前的M6
输出趋势3:DRAWLINE(M5 ,MACD,M7,MACD,1),POINTDOT
M10:=INTPART(3*15/5)
M20:=M10日前的MACD=2*M10+1日内MACD最高值
M30:=M20的M10过滤
M40:=BACKSET(M30,M10+1)
M50:=M40的M10过滤
M60:=BACKSET(ISLASTBAR,上次M50距今天数+1)
M70:=M60>1日前的M60
趋势30:DRAWLINE(M50 ,MACD,M70,MACD,1),POINTDOT
M100:=INTPART(3*20/5)
M200:=M100日前的MACD=2*M100+1日内MACD最高值
M300:=M200的M100过滤
M400:=BACKSET(M300,M100+1)
M500:=M400的M100过滤
M600:=BACKSET(ISLASTBAR,上次M500距今天数+1)
M700:=M600>1日前的M600
趋势300:DRAWLINE(M500 ,MACD,M700,MACD,1),POINTDOT
M1M赋值:INTPART(3*30/5)
M2M赋值:M1M日前的MACD=2*M1M+1日内MACD最高值
M3M赋值:M2M的M1M过滤
M4M赋值:BACKSET(M3M,M1M+1)
M5M赋值:M4M的M1M过滤
M6M赋值:BACKSET(ISLASTBAR,上次M5M距今天数+1)
M7M赋值:M6M>1日前的M6M
趋势3输出M:DRAWLINE(M5M ,MACD,M7M,MACD,1),POINTDOT
A22赋值:M日前的MACD=2*M+1日内MACD最低值
B22赋值:A22的M过滤
C22赋值:BACKSET(B22,M+1)
D22赋值:C22的M过滤
{低点}
T112赋值:BACKSET(ISLASTBAR,上次D22距今天数+1)
U112赋值:T112>1日前的T112
输出底线:DRAWLINE(D22,MACD,U112,MACD,1),COLORCD7F32,POINTDOT
MB:=INTPART(3*10/5)
A22A:=MB日前的MACD=2*MB+1日内MACD最低值
B22A:=A22A的MB过滤
C22A:=BACKSET(B22A,MB+1)
D22A:=C22A的MB过滤
T112A赋值:BACKSET(ISLASTBAR,上次D22A距今天数+1)
U112A:=T112A>1日前的T112A
底线2:DRAWLINE(D22A,MACD,U112A,MACD,1),COLORCD7F32,POINTDOT