|
ma20:ma(c,20),colorwhite,linethick2;
$ R4 q m2 X. P$ L/ vma120:ma(c,120),colorffcccc,linethick2;
2 v0 y" q+ _, w% Ama250:ma(c,250),colorffcc66,linethick2;
; ~5 ?8 a/ f" u乖离线:=((c-ref(ma20,1))/20+ma20)*1.20;6 |; u1 o- n1 ^# J8 n- F9 U
tt1:=cross(ma20,ma120) and cross(ma20,ma250) and v>ref(v,1);
) d. k& r6 P7 d$ l% r# Y9 xtt2:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20);
7 Q9 t- _0 b( J0 f0 zSTICKLINE(TT1,l,l-0.09,4,0),coloryellow;
, C* z' z+ T8 G" ?DRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;
8 V: t4 h; M/ I6 JSTICKLINE(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l,l-0.09,4,0),coloryellow;& c- o" ]. o: \0 ]8 r3 b) t3 Z
DRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并线着花'),coloryellow;. o; u0 |* M1 N4 I& e2 h
STICKLINE(tt2,l,l-0.09,4,0),coloryellow;! M' x U* ] v/ d: V
DRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;
- |( p4 F. S7 c2 {$ K' O! XSTICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;- ^: f/ X( S- W/ Z7 s j* y, P
DRAWTEXT(cross(c,乖离线) ,h+0.13,'卖点'),color00ff00;
: u) J1 c7 ~4 V/ ZSTICKLINE(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l,l-0.09,4,0),colorffcc66;
) g' [% f, [! u" f" y8 N8 YDRAWTEXT(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l-0.13,'牛象'),colorffcc66;
9 D/ Y8 B! h9 M ySTICKLINE(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 q! W# S; C' k9 t
DRAWTEXT(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l-0.13,'买点2'), |