通达信副图显示大盘指标公式

通达信出局减仓指标公式

指数: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.zhibiaow.com}

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;

通达信炫酷布林一主两副套装指标公式