MA7:EMA(CLOSE,7);
MA60:EMA(CLOSE,60),LINETHICK2;
牛熊界:EMA(CLOSE,443);
STICKLINE((MA7 > 牛熊界),MA7,牛熊界,1,0),COLOR222FFF;
STICKLINE((MA7 < 牛熊界),MA7,牛熊界,,0),COLORFFBB22;
DRAWICON(CROSS(MA7,牛熊界),(牛熊界 * 0.98),1);
PARTLINE(MA7,MA7>REF(MA7,1),RGB(255,256, 0),MA7<REF
(MA7,1),RGB(0,250,255)),LINETHICK2 ;
PARTLINE(MA60,MA60>REF(MA60,1),RGB(255,254,
250),MA60<REF(MA60,1),RGB(0,25,255)),LINETHICK2 ;
PARTLINE(牛熊界,牛熊界>REF(牛熊界,1),RGB(255,256, 0),牛
熊界<REF(牛熊界,1),RGB(0,250,255)),LINETHICK2 ;
STICKLINE(MA7>=牛熊界 AND MA7<REF(MA7,1),牛熊界,MA7,3,0)
,COLORFFFF66;
{SA 紅蘭山 用于通達(dá)信 N=7 N1=60 N2=120}
MA7:EMA(CLOSE,N);
MA60:EMA(CLOSE,N1),LINETHICK2;
牛熊界:EMA(CLOSE,N2);
X:=BARSLAST(REF(CROSS(C,MA(C,120)),1)) AND CROSS(MA(C,20),MA(C,120));
DRAWTEXT(X,MA(C,120)-0.13,'牛股'),LINETHICK2,COLOR00FFFF;
STICKLINE((MA7 > 牛熊界),MA7,牛熊界,1,0),COLOR222FFF;
STICKLINE((MA7 < 牛熊界),MA7,牛熊界,4,0),COLORFFBB22;
STICKLINE(MA7>=牛熊界 AND MA7<REF(MA7,1),牛熊界,MA7,3,0),COLORFFFF66; ;
DRAWICON(CROSS(MA7,牛熊界),(牛熊界 * 0.95),1),LINETHICK2;
{PARTLINE(MA7,MA7>REF(MA7,1),RGB(255,256, 0),MA7<REF(MA7,1),RGB(0,250,255)),LINETHICK2 ;
PARTLINE(MA60,MA60>REF(MA60,1),RGB(255,254, 250),MA60<REF(MA60,1),RGB(0,25,255)),LINETHICK2 ;
PARTLINE(牛熊界,牛熊界>REF(牛熊界,1),RGB(255,256, 0),牛熊界<REF(牛熊界,1),RGB(0,250,255)),LINETHICK2 ;}