查看: 544|回复: 0

趋势突破,通达信分时T+0分时主图指标公式分享

  [复制链接]

1022

主题

89

回帖

3万

积分

管理员

积分
36418
发表于 2024-5-28 12:00:51 | 显示全部楼层 |阅读模式
T+0是指在同一交易日内买卖同一股票,即当天买入后可立即卖出。大家都知道 T+0操作是A股市场盈利的有效手段,可以降低成本增加收益,通过T+0在股价下跌时减少损失甚至实现盈利。
今天要给朋友们分享的这个指标就是适用于T+0的一个分时指标,结合指标,盯紧一只股票,不要贪心,每天盘中3%以下做差价,积小成多。
第一部分 指标介绍

一、指标公式包含
1、分时T+0升级(通达信专用分时主图)
2、分时引用(非公式,导入别删即可)
二、指标说明
市面上很多T+0指标都有未来,提示会漂移。本指标使用特别技术计算的压力支撑精准可靠不漂移,只要盘中价格接近压力支撑位,出来提示一天不会变,特别适合震荡市里股票期货的日内T+0操作。
分时T+0升级指标是通达信专用的分时主图工具,具有以下关键特性:
1. 动态撑压线:提供最多两条紫色和两条绿色的动态支撑压力线,这些线条在盘中不会发生漂移。通过这些线条,指标能够实时发出买卖信号(红绿箭头),提示超卖或超买情况。
2. 早盘黄金半小时:指标包含一个黄色四方框和两条黄色虚线,表示早盘黄金半小时内的高低箱体区间。上午10点后,这两条黄线将固定,为全天走势提供参考:突破上线意味着市场强势,跌破下线意味着市场弱势,否则市场处于震荡状态。
3. 精确的支撑压力点:指标结合紫、红、绿线显示个股精确的支撑压力点,这些点位固定不变,指导开展操作。
4. 适用性广泛:该指标适用于股票、大盘、期指和期货市场,能够实时辅助分析判断日内趋势。
第二部分 指标图示
640.jpg
640.jpg
第三部分 指标源码


{分时引用副图--}
O1:REF(O,1);
C1:REF(C,1);
H1:REF(H,1);
L1:REF(L,1);
O2:REF(O,2);
C2:REF(C,2);
H2:REF(H,2);
L2:REF(L,2);
O3:REF(O,3);
C3:REF(C,3);
H3:REF(H,3);
L3:REF(L,3);
O4:REF(O,4);
C4:REF(C,4);
H4:REF(H,4);
L4:REF(L,4);
O5:REF(O,5);
C5:REF(C,5);
H5:REF(H,5);
L5:REF(L,5);
O6:REF(O,6);
C6:REF(C,6);
H6:REF(H,6);
L6:REF(L,6);

