【第一私募论坛】www.simu001.cn】(一)指标设置,一主图两副图,就用现成的,改改参数就成:  
2 Z, x2 l: D6 j4 i" T8 m (1)主图:bbi;  (2)副图1:kdj(参数本来是9,3,3改为21,7,3);  (3)副图2:macd(参数本来是12,26,9改为5,26,3);
0 u2 g/ W! ]. _7 l$ u3 c: j+ i; C速成炒股法原码:  
! L7 [* r2 z0 s8 Y9 j# Y {BBI}{主图} BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; 1 ]: v4 k- a3 v
{MACD-SC}{副图} DIF:EMA(CLOSE,5)-EMA(CLOSE,26);  
$ j# i# Q! e! |* c DEA:EMA(DIF,3),LINETHICK1;  - {5 R2 p3 P& V. a9 e0 V
MACD:=2*(DIF-DEA);  
- w# Z/ \0 H" K: M( O! m STICKLINE(MACD>=0,MACD,0,0,0),COLORF00FF0;  
5 Y, } S. C2 g% ` STICKLINE(MACD<0,MACD,0,0,0),COLORF00FF0; 3 J8 o% V5 d7 a d# f
 STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0,0 ),COLORFFFF00;  1 K! |* O) `* f% t
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0,0 ),COLORFFFF00;  $ a% @* q, e; v7 K/ [& A, H+ z, Q
IF(DIF<0,DIF,0),COLORRED,LINETHICK1;  % F+ I! r2 p( [7 i3 @2 c# ^
IF(DIF<0,0,DIF),COLORRED,LINETHICK1;  9 e4 p5 M7 q! u- g( w
IF(DIF<DEA,DIF,DEA),COLOR00FF00,LINETHICK1;  , b- M- h# q" m1 @
IF(DIF>DEA,DEA,DEA),COLORWHITE,LINETHICK1; s/ C, k+ s! t6 ]9 |" Y% L
金叉:=CROSS(DIF,DEA) AND DIF<0.3;  
. ^6 q! Q9 I) a: h3 } STICKLINE(金叉,0,-0.38,3,0),COLOR0000FF;
! @: }7 L0 G: x+ W/ G8 D {KDJ-SC}{副图} RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; * x. h( |8 D* y. ~' ]5 L/ @# Q
 K:SMA(RSV,7,1);  D:SMA(K,3,1);  J:3*K-2*D;  
9 G+ a8 B, D( e( N VARK:K,COLORWHITE;
8 l/ y' k1 V* Q# y 上升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;  6 k7 E0 ~1 d# x
VARD:D,COLORWHITE;
. p1 J! [0 V# f7 a2 g' ^3 T 上升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;  
; H4 P1 F4 r5 t1 A" i$ w VARJ:J,COLORWHITE;
/ Y( J$ S- E. x J2 r S7 G- d 上升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;* y) W& ?1 g+ N: N, q4 R& k
{速成选股} BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;  $ J0 w" q( a. `: s( k
DIF:=EMA(CLOSE,5)-EMA(CLOSE,26);  5 o6 F8 {. p- j* I* T; T! D X M
DEA:=EMA(DIF,3),LINETHICK1;
: p' N' [7 F8 q  RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;  
" r& C7 |7 d6 I/ I K:=SMA(RSV,7,1);  D:=SMA(K,3,1);  
( i2 f7 |% D" ^! K XG:CROSS(CLOSE,BBI) AND BBI>REF(BBI,1) AND CROSS(DIF,DEA) AND CROSS(K,D);   ?1 }* g- x7 a; G, h) q2 ^
(二)用法:  
! e3 b: s: f7 H% K) U, L& S- y (1)先看主图,如bbi向上时,而k线向上穿越bbi,则是买点;此时此刻kdj,macd响应会金叉;  - N# [7 ^( ~: ~3 L% C$ R3 r, e
(2)如bbi一向托住k线向上,则持股不卖,此时kdj,macd响应向上;
7 [- R; d3 K% j; \& j' C* Z  (3)必定要看bbi的角度,角度愈大愈强,角度愈小愈弱,角度变平就要变盘了,而kdj,macd响应会表现;   V* j7 |6 x# L9 m7 M1 Y& O# @# o
(4)当bbi角度变小变平,而k线向下穿越bbi,则是卖点,此时此刻kdj,macd响应会持续叉;
$ `( Y, n# d4 @( H  (5)交易时必定看大盘的强弱,大盘不好情愿不做,大盘好,此法甚灵;  , i3 E$ }- u5 X% A6 r
(6)bbi,kdj,macd,三者是互相印证的在实战中,你会加深领会;  诚恳请大家斧正与辅助,并辅助普及,恩情万荚丁!!
9 M9 t% E+ f5 N& x  三点见解:  ; W) X* |4 L2 G6 l( C
一、零轴下金叉优先;  二、大盘强势选放量,大盘弱势选地量;  三、前次持续叉时间不能太近。
( x# T) o- Y$ f6 x8 j1 g& H3 d股票论坛 www.simu001.cn【第一私募论坛】www.simu001.cn】 |