指标先容: 6 ^7 _, l# U4 B; E9 u
+ {8 H! F& s: e' a: K
斜线回归压力与支持。该指标来自同花顺指标平台。 0 u4 V" C, w6 Y |1 e9 P
q$ D' `6 a" l2 o7 ]4 q: J公式源码: 7 p* ^# {6 G% }9 i* v" F
# @: C w7 G2 ?回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);+ K8 C. \+ R j: P, L* R6 u% t
经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
7 j; M' @7 @4 e0 l7 Q2 e经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D;7 @! z u1 Z1 M: {" g; L
MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))) /(LLV, T7 _0 }1 [& r' N& z8 C
/ o: g* m# v" s8 D9 I, o; r(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));2 n L( E3 @' [9 @7 x A9 Q
MAHL2:=IF(EMA(C,2)>回归斜率线A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));
, S7 K* V& b2 G$ H- gMAHL3:=IF(EMA(C,2)>回归斜率线A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));9 `. {% L2 F4 `8 `0 P
回归斜率带 RAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));- ^5 } P3 J3 I& E# t
上线:=SMA(C,6.5,1);
& N4 U$ F# y. f% A4 h8 b# g6 G一号支持线:SMA(C,14.5,1);$ M5 T# u! l" @& g- u9 ]9 R. D
上线1:=SMA(C,3,1);& z- N0 _* D3 M1 \
一号支持线1:=SMA(C,8,1);
2 n6 R+ t) b$ W+ t2 N3 ~! Y上线2:=SMA(C,3.5,1);9 G* L( L8 d' U5 S/ Y
DRAWTEXT(CROSS(一号支持线1,上线1),H*1.08,'洗盘'),COLOR00FF00;
, ^+ o2 F! Y* oBBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4;
/ `0 P g3 a# Q4 _4 zUPR:=BBI+3*STD(BBI,13),LINETHICK2;9 G& l+ `. R# W2 R0 o) ~
DWN:=BBI-3*STD(BBI,13);
% l6 l' J4 z4 y$ R: v& H% u8 w安全:=MA(CLOSE,55),LINETHICK2;
6 F8 A N( Q/ \" a$ w2 D. QLC:=REF(CLOSE,1);
$ b) F; s& ]% pRSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
+ B) q9 \( c% X- s7 _DRAWTEXT( CROSS(82,RSI) AND CLOSE操纵,LOW *0.92,'买进' ),coloryellow;
% m Q: e3 l+ Z8 i" R% nVAR1 LV(A7,21);
) t7 L" s- j3 o1 hVAR2:HHV(A7,30);6 e9 g3 T7 |( L8 ~& P- s
DRAWTEXT( CROSS(上线1,操纵) AND 上线1操纵 ,LOW *0.98,'全仓' ),coloryellow;
8 r7 |' c6 C% Z; o. i9 V9 ], |' KSK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);
{( H- k5 Z& H' \7 a8 l4 @8 J; L: FSD:=EMA(0.667*REF(SK,1)+0.333*SK,5);4 P. O2 B4 t, r4 @
M1:=1000*操纵/一号支持线=975;
+ M! K! F C2 k/ _M2:=1000*一号支持线1/一号支持线=980;1 w4 ?# x7 t# ]* Y8 G* w
M3:=1000*上线/一号支持线=985;
1 b6 m! [' x( t) }1 Q1 t. CDRAWTEXT(IF(COUNT(CLOSE6/10 AND
' o7 X0 F8 f; E- X$ z' d7 m' C" zCOUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND7 P4 }! z9 E5 m* ?2 ^" L
REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND
2 D1 z" e0 G6 E0 ?8 g* t; m4 g2 sOPEN>REF(CLOSE,1),1,0),LOW*0.94,'买进') ,coloryellow;: |/ a: M8 l. u+ S- i- u
D:=MA(CLOSE,89)-MA(CLOSE,10)/3;
, U% f! S6 k7 W. g, J. c9 B0 J4 jDRAWTEXT(IF(CLOSEMA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08, y. G, Z5 F* Q7 H: \# N
AND CLOSE RSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;
5 V- u" K. I) d# [K:=SMA(RSV,3,1);: s% \6 \- p4 ^1 Z( T6 g2 K
D1:=SMA(K,3,1);2 P, t0 ?* L$ K) t
J:=3*K-2*D1;( N r4 E, C* R4 ~/ l. I) e# V
VAR3:=(2*CLOSE+HIGH+LOW)/3;
3 ?. a& p d) {- v" t6 XVAR4:=EMA(EMA(EMA(VAR3,4),4),4);. V/ P9 J2 [! u& d+ m* c
E:=(VAR4-REF(VAR4,1))/REF(VAR4,1)*100;
4 u2 N# m0 }; o* }0 C, s+ S3 i( c: GF:=MA(E,3)+0.03;+ G& u2 N' Z3 |. ^
G:=MA(E,1);1 c! B) o: I# w+ w5 C, i
DRAWICON(CROSS(F,G) AND J>65,HIGH*1.02,15),colorgreen;
6 \" J7 M+ L) NDRAWICON(CROSS(G,F),LOW *0.9,9),coloryellow;8 s1 M8 O7 u. n) C6 T1 L- J/ U
DRAWTEXT(CLOSE>OPEN AND H1 DRAWTEXT( CROSS(上线1,操纵) AND M1 AND M2 AND M3,LOW 8 `) `% S# c# d0 r( ]
- |3 b d% Y! |/ \% u7 q
*0.94,'买进' ),coloryellow;
6 p4 m" o3 i) O1 i0 D- ?DRAWTEXT(CLOSE>OPEN AND 上线>一号支持线1 AND 一号支持线1>一号支持线 AND CLOSE>MA
% @# _3 C/ E. p- R( U# Y, f. L( _0 V& c3 D8 s/ U+ C9 }# g
(CLOSE,一号支持线) AND 操纵>=REF(CLOSE,操纵) AND CROSS(上线1,操纵) AND LOW>VAR1 AND " C7 L/ H0 X3 u9 Q, ]2 R6 H) Y
) ]6 U; _: p7 w, VJOPEN AND 操纵>上线 AND 上线>一号支持线1 AND 一号支持线1>一号支持线 : V, w# ]3 J3 q2 V% ?# X
7 m7 @' w3 S. }2 @% }! K' T
AND CROSS(上线1,操纵) AND LOW>VAR1 AND JOPEN AND CROSS(上线,一号支持线) AND LOW>VAR1 AND J REF(CLOSE,1) ,HIGH,LOW,0,0 ),colorred;
7 M# x8 n D$ h0 G! }STICKLINE(CREF(C,1),C,O,3,0),COLORFFCC00;7 e3 a5 T9 X- A. N$ m& W
STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,3,0 ),COLOR000055;
; K: H4 ?; f: Y$ M" ~5 SSTICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.7,0 ),COLOR000077;. x& S2 X- {. L8 m' F
STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.1,0 ),COLOR000099;& H' P' u- v& t) n8 @9 H: n5 b2 I- B
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;
: F' n3 D* G& j" Q: c$ \( dSTICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;9 `2 ^# K3 U. h( U
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;8 o7 P4 n( n+ C$ `
STICKLINE(CLOSE= REF(CLOSE,1) ,H,L,3,1 ),COLOR999999;& V# C1 ^" ]8 K; C
STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,0 ),colorwhite;1 T8 G0 Z8 X$ O4 Z$ g0 K: I
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;+ u+ v" n) n# d! `- V
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;
8 p5 ^6 J# ~* TSTICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;
4 L# Y9 c2 b! w' VSTICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;
5 \/ X. J- |; USTICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;; |3 L7 {, s: h
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;
- l% o y. a0 U3 }& ?STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),colorcyan;
# L: \* A8 {. R: J q8 uSTICKLINE(CO,C,O,3,0),COLORFFCC00;
+ ~$ C8 m5 U6 tSTICKLINE(C STICKLINE(CLOSE< REF(C,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;
9 T9 s- h+ F- @( M I, q2 xSTICKLINE(CLOSE< REF(C,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800;
6 W2 e/ P! C, P* ?STICKLINE(CLOSE< REF(C,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;
! Y- [ Z) g; P. o5 V( jSTICKLINE(CROSS(J,D1) AND J |