|
ma20:ma(c,20),colorwhite,linethick2;$ n6 `; k. a: v! L- ~$ w8 w
ma120:ma(c,120),colorffcccc,linethick2;
4 W* {# Y3 ]# m# e6 hma250:ma(c,250),colorffcc66,linethick2;
, J9 [5 L& P1 B5 S乖离线:=((c-ref(ma20,1))/20+ma20)*1.20;
, m% q* t) a8 i/ utt1:=cross(ma20,ma120) and cross(ma20,ma250) and v>ref(v,1);
, Q% K' B9 a6 Z/ e8 ktt2:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20);$ V* r0 H) B* _0 s% _2 A/ E
STICKLINE(TT1,l,l-0.09,4,0),coloryellow;
4 \* m, L/ H0 E' o: y: Y6 z, S5 A& mDRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;
9 Q3 o6 X( p& L* m- cSTICKLINE(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l,l-0.09,4,0),coloryellow;
" |2 U$ F3 V# |, ~' E* G$ dDRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并线着花'),coloryellow;
6 W& b) y0 a' b/ BSTICKLINE(tt2,l,l-0.09,4,0),coloryellow;: [$ l- Y& S7 l0 f6 M3 x
DRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;
8 h+ g8 U! M2 j; ]! b( ~STICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;
. z- p+ z) C8 ]6 U* N( RDRAWTEXT(cross(c,乖离线) ,h+0.13,'卖点'),color00ff00;
2 ^0 B) e3 ?5 ~8 Y2 R% \, y7 SSTICKLINE(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l,l-0.09,4,0),colorffcc66;+ S/ ~- o! k0 K; z% Y6 g
DRAWTEXT(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l-0.13,'牛象'),colorffcc66;
( h8 b( F* u% \$ eSTICKLINE(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l,l-0.09,4,0),colorff00ff;
* E& P- W, h- V& E: ?4 t. YDRAWTEXT(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l-0.13,'买点2'), |