以下是同花顺主导动能系统+MACD指标公式
主导动能系统+MACD,自用指标,放一起便于观看而已。
DIFF : EMA(CLOSE,12) – EMA(CLOSE,26);
DEA : EMA(DIFF,9);
DRAWICON(CROSS(DIFF,DEA),DIFF,1);
DRAWICON(CROSS(DEA,DIFF),DEA,2);
Jdxs:=HHV(DIFF,0)*10;
TT:=(2*CLOSE+OPEN+HIGH+LOW);
主导动能:=TT/EMA(TT,4)-1,COLORSTICK;
FF:=主导动能*Jdxs;
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),colorgreen;//绿色:做空主导
STICKLINE(FF<=0 AND FF>REF(FF,1),0,FF,8,0),COLORFF3300;//蓝色:空头回补
做多主导: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,COLORFF6600;
//零线:0;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)