指标先容: 1 S$ D) c, P7 T# E
, K0 _5 q& J, A- c9 x% n出现“抄底”或“买”字样及塔尖符号为买入,出现“卖”字样及塔尖符号为卖出信号。
) X4 V. e# |9 S$ ]$ E6 [4 H4 J
& y$ y) D8 z( k Z% D J公式源码:
* K9 e; M. n: x7 Z! {7 P: t5 H1 I8 E* R& v. o7 |, y6 ~7 T# E8 B
VAR0:=SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100,5,1);& u/ h, u9 R' v/ O% o& h
波段线:EMA(VAR0,3),NODRAW;
9 H2 g0 G6 }* m- @VAR1:=EMA(波段线,2);
: }% W' _' u& `VAR2:=EMA(VAR1,2);
* S$ {( y% {8 p0 |# w( qVAR3:=CROSS(VAR1,VAR2);
, S: d# B8 G6 [, o$ l. HVAR4:=CROSS(VAR2,VAR1);6 S, w+ \ f! }3 O* K/ K
STICKLINE(波段线>20 AND 波段线20,波段线-12,'买'),colorred;; z4 v7 b. H, \
STICKLINE(VAR3 AND VAR1>20,波段线,0,1,0),colorred;
7 W0 |& D2 D( m* x' @' l买:IF(VAR3 AND VAR1>20 ,波段线,0),colorred,LINETHICK8,NODRAW;
) y+ i/ B7 X0 u8 j# mSTICKLINE(波段线>80,波段线-2,波段线+2,5,0),colorred;
7 _4 R3 g) p) j; R9 w9 {1 A& Z! CSTICKLINE(波段线50 AND 波段线1,抄底+5,' 抄底'),coloryellow;
% v- m @, p3 Z& Q9 z. d) S- d- UDRAWICON(抄底>1,抄底,4);: K8 G4 B! `+ |: }
DRAWTEXT(VAR4,波段线+18,'卖'),coloryellow;
8 `+ r% m5 `$ x8 ISTICKLINE(VAR4,波段线,波段线+20,1,0),colorgreen; |