私募

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

[选股技巧] [通达信] 含不同周期的rsi划线指标源码

[复制链接]
发表于 2019-5-22 01:03:05 | 显示全部楼层 |阅读模式
{n3  2.00   500.00   24.00}: e) Q' I. R; l
N:=8;
3 M) r" [  ~7 r+ E8 O; l! x80,POINTDOT,COLORGRAY;
) ?% B$ O$ `8 _' ~% J20,POINTDOT,COLOR00BCBE;
* T3 `; i( U3 T4 t& L. m. F% DR:SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100,COLORWHITE,LINETHICK3;
8 X1 j6 t1 n1 h+ \! A% GA1:=REF(R,N)=HHV(R,2*N+1); / N3 ~3 r/ C3 M2 p. b8 z
B1:=FILTER(A1,N);
5 m7 F- l6 ]" C( E1 f5 vC1:=BACKSET(B1,N+1); + k6 @8 ?1 f% c- K9 `
D1:=FILTER(C1,N);{高点}
4 t# [2 R. O/ b2 m5 x; n1 R+ GR11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1); S11:=R11>REF(R11,1);
7 a* ~7 S" m- m8 lDRAWLINE(D1,R,S11,R,1),COLORBLUE;( R& c# W5 q  ?, q; C. P0 S
A2:=REF(R,N)=LLV(R,2*N+1); " b5 d. h" m) O
B2:=FILTER(A2,N);, |( Z  o* F4 x& u
C2:=BACKSET(B2,N+1);
! ?, Q* p2 a( bD2:=FILTER(C2,N);{低点}
- {* U4 b# a0 C' M4 TT11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1); U11:=T11>REF(T11,1);9 s" x4 [5 w6 k! e- w- N9 H7 v  J! E6 q
DRAWLINE(D2,R,U11,R,1),COLORBLUE;
  k# ^5 g" W- @6 p& A& C8 l! V; nM:=INTPART(3*N/5);  K- {( w3 S! j
A12:=REF(R,M)=HHV(R,2*M+1); / w/ |& X/ p( Z/ [5 \/ L
B12:=FILTER(A12,M); 9 G0 m3 I+ B: [- }' ]( f
C12:=BACKSET(B12,M+1); . e* e" k0 w+ K2 l! ^" z6 m1 h
D12:=FILTER(C12,M);{高点}
% M9 `3 p/ ^# D. uR112:=BACKSET(ISLASTBAR,BARSLAST(D12)+1); S112:=R112>REF(R112,1);* C9 \- m! A) p1 }
DRAWLINE(D12,R,S112,R,1),COLORYELLOW;( M. G) A4 _7 U0 E1 F% x
A22:=REF(R,M)=LLV(R,2*M+1);
4 V# w: \) V, |9 Z" vB22:=FILTER(A22,M);
" g6 u. {6 p% m' t6 YC22:=BACKSET(B22,M+1);
8 w4 M. E! v' J; D+ N; TD22:=FILTER(C22,M);{低点}
$ s/ Q& f5 \  q/ `( ]0 W  ~; }8 K" rT112:=BACKSET(ISLASTBAR,BARSLAST(D22)+1); U112:=T112>REF(T112,1);
4 i7 K" [$ b9 s+ E' YDRAWLINE(D22,R,U112,R,1),COLORYELLOW;   d3 B; S( I4 I0 a6 S: k
LC:=REF(CLOSE,1);
5 O  X2 o! K( `; W  ?RSI3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
) y$ p" q# n' n2 r% S2 c1 A# G, \1 H3 W2 A# D  M
DRAWICON(CROSS(R,RSI3),R,1);
' F" _/ q' i# n( P9 ]DRAWICON(CROSS(RSI3,R),RSI3,2);
http://www.simu001.cn/x73407x1x1.html
最好的私募社区 | 第一私募论坛 | http://www.simu001.cn

精彩推荐

回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-28 05:34 , Processed in 0.384709 second(s), 26 queries .

Powered by www.simu001.cn X3.4

Copyright © 2001-2021, Tencent Cloud.

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