|
ma20:ma(c,20),colorwhite,linethick2;& G; x$ \, j( H9 P, C3 |+ @) X
ma120:ma(c,120),colorffcccc,linethick2;0 B% \+ I! s8 q) p5 a7 g" J- v' N5 B v
ma250:ma(c,250),colorffcc66,linethick2;0 P! r- r6 l, t2 `* Z; r
乖离线:=((c-ref(ma20,1))/20+ma20)*1.20;4 v, f& Z: l. U% |
tt1:=cross(ma20,ma120) and cross(ma20,ma250) and v>ref(v,1);1 t2 h7 E5 E. }$ ?4 P% l7 i
tt2:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20);
9 |& d: O+ o# F& U' h, b5 [! MSTICKLINE(TT1,l,l-0.09,4,0),coloryellow;
, Q5 }+ ? F5 T+ F: v# h7 s! @! e/ WDRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;
* F0 S* E; e1 _" U( H& QSTICKLINE(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l,l-0.09,4,0),coloryellow; Q/ g5 U( d5 z
DRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并线着花'),coloryellow;
# x" F# Q& S( E4 C! {$ QSTICKLINE(tt2,l,l-0.09,4,0),coloryellow;
* k# f: C/ {8 Y0 m+ XDRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;- b/ h2 g, w( l& R! q1 O' @
STICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;
+ l7 M, y+ A" p% B: GDRAWTEXT(cross(c,乖离线) ,h+0.13,'卖点'),color00ff00;
% T/ A4 o4 `3 B6 c: V+ [3 RSTICKLINE(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l,l-0.09,4,0),colorffcc66;
) k5 ?7 J Y, e( c [+ D w {3 w6 jDRAWTEXT(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l-0.13,'牛象'),colorffcc66;, D$ Y9 H( e% j
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;, o2 r3 \# P* B( [( u4 U) k
DRAWTEXT(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l-0.13,'买点2'), |