通达信主图:叠加大盘
需要下载日线数据
C1:=EMA(INDEXC,500)/EMA(C,500);
D1:=INDEXO/C1;
D2:=INDEXH/C1;
D3:=INDEXL/C1;
D4:=INDEXC/C1;
SK:STICKLINE(D4>=REF(D4,1),D3,D2,0,0),COLORRED;
STICKLINE(D4>=REF(D4,1),D4,D1,6,0),COLOR0000AA;
STICKLINE(D4>=REF(D4,1),D4,D1,4,0),COLOR0000CC;
STICKLINE(D4>=REF(D4,1),D4,D1,2,0),COLOR0000DD;
STICKLINE(D4>=REF(D4,1),D4,D1,1,0),COLOR0000FF;
STICKLINE(D4>=REF(D4,1),D4,D1,0,0),COLORRED;
STICKLINE(D4<REF(D4,1),D3,D2,0,0),COLORGREEN;
STICKLINE(D4<REF(D4,1),D4,D1,6,0),COLOR998855;
STICKLINE(D4<REF(D4,1),D4,D1,4,0),COLORBBAA77;
STICKLINE(D4<REF(D4,1),D4,D1,2,0),COLORDDCC99;
STICKLINE(D4<REF(D4,1),D4,D1,1,0),COLORFFEEBB;
STICKLINE(D4<REF(D4,1),D4,D1,0,0),COLORGREEN;