明Y:REF(EMA(H,5)+EMA((H-L),5),1);
明D:REF(EMA(H,5),1);
明K:REF(EMA(L,5),1);
明Z:REF((C*3+H*2+L*2+O)/8,1);
CDPC1+H1+L1)/3;
木子0:=REF(CLOSE,1);
木子1:=REF(MAX(HIGH,木子0),1);
木子2:=REF(MIN(LOW,木子0),1);
MACSMA((((木子1 - 木子2) / REF(CLOSE,2)) * 100),5) / 4);
{分时副图--}
DRAWGBK(C>0, RGB(01,01,01),RGB(01,01,01),0,0,1);{黑色}
{分时通道 HTTPS://GLMIJI.TAOBAO.COM======公众号:指标评测
股指标网WWW.GUZHIBIAO.CN}
VR1:=1270915;VR2:=1270920;
VR3:=IF(DATE>VR1,IF(CLOSE<80,1,0),0);
VR4:=IF(DATE>VR2,1,VR3);
P2:=IF(VR3=1,0,240);
TC1:=IF(H=HHV(H,P2),C,DRAWNULL);
TC2:=CONST(BARSLAST(TC1=H))+1;
UPPER:=CONST(IF(TC2=1,C,REF(C,TC2-1)));
BC1:=IF(L=LLV(L,P2),C,DRAWNULL);
BC2:=CONST(BARSLAST(BC1=L))+1;
LOWER:=CONST(IF(BC2=1,C,REF(C,BC2-1)));
LP:=CURRBARSCOUNT<=BC2 AND C=LOWER;{低点定位}
HP:=CURRBARSCOUNT<=TC2 AND C=UPPER;{高点定位}
NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));{用时}
LR1:=FORCAST(C,NOD+1);
NP:=IF(CURRBARSCOUNT<=MAX(BC2,TC2),CONST(IF(MIN(TC2,BC2)=1,LR1,
REF(LR1,MIN(TC2,BC2)-1))),DRAWNULL),POINTDOT,COLORFF0000;{近点}
LR2:=SLOPE(C,NOD+1);
LR3:=CONST(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)));
FP:=NP-LR3*(NOD),POINTDOT,COLORFF0000;{远点}
EQU:=(NP+FP)/2,POINTDOT,COLOR0000FF;
AD:=ABS(NP-FP);{高差};
DBL:=BARSLAST(BC1!=DRAWNULL)+1;
DBH:=BARSLAST(TC1!=DRAWNULL)+1;
BSP:=IF(BC2>TC2,DBL,DBH)-1;
LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);
AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND H>LRL,H,LRL);
AT2:=HHV(AT1-LRL,MAX(BC2,TC2));
AT3:=CONST(BARSLAST(AT1-LRL=AT2));
AT4:=CONST(IF(AT3=0,H,REF(H,AT3)));
AT5:=CONST(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3)));
ATL:=LRL+AT5;
UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND L<LRL,L,LRL);
UT2:=HHV(LRL-UT1,MAX(BC2,TC2));
UT3:=CONST(BARSLAST(LRL-UT1=UT2));
UT4:=CONST(IF(UT3=0,H,REF(H,UT3)));
UT5:=CONST(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)));
UTL:=LRL-UT5;
RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,ATL,CONST(REF(ATL,MIN(BC2,TC2)-11)));{限制高}
RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,UTL,CONST(REF(UTL,MIN(BC2,TC2)-11)));{限制低}
中轨2:=IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLORBLUE,LINETHICK1,DOTLINE;
上轨2:=IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLORMAGENTA,LINETHICK1,DOTLINE;
下轨2:=IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),COLOR00EE00,LINETHICK1,DOTLINE;
T30:=IF(BARSSINCE(C>0)>=30,1,0);
IF(T30 AND 上轨2>REF(上轨2,1),上轨2,DRAWNULL),COLOR000099;
IF(T30 AND 中轨2>REF(中轨2,1),中轨2,DRAWNULL),COLOR000099;
IF(T30 AND 下轨2>REF(下轨2,1),下轨2,DRAWNULL),COLOR000099;
IF(T30 AND 上轨2<=REF(上轨2,1),上轨2,DRAWNULL),COLOR999900;
IF(T30 AND 中轨2<=REF(中轨2,1),中轨2,DRAWNULL),COLOR999900;
IF(T30 AND 下轨2<=REF(下轨2,1),下轨2,DRAWNULL),COLOR999900;
DRAWICON(CROSS(C,上轨2) AND T30,上轨2,41);
DRAWICON(CROSS(下轨2,C) AND T30,下轨2,41);
{权证主图
公众号:指标评测
股指标网WWW.GUZHIBIAO.CN}
N:=IF(VR4=1,0,4);
权:=EMA(C,5);
证:=EMA(C,34),COLORGRAY,LINETHICK1;
KS:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);
RKS:=REF(KS,1);
MLS:=RKS/KS>1.23 AND RKS>10 AND C/REF(C,1)>1.02;
主:=EMA(C,13),COLORRED;
图:=EMA(KS*C/100+权,3), COLORFF9933;
反弹:=STICKLINE(MLS=1,H,L,0,0),COLOR00FFFF;
DRAWBAND(主,RGB(88,00,00),图,RGB(0,88,00));
{黄色箱体}
X_2:=AMOUNT/VOL/100;
X_3:=SUM(CLOSE*VOL,0)/SUM(VOL,0);
X_4:=(SETCODE=0 OR SETCODE=1) AND CLOSE<500;
均价:=IF(X_4,X_3,X_3),COLORYELLOW;
HHH:IF(SETCODE>=0 AND CONST(BARSSINCE(CLOSE))<900,CONST(IF(BARSSINCE(C>0)<30,HHV(CLOSE,0),SUM(IF(BARSSINCE(C>0)=30,1,0)*HHV(CLOSE,0),0))),DRAWNULL),DOTLINE,COLOR00C0C0;
LLL:IF(SETCODE>=0 AND CONST(BARSSINCE(CLOSE))<900,CONST(IF(BARSSINCE(C>0)<30,HHV(CLOSE,0),SUM(IF(BARSSINCE(C>0)=30,1,0)*LLV(CLOSE,0),0))),DRAWNULL),DOTLINE,COLOR00C0C0;
HHH2:IF(SETCODE>=0 AND CONST(BARSSINCE(CLOSE))<900 AND BARSSINCE(C>0)<30+1,HHH,DRAWNULL),COLOR00C0C0,LINETHICK2;
LLL2:IF(SETCODE>=0 AND CONST(BARSSINCE(CLOSE))<900 AND BARSSINCE(C>0)<30+1,LLL,DRAWNULL),COLOR00C0C0,LINETHICK2;
STICKLINE((BARSSINCE(C>0)=1 OR BARSSINCE(C>0)=30) AND VR4<>1,HHH,LLL,1,0),COLOR00C0C0;
X_5:=IF(VR3=1,0,分时引用.MACS#DAY);
X_6:=IF(VR4=1,0,X_5*1.3);
X_7:=CLOSE>REF(CLOSE,1) AND CLOSE/均价>1+X_5/100;
X_8:=CLOSE<REF(CLOSE,1) AND CLOSE/均价<1-X_5/100;
HH1:=REF(SUM(X_7,0),1)=0 AND SUM(X_7,0)=1,NODRAW;
LL1:=REF(SUM(X_8,0),1)=0 AND SUM(X_8,0)=1,NODRAW;
X_9:=SUM(HH1,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(HH1)),0.5);
X_10:=SUM(LL1,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(LL1)),0.5);
CS1:CONST(SUM(IF(X_9,REF(CLOSE,1),DRAWNULL),0)),COLORGREEN,LINETHICK1;
CB1:CONST(SUM(IF(X_10,REF(CLOSE,1),DRAWNULL),0)),COLORMAGENTA,LINETHICK1;
HH2:=CROSS(SUM(X_7 AND CLOSE>CS1*(1+X_6/100),0),0.5),NODRAW;
LL2:=CROSS(SUM(X_8 AND CLOSE<CB1*(1-X_6/100),0),0.5),NODRAW;
X_11:=SUM(HH2,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(HH2)),0.5);
X_12:=SUM(LL2,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(LL2)),0.5);
CS2:CONST(SUM(IF(X_11,REF(CLOSE,1),DRAWNULL),0)),COLORGREEN;
CB2:CONST(SUM(IF(X_12,REF(CLOSE,1),DRAWNULL),0)),COLORMAGENTA;
DRAWICON(X_10 OR X_12,REF(CLOSE,1)*0.999,38);
DRAWICON(X_9 OR X_11,REF(CLOSE,1)*1.001,39);
DRAWICON(X_10 OR X_12,REF(CLOSE,1)*0.998,7);
DRAWICON(X_9 OR X_11,REF(CLOSE,1)*1.002,8);

C,COLORWHITE;
均价线:SUM(V*C,0)/SUM(V,0),COLORYELLOW,LINETHICK1;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0.3,0.99,0,STRCAT(Z3,GNBLOCK)),COLOR00C0C0;

分时T 0.rar

9.03 KB, 下载次数: 126

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

本版积分规则

指标评测

股指标

建议反馈

常见问题

股指标评测

商务合作

新闻媒体

量化投资研究社

联系我们

微信:ZBPC88

备用微信:cqcangshu

邮箱:1099750285@qq.com

关注微信公众号

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

GMT+8, 2025-5-13 16:05 , Processed in 0.159802 second(s), 31 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.