这几天没有连续更新帖子的缘故起因是和几个朋侪一起研究指标公式,如今小有成效,特发出来供各人查验2 n( R2 n% e* N7 M; z7 t
以下是部门源码:
) @3 E: i% F" e$ p& U回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);. p5 N# r ?/ D! g+ U( [- K9 v
经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
+ {! x( v, G, S: H( w: U经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D;
/ `+ j9 ]) q, O; u, w+ ^1 @7 J: iMAHL1:=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))));
" `( w e5 K1 M' \: b! kMAHL2:=IF(EMA(C,2)>回归斜率线A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}. G1 x# ~; b* `3 q2 g8 o
MAHL3:=IF(EMA(C,2)>回归斜率线A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}
# z- C% R: n: O" I回归斜率带RAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));# L3 r1 v8 {, l: X
上线:=SMA(C,6.5,1);* H: k# F& U0 f
一号支持线:SMA(C,14.5,1);% O# C2 c" m7 }1 V* v* z: m# t
上线1:=SMA(C,3,1);1 ^0 g T& v4 p; m, |" q( x
一号支持线1:=SMA(C,8,1);
4 z w( l0 _. X: G$ H上线2:=SMA(C,3.5,1);
* G( N/ Y' A% C+ F/ ]3 H3 `. yDRAWTEXT(CROSS(一号支持线1,上线1),H*1.08,'洗盘'),COLOR00FF00;. k" c! Z) B$ V, V. r+ c1 }! [
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4;" y! r5 I- N' { @6 G6 a. G
UPR:=BBI+3*STD(BBI,13),LINETHICK2;* R- K X& ]$ G2 ^( l _
DWN:=BBI-3*STD(BBI,13);! g. X+ f2 E# s; d* m4 p
安全:=MA(CLOSE,55),LINETHICK2;8 ~: E. I7 l# P. l4 f6 N$ k0 M
LC:=REF(CLOSE,1); : |! n& d1 y, R& C# t
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; 4 A* E2 o' ~4 `6 z! h
DRAWTEXT( CROSS(82,RSI) AND CLOSE操纵,LOW *0.92,'买进' ),COLORYELLOW;
, A, ?! d' }7 S, pVAR1LV(A7,21);1 V$ E" ~' q! s( p; f1 ~" Q7 A
VAR2:HHV(A7,30);- {/ Y6 {* M1 R" [3 ^ l
DRAWTEXT( CROSS(上线1,操纵) AND 上线1操纵 ,LOW *0.98,'全仓' ),COLORYELLOW;& T& S' R$ j% N1 M5 u1 s. |4 J
SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7); : e7 X. O4 K0 V* _' k6 t3 X
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
- Z; m- u0 W1 _! i' eM1:=1000*操纵/一号支持线=975;
7 E1 z J6 k. V4 b+ m. c1 h% UM2:=1000*一号支持线1/一号支持线=980;
- c: t5 I! J: C2 H) EM3:=1000*上线/一号支持线=985;$ U/ i& S# w! G& Z, C
DRAWTEXT(IF(COUNT(CLOSE6/10 AND
: j! ]5 b! m' T! T% oCOUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND
; z Q+ a9 X/ _6 o) j+ j! ?: `REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND 7 r9 D: w8 |; s, Y8 S& o
OPEN>REF(CLOSE,1),1,0),LOW*0.94,'买进') ,COLORYELLOW; $ ^+ V; w7 d7 P) T) P g4 @) j
D:=MA(CLOSE,89)-MA(CLOSE,10)/3;
6 Z5 E" ~! J& e6 E, E: N3 h$ DDRAWTEXT(IF(CLOSEMA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 r. R0 F) n8 B4 q" M
AND CLOSE65,HIGH*1.02,15),COLORGREEN;
4 P2 n6 D3 ]* c3 K' Q, KDRAWICON(CROSS(G,F),LOW *0.9,9),COLORYELLOW;3 E: i4 j M- L5 \
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 |