DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));
DEA:=EMA(DIFF,9),colorblue,LINETHICK0;
MACD:=2*(DIFF-DEA);
资金线:HHV(MACD,1)*0.98,LINETHICK1,colorred;
资金3日线:HHV(MACD,3)*0.98,LINETHICK1;
资金5日线:HHV(MACD,5)*0.98,colorwhite,LINETHICK1;
持股:=IF(资金线>=REF(资金线,1) AND 资金3日线>=资金线 AND 资金3日线>=REF(资金3日线,1) AND 资金3日线=资金5日线,1.5,0),colorwhite;
DRAWICON(REF(持股<1.5,1) AND 持股,资金线,1);
DRAWICON(REF(资金线=资金5日线,1) AND 资金线<资金5日线,资金5日线,2);
天知技术:0,colorgray;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,6,0),colorred;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,6,0),COLORFF00A9;