|
ma20:ma(c,20),colorwhite,linethick2;, x0 a% J( d; Y- Z% i E! J1 d
ma120:ma(c,120),colorffcccc,linethick2;
% a; J9 _# X' d$ `ma250:ma(c,250),colorffcc66,linethick2;
' ? j2 }& ^" H, ?" K. r乖离线:=((c-ref(ma20,1))/20+ma20)*1.20;
% m2 w/ A9 ^( I4 V: k! \2 J mtt1:=cross(ma20,ma120) and cross(ma20,ma250) and v>ref(v,1);
9 A R4 x' I* W" n' ~7 Ott2:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20);5 F6 J- p2 h" K
STICKLINE(TT1,l,l-0.09,4,0),coloryellow;3 l: V; d! ^, U w- r
DRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;
3 j. \! W4 @! ], Y" ~STICKLINE(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l,l-0.09,4,0),coloryellow;0 d# N8 r2 G0 \
DRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并线着花'),coloryellow;- \& o5 S/ F7 \& N% i4 u; q
STICKLINE(tt2,l,l-0.09,4,0),coloryellow;
; x. w/ F* t$ `" @& yDRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;, l1 O- m. J5 L4 q3 R. R; } S
STICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;) Q p( q# x# J) q7 |1 s6 |
DRAWTEXT(cross(c,乖离线) ,h+0.13,'卖点'),color00ff00;" d- j2 Q5 x* L" x* `& _
STICKLINE(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l,l-0.09,4,0),colorffcc66;) b! m5 j6 S9 p1 Y
DRAWTEXT(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l-0.13,'牛象'),colorffcc66;( Q# c7 }# Q; V
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;
6 e4 I* Z' m& Q: u" Z4 gDRAWTEXT(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l-0.13,'买点2'), |