查看: 266|回复: 0

通达信【能量反转】指标捕捉市场反转点

[复制链接]

222

主题

16

回帖

559

积分

管理员

积分
559
发表于 2024-12-25 14:43:09 | 显示全部楼层 |阅读模式

大家好,我是仓鼠哥,专注于指标评测及量化研究,帮你囤满粮,我们一起度过所有的寒冬。
能量反转使用说明
  • 主图:地量反转加大阳线信号,用于识别市场在成交量极度萎缩后的反转信号,以及随后出现的大阳线,预示着可能的股价上涨。
  • 副图:抄底线和地量反转线信号共振,用于确认主图中的反转信号,当两者同时出现时,表明市场可能即将迎来打板机会。
  • 观察主图中的大阳线是否出现在地量之后,这通常是一个价格反转的信号。
  • 在副图中,当抄底线与地量反转线同时出现信号时,视为买入信号。
  • 结合市场情绪和其它技术指标,进一步确认信号的有效性。


能量反转示图
f4fcb30704e625741501a05ec441d784.png

能量反转主图源码
N:=75:=51:=10;
M1:=4;M2:=18;M3:=80;
A1:=REF(H,P)=HHV(H,2*P+1);
B1:=FILTER(A1,P);
C1:=BACKSET(B1,P+1);
D1:=FILTER(C1,P);
E1:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);
F1:=E1>REF(E1,1);
A2:=REF(L,P)=LLV(L,2*P+1);
B2:=FILTER(A2,P);
C2:=BACKSET(B2,P+1);
D2:=FILTER(C2,P);
E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);
F2:=E2>REF(E2,1);
AA1:=REF(H,P1)=HHV(H,2*P1+1);
BB1:=FILTER(AA1,P1);
CC1:=BACKSET(BB1,P1+1);
DD1:=FILTER(CC1,P1);
EE1:=BACKSET(ISLASTBAR,BARSLAST(DD1)+1);
FF1:=EE1>REF(EE1,1);
AA2:=REF(L,P1)=LLV(L,2*P1+1);
BB2:=FILTER(AA2,P1);
CC2:=BACKSET(BB2,P1+1);
DD2:=FILTER(CC2,P1);
EE2:=BACKSET(ISLASTBAR,BARSLAST(DD2)+1);
FF2:=EE2>REF(EE2,1);
STICKLINE(C>=O,C,O,3,0),COLOR000045;
STICKLINE(C>=O,C,O,2.5,0),COLOR000065;
STICKLINE(C>=O,C,O,2,0),COLOR000085;
STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;
STICKLINE(C>=O,C,O,1,0),COLOR0000C5;
STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;
STICKLINE(C>=O,H,L,0,0),COLOR0000F5;
STICKLINE(C<O,C,O,3,0),COLOR353500;
STICKLINE(C<O,C,O,2.5,0),COLOR454500;
STICKLINE(C<O,C,O,2,0),COLOR555500;
STICKLINE(C<O,C,O,1.5,0),COLOR656500;
STICKLINE(C<O,C,O,1,0),COLOR757500;
STICKLINE(C<O,C,O,0.5,0),COLOR858500;
STICKLINE(C<O,H,L,0,0),COLOR959500;
高:=REFDATE(HHV(H,N),DATE);
低:=REFDATE(LLV(L,N),DATE);
H1:=高-(高-低)*0.191;
H2:=高-(高-低)*0.382;
H3:=高-(高-低)*0.5;
H4:=高-(高-低)*0.618;
H5:=高-(高-低)*0.809;
DRAWTEXT(CURRBARSCOUNT=1,高,'高'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,H1,'809'),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=1,H2,'618'),COLORGRAY;
DRAWTEXT(CURRBARSCOUNT=1,H3,'中'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=1,H4,'382'),COLORLIRED;
DRAWTEXT(CURRBARSCOUNT=1,H5,'191'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=1,低,'低'),COLORRED;
STICKLINE(CURRBARSCOUNT=13,高,高,100,-1);
STICKLINE(CURRBARSCOUNT=13,H1,H1,100,-1),COLORCYAN;
STICKLINE(CURRBARSCOUNT=13,H2,H2,100,-1),COLORGRAY;
STICKLINE(CURRBARSCOUNT=13,H3,H3,100,-1),COLORYELLOW;
STICKLINE(CURRBARSCOUNT=13,H4,H4,100,-1),COLORLIRED;
STICKLINE(CURRBARSCOUNT=13,H5,H5,100,-1),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT=13,低,低,100,-1),COLORRED;
EXP1:EXPMA(CLOSE,M1),LINETHICK2;
EXP2:EXPMA(CLOSE,M2),LINETHICK2;
EXP3:EXPMA(CLOSE,M3),LINETHICK2,COLORGREEN;
TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);
TYX4:=MA((C+L+O+H)/4,13);
TYX5:=EMA((C+L+O+H)/4,21);
STICKLINE(HIGH=LOW AND CLOSE=OPEN AND (CLOSE/REF(CLOSE,1))>1.048,HIGH,LOW,3,0) ,COLORRED;
STICKLINE(HIGH=LOW AND CLOSE=OPEN AND (REF(CLOSE,1)/CLOSE)>1.048,HIGH,LOW,3,0) ,COLOR00FF00;
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND
(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.99,1);
DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND
(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),H,2);
AZ6:=(3 * (SMA((((CLOSE - (LLV(LOW,27))) /
((HHV(HIGH,27)) - (LLV(LOW,27)))) * 100),5,1))) - (2 * (SMA((SMA((((CLOSE -
(LLV(LOW,27))) / ((HHV(HIGH,27)) - (LLV(LOW,27)))) * 100),5,1)),3,1)));
VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND
(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));
DRAWTEXT((VARC=1),L,'地量反转'),COLORYELLOW;
能量反转副图源码
能量抄底:WINNER(C)*100,NODRAW,COLORWHITE;
DRAWTEXT_FIX(能量抄底>=95 AND ISLASTBAR,0.97,0.97,0,'高危'),COLORRED;
DRAWTEXT_FIX(能量抄底>=80 AND 能量抄底<95 AND ISLASTBAR,0.97,0.97,0,'风险'),COLORYELLOW;
DRAWTEXT_FIX(能量抄底>=50 AND 能量抄底<80 AND ISLASTBAR,0.97,0.97,0,'安全'),COLORGREEN;
DRAWTEXT_FIX(能量抄底<50 AND ISLASTBAR,0.97,0.97,0,'空头'),COLORBLUE;
STICKLINE((CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1)>=(10-0.01*100/REF(CLOSE,1)),O,C,3,0),COLOR0055FF;
STICKLINE((REF(CLOSE,1)-C)*100/REF(CLOSE,1)>=(10-0.01*100/REF(CLOSE,1)),O,C,3,0),COLOR00FF00;
DRAWTEXT_FIX(C>O,0,0.1,0,'微信公众号:股指标网'),COLOR0000FF;
N:=10;
T1:=CONST(HHVBARS(VOL,N));
T0:IF(CURRBARSCOUNT<=N+3,CONST(IF(T1=0,C,REF(CLOSE,T1))),DRAWNULL),COLORFF00FF;
IF(CURRBARSCOUNT=T1+1,T0,DRAWNULL),CIRCLEDOT,COLORFF00FF;
DRAWTEXT(ISLASTBAR,T0,' 量能平台'),COLORCC00CC;
M:=10;
Q1:=CONST(REF(HHVBARS(VOL,M),T1+1)+T1+1);
Q0:IF(CURRBARSCOUNT<=T1+M+3 AND CURRBARSCOUNT>=T1+1,CONST(REF(CLOSE,Q1)),DRAWNULL),COLOR009900;
IF(CURRBARSCOUNT=Q1+1,Q0,DRAWNULL),CIRCLEDOT,COLOR00CC00;
M1:=CONST(LLVBARS(VOL,M));
M0:IF(CURRBARSCOUNT<=M+7,CONST(IF(M1=0,O,REF(OPEN,M1))),DRAWNULL);
IF(CURRBARSCOUNT=M1+1,M0,DRAWNULL),CIRCLEDOT;
DRAWTEXT(ISLASTBAR,M0,' 能量反转');
HV:=HHV(VOL,8)=V OR V/REF(VOL,1)>=2;FT:=BARSLAST(HV);
量能平台:IF(HV,C,REF(CLOSE,FT)),COLORYELLOW,LINETHICK2;
DP:=IF(C=INDEXC,0,1);
GJ:=AMOUNT/V/100;【明日阻力】+(GJ-L)+(CLOSE-L),COLORRED,NODRAW;
【明日支撑】+(CLOSE-GJ),NODRAW;
年:=YEAR,NODRAW;
月:=MONTH,NODRAW;
星期:=WEEKDAY,NODRAW;
日1:=DATETODAY(DATE);
上市日:=REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT);
自然日:=日1-DATETODAY(上市日)+1;
ZB:=(自然日-REF(自然日,1))!=星期-REF(星期,1)OR TOTALBARSCOUNT-CURRBARSCOUNT=0;
本周第几天:=BARSLAST(ZB)+1;
本月第几天:=BARSLAST(年*100+月!=REF(年*100+月,1))+1;
上周价格1:=REF(CLOSE,本周第几天);
上周价格2:=REF(上周价格1,本周第几天);
上周价格3:=REF(上周价格2,本周第几天);
上周价格4:=REF(上周价格3,本周第几天);
上周价格5:=REF(上周价格4,本周第几天);
上周价格6:=REF(上周价格5,本周第几天);
上周价格7:=REF(上周价格6,本周第几天);
上周价格8:=REF(上周价格7,本周第几天);
上周价格9:=REF(上周价格8,本周第几天);
十周价:=(CLOSE+上周价格1+上周价格2+上周价格3+上周价格4+上周价格5+上周价格6+上周价格7+上周价格8+上周价格9)/10;
抄底:REFDATE(十周价,DATE),COLORYELLOW,LINETHICK1;
DRAWTEXT(ISLASTBAR,抄底,' 抄底线'),COLORYELLOW;
能量反转选股
HV:=HHV(VOL,8)=V OR V/REF(VOL,1)>=2;
FT:=BARSLAST(HV);
量能平台:=IF(HV,C,REF(CLOSE,FT)),COLORYELLOW,LINETHICK2;
星期:=WEEKDAY;
日1:=DATETODAY(DATE);
上市日:=REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT);
自然日:=日1-DATETODAY(上市日)+1;
ZB:=(自然日-REF(自然日,1))!=星期-REF(星期,1) OR TOTALBARSCOUNT-CURRBARSCOUNT=0;
本周第几天:=BARSLAST(ZB)+1;
上周价格1:=REF(CLOSE,本周第几天);
上周价格2:=REF(上周价格1,本周第几天);
上周价格3:=REF(上周价格2,本周第几天);
上周价格4:=REF(上周价格3,本周第几天);
上周价格5:=REF(上周价格4,本周第几天);
上周价格6:=REF(上周价格5,本周第几天);
上周价格7:=REF(上周价格6,本周第几天);
上周价格8:=REF(上周价格7,本周第几天);
上周价格9:=REF(上周价格8,本周第几天);
十周价:=(CLOSE+上周价格1+上周价格2+上周价格3+上周价格4+上周价格5+上周价格6+上周价格7+上周价格8+上周价格9)/10;
抄底:=REFDATE(十周价,DATE),COLORYELLOW,LINETHICK1;
XG:CROSS(量能平台,抄底);




能量反转.tn6

22.55 KB, 下载次数: 106

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

本版积分规则

指标评测

股指标

建议反馈

常见问题

股指标评测

商务合作

新闻媒体

量化投资研究社

联系我们

微信:ZBPC88

备用微信:cqcangshu

邮箱:1099750285@qq.com

关注微信公众号

QQ|手机版|小黑屋|股指标网 ( 渝ICP备2024026571号-1 )股指标

GMT+8, 2025-5-23 21:38 , Processed in 0.179136 second(s), 30 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.