未来函数检测结果如下:
该公式包含未来函数:#WEEK
指标源码:

原理解析:
VOLUME赋值:成交量,成交量STICK
MAVOL5赋值:VOLUME的5日简单移动平均
MAVOL21赋值:VOLUME的21日简单移动平均
MAVOL65赋值:VOLUME的65日简单移动平均
STICKLINE(MAVOL5上穿MAVOL21,5,8,2,0),画白色
周DIF赋值:("MACD.DIF#WEEK")
周DEA赋值:("MACD.DEA#WEEK")
周MACD赋值:2*(周DIF-周DEA)
DIFF赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
DEA赋值:DIFF的9日指数移动平均,COLORFFFF00
MACD赋值:(DIFF-DEA)*2
输出ABC1:上次DIFF< 1日前的DIFF距今天数,COLOR00FFFF,LINETHICK1
ABC11:ABC1*-1,COLOR00FFFF,LINETHICK1
输出A2:上次DEA< 1日前的DEA距今天数,COLORRED,LINETHICK1
A22:A2*-1,COLORRED,LINETHICK1
DRAWBAND(A2,RGB(150,50,20),ABC1,RGB(150,100,150))
DRAWBAND(A22,RGB(150,100,150),ABC11,RGB(150,50,20))
当满足条件1时,在横轴0.75纵轴0.92位置书写文字
STICKLINE(周MACD>1日前的周MACD AND 周MACD>0,-5,5,18,0),COLORRED
STICKLINE(周MACD< 1日前的周MACD AND 周MACD>0,-5,5,18,0),画黄色
STICKLINE(周MACD>1日前的周MACD AND 周MACD< 0,-5,5,18,0),COLORLIRED
STICKLINE(周MACD< 1日前的周MACD AND 周MACD< 0,-5,5,18,0), 画蓝色
STICKLINE(MACD>1日前的MACD AND MACD>0,-3,3,3.5,1),COLORRED
STICKLINE(MACD>1日前的MACD AND MACD< 0,-3,3,3.5,1),COLORLIRED
STICKLINE(MACD< 1日前的MACD AND MACD>0,-3,3,3.5,1),画黄色
STICKLINE(MACD< 1日前的MACD AND MACD< 0,-3,3,3.5,1), 画蓝色
DIIFF赋值:(ABC1的5日指数移动平均 - ABC1的10日指数移动平均)
DEAA:=DIIFF的3日指数移动平均
K线动能赋值:(DIIFF-DEAA),画黄色
STICKLINE((K线动能 > 0),-1,1,1.5,0),COLOR0000FF
STICKLINE((K线动能 < 0),-1,1,1.5,0),COLOR00FF00
STICKLINE(DIFF上穿DEA,0,0.04,5,1),画黄色
STICKLINE(DIFF上穿DEA,0.04,0.08,5,0),COLORRED
STICKLINE(DIFF上穿DEA,0.08,0.12,5,1),画黄色
STICKLINE(DIFF上穿DEA,0.12,0.16,4,1),COLORRED
STICKLINE(DIFF上穿DEA,0.16,0.2,3,1),COLORRED
STICKLINE(DIFF上穿DEA,0.2,0.24,2,0),画白色
STICKLINE(DIFF上穿DEA AND DIFF< 0,ABC11,0,2,0),COLORRED
STICKLINE(DIFF上穿DEA AND DIFF>0,0,ABC1,2,0),COLORRED
STICKLINE(DEA上穿DIFF AND DIFF< 0,ABC11,0,2,0), 画蓝色
STICKLINE(DEA上穿DIFF AND DIFF>0,0,ABC1,2,0), 画蓝色
MACD底背离: STICKLINE(ABC1+1日前的收盘价>收盘价 AND DIFF>ABC1+1日前的DIFF AND DIFF上穿DEA,-25,25,0.00001,0),画黄色
当满足条件ABC1>0 AND A2>0时,在A2和ABC1之间画柱状线
当满足条件ABC1>0 AND A2>0时,在A22和ABC11之间画柱状线
当满足条件ABC1>0 AND A2>0时,在0和ABC1之间画柱状线
当满足条件ABC1>0 AND A2>0时,在0和ABC11之间画柱状线
DRAWTEXT(DIFF上穿DEA AND DIFF< 0,-5,'〇'),COLORCYAN
DRAWTEXT(DIFF上穿DEA AND DIFF< 0,-12,'〇'),COLORCYAN
DRAWTEXT(DIFF上穿DEA AND DIFF>0,5,'〇'),COLORGREEN
DRAWTEXT(DIFF上穿DEA AND DIFF>0,12,'〇'),COLORGREEN
当满足条件A2>ABC1 AND A22< ABC11 AND ABC1=0 AND ABC11=0时,在A2和'∈'位置书写文字
当满足条件A2>ABC1 AND A22< ABC11 AND ABC1=0 AND ABC11=0时,在0和'∈'位置书写文字
当满足条件A2>ABC1 AND A22< ABC11 AND ABC1=0 AND ABC11=0时,在A22和'∈'位置书写文字
STICKLINE(DIFF上穿DEA AND DIFF< 0,ABC11,0,2,0),COLORRED
STICKLINE(DIFF上穿DEA AND DIFF>0,0,ABC1,2,0),COLORRED
STICKLINE(DEA上穿DIFF AND DIFF< 0,ABC11,0,2,0), 画蓝色
STICKLINE(DEA上穿DIFF AND DIFF>0,0,ABC1,2,0), 画蓝色
N赋值:5
M1赋值:5
RSV赋值:(收盘价-N日内最低价最低值)/(N日内最高价最高值-N日内最低价最低值)*100
RSV的5日[1日权重]移动平均
K的M1日[5日权重]移动平均
J赋值:3*K-2*D
VARB2赋值:(RSV/2+22)*1
量赋值:成交量的13日指数移动平均
资金赋值:AMOUNT的13日指数移动平均
过滤赋值:((资金 /量) / 100)
提纯赋值:(((收盘价 -过滤) / 过滤) * 100)
黄金赋值:((提纯 < (0)))
如果黄金 AND RSV< VARB2-2返回50否则返回0
如果黄金 AND RSV>VARB2返回80否则返回120
上涨分界赋值:25
KDJ提前金叉:(上涨分界上穿低买),COLORFF00FF,NODRAW
当满足条件KDJ提前金叉时,在0和'⊙'位置书写文字

声明:本站所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理。