|
ma20:ma(c,20),colorwhite,linethick2;
% j8 v# b/ L' t. U0 U1 Kma120:ma(c,120),colorffcccc,linethick2;2 |+ t3 I1 r$ a
ma250:ma(c,250),colorffcc66,linethick2;
( d+ C3 V/ s l乖离线:=((c-ref(ma20,1))/20+ma20)*1.20;9 O7 W% U# {. V& H v
tt1:=cross(ma20,ma120) and cross(ma20,ma250) and v>ref(v,1);; Y J! E4 i+ K7 \
tt2:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20);# y2 O5 e4 _" G* U2 H
STICKLINE(TT1,l,l-0.09,4,0),coloryellow;& U( I: P# x( V% Y: n8 n
DRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;6 ?8 k- d; p! |- D- K# V
STICKLINE(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l,l-0.09,4,0),coloryellow;+ |7 ?" M. H+ @$ j! g1 Z
DRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并线着花'),coloryellow;
# @- [$ i3 j. l; N" q) d9 l3 |STICKLINE(tt2,l,l-0.09,4,0),coloryellow; C, M! l6 C2 Y
DRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;
1 f) w6 d5 Z' D; @0 E/ }$ @STICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;
3 D' O1 f, J, `. d. KDRAWTEXT(cross(c,乖离线) ,h+0.13,'卖点'),color00ff00;
" q$ k8 V! o" w# V$ p, Q" vSTICKLINE(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l,l-0.09,4,0),colorffcc66;
2 C1 X. U L* O: y( s0 K2 ]DRAWTEXT(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l-0.13,'牛象'),colorffcc66;. V' l# q1 e- x( ]4 o) {
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;* a2 n# P; J: g* Y! _% ~& F, c
DRAWTEXT(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l-0.13,'买点2'), |