私募

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

[选股技巧] [通达信] 通达信超前版MACD指标

[复制链接]
发表于 2019-5-22 01:05:19 | 显示全部楼层 |阅读模式
MACD变色(通达信):
3 I8 Q* ~& L" F* w  j2 hDIF1:=EMA(CLOSE,7)-EMA(CLOSE,19),COLORWHITE;
, N( T4 ?, A4 ^2 xDEA1:=EMA(DIF1,9);. }& A( F" I* s- B2 z/ m7 [) }
MACD1:=(DIF1-DEA1)*2,COLORSTICK;3 P8 T" B+ Y0 ~2 R
STICKLINE(MACD1>REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORRED;# d" }6 c. j" L" i
STICKLINE(MACD10,0,MACD1,0,0),COLORYELLOW;  _4 @: q5 g' T) Q1 b2 i' L+ q
STICKLINE(MACD1MA(DIF1,4),DIF1,DRAWNULL),COLORRED;2 C$ Y* y4 U, X( ^& i4 g
弱:IF(DEA1>MA(DEA1,4),DEA1,DRAWNULL),COLORMAGENTA;
1 y6 }) K! r! _8 m7 J# o7 U. C流畅盘(亿):CAPITAL/1000000,LINETHICK0,NODRAW,COLORWHITE;; y( C8 \$ G& ~5 k% ~
每股净资产:FINANCE(34),LINETHICK0,NODRAW,COLORGREEN;
: i( O1 K7 m6 P( }4 {2 n1 |年收益:FINANCE(33),LINETHICK0,NODRAW,COLORMAGENTA;
1 U6 i! n7 T' ?7 s- F' x换手:VOL/CAPITAL*100,LINETHICK0,NODRAW,COLORCYAN;! V1 s& s$ ^+ L& _: h
用法:买入时不消等金叉出现,只要DIF由绿变红时(激进的可在MACD长绿柱变紫色时)到场;卖出也不必等死叉才卖,
( h9 V4 F, \/ L; K只要DIF由红变绿就可卖出(激进者可在MACD长红柱变黄色时卖出)。发起用60分钟(激进者可用30分钟)图来操纵。
9 \) Z& p+ x1 z- ?, F8 m
2 m6 D# F5 C& @优化更新,交易点更为精确!并有MACD,KDJ,RSI顶底背离提示。
% D) r: X1 p8 R) ]& C源码如下:
0 j9 `8 U" X6 g! t" A9 ^1 @DIFF:EMA(CLOSE,7) - EMA(CLOSE,19);
4 ^$ q/ l, J3 d- f! h. c+ X" hDEA:EMA(DIFF,9);
* ]4 X# r$ C4 A. R( FMACD:2*(DIFF-DEA),COLORSTICK;) O* @2 W  ?( }3 c1 D8 U
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
) R- D* S) O  b3 M( J9 Q, PB1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)C AND REF("KDJ.K"(9,3,3),A2+1)C AND REF("RSI.RSI1"(6,12,24),A3+1)0,-0.1,0),COLORRED,POINTDOT;3 K( g, A5 Z+ @% |6 h
KDJ底背:IF(B2>0,-0.1,0),COLORFF00FF,POINTDOT;
" I4 s9 S5 N, ~5 F/ K3 V: J2 ?# u1 dRSI底背:IF(B3>0,-0.1,0),COLORYELLOW,POINTDOT;& [: }* g5 _" Q4 Y. `) F1 t
MACD顶背:IF(D1>0,0.1,0),COLOR00FF00,POINTDOT;
, S$ a- t& f$ t* F4 UKDJ顶背:IF(D2>0,0.1,0),COLORFFCC66,POINTDOT;9 P; D, {) V- ]2 W* t
RSI顶背:IF(D3>0,0.1,0),COLORWHITE,POINTDOT;
2 n5 H5 v0 a% k- P; n4 @4 U4 fSTICKLINE(B1>0,-0.1,0,2,0),COLORRED;+ c& {5 T& |6 X* e* m
STICKLINE(B2>0,-0.1,0,2,0),COLORFF00FF;
$ ~6 U' c. w0 Q$ G3 ESTICKLINE(B3>0,-0.1,0,2,0),COLORYELLOW;# p& j% m7 U5 ?- d7 O
STICKLINE(D1>0,0.1,0,2,0),COLOR00FF00;1 |5 J( ^, l, f5 ^% W# ]
STICKLINE(D2>0,0.1,0,2,0),COLORFFCC66;
' M0 ~$ R' ?, E5 K: ASTICKLINE(D3>0,0.1,0,2,0),COLORWHITE;
4 s4 Y: K+ ?( b* M! CSTICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORRED;/ m; L- N) q2 T4 V6 }
STICKLINE(MACD0,0,MACD,0,0),COLORYELLOW;
9 j' C$ D+ l# Z+ P7 K5 a& X" x  ?2 zSTICKLINE(MACDMA(DIFF,2),DIFF,DRAWNULL),COLORRED;, v, p8 u: T0 c2 [
弱:IF(DEA>MA(DEA,2),DEA,DRAWNULL),COLORMAGENTA;
http://www.simu001.cn/x73465x1x1.html
最好的私募社区 | 第一私募论坛 | http://www.simu001.cn

精彩推荐

回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-12-24 11:16 , Processed in 4.410797 second(s), 25 queries .

Powered by www.simu001.cn X3.4

Copyright © 2001-2021, Tencent Cloud.

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