网友求助:
M1 := EMA( CLOSE, 9 );
M2 := EMA( CLOSE, 18 );
MD : M1 - M2, COLORWHITE, LINETHICK3;
MM := EMA( MD, 3 );
吸 : IF( MD >= MM AND MD < 0, MD, DRAWNULL ), COLORLIRED, LINETHICK3;
拉 : IF( MD >= MM AND MD >= 0, MD, DRAWNULL ), COLORRED, LINETHICK3;
派 : IF( MD < MM AND MD >= 0, MD, DRAWNULL ), COLORGREEN, LINETHICK3;
落 : IF( MD < MM AND MD < 0, MD, DRAWNULL ), COLORWHITE, LINETHICK3;
解答如下:
M1 := EMA( CLOSE, 9 );
M2 := EMA( CLOSE, 18 );
MD : M1 - M2, COLORWHITE, LINETHICK3;
MM := EMA( MD, 3 );
PARTLINE(MD,MD >= MM AND MD < 0,RGB(255,120,120)), LINETHICK3;
PARTLINE(MD,MD >= MM AND MD >= 0,RGB(250,0,0)), LINETHICK3;
PARTLINE(MD,MD < MM AND MD >= 0,RGB(0,250,0)), LINETHICK3;
PARTLINE(MD,MD < MM AND MD < 0,RGB(230,230,230)), LINETHICK3;