|
ma20:ma(c,20),colorwhite,linethick2;
7 [- t) s$ J% Ama120:ma(c,120),colorffcccc,linethick2;
5 J8 I; L6 u$ d- }ma250:ma(c,250),colorffcc66,linethick2;$ t- N, {6 E5 Q# U0 b+ i
乖离线:=((c-ref(ma20,1))/20+ma20)*1.20;1 h. R/ W1 \! n4 S% d; s8 i
tt1:=cross(ma20,ma120) and cross(ma20,ma250) and v>ref(v,1);
; m E0 b/ J7 h: \tt2:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20);
) I; B& A8 ^' t+ Y. BSTICKLINE(TT1,l,l-0.09,4,0),coloryellow;' x5 C# M$ Y8 g7 \8 ?6 f( K* A
DRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;
$ h9 w- Q9 ^$ ?, g% J4 vSTICKLINE(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l,l-0.09,4,0),coloryellow;: r. O; ~1 |4 @3 K0 G' x1 J7 U
DRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并线着花'),coloryellow;
3 c d9 _. r# J, w* lSTICKLINE(tt2,l,l-0.09,4,0),coloryellow;. @- [. [7 _& M! N- x2 n
DRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;2 h' O) [! V0 h' Y, B
STICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;- c9 d6 ?* N# j' k4 _/ E' p$ d. I5 g
DRAWTEXT(cross(c,乖离线) ,h+0.13,'卖点'),color00ff00;
) l& z' ~; @1 R7 e3 Z( WSTICKLINE(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l,l-0.09,4,0),colorffcc66;
# u* n- f |6 E" j3 p0 d2 |DRAWTEXT(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l-0.13,'牛象'),colorffcc66;7 Z$ v* z+ a# L8 r( r' m
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;
+ q" `5 S! T. j! @) p' n# IDRAWTEXT(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l-0.13,'买点2'), |