ma20:ma(c,20),colorwhite,linethick2;
, M6 u0 ]$ W7 W" B% jma120:ma(c,120),colorffcccc,linethick2;
4 n* u, v* q1 s$ tma250:ma(c,250),colorffcc66,linethick2;3 P6 W0 {5 d4 e3 ]5 D' g
乖离线:=((c-ref(ma20,1))/20+ma20)*1.20;4 |+ u9 e) l( |2 c, D' o
tt1:=cross(ma20,ma120) and cross(ma20,ma250) and v>ref(v,1);$ o+ f% m& B3 c4 B4 S& w! T9 j
tt2:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20);4 q7 X% u: r1 ]
STICKLINE(TT1,l,l-0.09,4,0),coloryellow;9 D! u) W' ^2 g, _7 B2 w' }
DRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;/ G* V0 n3 V. N) y4 N( |# p2 N
STICKLINE(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l,l-0.09,4,0),coloryellow;3 m- P7 C# C3 W7 ]/ X
DRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并线着花'),coloryellow;# m' H1 c9 o! m3 q0 z
STICKLINE(tt2,l,l-0.09,4,0),coloryellow;
5 x1 C& q8 a& w" D8 qDRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;
: Q8 r. U. Z0 p$ C1 Q# oSTICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;
6 U$ K$ l6 x5 a! d! WDRAWTEXT(cross(c,乖离线) ,h+0.13,'卖点'),color00ff00;! f+ I4 d7 r+ b% d' l% I0 _2 j* r: Y
STICKLINE(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l,l-0.09,4,0),colorffcc66;
9 m; m' w' c8 B6 S) o+ ~DRAWTEXT(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l-0.13,'牛象'),colorffcc66;" z0 N6 q$ H' a( k
STICKLINE(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l,l-0.09,4,0),colorff00ff;+ _+ C# P' V$ K. C
DRAWTEXT(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l-0.13,'买点2'), |