ma20:ma(c,20),colorwhite,linethick2;1 M6 A& ~" t- X; i- H/ S
ma120:ma(c,120),colorffcccc,linethick2;) a( Y) g% S% N
ma250:ma(c,250),colorffcc66,linethick2;( n; X0 H) K/ o9 [. A" l
乖离线:=((c-ref(ma20,1))/20+ma20)*1.20;
" Z6 C# d) I! R6 z% ett1:=cross(ma20,ma120) and cross(ma20,ma250) and v>ref(v,1);( r/ w% p" v, k0 b+ D* `
tt2:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20);
$ H3 b8 l4 i% P% m5 U# N, F) P' g6 ISTICKLINE(TT1,l,l-0.09,4,0),coloryellow;2 C: i9 P; q: A5 m& k8 M5 q
DRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;
7 @6 ^5 l5 x$ x- B4 u2 ?STICKLINE(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l,l-0.09,4,0),coloryellow;
* m O Y2 @1 WDRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并线着花'),coloryellow; m4 f6 |3 C4 H7 ~
STICKLINE(tt2,l,l-0.09,4,0),coloryellow;
- p( F; @. X+ _( I9 SDRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;
7 t! w2 l8 ^& @& f6 |# ?STICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;
5 d* B" Y" m% z* A$ FDRAWTEXT(cross(c,乖离线) ,h+0.13,'卖点'),color00ff00;
* ?, A- W+ V% q. jSTICKLINE(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l,l-0.09,4,0),colorffcc66;0 Z, n- P) s# @0 _; t0 ?3 ?# y
DRAWTEXT(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l-0.13,'牛象'),colorffcc66;0 U. X6 t+ C1 V: N
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 @% R* I% O. F4 f& CDRAWTEXT(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l-0.13,'买点2'), |