来函数检测结果如下:
该公式没有未来函数
指标源码:
原理解析:
P赋值:13
S赋值:5
M赋值:1
输出DIFF:C的S日指数移动平均-C的P日指数移动平均
输出DEA:DIFF的M日指数移动平均,COLORRED
MAC输出D:2*(DIFF-DEA),COLORSTICK
P1:=P
S1:=S
DIFF1:C的S1日指数移动平均-C的P1日指数移动平均
DEA1:DIFF的M日指数移动平均,COLORRED
MACD1:=2*(DIFF1-DEA1),COLORSTICK
MACD2:=DEA
STICKLINE(MACD2<=1日前的MACD2AND MACD2>0,0,MACD2*50,3,0 ),COLOR00AAFF
STICKLINE(MACD2<=1日前的MACD2AND MACD2>0,0,MACD2*50,1.8,0 ),COLOR00BBFF
STICKLINE(MACD2<=1日前的MACD2AND MACD2>0,0,MACD2*50,1.3,0 ),COLOR00CCFF
STICKLINE(MACD2<=1日前的MACD2AND MACD2>0,0,MACD2*50,1.2,0 ),COLOR00DDFF
STICKLINE(MACD2<=1日前的MACD2AND MACD2>0,0,MACD2*50,1,0 ),COLOR00EEFF
STICKLINE(MACD2<=1日前的MACD2AND MACD2>0,0,MACD2*50,0.5,0 ),COLOR00FFFF
STICKLINE(MACD2>1日前的MACD2AND MACD2>0,0,MACD2*50,3.4,0 ),COLOR0000AA
STICKLINE(MACD2>1日前的MACD2AND MACD2>0,0,MACD2*50,3.2,0),COLOR0011BB
STICKLINE(MACD2>1日前的MACD2AND MACD2>0,0,MACD2*50,3,0),COLOR0022CC
STICKLINE(MACD2>1日前的MACD2AND MACD2>0,0,MACD2*50,2,0),COLOR0033DD
STICKLINE(MACD2>1日前的MACD2AND MACD2>0,0,MACD2*50,1,0),COLOR0044EE
STICKLINE(MACD2>1日前的MACD2AND MACD2>0,0,MACD2*50,0.5,0),COLOR0055FF
STICKLINE(MACD2>1日前的MACD2AND MACD2<=0,0,MACD2*50,3.4,0),COLORAA00BB
STICKLINE(MACD2>1日前的MACD2AND MACD2<=0,0,MACD2*50,3.2,0),COLORBB11BB
STICKLINE(MACD2>1日前的MACD2AND MACD2<=0,0,MACD2*50,3,0),COLORCC22BB
STICKLINE(MACD2>1日前的MACD2AND MACD2<=0,0,MACD2*50,2,0 ),COLORDD33BB
STICKLINE(MACD2>1日前的MACD2AND MACD2<=0,0,MACD2*50,1,0),COLOREE44BB
STICKLINE(MACD2>1日前的MACD2AND MACD2<=0,0,MACD2*50,0.5,0 ),COLORFF55BB
STICKLINE(MACD2<=1日前的MACD2AND MACD2<=0,0,MACD2*50,3,0 ),COLORFF7700
STICKLINE(MACD2<=1日前的MACD2AND MACD2<=0,0,MACD2*50,1.5 ,0 ),COLORFF8811
STICKLINE(MACD2<=1日前的MACD2AND MACD2<=0,0,MACD2*50,1.2,0 ),COLORFFAA22
STICKLINE(MACD2<=1日前的MACD2AND MACD2<=0,0,MACD2*50,1.0 ,0 ),COLORFFBB33
STICKLINE(MACD2<=1日前的MACD2AND MACD2<=0,0,MACD2*50,0.8 ,0 ),COLORFFDD44
STICKLINE(MACD2<=1日前的MACD2AND MACD2<=0,0,MACD2*50,0.5 ,0 ),COLORFFFF55
VARA赋值:1日前的最低价
VARB赋值:SMA(最低价-VARA的绝对值,3,1)/SMA(最低价-VARA和0较大值,3,1)*100
如果CLOSE*1.3返回VARB*10否则返回VARB/10
VARD赋值:30日内最低价最低值
VARE赋值:30日内VARC最高值
VARF赋值:IF(CLOSE的58日简单移动平均,1,0)
VARG赋值:EMA(IF(最低价<=VARD,(VARC+VARE*2)/2,0),3)/618*VARF
如果VARG>28返回28否则返回VARG
当满足条件VARH>-120时,在0和VARH之间画柱状线
如果吸筹返回1否则返回0
RSV:=(((CLOSE - 9日内最低价最低值) / (9日内最高价最高值 - 9日内最低价最低值)) * 100)
RSV的3日[1日权重]移动平均
K的3日[1日权重]移动平均
J赋值:3*K-2*D
X赋值:2日内J最低值=8日内J最低值
输出买入时机: IF(J上穿3,65,0),COLORFF00FF,LINETHICK3
当满足条件买入时机时,在70.1和' 跟庄'位置书写文字
VA赋值:(2*C+H+L)/4
VB赋值:5日内L最低值
VC赋值:5日内H最高值
输出红线上穿买:EMA((VA-VB)/(VC-VB)*100,5),COLORRED
输出红线下穿卖:红线上穿买的3日指数移动平均,COLORFFFF00
输出趋势:3*SMA((CLOSE-27日内最低价最低值)/(27日内最高价最高值-27日内最低价最低值)*100,5,1)-2*SMA(SMA((CLOSE-27日内最低价最低值)/(27日内最高价最高值-27日内最低价最低值)*100,5,1),3,1),COLOR00FFFF
如果趋势<=3返回20否则返回0
如果趋势< 5返回40否则返回0
N赋值:5
VAR1:4*SMA((CLOSE-N日内最低价最低值)/(N日内最高价最高值-N日内最低价最低值)*100,5,1)- 3*SMA(SMA((CLOSE-N日内最低价最低值)/(N日内最高价最高值-N日内最低价最低值)*100,5,1),3.2,1),画黄色,LINETHICK0
VAR2:8,COLORGREEN,LINETHICK0
输出上升在即: IF(VAR1上穿VAR2,80,0),STICK,COLOR0000CC,LINETHICK2
如果VAR1<=8返回25否则返回0
DRAWTEXT(VAR1上穿VAR2 ,80,'准备买入'),COLOR00FFFF
J1:=J的相反数
AA赋值:REF(C的1日简单移动平均,10)>REF(C的60日简单移动平均,10)
输出买点:J上穿J1 AND AA
当满足条件买点时,在0和-30之间画柱状线
当满足条件买点时,在-20和-30之间画柱状线
当满足条件买点时,在-20和-30之间画柱状线
当满足条件买点时,在-35和'财神'位置书写文字