【第一私募论坛】www.simu001.cn】(一)指标设置,一主图两副图,就用现成的,改改参数就成:  
# B5 U! z' ?3 G- s& A, j, v& _' s (1)主图:bbi;  (2)副图1:kdj(参数本来是9,3,3改为21,7,3);  (3)副图2:macd(参数本来是12,26,9改为5,26,3); / w( U2 B3 l3 a- u
速成炒股法原码:  
4 C% X+ |0 O/ }2 T. C4 a0 A {BBI}{主图} BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
2 i: P! [1 |: x0 k {MACD-SC}{副图} DIF:EMA(CLOSE,5)-EMA(CLOSE,26);  ) H: t6 U% u+ N. Q
DEA:EMA(DIF,3),LINETHICK1;  
6 {% X9 l% X4 V3 B MACD:=2*(DIF-DEA);  ; v# K: o7 A) N4 E, d0 v
STICKLINE(MACD>=0,MACD,0,0,0),COLORF00FF0;  ( U7 c' p# Z" A& `
STICKLINE(MACD<0,MACD,0,0,0),COLORF00FF0;
, z, E7 q) C8 u/ t  STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0,0 ),COLORFFFF00;  
2 \; R- q- P. }: i: U STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0,0 ),COLORFFFF00;  
5 l1 |! x& g6 E IF(DIF<0,DIF,0),COLORRED,LINETHICK1;  
. o% j8 ~2 P" z! T* [9 A3 [ IF(DIF<0,0,DIF),COLORRED,LINETHICK1;  / t6 P% g# T/ j) ]9 S
IF(DIF<DEA,DIF,DEA),COLOR00FF00,LINETHICK1;  
p; a: G1 h; o IF(DIF>DEA,DEA,DEA),COLORWHITE,LINETHICK1;
8 \: ?" K1 W4 S6 y* q8 K: t 金叉:=CROSS(DIF,DEA) AND DIF<0.3;  ' I$ l% G( c) \, g% v6 S1 G
STICKLINE(金叉,0,-0.38,3,0),COLOR0000FF;6 I K- w5 b1 |2 f1 Q# g
{KDJ-SC}{副图} RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
' y5 }* Y4 C6 \6 J; `6 l# i5 {  K:SMA(RSV,7,1);  D:SMA(K,3,1);  J:3*K-2*D;  % Q2 q0 G% [3 K
VARK:K,COLORWHITE;
* v, Z+ S$ \5 V5 \1 ? 上升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;  5 J9 M) s" [/ D
VARD:D,COLORWHITE; % N9 R) q7 c$ r# U- A# s( P1 Q7 k
上升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' m* B+ a# C6 J. K& ] VARJ:J,COLORWHITE;
) t% h3 W0 \8 x8 p- } 上升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;
! ], s6 c( K6 A+ D4 P6 X- B# G {速成选股} BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;  
- X; m6 m9 r- N7 I2 z DIF:=EMA(CLOSE,5)-EMA(CLOSE,26);  ! A% X. `: C9 q3 G
DEA:=EMA(DIF,3),LINETHICK1;
# z. o8 j- y {+ c1 X  RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;  9 a! J4 B- R4 }2 u0 U% q, f
K:=SMA(RSV,7,1);  D:=SMA(K,3,1);  
# G/ H/ Z' g- z: u* v XG:CROSS(CLOSE,BBI) AND BBI>REF(BBI,1) AND CROSS(DIF,DEA) AND CROSS(K,D);  - w) s9 v, y9 f7 u- `5 c
(二)用法:  
# V: T- |0 x c9 Q- V$ b (1)先看主图,如bbi向上时,而k线向上穿越bbi,则是买点;此时此刻kdj,macd响应会金叉;  ! v) }6 }4 z4 o
(2)如bbi一向托住k线向上,则持股不卖,此时kdj,macd响应向上; & U+ R( w, d' B" ^
 (3)必定要看bbi的角度,角度愈大愈强,角度愈小愈弱,角度变平就要变盘了,而kdj,macd响应会表现;  
) M3 Y8 ]2 n- H9 V3 D. H8 J! M (4)当bbi角度变小变平,而k线向下穿越bbi,则是卖点,此时此刻kdj,macd响应会持续叉; ) i; ^4 s" I7 ~/ T1 z. h5 X
 (5)交易时必定看大盘的强弱,大盘不好情愿不做,大盘好,此法甚灵;  7 b' y1 q8 o: `6 l* d
(6)bbi,kdj,macd,三者是互相印证的在实战中,你会加深领会;  诚恳请大家斧正与辅助,并辅助普及,恩情万荚丁!! , r2 q( H( K) i4 M# J
 三点见解:  ) ]& v2 h; W+ t, y
一、零轴下金叉优先;  二、大盘强势选放量,大盘弱势选地量;  三、前次持续叉时间不能太近。% o# t# n) F1 C. `5 v
股票论坛 www.simu001.cn【第一私募论坛】www.simu001.cn】 |