ma20:ma(c,20),colorwhite,linethick2;
; a0 t0 t9 n0 P9 f8 O" n* Ima120:ma(c,120),colorffcccc,linethick2;
X$ ^9 \# P, R8 w8 ]5 F8 yma250:ma(c,250),colorffcc66,linethick2;9 ], |! K# k3 |7 q5 u5 N/ |
乖离线:=((c-ref(ma20,1))/20+ma20)*1.20;' s0 v$ ~- g K. P! o9 E
tt1:=cross(ma20,ma120) and cross(ma20,ma250) and v>ref(v,1);
* K' R' o$ Z* \% Z* t) x1 ott2:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20);
! C3 M3 i X& M y; J) Z# f" k dSTICKLINE(TT1,l,l-0.09,4,0),coloryellow;
* I/ w' {% T! n/ GDRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;
6 O& ^3 c! }& k* hSTICKLINE(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l,l-0.09,4,0),coloryellow; e5 t+ P+ h# F0 u- B1 |
DRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并线着花'),coloryellow;, w% I4 t" w0 r4 D5 Y/ D% A* P
STICKLINE(tt2,l,l-0.09,4,0),coloryellow;
+ U, `: [$ ^! k' k" ^* V- ^( s. E- UDRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;
6 j4 `4 S+ F- m' FSTICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;
& g4 i9 l2 |) f+ Q7 N' aDRAWTEXT(cross(c,乖离线) ,h+0.13,'卖点'),color00ff00;
. ~8 P, D" b7 B# a$ C5 L6 \% gSTICKLINE(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l,l-0.09,4,0),colorffcc66;
! }5 S5 D" H. N5 x* J. NDRAWTEXT(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l-0.13,'牛象'),colorffcc66;; W4 w: B& ]4 z, M* l O# d
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;
5 Q9 ~! a c5 k& v' v+ p$ sDRAWTEXT(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l-0.13,'买点2'), |