主导动能红买黄卖绿空仓 有使用方法通达信公式 副图 源码附图无未来函数
TT:=(2*CLOSE+OPEN+HIGH+LOW);
主导动能:TT/EMA(TT,4)-1,COLORSTICK;
FF:=主导动能;{股票指标网}
STICKLINE(FF<REF(FF,1)AND FF>0,0,FF,4,0),COLOR33CFDD;
STICKLINE(FF<REF(FF,1)AND FF>0,0,FF,3,0),COLOR33DFDD;
STICKLINE(FF<REF(FF,1)AND FF>0,0,FF,2,0),COLOR33EFDD;
STICKLINE(FF<REF(FF,1)AND FF>0,0,FF,1,0),COLOR33FFDD;
STICKLINE(FF<REF(FF,1)AND FF<0,0,FF,4,0),COLOR00CC00;
STICKLINE(FF<REF(FF,1)AND FF<0,0,FF,3,0),COLOR00DD00;
STICKLINE(FF<REF(FF,1)AND FF<0,0,FF,2,0),COLOR00EE00;
STICKLINE(FF<REF(FF,1)AND FF<0,0,FF,1,0),COLOR00FF00;
STICKLINE(FF>REF(FF,1)AND FF<0,0,FF,4,0),COLORFF9900;
STICKLINE(FF>REF(FF,1)AND FF<0,0,FF,3,0),COLORFFAA00;
STICKLINE(FF>REF(FF,1)AND FF<0,0,FF,2,0),COLORFFBB00;
STICKLINE(FF>REF(FF,1)AND FF<0,0,FF,1,0),COLORFFCC00;
STICKLINE(FF>REF(FF,1)AND FF>0,0,FF,4,0),COLOR0000CC;
STICKLINE(FF>REF(FF,1)AND FF>0,0,FF,3,0),COLOR0000DD;
STICKLINE(FF>REF(FF,1)AND FF>0,0,FF,2,0),COLOR0000EE;
STICKLINE(FF>REF(FF,1)AND FF>0,0,FF,1,0),COLOR0000FF;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
TT赋值:(2*收盘价+开盘价+最高价+最低价)
输出主导动能:TT/TT的4日指数移动平均-1,COLORSTICK
FF赋值:主导动能
{股票指标网}
STICKLINE(FF<1日前的FFAND FF>0,0,FF,4,0),COLOR33CFDD
STICKLINE(FF<1日前的FFAND FF>0,0,FF,3,0),COLOR33DFDD
STICKLINE(FF<1日前的FFAND FF>0,0,FF,2,0),COLOR33EFDD
STICKLINE(FF<1日前的FFAND FF>0,0,FF,1,0),COLOR33FFDD
STICKLINE(FF<1日前的FFAND FF<0,0,FF,4,0),COLOR00CC00
STICKLINE(FF<1日前的FFAND FF<0,0,FF,3,0),COLOR00DD00
STICKLINE(FF<1日前的FFAND FF<0,0,FF,2,0),COLOR00EE00
STICKLINE(FF<1日前的FFAND FF<0,0,FF,1,0),COLOR00FF00
STICKLINE(FF>1日前的FFAND FF<0,0,FF,4,0),COLORFF9900
STICKLINE(FF>1日前的FFAND FF<0,0,FF,3,0),COLORFFAA00
STICKLINE(FF>1日前的FFAND FF<0,0,FF,2,0),COLORFFBB00
STICKLINE(FF>1日前的FFAND FF<0,0,FF,1,0),COLORFFCC00
STICKLINE(FF>1日前的FFAND FF>0,0,FF,4,0),COLOR0000CC
STICKLINE(FF>1日前的FFAND FF>0,0,FF,3,0),COLOR0000DD
STICKLINE(FF>1日前的FFAND FF>0,0,FF,2,0),COLOR0000EE
STICKLINE(FF>1日前的FFAND FF>0,0,FF,1,0),COLOR0000FF