动能三号通达信指标 副图 源码附图
TT:=(2*CLOSE+OPEN+HIGH+LOW);
主导动能:TT/EMA(TT,4)-1,COLORSTICK, COLORLIBLUE;
FF:=主导动能*100;
STICKLINE(FF>0,0,FF,3,0),COLOR33CFDD;
STICKLINE(FF>0 AND FF>REF(FF,1),0,FF,3,0),COLOR0000CC;
STICKLINE(FF<=0,0,FF,3,0),COLOR00CC00;
STICKLINE(FF<=0 AND FF>REF(FF,1),0,FF,3,0),COLORFF9900;
做多主导:IFF(FF>0 AND FF>REF(FF,1),FF,0),NODRAW,COLOR0000CC;
获利回吐:IFF(FF>0 AND FF<=REF(FF,1),FF,0),NODRAW,COLOR33CFDD;
做空主导:IFF(FF<=0 AND FF<=REF(FF,1),FF,0),NODRAW,COLOR00CC00;
空头回补:IFF(FF<=0 AND FF>REF(FF,1),FF,0),NODRAW,COLORFF9900;
XG:CROSS(做多主导, 1.5) AND 做多主导>=1.5 AND 做多主导<=2.8;
DRAWICON(XG, 0, 9 );
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
TT赋值:(2*收盘价+开盘价+最高价+最低价)
输出主导动能:TT/TT的4日指数移动平均-1,COLORSTICK, COLORLIBLUE
FF赋值:主导动能*100
当满足条件FF>0时,在0和FF之间画柱状线
STICKLINE(FF>0 AND FF>1日前的FF,0,FF,3,0),COLOR0000CC
当满足条件FF<=0时,在0和FF之间画柱状线
STICKLINE(FF<=0 AND FF>1日前的FF,0,FF,3,0),COLORFF9900
输出做多主导:IFF(FF>0 AND FF>1日前的FF,FF,0),NODRAW,COLOR0000CC
输出获利回吐:IFF(FF>0 AND FF<=1日前的FF,FF,0),NODRAW,COLOR33CFDD
输出做空主导:IFF(FF<=0 AND FF<=1日前的FF,FF,0),NODRAW,COLOR00CC00
输出空头回补:IFF(FF<=0 AND FF>1日前的FF,FF,0),NODRAW,COLORFF9900
输出XG:做多主导上穿 1.5 AND 做多主导>=1.5 AND 做多主导<=2.8
当满足条件XG时,在 0和 9 之间画图标