通达信【强弱新解】精品短线指标
n1:=6;
n2:=12;
n3:=24;
STICKLINE(C>0,0,100,5,0),COLOR600020;
LC := REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORFFFFFF;
RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100,COLORFFFFFF,LINETHICK1;
RSI3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100,COLORFFFFFF,LINETHICK1;
镜:SMA((HHV(H,7)-C)/(HHV(H,7)-LLV(L,7))*100,2,1);
{股票指标网}
A:20,POINTDOT;
D:80,POINTDOT;
VAR1:=RSI2<RSI3;
STICKLINE(RSI2>RSI3,RSI2,RSI3,1,0),COLOR0000EA;
STICKLINE(RSI2<RSI3,RSI2,RSI3,1,0),COLOR00FF00;
STICKLINE(RSI1>RSI2,RSI1,RSI2,0,0),COLORFFFFFF;
STICKLINE(RSI1<RSI2,RSI1,RSI2,0,0),COLORFFFFFF;
STICKLINE(CROSS(RSI1 ,90),0,100,0,0),COLORGREEN;
STICKLINE(CROSS(RSI1 ,10),0,100,0,0),COLOR05BDFA;
DRAWICON(CROSS(RSI1 ,90),95,2);
DRAWICON(CROSS(RSI1 ,10),5,1);
STICKLINE(COUNT(VAR1,10)=9 AND CROSS(RSI2,RSI3) ,20,80,1,0),COLORF00FF0;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N1赋值:6
N2赋值:12
N3赋值:24
当满足条件C>0时,在0和100之间画柱状线
LC := 1日前的收盘价
输出
RSI1:SMA(收盘价-LC和0较大值,N1,1)/SMA(收盘价-LC的绝对值,N1,1)*100,COLORFFFFFF
输出
RSI2:SMA(收盘价-LC和0较大值,N2,1)/SMA(收盘价-LC的绝对值,N2,1)*100,COLORFFFFFF,LINETHICK1
输出
RSI3:SMA(收盘价-LC和0较大值,N3,1)/SMA(收盘价-LC的绝对值,N3,1)*100,COLORFFFFFF,LINETHICK1
输出
镜:SMA((7日内H最高值-C)/(7日内H最高值-7日内L最低值)*100,2,1)
输出
{股票指标网}
A:20,POINTDOT
输出
D:80,POINTDOT
VAR1赋值:RSI2当满足条件RSI2>RSI3时,在RSI2和RSI3之间画柱状线
当满足条件RSI2当满足条件RSI1>RSI2时,在RSI1和RSI2之间画柱状线
当满足条件RSI1
STICKLINE(RSI1 上穿90,0,100,0,0),画绿色
STICKLINE(RSI1 上穿10,0,100,0,0),COLOR05BDFA
DRAWICON(RSI1 上穿90,95,2)
DRAWICON(RSI1 上穿10,5,1)
STICKLINE(统计10日满足VAR1的天数=9 AND RSI2上穿RSI3 ,20,80,1,0),COLORF00FF0