来函数检测结果如下:
该公式没有未来函数
指标源码:
原理解析:
A1赋值:收盘价的7日指数移动平均-收盘价的21日指数移动平均
B1赋值:EMA((0.668*1日前的A1+0.333*A1),1)
如果A1>=B1返回A1否则返回B1
输出短空:B1, 线宽为3,画绿色
LC赋值:1日前的收盘价
RSI1赋值:SMA(收盘价-LC和0较大值,2,1)/SMA(收盘价-LC的绝对值,2,1)*100
RSI2赋值:SMA(收盘价-LC和0较大值,3,1)/SMA(收盘价-LC的绝对值,3,1)*100
RSI3赋值:SMA(收盘价-LC和0较大值,4,1)/SMA(收盘价-LC的绝对值,4,1)*100
RSI4赋值:SMA(收盘价-LC和0较大值,5,1)/SMA(收盘价-LC的绝对值,5,1)*100
RSI5赋值:SMA(收盘价-LC和0较大值,6,1)/SMA(收盘价-LC的绝对值,6,1)*100
RSI6赋值:SMA(收盘价-LC和0较大值,7,1)/SMA(收盘价-LC的绝对值,7,1)*100
RSI7赋值:SMA(收盘价-LC和0较大值,8,1)/SMA(收盘价-LC的绝对值,8,1)*100
RSI8赋值:SMA(收盘价-LC和0较大值,9,1)/SMA(收盘价-LC的绝对值,9,1)*100
RSI9赋值:SMA(收盘价-LC和0较大值,10,1)/SMA(收盘价-LC的绝对值,10,1)*100
RSI10:=SMA(收盘价-LC和0较大值,11,1)/SMA(收盘价-LC的绝对值,11,1)*100
RSI11:=SMA(收盘价-LC和0较大值,12,1)/SMA(收盘价-LC的绝对值,12,1)*100
RSI12:=SMA(收盘价-LC和0较大值,13,1)/SMA(收盘价-LC的绝对值,13,1)*100
RSI13:=SMA(收盘价-LC和0较大值,14,1)/SMA(收盘价-LC的绝对值,14,1)*100
RSI14:=SMA(收盘价-LC和0较大值,15,1)/SMA(收盘价-LC的绝对值,15,1)*100
RSI15:=SMA(收盘价-LC和0较大值,16,1)/SMA(收盘价-LC的绝对值,16,1)*100
RSI16:=SMA(收盘价-LC和0较大值,17,1)/SMA(收盘价-LC的绝对值,17,1)*100
RSI17:=SMA(收盘价-LC和0较大值,18,1)/SMA(收盘价-LC的绝对值,18,1)*100
RSI18:=SMA(收盘价-LC和0较大值,19,1)/SMA(收盘价-LC的绝对值,19,1)*100
RSI19:=SMA(收盘价-LC和0较大值,20,1)/SMA(收盘价-LC的绝对值,20,1)*100
RSI21:=SMA(收盘价-LC和0较大值,21,1)/SMA(收盘价-LC的绝对值,21,1)*100
RSI30:=SMA(收盘价-LC和0较大值,30,1)/SMA(收盘价-LC的绝对值,30,1)*100
RSI40:=SMA(收盘价-LC和0较大值,40,1)/SMA(收盘价-LC的绝对值,40,1)*100
RSI50:=SMA(收盘价-LC和0较大值,50,1)/SMA(收盘价-LC的绝对值,50,1)*100
RSI60:=SMA(收盘价-LC和0较大值,60,1)/SMA(收盘价-LC的绝对值,60,1)*100
RSI70:=SMA(收盘价-LC和0较大值,70,1)/SMA(收盘价-LC的绝对值,70,1)*100
RSI80:=SMA(收盘价-LC和0较大值,80,1)/SMA(收盘价-LC的绝对值,80,1)*100
RSI90:=SMA(收盘价-LC和0较大值,90,1)/SMA(收盘价-LC的绝对值,90,1)*100
RSI100:=SMA(收盘价-LC和0较大值,100,1)/SMA(收盘价-LC的绝对值,100,1)*100
RSI110:=SMA(收盘价-LC和0较大值,110,1)/SMA(收盘价-LC的绝对值,110,1)*100
RSI120:=SMA(收盘价-LC和0较大值,120,1)/SMA(收盘价-LC的绝对值,120,1)*100
短线RSI赋值:(RSI1+RSI2+RSI3+RSI4+RSI5)/5,画白色
中线RSI赋值:(RSI6+ RSI7+ RSI8+ RSI9+ RSI10+ RSI11+ RSI12+ RSI13+ RSI14+ RSI15+ RSI16+ RSI17+ RSI18+ RSI19+ RSI21)/15,画黄色
长线RSI赋值:(RSI21+RSI30+RSI40+RSI50+RSI60+RSI70+RSI80+RSI90+RSI100+RSI110+RSI120)/11
A赋值:短线RSI上穿中线RSI
B赋值:中线RSI上穿短线RSI
A11:=3*EMA((C-30日内L最低值)/(30日内H最高值-30日内L最低值)*100,5)-2*EMA((C-30日内L最低值)/(30日内H最高值-30日内L最低值)*100,5)
A21:=21日内L最低值
A31:=30日内L最低值
A41:=A11的5日指数移动平均
A51:=(34日内H最高值-C)/(34日内H最高值-34日内L最低值)*100
DIFF := 收盘价的12日指数移动平均 - 收盘价的26日指数移动平均
DEA :=DIFF的9日指数移动平均
输出基础:DIFF< -0.1 AND DIFF>DEA
输出中线买入:A11上穿A41 AND (A51-A41)>40 AND 基础
当满足条件中线买入时,在0和2之间画柱状线