ma20:ma(c,20),colorwhite,linethick2;
% }" q) h8 Q, t' d5 h Z9 a9 qma120:ma(c,120),colorffcccc,linethick2;
9 p; B, C# N1 ]$ o }2 Y/ Fma250:ma(c,250),colorffcc66,linethick2;. Q% j, h% U$ S" i2 B" i! @- s
乖离线:=((c-ref(ma20,1))/20+ma20)*1.20;' f, _: g3 |7 y# g
tt1:=cross(ma20,ma120) and cross(ma20,ma250) and v>ref(v,1);
/ k; J9 K( F- h8 Btt2:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20);
3 h7 F9 x" Z) ]- X3 ^5 YSTICKLINE(TT1,l,l-0.09,4,0),coloryellow;
6 f! X3 @% S9 p9 X/ sDRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;* `9 p7 [4 |0 h, t3 c/ _
STICKLINE(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l,l-0.09,4,0),coloryellow;. t7 g) ~# a) y
DRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并线着花'),coloryellow;' ]& k/ s/ ], m, p5 y' S( m( d
STICKLINE(tt2,l,l-0.09,4,0),coloryellow;5 q4 ]' h1 a% U$ X
DRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;. ], m8 b: o2 \" V8 W& N
STICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;
; E* g) w9 G' Y NDRAWTEXT(cross(c,乖离线) ,h+0.13,'卖点'),color00ff00;
8 H2 i \7 y+ `& B4 \; g8 JSTICKLINE(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l,l-0.09,4,0),colorffcc66;+ K7 ^% Y$ E( Q" o4 e; Y3 X
DRAWTEXT(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l-0.13,'牛象'),colorffcc66;/ b3 a- i: c& k* f& P( S9 i1 [
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;
9 d0 e1 O9 R4 @* IDRAWTEXT(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l-0.13,'买点2'), |