三线共震出黑马 s S' m7 V4 O. e* ~, }9 A/ n
行业线在大盘线之上,且能量线上穿行业线或大盘线时为买入点;如果共同指标的买点信号(白色),便得到捕捉龙头黑马股的最佳点!, I y4 z# d3 s/ h1 y9 n# a
4 [" X) [$ d6 Z
INPUT:N(70,1,999),M(5,1,120);
! K9 y g9 A& I6 kZSC:=IF(INBLOCK('工程修建'),"991002$CLOSE",IF(INBLOCK('电力'),"991003$CLOSE",IF(INBLOCK('盘算机'),"991004$CLOSE",
7 M- M O. \( ]- r8 Q' s9 T, hIF(INBLOCK('电子信息'),"991006$CLOSE",IF(INBLOCK('房地产'),"991007$CLOSE",IF(INBLOCK('纺织服装'),"991008$CLOSE",
. Q. A- h8 I) J! F( |" T! A8 sIF(INBLOCK('钢铁'),"991009$CLOSE",IF(INBLOCK('供水供气'),"991010$CLOSE",IF(INBLOCK('化工化纤'),"991011$CLOSE",. y+ _0 G, `6 M. n; W# ^
IF(INBLOCK('电器'),"991014$CLOSE",IF(INBLOCK('交通办法'),"991016$CLOSE",IF(INBLOCK('银行类'),"991017$CLOSE",; [# G% m, M5 q1 b3 M4 q
IF(INBLOCK('旅游旅馆'),"991018$CLOSE",IF(INBLOCK('煤炭石油'),"991019$CLOSE",IF(INBLOCK('酿酒食品'),"991020$CLOSE",; r7 a$ e$ \$ m
IF(INBLOCK('农林牧渔'),"991021$CLOSE",IF(INBLOCK('商业连锁'),"991023$CLOSE",IF(INBLOCK('建材'),"991024$CLOSE",
8 Z& g) B7 W( s) W, QIF(INBLOCK('其他行业'),"991025$CLOSE",IF(INBLOCK('汽车类'),"991026$CLOSE",IF(INBLOCK('机器'),"991027$CLOSE",; \+ b8 T! s9 Y" a: p! T# E* {
IF(INBLOCK('医药'),"991028$CLOSE",IF(INBLOCK('外贸'),"991031$CLOSE",IF(INBLOCK('教诲传媒'),"991032$CLOSE",
9 ] {, Q' X; I& U8 B9 ^IF(INBLOCK('仪电仪表'),"991033$CLOSE",IF(INBLOCK('有色金属'),"991034$CLOSE",IF(INBLOCK('造纸印刷'),"991035$CLOSE",+ K0 l: |% a: T: F% z" v, X, ?* c
IF(INBLOCK('券商'),"991036$CLOSE",IF(INBLOCK('电力装备'),"991037$CLOSE",IF(INBLOCK('通讯'),"991135$CLOSE",/ I! I! Z' T& P% P4 J. g
IF(INBLOCK('运输物流'),"991136$CLOSE",IF(INBLOCK('保险'),"991255$CLOSE",0))))))))))))))))))))))))))))))));
8 z" j! j, S0 b2 W' g2 O7 rZSH:=IF(INBLOCK('工程修建'),"991002$HIGH",IF(INBLOCK('电力'),"991003$HIGH",IF(INBLOCK('盘算机'),"991004$HIGH",4 X/ V/ D3 O2 m' Y
IF(INBLOCK('电子信息'),"991006$HIGH",IF(INBLOCK('房地产'),"991007$HIGH",IF(INBLOCK('纺织服装'),"991008$HIGH",
9 j8 a5 R: ~$ l. n- bIF(INBLOCK('钢铁'),"991009$HIGH",IF(INBLOCK('供水供气'),"991010$HIGH",IF(INBLOCK('化工化纤'),"991011$HIGH",. {, ]. U( B! M6 [" i
IF(INBLOCK('电器'),"991014$HIGH",IF(INBLOCK('交通办法'),"991016$HIGH",IF(INBLOCK('银行类'),"991017$HIGH",
2 ~; M H1 R1 d7 g+ f1 TIF(INBLOCK('旅游旅馆'),"991018$HIGH",IF(INBLOCK('煤炭石油'),"991019$HIGH",IF(INBLOCK('酿酒食品'),"991020$HIGH",
) s2 C# V X" x; m! n5 G+ O* WIF(INBLOCK('农林牧渔'),"991021$HIGH",IF(INBLOCK('商业连锁'),"991023$HIGH",IF(INBLOCK('建材'),"991024$HIGH",
; O* [9 H" Y: _$ s- dIF(INBLOCK('其他行业'),"991025$HIGH",IF(INBLOCK('汽车类'),"991026$HIGH",IF(INBLOCK('机器'),"991027$HIGH",. G- d' O6 ]- X( K3 y1 o. ^+ ]- k
IF(INBLOCK('医药'),"991028$HIGH",IF(INBLOCK('外贸'),"991031$HIGH",IF(INBLOCK('教诲传媒'),"991032$HIGH",
+ `/ b: D, @0 y$ D' V* zIF(INBLOCK('仪电仪表'),"991033$HIGH",IF(INBLOCK('有色金属'),"991034$HIGH",IF(INBLOCK('造纸印刷'),"991035$HIGH",1 U' Z' S! e' F! I
IF(INBLOCK('券商'),"991036$HIGH",IF(INBLOCK('电力装备'),"991037$HIGH",IF(INBLOCK('通讯'),"991135$HIGH",0 v1 t6 T' Q1 m! W' s; M
IF(INBLOCK('运输物流'),"991136$HIGH",IF(INBLOCK('保险'),"991255$HIGH",0))))))))))))))))))))))))))))))));
2 y- Y1 x# q' y( kZSL:=IF(INBLOCK('工程修建'),"991002$LOW",IF(INBLOCK('电力'),"991003$LOW",IF(INBLOCK('盘算机'),"991004$LOW",9 |) T H' ?8 x! J! U" s
IF(INBLOCK('电子信息'),"991006$LOW",IF(INBLOCK('房地产'),"991007$LOW",IF(INBLOCK('纺织服装'),"991008$LOW",% s+ r; N( S+ j3 v9 Z
IF(INBLOCK('钢铁'),"991009$LOW",IF(INBLOCK('供水供气'),"991010$LOW",IF(INBLOCK('化工化纤'),"991011$LOW",
5 b( _5 I8 h0 V3 C4 U! YIF(INBLOCK('电器'),"991014$LOW",IF(INBLOCK('交通办法'),"991016$LOW",IF(INBLOCK('银行类'),"991017$LOW",8 B$ G: Y- T# e, l. R' d
IF(INBLOCK('旅游旅馆'),"991018$LOW",IF(INBLOCK('煤炭石油'),"991019$LOW",IF(INBLOCK('酿酒食品'),"991020$LOW",! j* N {. S6 w5 j- Z3 p2 Y
IF(INBLOCK('农林牧渔'),"991021$LOW",IF(INBLOCK('商业连锁'),"991023$LOW",IF(INBLOCK('建材'),"991024$LOW",9 H- l$ c0 W1 t5 \' y' F+ l" C
IF(INBLOCK('其他行业'),"991025$LOW",IF(INBLOCK('汽车类'),"991026$LOW",IF(INBLOCK('机器'),"991027$LOW"," {2 A; y1 P+ [
IF(INBLOCK('医药'),"991028$LOW",IF(INBLOCK('外贸'),"991031$LOW",IF(INBLOCK('教诲传媒'),"991032$LOW",, s9 G$ F8 r4 A2 w
IF(INBLOCK('仪电仪表'),"991033$LOW",IF(INBLOCK('有色金属'),"991034$LOW",IF(INBLOCK('造纸印刷'),"991035$LOW",
8 G1 \7 c5 ?& x4 j3 fIF(INBLOCK('券商'),"991036$LOW",IF(INBLOCK('电力装备'),"991037$LOW",IF(INBLOCK('通讯'),"991135$LOW",. {4 W- R6 Q; I, [7 A( U2 g
IF(INBLOCK('运输物流'),"991136$LOW",IF(INBLOCK('保险'),"991255$LOW",0))))))))))))))))))))))))))))))));
) x$ q+ P6 c% J- F! q3 IVar12:=(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100;: ?0 D. S- U( n, ~, K7 |9 R
能量线:SMA(Var12,3,1)*(-1)+100,colorRED,linethick2;& v4 r- F, n' d' T+ K0 P, M c$ K
KNX:=SMA(Var12,3,1);5 H6 Z& M; l! F% B
MK:=MA(KNX,M);
5 G: z9 D. E/ L! |5 p买点:IF(KNX>N AND CROSS(MK , KNX),50,0),COLORWHITE,LINETHICK1;
, G7 a+ [5 b& P8 U5 f5 @& SVar13:=(HHV(ZSH,34)-ZSC)/(HHV(ZSH,34)-LLV(ZSL,34))*100;
2 A9 C- p3 w2 D8 g( U行业线:SMA(Var13,3,1)*(-1)+100,colorgreen,linethick1;, N4 s' B4 o4 c8 N$ z1 [
Var11:=(HHV(INDEXH,34)-INDEXC)/(HHV(INDEXH,34)-LLV(INDEXL,34))*100;
# i, U) k1 w! [5 T: ^0 n( B大盘线:SMA(Var11,3,1)*(-1)+100,colorYELLOW,linethick1;" v3 \, o( \7 m" y) q
板块:=IFS(INBLOCK('工程修建'),'工程修建',IFS(INBLOCK('电力'),'电力',IFS(INBLOCK('盘算机'),'盘算机',IFS(INBLOCK('电子信息'),'电子信息',
8 K! M& m2 Q% y8 x. eIFS(INBLOCK('房地产'),'房地产',IFS(INBLOCK('纺织服装'),'纺织服装',IFS(INBLOCK('钢铁'),'钢铁',IFS(INBLOCK('供水供气'),'供水供气',
* k" P* t( |" r g: x0 @4 mIFS(INBLOCK('化工化纤'),'化工化纤',IFS(INBLOCK('电器'),'电器',IFS(INBLOCK('交通办法'),'交通办法',IFS(INBLOCK('银行类'),'银行类',
! C# G) _5 b/ P2 q4 x6 EIFS(INBLOCK('旅游旅馆'),'旅游旅馆',IFS(INBLOCK('煤炭石油'),'煤炭石油',IFS(INBLOCK('酿酒食品'),'酿酒食品',IFS(INBLOCK('农林牧渔'),'农林牧渔', n" f, t5 t* G- K' o
IFS(INBLOCK('商业连锁'),'商业连锁',IFS(INBLOCK('建材'),'建材',IFS(INBLOCK('其他行业'),'其他行业',IFS(INBLOCK('汽车类'),'汽车类',2 w' ~% W* p& w1 t. }- `
IFS(INBLOCK('机器'),'机器',IFS(INBLOCK('医药'),'医药',IFS(INBLOCK('外贸'),'外贸',IFS(INBLOCK('教诲传媒'),'教诲传媒',IFS(INBLOCK('仪电 |