当主图是沪市股票时副图显示上证指数!
当主图是深市股票时副图显示深证指数!
当主图是中小板股票时副图显示中小板指数!
当主图是创业板股票时副图显示创业板指数!
【注意】使用该公式请先下载盘后数据才能正常显示!
H1:=IF(CODELIKE('002'),"399005$H",INDEXH);
H2:=IF(CODELIKE('300'),"399006$H",H1);
O1:=IF(CODELIKE('002'),"399005$O",INDEXO);
O2:=IF(CODELIKE('300'),"399006$O",O1);
C1:=IF(CODELIKE('002'),"399005$C",INDEXC);
对应指数:IF(CODELIKE('300'),"399006$C",C1),COLORWHITE,NODRAW;
涨跌%:(对应指数/REF(对应指数,1)-1)*100,COLORYELLOW,NODRAW;
L1:=IF(CODELIKE('002'),"399005$L",INDEXL);
L2:=IF(CODELIKE('300'),"399006$L",L1);
DRAWKLINE(H2,O2,L2,对应指数);
MA5:MA(对应指数,5),COLORWHITE;
MA10:MA(对应指数,10),COLORYELLOW;
MA20:MA(对应指数,20),COLORMAGENTA;
MA60:MA(对应指数,60),COLOR008899,LINETHICK1;
MA120:MA(对应指数,120),COLORFF6600,LINETHICK1;
MA250:MA(对应指数,250),COLORGREEN,LINETHICK1;
2020558145817066.jpg
202055815576865.jpg
|