【第一私募论坛】www.simu001.cn】灵通信 涨停板 副图指标源码/ q5 w. y2 p1 g/ Y& \; _
 
) A$ A2 a1 i3 M; }
; v& z! B' u9 ^; L8 U* d E; A9 _$ n: e. K. P
源码如下:- _8 b* g9 `$ i$ u+ r( Z( O
 
: ?, o, ]. D9 k5 I- u趋势:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1) ,COLORGREEN;4 W5 x* _) `7 `* y8 v" s
STICKLINE(趋势>50,趋势,50,4,0),COLOR32329B;! }% A5 y f3 ^- o) d0 @
STICKLINE(50>趋势,趋势,50,4,0),COLOR326400;2 k+ w2 x/ J i5 A7 ?
IF(趋势>50, 趋势,DRAWNULL), COLORRED;6 C; l0 l0 G$ D. n+ l( l; J; }
RSV:=(CLOSE-LLV(CLOSE,9))/(HHV(CLOSE,9)-LLV(CLOSE,9))*100;
4 n/ U6 F3 H0 C$ kK:=SMA(RSV,3,1);
" e8 c: K* m& V( cD:=SMA(K,3,1);: f7 M6 x3 H4 O1 x- V& c
TYP:=(HIGH+LOW+CLOSE)/3;
: w+ ~7 s$ \' m; yCCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));2 r8 N7 g: e" R1 ?+ t( M1 d
DIFF:=EMA(CLOSE,2)-EMA(CLOSE,55);9 T N$ }. |8 F: f t& F
DEA:=EMA(DIFF,6);- r2 a8 v! z& W) j# {
MACD:=2*(DIFF-DEA);. H( R3 \( O: F" @
转点:=IF(K>D AND CCI>0 AND DIFF>DEA AND MACD>0,1,0);
3 c2 j- ?( o% \9 I6 ~: q& ]STICKLINE(转点=1,50,50,6,0),COLORYELLOW;' ^" I. \" G5 J9 a7 u* L, G( E
STICKLINE(转点=0,50,50,6,0),COLORCYAN;* ^, i8 x% t. _" C7 ?) ?
顶部:90,COLORYELLOW;
4 G' U( f4 q4 ]- {底部:10,COLORCYAN;
2 }6 E% a B; l8 ~判定:SMA(趋势,3,1),COLORFF00FF, LINETHICK2;
) U( H: ]+ ?0 o9 K, }6 E# S7 J LIF( 趋势>判定,判定,DRAWNULL), COLORYELLOW, LINETHICK2;% I- {+ N5 k& J$ j8 b2 I
IF( 趋势<判定,判定,DRAWNULL) ,COLORFFF000,LINETHICK2;
* d1 }9 P; z/ yDRAWICON(CROSS(趋势,判定),判定,1);
1 s9 f0 P8 t! e% R1 f, c" W* UDRAWICON(CROSS(趋势,顶部),顶部,2);
& Z2 V8 v) o2 [+ j6 f' G7 j) p( SLC:= REF(CLOSE,1);4 m! u' }& S6 l' f
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
/ \+ \5 g5 u# K% U6 j% |VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;6 \4 r) g0 o. \8 }6 Z
VAR2:=SMA(VAR1,9,1)+100;- W( n% G0 v. ], V( r2 I1 h
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;8 q; A; i" T) k2 X9 F; r
VAR4:=SMA(VAR3,3,1);! ~0 n0 \& Z2 U3 ^: ]# S* U' W
VAR5:=SMA(VAR4,3,1)+100;) f, U0 j) d6 w5 D% }3 ?' L
VAR6:=VAR5-VAR2;
4 C$ `4 k x, k$ e+ N, E4 R0 K趋势1: IF(VAR6>45,VAR6-45,0),COLOR00FFFF; n0 `2 L. f, i/ o# T
VAR2Q:=REF(LOW,1);
( X& {, W) D5 \VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;
' x3 q! s- p( q$ W$ nVAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);
! N+ |5 A) ?: dVAR5Q:=LLV(LOW,30);6 z& p5 }, L! n( C; O; a# I, y0 \
VAR6Q:=HHV(VAR4Q,30);0 t- l5 f6 y/ z' h* y) p
VAR7Q:=IF(MA(CLOSE,58),1,0);
5 z( X( }7 G8 P' q$ ~/ w' ZVAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/999*VAR7Q;
% ~0 b7 A# O1 [7 G" l2 F9 V5 m' ~火焰山:=IF(VAR8Q>100,100,VAR8Q);
0 S- \" b; R( f' ?STICKLINE(火焰山>0,0 ,火焰山*1.2,5,0 ),COLOR4444FF;
7 F7 C- P* a; N% W: J8 BSTICKLINE(火焰山>0,0 ,火焰山*1.2,4,0 ),COLOR5555FF;
( H' e: g# Y7 a% CSTICKLINE(火焰山>0,0 ,火焰山*1.2,3,0 ),COLOR7777FF;0 K2 t. O' c. I1 I* G
STICKLINE(火焰山>0,0 ,火焰山*1.2,2,0 ),COLOR9999FF;
) G! K9 E1 K1 h" _7 H N5 w7 Y5 YSTICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),5,0),COLOR000033;
. _( s8 I; U2 f4 K5 R9 J: A" B: {STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),4,0),COLOR000055;! `2 K# K9 r" }, z1 q2 v2 c6 x
STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),3,0),COLOR000077;* B: _, T% `+ D7 f
STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),2,0),COLOR000099;" I. J0 a n- T9 Z2 V
STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),1.5,0),COLOR0000BB;
8 C" S# S& x' c1 S5 SSTICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),1,0),COLOR0000DD;, V G* r8 ^# X0 f
STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),5,0),COLOR003300;
7 D/ a6 l; D- O' t, Z1 }4 MSTICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),4,0),COLOR005500;4 y3 k3 ^3 P' Y4 {! K+ r' y$ b
STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),3,0),COLOR007700;
! L1 J: H! Z4 l2 mSTICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),2,0),COLOR009900;: {) ^$ x# p$ M" u
STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),1,0),COLOR00DD00;
- n6 B7 A9 L \9 U- H: f: w2 G2 K逃顶:=CROSS(82,RSI);
: ?8 b, H& Z$ j) T6 g. _STICKLINE( 逃顶,逃顶,20,5,0),COLORFF5500;
# J0 B- z p3 ASTICKLINE( 逃顶,逃顶,30,3,0),COLORFF8800;/ q! a* Q: W) I* ~ e
STICKLINE( 逃顶,逃顶,30,2,0),COLORFFAA00;
9 q% @/ j& e0 t: E0 @$ k6 ]4 VSTICKLINE( 逃顶,逃顶,30,1,0),COLORFFCC00;/ k2 o4 X2 ]) j; ^! i
D1:=(C+L+H)/3;* F) w* F, Z3 z/ B, R3 A1 q
D2:=EMA(D1,6);2 H; ^) F3 i8 [- d7 A
D3:=EMA(D2,5);
6 F$ p) r8 P g6 yBBUY:=CROSS(D2,D3);9 U! @6 n' b. _& O. h7 B" `
风险区:80,COLORFF85FF; l& @% D' w) ]: x8 H- J
平安区:20,COLORYELLOW,POINTDOT;
4 l- ~! N8 Y5 O, w天线:100,COLORFFFF00;
$ E6 F' s6 D: W8 E强弱线:50,COLORGREEN,POINTDOT;
J1 m5 O3 `% M% c# lDRAWICON(BBUY,(LOW *1),1);
* `' j. b8 P O) _3 o4 RVARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;8 ]1 c" ~8 [6 R- _: l: X. Y
DRAWICON(CROSS(82,VARR1),HIGH,15);$ k+ S' [9 m! Y/ L3 \* P2 _
DRAWTEXT(CROSS(82,VARR1),35,'逃'),COLORYELLOW;
7 N) f+ } u' N9 }{用法:副图指标,红色K线持有待涨,绿色K线观望。蓝色立柱 出逃。} tdxjietu1.JPG (277.4 KB)
% q* S/ e: D2 i! u8 n时间:2015-9-4 20:07' ]5 t7 O+ S( a H: |( O
股票论坛 www.simu001.cn【第一私募论坛】www.simu001.cn】 |