) `% K! L3 Y! m9 O. g! \
- S& Y5 K: t3 S; {0 [9 ^公式如下:6 n& R; M8 `+ ~+ I
0 J9 w2 A% w0 U- { l: d5 U2 x3 W( g1 e
趋势:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);( `. O4 R- _' Q
$ J2 {8 Q8 l; l' }% F5 {, W! i见底:=10;
( U5 W+ a- C& w# E5 U! W2 X7 {4 {; z' }/ r+ E6 F5 c
短期底部:CROSS(趋势,见底);主力持仓%:EMA(100*(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30)),3),COLORYELLOW,LINETHICK2;) t y3 \+ I# ] c- M2 R
* _. ]" h! P1 O6 k
DRAWBAND(主力持仓%,RGB(150,10,150),50,RGB(50,55,150));
& D/ v4 q% u+ Y( l: t4 \; W* R W3 u
浮筹比例:(WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))/WINNER(HHV(HIGH,0))*100,NODRAW;
; ~# f* k, X/ F- ?
/ j# @3 s+ k4 k: c, o1 l% zSTICKLINE(浮筹比例<10,10,浮筹比例,4,0),COLORRED;: a9 p" Q+ b1 L4 Q
$ `0 q8 E% A. A* j+ w* TDRAWTEXT(浮筹比例<10,18,'低'),COLORYELLOW;
; w6 {& {1 v8 d Y8 L1 R0 `
9 f7 J2 w6 r# ]/ V* O3 S+ dDRAWTEXT(浮筹比例<10,13,'吸'),COLORYELLOW;
, K, {- K) E7 _: F3 z; U3 b$ ~, L- B( ~9 L) [6 ]
开盘:=WINNER(O)*100;
, t7 h+ X) r; C) I9 M% ]1 Q6 ]+ n1 B
B) R2 z: a! \+ D4 {* m4 |收盘:=WINNER(C)*100;4 t% C$ B: K# M/ V
0 j0 M2 D7 u+ r, w最高:=WINNER(H)*100;
# D$ T0 _- _" r/ j7 ~* n( u" T% s( N: k* I( _! W: H
最低:=WINNER(L)*100;4 u4 K6 B. t0 d- z( S
: r0 I4 [' G3 U$ x获利比例%:收盘,COLORBROWN,NODRAW;: H; i+ ?/ g0 ?# h; ~1 |
1 B: M; V; S% m% n# B
换手:100*VOL/(FINANCE(7)/100),NODRAW;
3 ~% _$ a5 p* V/ T
! w" A1 h7 h& {5 R/ d) B" d换手5日:MA(换手,5),NODRAW;
* `: S" s9 ]" l' D. z q% l! i |+ ^* ^3 H& W
换手10日:MA(换手,10),NODRAW;& c: z: Q$ B8 P6 T0 z2 ?
$ i) h8 o$ l( S* q4 i2 k
换手20日:MA(换手,20),NODRAW;1 I( i; i1 Z3 \* ~5 t! ^
6 N$ i$ ~: q! ?" w% o
85,COLORRED;& Y) o2 u! e) W# u% z1 E- B/ b
3 ?$ R4 I) K8 ]; f0 K- I10,COLORLIGREEN;
, J1 M5 N S+ T6 U# N2 L, m/ U- r8 E6 X" L5 l
DRAWTEXT_FIX(C>O,0.01,0.9,0,'微信公众号:彩虹桥投资学习'),COLORRED;6 j+ d8 R! P- S) |1 I
9 G# s9 w+ J! G# _1 `
DIFW:="MACD.DIF#WEEK"(12,26,9);
4 c) B) c2 E3 ~3 w1 |
; r% H) d$ p+ M( r2 zDEAW:="MACD.DEA#WEEK"(12,26,9);
6 }0 l# J& R* l: J' {5 f
1 N5 U; L# U4 K1 c# |FCA:=FILTER(CROSS(DIFW,DEAW) AND REF(DEAW,1)<0,13),NODRAW;( V5 A/ P* B* T' A! N! z: i' O6 z) V
+ A& F( z+ r4 Z4 M# X, S4 JXG2:=FCA;
2 ~0 N5 m ~3 O
. G0 K; c* Z ~3 B9 _( U选股:= XG2 AND FCA;. E( T- N8 c9 @: P# K% L
) B; Q3 X0 g5 u) v3 p! A5 ~
STICKLINE(选股,10,15,3,0),COLOR0000FF;
2 i d3 X$ @8 B0 m7 _* S0 j8 k: a" o& ]8 f0 E2 c8 b! Z; q2 ^7 f
STICKLINE(选股,15,20,2,0),COLORLICYAN;
2 [/ ?4 R {' S0 |, X* i
/ r2 }: h- @3 g" {; O% `4 O) j6 x. MSTICKLINE(选股,20,25,1,0),COLORBLUE;
" H8 t8 o/ V1 O+ B
7 K$ D+ v1 F2 E+ ]DRAWTEXT(选股,20,'*主力突击'),COLORYELLOW;+ y N3 g. `3 i
% O! `/ E7 B" W6 m/ m6 K
信号有几个,就做一个“主力突击”的选股吧。
& Q3 Y8 S0 D; y: N- k7 z选股公式如下 :DIFW:="MACD.DIF#WEEK"(12,26,9); L' L8 k5 t% P/ W
DEAW:="MACD.DEA#WEEK"(12,26,9);FCA:=FILTER(CROSS(DIFW,DEAW) AND REF(DEAW,1)<0,13);XG2:=FCA;XG2 AND FCA;2 L$ ?8 `# l& \
测试一下,平仓规则是,不论盈亏,以持股5天后平仓为条件; f3 d+ R# [4 [
- R4 p6 A( A" ?3 I# e- s4 ^& O, M3 ~; o. _
胜率74.44%,
2 O3 {. N; [2 Z2 N" E
- J! I( D F% c1 _% e) i: ]END1 J) K6 x$ m! ~: L* g! j, _2 p$ _
7 g( C5 p" q/ G2 d8 l$ u |