|
ma20:ma(c,20),colorwhite,linethick2;0 v2 J4 B7 D9 I1 N
ma120:ma(c,120),colorffcccc,linethick2;) ]. Q- e5 @& w! Z0 c
ma250:ma(c,250),colorffcc66,linethick2;+ K5 @, R ^/ N7 j: c4 q3 F
乖离线:=((c-ref(ma20,1))/20+ma20)*1.20;
3 ~( r7 f5 f) W; f) ttt1:=cross(ma20,ma120) and cross(ma20,ma250) and v>ref(v,1);3 D$ l5 R: l! S u" g+ ?
tt2:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20);$ @) K) I! C& d
STICKLINE(TT1,l,l-0.09,4,0),coloryellow;/ d+ I4 F5 k7 \8 e- Z
DRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;
. _, ?; P/ O* {7 ?' FSTICKLINE(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l,l-0.09,4,0),coloryellow;' C! u6 ?) T7 g8 r$ k
DRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并线着花'),coloryellow;5 O- v8 V& n5 s/ c
STICKLINE(tt2,l,l-0.09,4,0),coloryellow;
0 C6 a1 v. r1 s+ b) SDRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;
' x2 \. Z% w; o1 d8 f6 B7 eSTICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;
4 o* F1 F4 m* h. k3 _! |DRAWTEXT(cross(c,乖离线) ,h+0.13,'卖点'),color00ff00;/ Y/ a8 R" ^4 }' \
STICKLINE(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l,l-0.09,4,0),colorffcc66;
3 H0 v2 Q& E( m8 C8 PDRAWTEXT(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l-0.13,'牛象'),colorffcc66;
& V7 W8 s c* I1 R4 U- oSTICKLINE(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l,l-0.09,4,0),colorff00ff;" s3 q* ^ {1 R0 v: b. _
DRAWTEXT(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l-0.13,'买点2'), |