通达信非常不错的主图直接放出源码如图所示
DRAWBAND(EMA(C,12),RGB(166,16,160),EMA(C,50),RGB(10,50,50));DRAWKLINE(H,O,L,C);
STICKLINE((C>O),O,C,3,0),COLORRED;
STICKLINE((C<O),O,C,3,0),COLORLICYAN;
E:EMA(C,5);E1:EMA(C,12);E2:EMA(C,50),LINETHICK2;DRAWTEXT(ISLASTBAR,E2,'生命线'),LINETHICK3;
E3:MA(C,250)COLORYELLOW,LINETHICK1;DRAWTEXT(ISLASTBAR,E3,'250日');
DIF:=(EMA(C,12)-EMA(C,26));DEA:=EMA(DIF,9);
A:=CROSS(E,E2) AND V>=REF(V,1) AND DIF>=0 AND E2>REF(E2,1) AND C>O;