beyond202104 发表于 2023-8-28 16:46:58

通达信指标分时与日线可以互转附图源码


日时转换:=IF(PERIOD=5,120,240);

QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;

VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;

VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;

VAR3:=(VAR1+VAR2)/2;

VAR4:=EMA(VAR3,30);

VAR5:=EMA(VAR3,60);

VAR6:=EVERY(VAR1>REF(VAR1,1),5) AND EVERY(VAR4>REF(VAR4,1),5);

DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30));

牵引线:VAR1,COLORYELLOW,LINETHICK3;

强弱线:EMA(VAR1,日时转换),COLORWHITE;

趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),NODRAW,COLORRED;

量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE;

冲击量:IF(VAR3>VAR5 AND VAR6,1,0),NODRAW,COLORYELLOW;

强势区:IF(VAR1>强弱线,1,DRAWNULL),NODRAW,COLORRED;

止损区:IF(VAR1<强弱线,1,DRAWNULL),NODRAW,COLORGREEN;

STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;

STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;

{DRAWICON(趋势关注=1,EMA(VAR1,60),13);

DRAWTEXT(趋势关注=1,EMA(VAR1,60),'转折'),COLORWHITE;

DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;}; 


a18945178687 发表于 2023-9-11 21:40:52

感谢分享优质资源

zew64154 发表于 2023-12-29 01:42:15

我抢、我抢、我抢沙发~

一枚很逊的红豆 发表于 2024-1-13 17:25:38

一切尽在不言中,谢谢!

下一站美安好 发表于 2024-2-7 02:56:40

不容易啊!好东西!
页: [1]
查看完整版本: 通达信指标分时与日线可以互转附图源码