MA90:=EMA(CLOSE,90);
MA120:EMA(CLOSE,120),COLORFFCC66;
C1:=EMA(INDEXC,125)/EMA(C,125);{调整到125天显示大盘K线效果比较好}
D1:=INDEXO/C1; D2:=INDEXH/C1;
D3:=INDEXL/C1; D4:=INDEXC/C1;
上证K线:STICKLINE(D4>=REF(D4,1),D3,D2,0,0),COLORMAGENTA;
STICKLINE(D4>=REF(D4,1),D4,D1,6,0),COLORMAGENTA;
STICKLINE(D4< REF(D4,1),D3,D2,0,0),COLORFFCC66;STICKLINE(D4< REF(D4,1),D4,D1,6,0),COLORFFCC66;