以下是通达信5123 均线主图指标(无源码的请下载附件导入)
DRAWGBK(O>C,RGB(48,41,124),RGB(0,0,0),0,'1',0);
MA1:=EMA(C,1);
MA2:=EMA(C,2);
STICKLINE(MA1>MA2,H,L,0,1),COLOR808080;
STICKLINE(MA1>MA2,O,C,4.4,1),COLOR808080;
STICKLINE(MA1<MA2,H,L,0,1),COLOR808080;
STICKLINE(MA1<MA2,O,C,4.4,1),COLOR808080;
E52:EMA(C,52),COLORMAGENTA,LINETHICK2;
IF(E52<REF(E52,1),E52,DRAWNULL),COLORCYAN,LINETHICK2;
E120:EMA(C,120)COLOR00FFFF;
E240:EMA(C,240)COLORLIMAGENTA;
E360:EMA(C,360)COLORLIGREEN;
上线:=SMA(C,5,1);
下线:=SMA(C,9,1);
STICKLINE(上线>下线 , 上线,下线 ,2.5, 0),COLORFF0080,LINETHICK2;
STICKLINE(下线>上线,上线,下线,2.5,0),COLORGREEN,LINETHICK2;
A9:=SMA(C,9,1);
A13:=SMA(C,13,1);
STICKLINE(A9>A13 , A9,A13 ,2.5, 0),COLORLICYAN,LINETHICK2;
STICKLINE(A13>A9,A9,A13,2.5,0),COLOR0080FF,LINETHICK2;
827288271.jpg
|