|
ma20:ma(c,20),colorwhite,linethick2;
/ R% V6 ^, H1 A1 X) Nma120:ma(c,120),colorffcccc,linethick2;* f) D. x. l5 }7 k3 C
ma250:ma(c,250),colorffcc66,linethick2;: z7 k, s3 A7 Y7 F/ V: Y6 }
乖离线:=((c-ref(ma20,1))/20+ma20)*1.20;
6 ~5 x8 S9 x1 F7 o- f) Jtt1:=cross(ma20,ma120) and cross(ma20,ma250) and v>ref(v,1);
5 I" C7 o" `4 ]tt2:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20);/ i; S( P& [, t' \9 ?
STICKLINE(TT1,l,l-0.09,4,0),coloryellow;
4 Z I' m) Q% b; @$ W& aDRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;
( L9 F' C, r5 Q! USTICKLINE(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l,l-0.09,4,0),coloryellow;
$ x$ a! g1 s; O0 k7 qDRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并线着花'),coloryellow;
) o0 t! ]# h. ^/ WSTICKLINE(tt2,l,l-0.09,4,0),coloryellow;5 f. i7 Z; Y z4 k
DRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;0 m/ k1 q, @/ }4 W$ \2 j$ |
STICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;6 f) y6 K% |# K, |3 `
DRAWTEXT(cross(c,乖离线) ,h+0.13,'卖点'),color00ff00;5 k) ?0 ]% X; T6 M
STICKLINE(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l,l-0.09,4,0),colorffcc66;
- w- w" b" y' E6 _0 n: @, kDRAWTEXT(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l-0.13,'牛象'),colorffcc66;
% b% f% r5 T; K5 Y: ?; rSTICKLINE(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l,l-0.09,4,0),colorff00ff;
/ V/ R% d* `0 W$ g, t% D. b$ yDRAWTEXT(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l-0.13,'买点2'), |