飞狐量价MACD副图指标
源码
{量价MACD}
OBV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE
DIFF : EMA(obv,12) - EMA(obv,26),COLORYELLOW,LINETHICK2;
DEA : EMA(DIFF,9)COLORGREEN;
MACD : 2*(DIFF-DEA), ;
STICKLINE(MACD>0,0,MACD,8,1),COLORRED;
STICKLINE(MACD<0,0,MACD,8,1),COLORCYAN;
PARTLINE(DIFF>DEA,DIFF),COLORff11cc,LINETHICK2;
PARTLINE(DIFF>DEA AND DIFF<0,DIFF),COLORred,LINETHICK2;
DRAWICON(CROSS(DIFF,DEA),DIFF-0.01,6);
DRAWICON(CROSS(DEA,DIFF),DIFF,5);