ma20:ma(c,20),colorwhite,linethick2;
0 X7 }3 B9 d' A, W4 gma120:ma(c,120),colorffcccc,linethick2;
1 e8 C" d7 r" I! |" V+ p! Tma250:ma(c,250),colorffcc66,linethick2;# o+ T9 |+ A( Y1 G
乖离线:=((c-ref(ma20,1))/20+ma20)*1.20;
& S' H3 P1 h2 a! gtt1:=cross(ma20,ma120) and cross(ma20,ma250) and v>ref(v,1);
% m: q+ E1 Y+ F$ s) b, _tt2:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20);
6 {( v2 ]8 Y9 t: FSTICKLINE(TT1,l,l-0.09,4,0),coloryellow;
: b1 M9 w1 K' S1 v& tDRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;
: R) P! n3 W) T* A) w# OSTICKLINE(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l,l-0.09,4,0),coloryellow;
0 h" b/ ]2 U' A- ^ ?7 wDRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并线着花'),coloryellow;
; D1 o6 L/ F6 z. F6 B2 f% o) Q$ `STICKLINE(tt2,l,l-0.09,4,0),coloryellow;
& J7 j# R8 a' `8 @4 l3 R1 |5 p a' sDRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;5 F$ M M2 I; ~) F- X
STICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;
% a0 q8 T' N1 B0 PDRAWTEXT(cross(c,乖离线) ,h+0.13,'卖点'),color00ff00;
7 d0 ~6 S3 N' a9 _3 K3 vSTICKLINE(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l,l-0.09,4,0),colorffcc66;
$ N% s; ]2 x) q/ I# rDRAWTEXT(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l-0.13,'牛象'),colorffcc66;
6 w8 C/ @9 k' r% c; ?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;
t/ w; W/ K2 S+ Z: mDRAWTEXT(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l-0.13,'买点2'), |