通达信多周期rsi 图 源码
LC:=REF(CLOSE,1);
RSI11:MA(SMA(MAX(CLOSE-LC,0),11,1)/SMA(ABS(CLOSE-LC),11,1)*100,3),COLORRED;
RSI13:MA(SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100,3),COLORRED;
RSI15:MA(SMA(MAX(CLOSE-LC,0),15,1)/SMA(ABS(CLOSE-LC),15,1)*100,3),COLORRED;
RSI17:MA(SMA(MAX(CLOSE-LC,0),17,1)/SMA(ABS(CLOSE-LC),17,1)*100,3),COLORRED;
RSI20:MA(SMA(MAX(CLOSE-LC,0),20,1)/SMA(ABS(CLOSE-LC),20,1)*100,3),COLORRED;
RSI30:MA(SMA(MAX(CLOSE-LC,0),30,1)/SMA(ABS(CLOSE-LC),30,1)*100,3),COLORGREEN;
RSI35:MA(SMA(MAX(CLOSE-LC,0),35,1)/SMA(ABS(CLOSE-LC),35,1)*100,3),COLORGREEN;
RSI40:MA(SMA(MAX(CLOSE-LC,0),40,1)/SMA(ABS(CLOSE-LC),40,1)*100,3),COLORGREEN;
RSI45:MA(SMA(MAX(CLOSE-LC,0),45,1)/SMA(ABS(CLOSE-LC),45,1)*100,3),COLORGREEN;
RSI50:MA(SMA(MAX(CLOSE-LC,0),50,1)/SMA(ABS(CLOSE-LC),50,1)*100,3),COLORGREEN;
RSI100:SMA(MAX(CLOSE-LC,0),100,1)/SMA(ABS(CLOSE-LC),100,1)*100,COLORYELLOW;
RSI150:SMA(MAX(CLOSE-LC,0),150,1)/SMA(ABS(CLOSE-LC),150,1)*100,COLORYELLOW;
RSI200:SMA(MAX(CLOSE-LC,0),200,1)/SMA(ABS(CLOSE-LC),200,1)*100,COLORYELLOW;
RSI250:SMA(MAX(CLOSE-LC,0),250,1)/SMA(ABS(CLOSE-LC),250,1)*100,COLORYELLOW;
RSI300:SMA(MAX(CLOSE-LC,0),300,1)/SMA(ABS(CLOSE-LC),300,1)*100,COLORYELLOW;
50,POINTDOT;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
LC赋值:1日前的收盘价
输出RSI11:MA(SMA(收盘价-LC和0较大值,11,1)/SMA(收盘价-LC的绝对值,11,1)*100,3),画红色
输出RSI13:MA(SMA(收盘价-LC和0较大值,13,1)/SMA(收盘价-LC的绝对值,13,1)*100,3),画红色
输出RSI15:MA(SMA(收盘价-LC和0较大值,15,1)/SMA(收盘价-LC的绝对值,15,1)*100,3),画红色
输出RSI17:MA(SMA(收盘价-LC和0较大值,17,1)/SMA(收盘价-LC的绝对值,17,1)*100,3),画红色
输出RSI20:MA(SMA(收盘价-LC和0较大值,20,1)/SMA(收盘价-LC的绝对值,20,1)*100,3),画红色
输出RSI30:MA(SMA(收盘价-LC和0较大值,30,1)/SMA(收盘价-LC的绝对值,30,1)*100,3),画绿色
输出RSI35:MA(SMA(收盘价-LC和0较大值,35,1)/SMA(收盘价-LC的绝对值,35,1)*100,3),画绿色
输出RSI40:MA(SMA(收盘价-LC和0较大值,40,1)/SMA(收盘价-LC的绝对值,40,1)*100,3),画绿色
输出RSI45:MA(SMA(收盘价-LC和0较大值,45,1)/SMA(收盘价-LC的绝对值,45,1)*100,3),画绿色
输出RSI50:MA(SMA(收盘价-LC和0较大值,50,1)/SMA(收盘价-LC的绝对值,50,1)*100,3),画绿色
输出RSI100:SMA(收盘价-LC和0较大值,100,1)/SMA(收盘价-LC的绝对值,100,1)*100,画黄色
RSI150:SMA(收盘价-LC和0较大值,150,1)/SMA(收盘价-LC的绝对值,150,1)*100,画黄色
RSI200:SMA(收盘价-LC和0较大值,200,1)/SMA(收盘价-LC的绝对值,200,1)*100,画黄色
输出RSI250:SMA(收盘价-LC和0较大值,250,1)/SMA(收盘价-LC的绝对值,250,1)*100,画黄色
RSI300:SMA(收盘价-LC和0较大值,300,1)/SMA(收盘价-LC的绝对值,300,1)*100,画黄色
50,POINTDOT