通达信主图源码:
DRAWBAND(MA(CLOSE,26),RGB(90,10,10),MA(CLOSE,60),RGB(0,91,0));
DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68));
DRAWKLINE(H,O,L,C);
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
MA60:MA(CLOSE,60),COLOR030A85,LINETHICK2;
MA120:MA(CLOSE,120),COLOR910048;
MID:MA(CLOSE,26),COLOR0099FF;
IF(MID>=REF(MID,1),MID,DRAWNULL),COLOR0099DD,LINETHICK2;
IF(MID<=REF(MID,1),MID,DRAWNULL),COLOR999900,LINETHICK2;
UPPER:MID + 2*STD(CLOSE,26),COLORFF00FF,LINETHICK1;
LOWER:MID - 2*STD(CLOSE,26),COLORFF8000,LINETHICK1;