主力控盘率$ a: g% o) k& M2 x
MA05:MA(C,5),LINETHICK3,COLOR00CCFF;
& y4 I( }6 J7 d: L3 @# [) h! |MA10:=MA(C,10);# ~3 b8 _# l+ x( F& s
MA20:=MA(C,20);1 j6 M+ j/ w& R, m7 D9 O: W$ q- X
MA30:=MA(C,30);- r' ]% N& \6 O* V8 x7 J# S
五日乖离率:=(C-MA05)/MA05*100;7 G. y6 J) ~$ p/ s7 l! b' j( C4 M) I
BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;7 G0 {( Y/ k, M3 R; }+ ?
速率5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);1 v: S$ E1 w$ y* M! @
加快率5:=EMA((速率5-REF(速率5,1)),3),NODRAW;
5 t4 c) a2 X* o+ Y, |4 [7 N W
1 R8 `' d+ L; z0 cBB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
K6 ?5 T3 g8 Q3 I a4 P三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;
7 z2 D( J# s# B- ^/ V: YVAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);- p ^5 z3 Z( _
VAR2:=(MA30-MA20) BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;6 |1 r7 Z6 K9 V$ H" h/ N7 J+ Y+ B
强势偷袭:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);% p4 G& S2 B5 L& D; T+ |1 q
加仓:=FILTER(COUNT(CROSS(BB05,15),5)>=1 AND MA05>REF(MA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1)
/ p* Z. c. Z9 C0 n/ O+ vAND 加快率5>REF(加快率5,1) AND 速率5>REF(速率5,1) ,10) ;
+ @6 L% q; r. P/ l& {1 i% S清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>MA30 OR O>MA30) AND MA05 DRAWTEXT(加仓 ,LOW*0.98,'加仓'),colorred;8 ^" E$ G4 v( P) ?/ m1 B) x
JC:=CROSS(0,五日乖离率) AND 三拾日乖离率REF(MA10,1) ;$ ^' f9 k! j- g# ~! Y ^
减仓:=FILTER(JC,10);
V7 _; t. `# t3 T$ I) eMR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA05>REF(MA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1) 买入:=FILTER(MR,10);
& D- A) x i/ P: HDRAWTEXT(减仓,HIGH*1.02,'风险'),colorcyan;& ~/ {' A1 S* X1 `! l: t' r
DRAWTEXT(买入,LOW*0.98,'买入'),coloryellow;
9 ^) c/ g8 ?" G' J8 o4 L/ u6 M8 F& x" w$ ~2 o; b8 ~
DRAWTEXT(强势偷袭,LOW*0.98,'偷袭'),coloryellow;$ B" v+ Y4 x4 }
VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));
7 r Y/ N4 z+ I9 CVAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);
% }, y: O% \, ~5 i: Y% V0 i6 uMV:=(VAR21+VAR3)/AMOUNT*VOL*100 |