通达信潜龙升天中线买入指标源码副图+选股
B1:=EMA((0.668*REF(A1,1)+0.333*A1),1);
短空:B1,LINETHICK3,COLORGREEN;
RSI1:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),4,1)/SMA(ABS(CLOSE-LC),4,1)*100;
RSI5:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI7:=SMA(MAX(CLOSE-LC,0),8,1)/SMA(ABS(CLOSE-LC),8,1)*100;
RSI9:=SMA(MAX(CLOSE-LC,0),10,1)/SMA(ABS(CLOSE-LC),10,1)*100;
RSI11:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI13:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
RSI15:=SMA(MAX(CLOSE-LC,0),16,1)/SMA(ABS(CLOSE-LC),16,1)*100;
RSI17:=SMA(MAX(CLOSE-LC,0),18,1)/SMA(ABS(CLOSE-LC),18,1)*100;
RSI19:=SMA(MAX(CLOSE-LC,0),20,1)/SMA(ABS(CLOSE-LC),20,1)*100;
RSI30:=SMA(MAX(CLOSE-LC,0),30,1)/SMA(ABS(CLOSE-LC),30,1)*100;
RSI50:=SMA(MAX(CLOSE-LC,0),50,1)/SMA(ABS(CLOSE-LC),50,1)*100;
RSI70:=SMA(MAX(CLOSE-LC,0),70,1)/SMA(ABS(CLOSE-LC),70,1)*100;
RSI90:=SMA(MAX(CLOSE-LC,0),90,1)/SMA(ABS(CLOSE-LC),90,1)*100;
RSI110:=SMA(MAX(CLOSE-LC,0),110,1)/SMA(ABS(CLOSE-LC),110,1)*100;
短线RSI:=(RSI1+RSI2+RSI3+RSI4+RSI5)/5,COLORWHITE;
长线RSI:=(RSI21+RSI30+RSI40+RSI50+RSI60+RSI70+RSI80+RSI90+RSI100+RSI110+RSI120)/11;
B:=CROSS(中线RSI,短线RSI);
A21:=LLV(L,21);
A41:=EMA(A11,5);
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
基础:DIFF< -0.1 AND DIFF>DEA;
STICKLINE(中线买入,0,2,4,0),,COLOR1010FF;
A41:=EMA(A11,5);
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
AA:=DIFF< -0.1 AND DIFF>DEA;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
B1赋值:EMA((0.668*1日前的A1+0.333*A1),1)
输出短空:B1, 线宽为3,画绿色
RSI1赋值:SMA(收盘价-LC和0较大值,2,1)/SMA(收盘价-LC的绝对值,2,1)*100
RSI3赋值:SMA(收盘价-LC和0较大值,4,1)/SMA(收盘价-LC的绝对值,4,1)*100
RSI5赋值:SMA(收盘价-LC和0较大值,6,1)/SMA(收盘价-LC的绝对值,6,1)*100
RSI7赋值:SMA(收盘价-LC和0较大值,8,1)/SMA(收盘价-LC的绝对值,8,1)*100
RSI9赋值:SMA(收盘价-LC和0较大值,10,1)/SMA(收盘价-LC的绝对值,10,1)*100
RSI11:=SMA(收盘价-LC和0较大值,12,1)/SMA(收盘价-LC的绝对值,12,1)*100
RSI13:=SMA(收盘价-LC和0较大值,14,1)/SMA(收盘价-LC的绝对值,14,1)*100
RSI15:=SMA(收盘价-LC和0较大值,16,1)/SMA(收盘价-LC的绝对值,16,1)*100
RSI17:=SMA(收盘价-LC和0较大值,18,1)/SMA(收盘价-LC的绝对值,18,1)*100
RSI19:=SMA(收盘价-LC和0较大值,20,1)/SMA(收盘价-LC的绝对值,20,1)*100
RSI30:=SMA(收盘价-LC和0较大值,30,1)/SMA(收盘价-LC的绝对值,30,1)*100
RSI50:=SMA(收盘价-LC和0较大值,50,1)/SMA(收盘价-LC的绝对值,50,1)*100
RSI70:=SMA(收盘价-LC和0较大值,70,1)/SMA(收盘价-LC的绝对值,70,1)*100
RSI90:=SMA(收盘价-LC和0较大值,90,1)/SMA(收盘价-LC的绝对值,90,1)*100
RSI110:=SMA(收盘价-LC和0较大值,110,1)/SMA(收盘价-LC的绝对值,110,1)*100
短线RSI赋值:(RSI1+RSI2+RSI3+RSI4+RSI5)/5,画白色
长线RSI赋值:(RSI21+RSI30+RSI40+RSI50+RSI60+RSI70+RSI80+RSI90+RSI100+RSI110+RSI120)/11
B赋值:中线RSI上穿短线RSI
A21赋值:21日内L最低值
A41赋值:A11的5日指数移动平均
DIFF := 收盘价的12日指数移动平均 - 收盘价的26日指数移动平均
输出基础:DIFF< -0.1 AND DIFF>DEA
当满足条件中线买入时,在0和2之间画柱状线
A41赋值:A11的5日指数移动平均
DIFF赋值:收盘价的12日指数移动平均 - 收盘价的26日指数移动平均
AA赋值:DIFF< -0.1 AND DIFF>DEA