网友求助:

请老师写个MACD第一个红柱选股公式,可以自由设参数的,谢谢!
DIFF : EMA(CLOSE,5) - EMA(CLOSE,34);
DEA : EMA(DIFF,5);
MACD : 2*(DIFF-DEA),COLORSTICK;
 

 

解答如下:

参数P1;P2;PP 自己设定
DIFF : EMA(CLOSE,P1) - EMA(CLOSE,P2);
DEA : EMA(DIFF,
CROSS(DIFF,DEA);