N1:=20;

N2:=120;

N3:=250;

M龙年好运20:=MA(C,N1),COLORWHITE,LINETHICK1;

M龙年好运120:=MA(C,N2),COLORFFCCCC,LINETHICK1;

M龙年好运250:=MA(C,N3),COLORFFCC66,LINETHICK1;

乖离线:=((C-REF(M龙年好运20,1))/20+M龙年好运20)*1.20;

TT1:=CROSS(M龙年好运20,M龙年好运120) AND CROSS(M龙年好运20,M龙年好运250) AND V>REF(V,1);

TT2:=M龙年好运20>REF(M龙年好运20,2) AND V>REF(V,1) AND CROSS(C,M龙年好运20);

龙年好运1:=SUM(AMOUNT,3)/SUM(VOL,3)/100;

龙年好运2:=SUM(AMOUNT,8)/SUM(VOL,8)/100;

龙年好运3:=SUM(AMOUNT,21)/SUM(VOL,21)/100;

DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));

DEA:=EMA(DIFF,9);

MACD:=2*(DIFF-DEA);

龙年牛C1:=C-(龙年好运1+MA(C,3))/2;

龙年牛C2:=C-(龙年好运2+MA(C,8))/2;

龙年牛C3:=C-(龙年好运3+MA(C,21))/2;

粘合抓牛1:=(C+龙年牛C3-龙年牛C1+MACD);

粘合抓牛4:=(C+龙年牛C2-龙年牛C1+MACD);

短线:=EMA(粘合抓牛1,6),LINETHICK1,DOTLINE COLORMAGENTA;

DRAWTEXT(CROSS(C,M龙年好运120) AND CROSS(C,M龙年好运250) AND CROSS(C,M龙年好运20),L-0.13,'三线开花'),COLORYELLOW;

DRAWICON(CROSS(C,M龙年好运120) AND CROSS(C,M龙年好运250) AND CROSS(C,M龙年好运20),L,9);

STICKLINE(CROSS(C,M龙年好运120) AND CROSS(C,M龙年好运250) AND CROSS(C,M龙年好运20),O,C,2.2,0),COLORYELLOW;

STICKLINE(CROSS(C,M龙年好运120) AND CROSS(C,M龙年好运250) AND CROSS(C,M龙年好运20),H,L, 0,0),COLORYELLOW;

{STICKLINE(TT2,O,C,2.2,0),COLORLIRED;}

{DRAWTEXT(TT2,L-0.13,'★买1'),COLORYELLOW;

DRAWTEXT(M龙年好运250>=REF(M龙年好运250,1) AND M龙年好运20>=REF(M龙年好运20,1) AND CROSS(C,M龙年好运250),L-0.13,'走牛'),COLORFFCC66;}

{STICKLINE(M龙年好运250>=REF(M龙年好运250,1) AND M龙年好运20>=REF(M龙年好运20,1) AND CROSS(C,M龙年好运250),O,C,2.2,0),COLORBLUE;}

{DRAWTEXT(M龙年好运120>=REF(M龙年好运120,1) AND CROSS(C,M龙年好运20) AND CROSS(C,M龙年好运120) AND V>REF(V,1),L-0.13,'买2'),COLORFF00FF ;}

STICKLINE(M龙年好运120>=REF(M龙年好运120,1) AND CROSS(C,M龙年好运20) AND CROSS(C,M龙年好运120) AND V>REF(V,1),O,C,2.2,0),COLORMAGENTA;