//OPEN,BAMBOOLINE;
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);//短周期与长周期的收盘价的指数平滑移动平均值做差。
DEA := EMA(DIFF,9);//DIFF的M个周期指数平滑移动平均
MACD:=2*(DIFF-DEA),COLORSTICK;//DIFF减DEA的2倍画柱状线
J:CROSS(DIFF,DEA),NODRAW;
S:CROSSDOWN(DIFF,DEA),NODRAW;
LL:CROSS( BACKSET(REFX(J,1)||ISLASTBAR&&DIFF<DEA,LLVBARS(L,BARSLAST(S)+1)+1),),NODRAW;
HH:CROSS( BACKSET(REFX(S,1)||ISLASTBAR&&DIFF>DEA,HHVBARS(H,BARSLAST(J)+1)+1),),NODRAW;
DRAWLINE1(HH,H,LL,L,0),COLORGREEN,LINETHICK2;
DRAWLINE1(LL,L,HH,H,0),COLORRED,LINETHICK2;
DRAWTEXT(HH&&H>REF(H,SUMBARS(HH,2)-1),H,'多'),COLORMAGENTA,FONTSIZE25,ALIGN2;
DRAWTEXT(HH&&H<REF(H,SUMBARS(HH,2)-1),H,'空'),COLORGREEN,FONTSIZE25,ALIGN2;
D:=HH&&H>REF(H,SUMBARS(HH,2)-1);
K:=HH&&H<REF(H,SUMBARS(HH,2)-1);
DRAWNUMBER1(HH&&H>REF(H,SUMBARS(HH,2)-1),H,COUNT(D,BARSLAST(K)),0),FONTSIZE25,ALIGN0;
DRAWNUMBER1(HH&&H<REF(H,SUMBARS(HH,2)-1),H,COUNT(K
如何看懂macd线图文华财经指标公式期货软件指标赢顺云指标 来自淘豆网m.daumloan.com转载请标明出处.