【第一私募论坛】www.simu001.cn】(一)指标设置,一主图两副图,就用现成的,改改参数就成:  
4 {! B* H# o0 V' k) U (1)主图:bbi;  (2)副图1:kdj(参数本来是9,3,3改为21,7,3);  (3)副图2:macd(参数本来是12,26,9改为5,26,3);
9 W, o4 @$ u" i: i6 T速成炒股法原码:  : i5 p% h" j& W
{BBI}{主图} BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; 4 F' {/ Y1 P- z3 K: c/ P7 l+ e1 X
{MACD-SC}{副图} DIF:EMA(CLOSE,5)-EMA(CLOSE,26);  
- H% N# M- F/ T9 n) S2 N+ i DEA:EMA(DIF,3),LINETHICK1;  9 E" ]# o3 M, O: _4 T
MACD:=2*(DIF-DEA);  
" a( b$ y, H1 Q% p- \) u1 u STICKLINE(MACD>=0,MACD,0,0,0),COLORF00FF0;  
6 n; b- b R8 b* T0 o2 b STICKLINE(MACD<0,MACD,0,0,0),COLORF00FF0;
4 C4 O- \' ^# q( K% }" v" f0 `  STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0,0 ),COLORFFFF00;  $ Z5 T T7 C: {+ I3 Q
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0,0 ),COLORFFFF00;  9 q2 M }* Z" I5 G2 E P5 K
IF(DIF<0,DIF,0),COLORRED,LINETHICK1;  1 ]. u5 y, s! t) j
IF(DIF<0,0,DIF),COLORRED,LINETHICK1;  
; Z- U7 Y9 T/ g, i IF(DIF<DEA,DIF,DEA),COLOR00FF00,LINETHICK1;   i& ?( G/ b( ?% l( G8 ?( S
IF(DIF>DEA,DEA,DEA),COLORWHITE,LINETHICK1; 2 G$ E* H4 t& U* H: M5 c( K' K
金叉:=CROSS(DIF,DEA) AND DIF<0.3;  
9 Q( u# A$ L: d STICKLINE(金叉,0,-0.38,3,0),COLOR0000FF;. O2 B" I- q- o8 [! S
{KDJ-SC}{副图} RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; % }9 ~5 f9 w+ G% y. A: E: }
 K:SMA(RSV,7,1);  D:SMA(K,3,1);  J:3*K-2*D;  
5 [' u0 q; S z! x/ W) S2 U VARK:K,COLORWHITE; , n0 i5 g) D0 X, ~- K
上升K:IF(VARK>REF(VARK,1),VARK,DRAWNULL),COLORRED; 走平K:IF(VARK=REF(VARK,1),VARK,DRAWNULL),COLORFFFFCC; 降低K:IF(VARK<REF(VARK,1),VARK,DRAWNULL),COLORGREEN;  
" `% Z0 C" q- O" H! p8 d; F# G VARD:D,COLORWHITE; ) C6 s) L: M& b1 G) Y# d. m! s
上升D:IF(VARD>REF(VARD,1),VARD,DRAWNULL),COLORRED; 走平D:IF(VARD=REF(VARD,1),VARD,DRAWNULL),COLORFFFFCC; 降低D:IF(VARD<REF(VARD,1),VARD,DRAWNULL),COLORGREEN;  
% B c: c/ u$ w. L" D7 I5 r4 F VARJ:J,COLORWHITE;
2 R$ ?" Q! q' i. e& D2 A, g) k 上升J:IF(VARJ>REF(VARJ,1),VARJ,DRAWNULL),COLORRED; 走平J:IF(VARJ=REF(VARJ,1),VARJ,DRAWNULL),COLORFFFFCC; 降低J:IF(VARJ<REF(VARJ,1),VARJ,DRAWNULL),COLORGREEN;
+ ~/ `! s7 B4 a0 |6 Z5 d0 O- Y {速成选股} BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;  ' C- L% q# M" i; B O( _6 n
DIF:=EMA(CLOSE,5)-EMA(CLOSE,26);  * x- o/ @ \9 ?' ~
DEA:=EMA(DIF,3),LINETHICK1; & B# z; ?, C/ b- y! c* p; f& i
 RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;  8 u+ {2 _% Y" q
K:=SMA(RSV,7,1);  D:=SMA(K,3,1);   @, j: O* p% P e6 `. U+ o
XG:CROSS(CLOSE,BBI) AND BBI>REF(BBI,1) AND CROSS(DIF,DEA) AND CROSS(K,D);  
1 k" _3 o! u9 R/ l, C. a' ~4 \(二)用法:  . q0 R( U! U( F5 T; Z
(1)先看主图,如bbi向上时,而k线向上穿越bbi,则是买点;此时此刻kdj,macd响应会金叉;  
1 n$ B/ o2 A% s+ k (2)如bbi一向托住k线向上,则持股不卖,此时kdj,macd响应向上;
- ?6 h0 ?; E0 u+ M  (3)必定要看bbi的角度,角度愈大愈强,角度愈小愈弱,角度变平就要变盘了,而kdj,macd响应会表现;  
3 X* v4 x- H4 o s; e4 c (4)当bbi角度变小变平,而k线向下穿越bbi,则是卖点,此时此刻kdj,macd响应会持续叉;
3 a; x5 B3 n% l) L `; a  (5)交易时必定看大盘的强弱,大盘不好情愿不做,大盘好,此法甚灵;  
2 z* B0 K& K& M* T+ ? (6)bbi,kdj,macd,三者是互相印证的在实战中,你会加深领会;  诚恳请大家斧正与辅助,并辅助普及,恩情万荚丁!! 9 [& m) `3 L3 Q+ V% r8 F
 三点见解:  
, I- d @: D& l2 o 一、零轴下金叉优先;  二、大盘强势选放量,大盘弱势选地量;  三、前次持续叉时间不能太近。
' f7 Z6 B& O! a g2 O5 z+ e* m8 o股票论坛 www.simu001.cn【第一私募论坛】www.simu001.cn】 |