ma20:ma(c,20),colorwhite,linethick2;6 [0 n7 y% b6 O, e- ]( q [
ma120:ma(c,120),colorffcccc,linethick2;
; ^; t0 e! e' h# cma250:ma(c,250),colorffcc66,linethick2;
; x5 r! `2 y6 S乖离线:=((c-ref(ma20,1))/20+ma20)*1.20; N' w9 G3 G% |% \
tt1:=cross(ma20,ma120) and cross(ma20,ma250) and v>ref(v,1);
$ m9 S; w1 J: @tt2:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20);& a! l' n0 |; k5 }1 D
STICKLINE(TT1,l,l-0.09,4,0),coloryellow;
6 n2 w9 W# @4 P( F3 e, P/ TDRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;
1 p* ~% U& _- i6 s k0 v( n% gSTICKLINE(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l,l-0.09,4,0),coloryellow;
: C% ~) {, Y6 s3 TDRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并线着花'),coloryellow;
W: M& _% q& b" B6 T7 [( T* A2 a' PSTICKLINE(tt2,l,l-0.09,4,0),coloryellow;
, f9 M' r7 l& q: \" V% \6 ZDRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;
, [7 c0 p; G' J$ O7 B: CSTICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;) K5 G0 s# c! S$ S4 T
DRAWTEXT(cross(c,乖离线) ,h+0.13,'卖点'),color00ff00;! J9 x# F# v# E3 u9 Q. T
STICKLINE(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l,l-0.09,4,0),colorffcc66;) D! e7 ?! L( V: i; J1 w
DRAWTEXT(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l-0.13,'牛象'),colorffcc66;
& y) D* C, O# I; CSTICKLINE(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l,l-0.09,4,0),colorff00ff;3 }2 E$ s' `3 y: S4 Q
DRAWTEXT(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l-0.13,'买点2'), |