博尔资金流入 同花顺副图 公式源码分享
TT:=(2*CLOSE+OPEN+HIGH+LOW);主导动能:TT/EMA(TT,4)-1,COLORSTICK;FF:=主导动能;STICKLINE(FF>0,0,FF,8,0),COLOR33CFDD;STICKLINE(FF>0 AND FF>REF(FF,1),0,FF,8,0),COLOR0000CC;STICKLINE(FF<=0,0,FF,8,0),COLOR00CC11;STICKLINE(FF<=0 AND FF>REF(FF,1),0,FF,8,0),COLORFF9000;做多主导: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,COLOR00CC11;空头回补:IFF(FF<=0 AND FF>REF(FF,1),FF,0),NODRAW,COLORFF9000;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
TT赋值:(2*收盘价+开盘价+最高价+最低价)
输出主导动能:TT/TT的4日指数移动平均-1,COLORSTICK
FF赋值:主导动能
当满足条件FF>0时,在0和FF之间画柱状线
STICKLINE(FF>0 AND FF>1日前的FF,0,FF,8,0),COLOR0000CC
当满足条件FF<=0时,在0和FF之间画柱状线
STICKLINE(FF<=0 AND FF>1日前的FF,0,FF,8,0),COLORFF9000
输出做多主导: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,COLOR00CC11
输出空头回补:IFF(FF<=0 AND FF>1日前的FF,FF,0),NODRAW,COLORFF9000