私募

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz

发一个灵通 信 涨停板 副图指标源码

[复制链接]
发表于 2015-8-5 16:32:10 | 显示全部楼层 |阅读模式
【第一私募论坛】www.simu001.cn】灵通信 涨停板 副图指标源码( \* ~) p  j6 z) g" d# t1 ^
 
: b# v; m! u3 j# H
5 C$ v* w* b4 H" R# v6 L/ W% V9 B& r2 ?7 u5 X$ U+ G0 Q1 t
源码如下:
% r. ]  C/ ?6 @- c, H4 J, C 
, F# h: M  j9 {$ w趋势:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1) ,COLORGREEN;- [. d; a% Y3 q) |* X
STICKLINE(趋势>50,趋势,50,4,0),COLOR32329B;5 e* d/ U0 e- A0 u
STICKLINE(50>趋势,趋势,50,4,0),COLOR326400;# u0 y8 `& P- [2 k+ m$ S
IF(趋势>50, 趋势,DRAWNULL), COLORRED;
( u" @- k% Q/ O8 d$ J1 G/ oRSV:=(CLOSE-LLV(CLOSE,9))/(HHV(CLOSE,9)-LLV(CLOSE,9))*100;
8 h% N! A9 J- T: N* v& tK:=SMA(RSV,3,1);1 t3 C4 R+ q- C/ Y% Y
D:=SMA(K,3,1);8 O7 R0 Q. ]/ n; e) A/ z' ?
TYP:=(HIGH+LOW+CLOSE)/3;* |: H! A+ U# Y( w* R
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
" ]' F& x; T  \5 L9 |' O2 KDIFF:=EMA(CLOSE,2)-EMA(CLOSE,55);
: `( a% W9 o9 f/ C/ sDEA:=EMA(DIFF,6);; S7 V; q  i1 [
MACD:=2*(DIFF-DEA);3 G  F2 I! b6 G- S6 C- o$ M' B' |
转点:=IF(K>D AND CCI>0 AND DIFF>DEA AND MACD>0,1,0);
0 Z' c* M+ e, X+ YSTICKLINE(转点=1,50,50,6,0),COLORYELLOW;/ u0 w% y& C! D) _
STICKLINE(转点=0,50,50,6,0),COLORCYAN;  V' t* [8 F, G7 d8 e
顶部:90,COLORYELLOW;
: |; c+ _/ h' ]7 h7 T0 c1 f底部:10,COLORCYAN;+ d3 f3 m, E$ P# n/ t) a
判定:SMA(趋势,3,1),COLORFF00FF, LINETHICK2;
& B4 Y/ {' D& o+ l* a, }3 rIF( 趋势>判定,判定,DRAWNULL), COLORYELLOW, LINETHICK2;# o4 B" D! E9 V; j# [4 j
IF( 趋势<判定,判定,DRAWNULL) ,COLORFFF000,LINETHICK2;
$ B8 f; P9 |9 d1 S, `DRAWICON(CROSS(趋势,判定),判定,1);$ y' n) ?7 f' S: K( O5 E' R
DRAWICON(CROSS(趋势,顶部),顶部,2);
( r: _. z1 o- W! J) qLC:= REF(CLOSE,1);
, R/ k/ W7 e' ]; W# pRSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
0 P  d/ o2 u( u+ H( T' OVAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
3 B1 d- B! k! g. E$ uVAR2:=SMA(VAR1,9,1)+100;
3 c& L6 ?2 ~, c( L8 b* v, K3 M3 AVAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
* F( P0 U: v4 L% w3 E6 f5 nVAR4:=SMA(VAR3,3,1);- x! f& @! s: @2 C& d
VAR5:=SMA(VAR4,3,1)+100;
2 v7 g' W5 ?& yVAR6:=VAR5-VAR2;
/ t0 B9 U3 q9 Z) l趋势1: IF(VAR6>45,VAR6-45,0),COLOR00FFFF;9 Z1 J- |- O6 u& B5 k" i$ c
VAR2Q:=REF(LOW,1);
7 X1 e0 }+ j; s1 T# ?6 sVAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;. H$ p  g3 E. y! v6 _# E
VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);
" P  W$ }" e, GVAR5Q:=LLV(LOW,30);
# e/ w5 T. s/ `VAR6Q:=HHV(VAR4Q,30);1 w2 b. R) h% N, D$ q1 ?, E
VAR7Q:=IF(MA(CLOSE,58),1,0);4 e& t. P, w. X3 `& F* p
VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/999*VAR7Q;; I6 q, P% F0 C: I: F0 r, {
火焰山:=IF(VAR8Q>100,100,VAR8Q);
/ E. G6 y  b7 V+ `6 [7 A! L4 j( [STICKLINE(火焰山>0,0 ,火焰山*1.2,5,0 ),COLOR4444FF;
+ Y5 I$ b7 b$ h3 a4 G6 [STICKLINE(火焰山>0,0 ,火焰山*1.2,4,0 ),COLOR5555FF;2 n8 z2 X- C8 L* c8 C4 C/ I
STICKLINE(火焰山>0,0 ,火焰山*1.2,3,0 ),COLOR7777FF;
' H% k; Z* R7 m+ R- A- s! OSTICKLINE(火焰山>0,0 ,火焰山*1.2,2,0 ),COLOR9999FF;
6 J1 b0 X1 _% e8 ?$ _8 y, zSTICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),5,0),COLOR000033;
! u( _" v* q; g2 e2 D3 ySTICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),4,0),COLOR000055;6 a1 b. S$ B0 H  ]" P5 I
STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),3,0),COLOR000077;5 P5 S7 _. }+ j' X% K$ t
STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),2,0),COLOR000099;2 l8 Q: s& G3 w! T  j+ c
STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),1.5,0),COLOR0000BB;% _% ?2 @0 Z3 t2 x+ ?+ |, }) ~% d- P
STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),1,0),COLOR0000DD;
% F" O6 c7 ?$ j' m; GSTICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),5,0),COLOR003300;
) c+ }% l% F2 _STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),4,0),COLOR005500;' D8 i% H1 a! o
STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),3,0),COLOR007700;
. I: u; }1 N  ?1 k( z4 v3 hSTICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),2,0),COLOR009900;
: z4 r# D& U8 y2 u+ _STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),1,0),COLOR00DD00;6 j6 Y$ i: k2 W( b& n
逃顶:=CROSS(82,RSI);
6 h6 n5 F; W! m$ e' l. BSTICKLINE( 逃顶,逃顶,20,5,0),COLORFF5500;4 g) M: ]- e1 S" K6 {- w& z! ?7 g+ E
STICKLINE( 逃顶,逃顶,30,3,0),COLORFF8800;
1 c+ y' t: |+ `, a7 O. t  d, C3 gSTICKLINE( 逃顶,逃顶,30,2,0),COLORFFAA00;/ i" e  V/ ~/ ?8 P. l5 P8 J
STICKLINE( 逃顶,逃顶,30,1,0),COLORFFCC00;0 H' G, J% @# o0 E
D1:=(C+L+H)/3;
0 n- f9 _# V5 f, K. _1 w1 Q7 @  E4 wD2:=EMA(D1,6);
& x3 K( F* P: g" E2 pD3:=EMA(D2,5);( J- E- F9 l1 D/ `# B$ B2 t
BBUY:=CROSS(D2,D3);
3 z4 `% V0 ~" T( s6 T2 v7 @6 P风险区:80,COLORFF85FF;$ f' V6 O2 C" q9 T
平安区:20,COLORYELLOW,POINTDOT;
9 w# c4 J6 C6 S+ v$ s天线:100,COLORFFFF00;
$ f1 k+ R+ q- |- }5 L+ s" f强弱线:50,COLORGREEN,POINTDOT;
/ ^6 c+ Q: b# J; E! ?DRAWICON(BBUY,(LOW *1),1);
$ B7 v1 p' P) q5 FVARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
+ o. ?6 s6 `# kDRAWICON(CROSS(82,VARR1),HIGH,15);7 W# [( @+ g' U
DRAWTEXT(CROSS(82,VARR1),35,'逃'),COLORYELLOW;
" _0 W6 g3 D4 |5 r2 ?7 t{用法:副图指标,红色K线持有待涨,绿色K线观望。蓝色立柱 出逃。} tdxjietu1.JPG (277.4 KB). ~' y0 b6 C* L
时间:2015-9-4 20:07
+ r  y# a" M3 g股票论坛 www.simu001.cn【第一私募论坛】www.simu001.cn】
http://www.simu001.cn/x2942x1x1.html
最好的私募社区 | 第一私募论坛 | http://www.simu001.cn

精彩推荐

回复

使用道具 举报

发表于 2015-10-30 22:06:35 | 显示全部楼层
坐等楼主现身!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Archiver| ( 桂ICP备12001440号-3 )|网站地图

GMT+8, 2024-12-24 08:02 , Processed in 0.393949 second(s), 25 queries .

Powered by www.simu001.cn X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表