来函数检测结果如下:
该公式没有未来函数
指标源码:
原理解析:
N赋值:9
M赋值:9
A赋值:PERIOD
BL赋值:IF(A=0,150,IF(A=1,50,IF(A=2,30,IF(A=3,17,IF(A=4,15,IF(A=5,8,
IF(A=6,3,IF(A=7,2,IF(A=8,50,IF(A=9,3,1.3))))))))))
FM赋值:(收盘价的1.414*N+1日指数移动平均)
FCL赋值:IF(FM<=0.05,FM的绝对值+0.1,0)
DIF赋值:(收盘价的N日指数移动平均-收盘价的2*N+2日指数移动平均)/(FCL+FM)*100*BL,COLORLIRED,LINETHICK2
DEA赋值:DIF的N*0.75日指数移动平均,COLORGREEN,LINETHICK2
DRAWBAND(DEA,RGB(55,250,96),DIF,RGB(155,50,196))
ED赋值:(-0.4*4日前的C-0.4*3日前的C-1.1*2日前的C+0.9*1日前的C+2*C)
ED的4日[1日权重]移动平均
RSV的3日[1日权重]移动平均
K的3日[1日权重]移动平均
输出J:2*K-1*D,COLORGREEN,LINETHICK1
W赋值:IF(J>1日前的J,J,DRAWNULL)
{股票指标网}
DRAWBAND(W,RGB(240,50,50),W,0),LINETHICK2
DRAWBAND(K,RGB(240,50,50),D,RGB(50,98,240))
MAC输出D:2*(DIF-DEA),COLORRED,COLORSTICK
输出橙色转强买:(MACD<0 AND MACD>1日前的MACD,MACD),COLOR00FFFF,NODRAW
STICKLINE(MACD>0 AND MACD<1日前的MACD,0,MACD,0.1,0)COLOR00FF00
STICKLINE(MACD>0 AND MACD>1日前的MACD,0,MACD,0.1,0)COLORRED
STICKLINE(MACD<0 AND MACD<1日前的MACD,0,MACD,0.1,0),COLORCYAN
STICKLINE(MACD<0 AND MACD>1日前的MACD,0,MACD,0.1,0),COLOR00FFFF