这几天没有连续更新帖子的缘故起因是和几个朋侪一起研究指标公式,如今小有成效,特发出来供各人查验; J" N$ U1 d; N( t$ X% u8 k
以下是部门源码:7 q7 U8 H/ y. q8 c ]1 P" w6 N
回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);
8 @, [! e) O7 n1 e2 h6 B- D6 ~经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X! S& u: ~% y" w* z1 j' D经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D;
3 |- M+ r& {$ a5 R6 RMAHL1:=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))));8 V1 g& O) P9 [# _ @3 u
MAHL2:=IF(EMA(C,2)>回归斜率线A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}
7 v w6 N8 n/ V1 ]MAHL3:=IF(EMA(C,2)>回归斜率线A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}7 G' o# I; B: T7 q4 W1 e, t. I
回归斜率带RAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));9 o7 n `* H' ?3 q8 W
上线:=SMA(C,6.5,1);1 E- y M$ o/ @3 S2 _; W5 w) i4 F
一号支持线:SMA(C,14.5,1);2 m$ [6 z1 B1 U, n' d# l6 t* F
上线1:=SMA(C,3,1);9 c' K7 |: V7 s! t
一号支持线1:=SMA(C,8,1);4 l8 n5 P# P, L, [5 ?) l2 S
上线2:=SMA(C,3.5,1);" V. P* A; Y5 a3 |9 c
DRAWTEXT(CROSS(一号支持线1,上线1),H*1.08,'洗盘'),COLOR00FF00;* ~0 s! a& X- T6 s* T
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4;
+ a; F4 a( y& N6 D+ C% OUPR:=BBI+3*STD(BBI,13),LINETHICK2;! c" S G- H: D! N4 m- ]
DWN:=BBI-3*STD(BBI,13);
6 l9 A) l& E: ?" _4 u安全:=MA(CLOSE,55),LINETHICK2;% t& v- c$ K* K
LC:=REF(CLOSE,1); * b& {8 S! N" ]4 u( G5 _: q1 M2 `
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
' K0 D' Y G4 N* e( Y0 sDRAWTEXT( CROSS(82,RSI) AND CLOSE操纵,LOW *0.92,'买进' ),COLORYELLOW;& l8 t# f/ a$ L
VAR1LV(A7,21);
" v% ]! k* e- z6 e4 H4 a, dVAR2:HHV(A7,30);% Y* ^% Y: F) z
DRAWTEXT( CROSS(上线1,操纵) AND 上线1操纵 ,LOW *0.98,'全仓' ),COLORYELLOW;6 ^, }* _! c e! c+ ?# J
SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);
, f, b+ s+ Y) Y- u, {SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
& _+ J' o5 E |& m# e, E: qM1:=1000*操纵/一号支持线=975; . W5 ?% T6 [; h4 z1 x/ n7 N2 D
M2:=1000*一号支持线1/一号支持线=980; $ E, I' e3 t; n, R" q+ k
M3:=1000*上线/一号支持线=985;! `0 N0 Q+ {& F6 H4 K. f
DRAWTEXT(IF(COUNT(CLOSE6/10 AND " Y. b1 c9 `$ W6 T; s
COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND
# j* n. [+ H& J1 OREF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND
# w0 C% U \& x% ]OPEN>REF(CLOSE,1),1,0),LOW*0.94,'买进') ,COLORYELLOW;
+ _8 x0 ]( |& c/ L, w) p; ]( o2 uD:=MA(CLOSE,89)-MA(CLOSE,10)/3; 9 Q# S' j w: n! Q' i
DRAWTEXT(IF(CLOSEMA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08$ k4 M( A" u; q
AND CLOSE65,HIGH*1.02,15),COLORGREEN;
, Z! I9 p* E) G/ N; o3 Z6 xDRAWICON(CROSS(G,F),LOW *0.9,9),COLORYELLOW;
$ N' e8 W. r6 X7 `) }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 |