通达信板块排名RSI指标 显示板块排名 强弱股支撑压力线 源码
强势股支撑线:40,COLORYELLOW;
弱股支撑线:30,COLORWHITE;
强势股压力线:70,COLORRED;
弱股压力线:60,COLORFF00FF;
LC:=REF(CLOSE,1);
RSI:SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100,LINETHICK2,COLOR00FF00;
IF(RSI>REF(RSI,1),RSI,DRAWNULL),LINETHICK2,COLORRED;
市值:(FINANCE(40)/100000000),NODRAW,COLORRED;
股本:(FINANCE(7)/100000000),NODRAW,COLORWHITE;
流通:CAPITAL/1000000;
{板块排名}
TAX:=HORCALC(HYBLOCK,105,1,DRAWNULL);
TAA:=STRCAT(HYBLOCK,' 排名 :');
DRAWTEXT_FIX(ISLASTBAR,0.70,0.005,0,STRCAT(TAA,CON2STR(TAX,0)));
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出强势股支撑线:40,画黄色
输出弱股支撑线:30,画白色
输出强势股压力线:70,画红色
输出弱股压力线:60,COLORFF00FF
LC赋值:1日前的收盘价
输出RSI:SMA(收盘价-LC和0较大值,14,1)/SMA(收盘价-LC的绝对值,14,1)*100, 线宽为2,COLOR00FF00
IF(RSI>1日前的RSI,RSI,DRAWNULL), 线宽为2,画红色
输出市值:(FINANCE(40)/100000000),NODRAW,画红色
输出股本:(FINANCE(7)/100000000),NODRAW,画白色
输出流通:当前流通股本/1000000
{板块排名}
TAX赋值:HORCALC(HYBLOCK,105,1,DRAWNULL)
TAA赋值:STRCAT(HYBLOCK,' 排名 :')
DRAWTEXT_FIX(ISLASTBAR,0.70,0.005,0,STRCAT(TAA,CON2STR(TAX,0)))