快好知 kuaihz

通达信九转MACD指标公式

DIF:EMA(C,12)-EMA(C,26);

DEA:EMA(DIF,9);

MACD:(DIF-DEA)*2,COLORSTICK;

STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.5,0),COLORLIRED;

STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,0.5,0),COLORLIGREEN;

A1:=C>REF(C,4);

NT:=BARSLASTCOUNT(A1);

TJ11:=NT=9;

TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);

AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;

DRAWTEXT(AY>0,MAX(DIF,MACD)*1.1,VAR2STR(AY,0)),COLORGREEN;

DRAWTEXT(NT=9,MAX(DIF,MACD)*1.1,"9"),COLORGREEN;

B1:=C<REF(C,4);

NT0:=BARSLASTCOUNT(B1);

TJ21:=NT0=9 ;

TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);

AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0;

DRAWTEXT(AY1>0,MIN(DIF,MACD)*1.2,VAR2STR(AY1,0)),COLORLIMAGENTA;

DRAWTEXT(NT0=9,MIN(DIF,MACD)*1.2,"9"),COLORMAGENTA;

本站资源来自互联网,仅供学习,如有侵权,请通知删除,敬请谅解!
搜索建议:通达信九转MACD指标公式  通达  通达词条  公式  公式词条  指标  指标词条  MACD  MACD词条  
股票

 中国股市经典口诀: “阳后双阴阳...

股票市场不是怕没有机会,而是太多的机会。就怕你的钱,莫名的亏光了。日内茫无目的的跟着小势开仓,不过是被多空来回的杀,赚了,以那点小势的时空,也不过是点毛毛雨。不...(展开)