通达信副图显示大盘指标公式
2020/1/22 18:33:02
指数:INDEXC,COLORYELLOW,NODRAW;
DRAWKLINE(INDEXH,INDEXO,INDEXL,INDEXC);
(MA(INDEXC,3)+MA(INDEXC,6)+MA(INDEXC,12)+MA(INDEXC,24))/4;
{DRAWGBK(DATE>900101,STRIP(RGB(0,150,130),RGB(0,0,0),0));}
买线:=INDEXC;
卖线:=指数;
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(BU,指数 - 800,'B'),COLORRED,LINETHICK3;
DRAWTEXT(SEL,指数+500,'S'),COLORGREEN,LINETHICK3;
JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;
DRAWTEXT(CROSS(84,JH),指数*1.1,'S'), COLOR00FF00;
LC := REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
{投股票网-股票公式网站 www.tou18.cn}
DRAWTEXT(CROSS(88,RSI),(指数 * 1.02),'顶'),COLOR1880FF;
MA1:=EMA(INDEXC,3),COLORYELLOW;
MA2:=EMA(INDEXC,5),COLORYELLOW;
DRAWICON(CROSS(MA1,MA2),指数-600,1),COLORRED;
DRAWICON(CROSS(MA2,MA1),指数+500,2),COLORGREEN;
投 股票网 www. tou18.cn
股市公式下载推荐