指标先容:) n8 t* H% M& d' o. s
0 k! |2 d9 K4 h: g5 z2 X1 |. o
看图即可( W, ^3 u. X6 g# {
, b: q' h6 p$ I
% F6 a/ ~6 p; D4 K
! t- a6 W }/ u- {, B* |公式源码:+ a$ J0 F$ w2 R7 D4 P3 E& k
# L D, n+ L6 P1 n; J5 k
LOWV:=LLV(LOW,9);
: b1 B! K' g. NHIGHV:=HHV(HIGH,9);
, `# T( Q4 \; @7 q3 \5 K) uRSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);0 K$ \" f6 ]5 _9 y/ {, k6 K
K:EMA(RSV,3);" @ m8 {; ?* d" e H8 R
D:MA(K,3);- P/ D6 k; L; m# v
STICKLINE(K>D , K,D ,2.5,0),colorred,LINETHICK2;9 T* f3 c5 s( K. ]6 J, _6 V, d
STICKLINE(D>K,K,D,2.5,0),colorgreen,LINETHICK2;8 X; {4 n' G! y* d/ h! `3 I/ e `+ }- p
逃顶线:90,colorgreen;
) W4 w% W1 ^) g8 C9 m2 G0 T8 L" o9 C中轴线: 50,colorred;* r/ S0 B3 R; Z! z& |) [
抄底线:10,coloryellow;) E6 v8 Q$ _4 c/ P; K
DRAWICON(CROSS(K,D) AND K=80,88,4),colorgreen;
% R, K2 D3 S% N6 W: m; O5 I" TA1:=BARSLAST(REF(CROSS(K,D),1));
0 M+ p% K9 ~3 `% i6 t( f底背离:REF(CLOSE,A1+1)>CLOSE AND K>REF(K,A1+1) AND CROSS(K,D);
* P0 H' R3 z3 K( O8 a: kDRAWLINE(A1=0,D,底背离,D,0),colorred,LINETHICK1;
0 r v7 f3 S4 ^9 K/ ?3 o0 ~0 AA2:=BARSLAST(REF(CROSS(D,K),1));9 ~5 i9 l% w! y) F
顶背离:REF(CLOSE,A2+1)D AND CROSS(D,K);- T7 i3 J" M* o; H5 V( J* t
DRAWLINE(A2=0,D,顶背离,D,0),colorgreen,LINETHICK1;
. h" e, m8 {7 DDRAWTEXT(底背离>0,D-5,'加仓'),colorred;% \/ m% v. b1 o) c
DRAWTEXT(顶背离>0,D-5,'减仓'),colorgreen;
( w, \* L6 e7 h$ IDRAWTEXT(CROSS(K,D) AND (D < 8),30,'买'),colorred;
$ a, E9 G) T2 T+ n- D0 P( g) U% NSTICKLINE(CROSS(K,D) AND (D < 8)=1,3,20,8,0),colorred;9 e/ I" B7 X- r% I6 m5 J) Z1 Z4 C
DRAWTEXT(CROSS(D,K) AND (D > 85),70,'卖'),colorgreen;: `* l- {8 P3 N: @/ ]
STICKLINE(CROSS(D,K) AND (D > 85)=1,85,70,8,0),colorgreen |