ma20:ma(c,20),colorwhite,linethick2;
/ c; c9 B' c1 \8 B: xma120:ma(c,120),colorffcccc,linethick2;
t5 h3 M& g7 |5 g' B2 S( G$ G# Rma250:ma(c,250),colorffcc66,linethick2;1 R% Q2 J" |" u7 e# I4 j( R
乖离线:=((c-ref(ma20,1))/20+ma20)*1.20;$ @. y- B' l6 o: {: m) I, O
tt1:=cross(ma20,ma120) and cross(ma20,ma250) and v>ref(v,1);8 q' [3 j' v* a/ Q3 O2 Y# u
tt2:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20);
6 _7 L; K1 G% x; v8 y# F" o* U' nSTICKLINE(TT1,l,l-0.09,4,0),coloryellow;1 H& K/ a) o1 A1 Z, p- h
DRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;' i8 P0 n0 v& `6 A* _* T" F- G
STICKLINE(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l,l-0.09,4,0),coloryellow;; s, `( b q0 r! h) K
DRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并线着花'),coloryellow;7 m1 W4 K7 w f: X; ?6 v
STICKLINE(tt2,l,l-0.09,4,0),coloryellow;, k+ v; W/ O6 o1 J1 R
DRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;
8 V+ w7 e. i; w: w! ]) u( m- ~STICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;
1 D' V" b/ I* K1 {: o9 l* W: B% h( iDRAWTEXT(cross(c,乖离线) ,h+0.13,'卖点'),color00ff00; l# t% U R6 O( U/ ^) @
STICKLINE(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l,l-0.09,4,0),colorffcc66;
5 @- V$ s$ G( U5 j& B6 I$ ZDRAWTEXT(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l-0.13,'牛象'),colorffcc66;! X* T, l* E: K x8 e# 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;+ m( ?. y. P* Y2 ]- }7 k! f( R
DRAWTEXT(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l-0.13,'买点2'), |