副图指标,RSI判强弱,如图,强不强看紫青双线,牛不牛看白虚线,作决策辅助用。因为用到排序,使用前确保日线数据下载完整
80,COLOR333333,DOTLINE;20,COLOR333333,DOTLINE;50,COLOR333333,DOTLINE;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK),COLORCYAN;
本行业个股数目:BLOCKSETNUM(HYBLOCK),NODRAW;
强弱值:RSI,COLORGREEN,NODRAW;
QK:EMA(RSI,6),COLORGREEN;
行业值:INSUM(HYBLOCK,'RSI',1,1),COLORMAGENTA,NODRAW;
HK:EMA(行业值,6),DOTLINE,COLORMAGENTA;
业内排名:INSORT(HYBLOCK,'RSI',1,1)/本行业个股数目*100,COLORWHITE,NODRAW;
LK:EMA(业内排名,6),COLORWHITE,DOTLINE;
牛相初显:IF(LK>85,LK,DRAWNULL),COLORYELLOW,LINETHICK2;