• 18976542384

    工作时间

    周一至周五:9:00-21:00

    周末及节日:9:00-18:00

  • 手机版二维码

    手机快速找资源

  • 扫描二维码

    加入官方qq群

通达信波浪矩阵主图指标公式源码

0
回复
1960
查看
[复制链接]

1万

主题

0

回帖

4万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
49856
发表于 2023-5-4 15:18:17 | 显示全部楼层 |阅读模式
主图用法也比较简单,是对股价做了区域划分,比如有安全区,风险区域等,股价在哪个区域就做哪个区域的动作。
+ R" c: L( G# O# l$ H' |. z" L. D. a& e9 n0 k
彩虹桥-投资充电站 3 I/ h* P, H  p1 U+ V1 b

3 Y& {9 O+ g9 k# @, m0 n& X/ t: E指标源码:【由彩虹桥投资充电站(www.xuexi199.com)整理】
" T$ l3 o2 |; l, }, p$ H( B* r$ [: r# F5 \
N:=120;
% t1 Q- n3 z2 L8 T; W) S- k! }1 K+ s8 q0 s; R
K:=BARSLAST(CURRBARSCOUNT=N);% f" i" c+ i/ x! j( b

) u" B2 X. Z7 ^' G' nGD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));{高点}+ H1 z7 h2 o. \* u& z
1 l8 x+ z  B6 h) i1 G0 w2 ]) v
DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));{低点}
" S: n/ u% X* B7 \8 d4 F7 e! `0 q" q" E4 X+ D
KJ:=GD-DD;7 v$ Q( Z9 Z$ w9 O' E$ Z  r

5 E; @2 _6 Q/ ~# T. HGD4:=IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL);2 H! M# u* h3 P$ @4 [
% u4 ?5 l6 U" h
高区:IF(CURRBARSCOUNT<=N,GD,DRAWNULL),COLORRED,LINETHICK2;
. L  I4 H% A! H- z
" Y. k2 V2 Y5 B: ?1 Z  p低区:IF(CURRBARSCOUNT<=N,DD,DRAWNULL),COLOR00FF00,LINETHICK2;, s* E$ s5 `: J+ Q* l& p

" W0 v; ^( ]2 K! U2 S2 J平衡:=IF(CURRBARSCOUNT<=N,DD+KJ/2,DRAWNULL),COLOR00FFFF,NODRAW;! u' ~) k& G( w% L( J6 m

2 Y, Y+ o- C, G( k低:IF(CURRBARSCOUNT<=N/2,DD,DRAWNULL),COLORFFFF00;
; T) u4 A$ u% e( w6 T" o) P  W& w. X  L( Z8 K% r
高:IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL),COLOR00FFFF;
, x& L( Q% E$ g" {3 P
# K* p8 n; P1 X2 v4 y9 d) c4 S( @支撑:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.191,DRAWNULL),COLOR00FFFF;
, J) a' b% Z( n( N0 ]$ L
. X  |9 h: A( O7 g# \/ }8 H- U! Z" ^强势: IF(CURRBARSCOUNT<=N/2,DD+KJ*0.382,DRAWNULL),COLORFF00FF;
" w  E5 X% r! m( h. {
: Y, [0 A) K" V% F! X; s: u突破:IF(CURRBARSCOUNT<=N/2,DD+KJ/2,DRAWNULL),COLOR0000FF;
9 [: N! C3 _5 y
' h# a) H% b7 n+ q* _8 Z9 \- w# c警示:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.618,DRAWNULL),COLOR00FFFF;
8 P2 [1 ^2 n% }( H, X$ k0 ^* T. K  y9 o8 l6 o
压力:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.809,DRAWNULL),COLOR00FF00;( j! S  E2 L. n
" H3 R/ {0 Q+ O6 Q7 b" u
低涨:IF(CURRBARSCOUNT<=N/2,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NODRAW;
) D( _$ j. T  I- W& Z+ l4 B; h( h$ F
天数:BARSLAST(L=DD),COLORCYAN,NODRAW;0 A% a+ t5 k  a: q+ |

$ r( w1 f4 ^  v+ p( u( n8 J+ X/ y: I顶点:IF(CURRBARSCOUNT<=N/2, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST$ H1 Y' ~$ V, [1 q2 Y7 U9 ]( C

$ w: i: B1 ]" E(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED,CROSSDOT;
0 c5 M& m; z7 w+ W# j; T* k' F% E; v
低点:IF(CURRBARSCOUNT<=N/2, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST
1 L5 a. F7 l8 C' I) t- i. Z' f0 W0 W. ~
(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAGENTA,CROSSDOT;& w4 X. X" m6 z* {' p6 i
( q2 B; {# B9 b* i2 v3 Q
STICKLINE(CCI>=200 AND H>=顶点,O,C,2,0),COLORBLUE;% ^& P4 K% ~; @* P" W- u
6 l4 V, b" H' \0 w
STICKLINE(CCI<=100 AND L<=低点,O,C,2,0),COLORYELLOW;
; Y; T1 G) p: r5 L7 H8 \6 k. |, Y4 I# ^5 U
DRAWBAND(高区,RGB(120,20,0),平衡,RGB(0,0,0));* h3 L  P- v; r
; p) \/ |7 |- u: t% j2 W
DRAWBAND(平衡,RGB(80,0,100),低区,RGB(0,0,0));
" ]( i) F/ J- {' T# Z. f- K2 o
. Z9 ~) b# L' H, U$ w$ q# n, \DRAWBAND(高,RGB(100,100,0),压力,RGB(0,0,0));% j. s6 o' r3 m# F0 b

8 I( K" I( o+ t# ~0 ]DRAWBAND(压力,RGB(0,80,0),警示,RGB(0,0,0));
) t  K; ~+ P5 @2 o6 G' L
4 D0 r, K# N4 a: C5 aDRAWBAND(警示,RGB(220,120,0),突破,RGB(0,0,0));/ a9 e6 q; F8 j( x5 u. U# S
! x8 O: J. T1 s: z; Z$ r3 d6 d2 i% L
DRAWBAND(突破,RGB(120,0,120),强势,RGB(0,0,0));9 d, ^9 v9 c, Z3 {

8 Z7 L; ?8 g; K( U. p9 wDRAWBAND(强势,RGB(120, 0,0),支撑,RGB(0,0,0));1 o7 }- w9 N) t" p( C  _

. m; r/ H  j5 t% Z5 |DRAWBAND(支撑,RGB(80,80,80),低,RGB(0,0,0));8 ~0 P; Q2 \9 j6 p& L+ Q

( B/ {' J) H( f% d7 ]3 dSTICKLINE(CURRBARSCOUNT=N,GD,DD,0,0),COLORGREEN;! \+ D4 A' A- a* A
) {- Y4 B, z. Q( A) ^0 b
STICKLINE(CURRBARSCOUNT=N/2,GD,DD,0,0),COLOR408080;
) i' T. H) M. x& }" ~7 l+ ?
, W* L% C/ A! P5 Q( LSTICKLINE(CURRBARSCOUNT=1,GD,DD,0,0),COLORGREEN;
3 g" w. t+ G' F" j( q7 |  j
& I! r, h3 U% {% eSTICKLINE(CURRBARSCOUNT<=N/2,支撑,支撑,2,0),COLORFF00FF;
2 m$ F. n$ C, _8 C3 {5 e/ R9 Y# v, x& D; Y
STICKLINE(CURRBARSCOUNT<=N/2,强势,强势,2,0),COLORFF00FF;0 ]0 r/ N; h3 k/ ?% H8 `9 h& s" f' M
+ v8 J1 h& y5 [* a
STICKLINE(CURRBARSCOUNT<=N/2,突破,突破,2,0),COLORABABAB;7 [* P5 y+ A& X0 y/ g2 t& ^  @
6 d2 F+ t" G% ]" K9 q
STICKLINE(CURRBARSCOUNT<=N/2,警示,警示,2,0),COLOR00FFFF;
6 A; r  i# I. {/ m& ~! Q# ^5 O9 K' S5 W3 F- C1 a3 h3 W/ t
STICKLINE(CURRBARSCOUNT<=N/2,压力,压力,2,0),COLOR00FFFF;% v& ~& Q" n( z( A) H  `

4 G2 @+ Y: ?( c  |DRAWTEXT(CURRBARSCOUNT=10,压力,'压力-0.809'),COLOR00FFFF;2 T& n% q/ E2 b
# _" z. t1 d+ ~' e
DRAWTEXT(CURRBARSCOUNT=10,警示,'警示-0.618'),COLOR00FFFF;2 L, t* A! b4 E$ Q
0 M3 _* T' l& P9 B$ k
DRAWTEXT(CURRBARSCOUNT=10,突破,'突破-0.500'),COLORFFFFFF;
6 h5 R+ [! \/ y1 y0 X
& [9 ~1 G/ H& v+ [& vDRAWTEXT(CURRBARSCOUNT=10,强势,'强势-0.382'),COLOR00FFFF;
' `8 e2 [! X% S; I0 t' D5 D# z3 W
0 t& I( \9 g4 f2 @DRAWTEXT(CURRBARSCOUNT=10,支撑,'支撑-0.191'),COLOR00FFFF;; G4 R3 J4 r9 q& Y6 l7 {/ G

. \( I5 L( Z3 b, D) j8 bDRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.09,'【风险区】--高抛避险'),COLOR00FFFF;! o* o( d0 R  n$ M9 A6 m" e

5 F4 E% F7 [* C5 r  @& g3 n& MDRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.3,'【警示区】--逢高减仓'),COLOR0000FF;! w' d7 v% D0 C1 o
1 o0 n" ^4 K) Z
DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.45,'【突破区】--主力拉升'),COLORFFFFFF;
1 K* i8 H  E5 }6 t3 f& Q) F! e/ p& ^8 e3 i# m- W3 g1 U
DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.55,'【拉升区】--强势畜锐'),COLORFFFF80;
7 R7 E  H$ k) g
3 g& z, U7 `" [, z$ pDRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/3,'【关注区】--逢低买入'),COLOR00FFFF;
" K9 \4 B, F+ u+ P, K1 R: N* a4 X8 ^% r6 z
DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/10,'【低吸区】--大胆买入'),COLOR00FF00;9 N* ?) j5 W* u' V* {

7 a5 y8 I3 z( }0 CDRAWTEXT(CURRBARSCOUNT=N/2+40,GD-KJ*0.25,'【拉升区】'),COLORRED;* Z4 g$ B* C( n3 ]3 b
4 J* w3 t" f! _" z) q
DRAWTEXT(CURRBARSCOUNT=N/2+40,DD+KJ*0.25,'【持股区】'),COLORYELLOW;% o3 i3 U& i9 Q: E! F  \
, S4 ~3 u& s) ?4 y! L
第一防线:REFDATE(低,DATE),POINTDOT,COLORYELLOW,LINETHICK4;
* A4 r: U) j3 I  C: J% P" t, X! H
第二防线:REFDATE(支撑,DATE),POINTDOT,COLORWHITE,LINETHICK4;5 r6 q# |8 J/ U. Z2 v6 E( d- A: T
3 W" T. p) x- ~5 P6 a6 \
DRAWKLINE(H,O,L,C);
* w2 a9 G. m% Z/ E) \8 S- d+ m* S7 e5 ]8 \+ H* W& z6 L6 M0 s
AHC1:=CLOSE*VOL;
0 ]7 f" |3 h' D6 p. C! Q, Q% N5 \( E% T' @& v7 l/ S
AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA
$ m# G8 A+ Q+ s- M  j, _! S9 T
: h7 f5 S$ k' w9 o(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
2 ]  T& s& y$ B, u6 J
8 E) c; a0 @; n( B# m* i上轨:=1.06*AHC22,COLOR40FF00,LINETHICK1;
' p# t8 V& X1 r! `1 s3 g' C+ V2 U- ^  U# R+ S' K
下轨:=AHC22*0.94;/ j) L6 D- D6 v8 O( r5 _6 C; W

/ e1 R( V$ c3 @( `' o  v+ \  ?ZT:=REF(C,1)*1.1-C<0.01 AND H=C;
8 `. l' |3 f8 S1 M
  p/ o3 y1 y6 i启爆:=CROSS(C,上轨) OR CROSS(C,下轨) AND ZT;
% t/ K9 h: I0 |5 u& ]4 ?
7 W4 B4 r0 z* g! z) cDRAWTEXT(启爆,L,'启爆'),COLORCYAN;/ C3 ?5 G2 G& a; h

3 @, Y: i* X+ U" M! aSTICKLINE(启爆,C,O,3,1),COLORWHITE;
  ^8 p. e- |! r5 @
9 ]/ N+ P8 {* |- L7 f! {* qSTICKLINE(启爆,C,O,1,0),COLORGREEN;* k. u, i( K6 c3 S, c8 z% R3 R

) C3 h, v$ u  Q2 o' O
4 I6 p# ]# q+ k5 R  P
7 v7 {" U/ `7 d
, I) C& p( l) e
回复

使用道具 举报

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

本版积分规则

全国统一客服电话
18976542384

24x7小时免费咨询

  • 官方在线客服

    QQ客服:股海浪子

    点击交谈

    QQ客服:beyond

    点击交谈

    QQ客服:明月

    点击交谈
  • 广东省深圳市福田区深南大道2012号

  • 添加客服微信

    可领取网站任一指标一个

  • 加入指标qq分享群

    免费领取资源

Powered by Discuz!X3.4 ©2001-2013 Comsenz Inc.彩虹桥投资充电站( 粤ICP备19084539号 )|网站地图