这几天没有连续更新帖子的缘故起因是和几个朋侪一起研究指标公式,如今小有成效,特发出来供各人查验1 v ^" j B* \( l# J
以下是部门源码:+ B" j1 Y& v9 u5 W% Y+ {
回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);- L& J4 n* R1 h# n( h: }
经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;' p" {4 s9 F& q
经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D;+ T8 {3 g, S2 {& D2 I
MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))) /(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));/ q9 @: h0 S4 u# @) v
MAHL2:=IF(EMA(C,2)>回归斜率线A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}0 E: S5 b* L j: w1 P8 v( Y
MAHL3:=IF(EMA(C,2)>回归斜率线A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}
1 \' `, A$ {- E4 k回归斜率带RAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));
2 O7 G' R* x- n5 {) j, s$ X: k8 Q上线:=SMA(C,6.5,1);
2 D" t. r+ I; {/ m5 o. z5 ~" f一号支持线:SMA(C,14.5,1);
) d& t' G5 S. ?5 |上线1:=SMA(C,3,1);0 T. W% n# ^2 d6 L; t- X: s
一号支持线1:=SMA(C,8,1);* y/ Z9 T% s3 M! _6 s0 `
上线2:=SMA(C,3.5,1);
& W3 u5 o& Q& U2 e9 lDRAWTEXT(CROSS(一号支持线1,上线1),H*1.08,'洗盘'),COLOR00FF00;
% w. U) v0 |- Q$ f& _; WBBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4;
0 g1 K9 y4 N5 m3 \& v* k' b, f+ qUPR:=BBI+3*STD(BBI,13),LINETHICK2;
' Q6 C0 k3 x% J# c- L+ G4 z! m8 \DWN:=BBI-3*STD(BBI,13);
1 ^9 _6 I: e/ N" J+ d1 \/ X安全:=MA(CLOSE,55),LINETHICK2;
; D; W5 P6 i6 iLC:=REF(CLOSE,1);
2 o% ^# H9 b( G2 i' yRSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
s; r5 d1 b4 F/ ?* V$ Z# U6 @& dDRAWTEXT( CROSS(82,RSI) AND CLOSE操纵,LOW *0.92,'买进' ),COLORYELLOW;
9 D6 G; {' q4 M2 t' S/ ~VAR1LV(A7,21);
* u) L( L# G3 ~( e* S7 f, k7 J3 XVAR2:HHV(A7,30);
- g; W0 h0 i% P6 ~, p- u* i6 H1 ZDRAWTEXT( CROSS(上线1,操纵) AND 上线1操纵 ,LOW *0.98,'全仓' ),COLORYELLOW;# ^7 w5 K! @! g/ h2 m2 o
SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);
9 J& }* W2 X% S. w9 I7 m+ o. ~' g+ rSD:=EMA(0.667*REF(SK,1)+0.333*SK,5); 5 r6 F) s5 }- M9 B, c
M1:=1000*操纵/一号支持线=975;
/ }) ]+ M0 W( L- O) J; L4 W* L# wM2:=1000*一号支持线1/一号支持线=980; ( c1 b" ~( _9 N+ c2 |& u( i
M3:=1000*上线/一号支持线=985;
( e; f( i% W d' _2 @- E8 d8 nDRAWTEXT(IF(COUNT(CLOSE6/10 AND - R1 P0 x- D. J9 Y4 E' I
COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND & |* E% W% R: c4 F! `5 C
REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND
4 d: a! x3 P% c+ jOPEN>REF(CLOSE,1),1,0),LOW*0.94,'买进') ,COLORYELLOW; ) }/ H% u6 A2 L; i; J
D:=MA(CLOSE,89)-MA(CLOSE,10)/3; 0 c8 @) V* g6 h7 I
DRAWTEXT(IF(CLOSEMA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08
6 Y/ V8 i0 A/ C$ g+ d* z; dAND CLOSE65,HIGH*1.02,15),COLORGREEN;9 a) J3 U; G# g6 z
DRAWICON(CROSS(G,F),LOW *0.9,9),COLORYELLOW;1 A" v/ K2 F6 Q6 m% Z
DRAWTEXT(CLOSE>OPEN AND H1一号支持线 AND JOPEN AND 上线>一号支持线1 AND 一号支持线1>一号支持线 AND CLOSE>MA(CLOSE,一号支持线) AND 操纵>=REF(CLOSE,操纵) AND CROSS(上线1,操纵) AND LOW>VAR1 AND JOPEN AND 操纵>上线 AND 上线>一号支持线1 AND 一号支持线1>一号支持线 AND CROSS(上线1,操纵) AND LOW>VAR1 AND JOPEN AND CROSS(上线,一号支持线) AND LOW>VAR1 AND J |