指标的源码如下:
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MA1:MA(CLOSE,8),COLORFFFFFF;
MA2:MA(CLOSE,21),COLORYELLOW;
多头:STICKLINE(DIFF>DEA,CLOSE,OPEN,8,0),COLORRED;
STICKLINE(DIFF>DEA,HIGH,LOW,0,0),COLORRED;
空头:STICKLINE(DIFF<=DEA,CLOSE,OPEN,3.5,0),COLORFFFF00;
STICKLINE(DIFF<=DEA,HIGH,LOW,0,0),COLORFFFF00;
DRAWTEXT(CROSS(DIFF,DEA),LOW-0.2,'买入'),COLORRED;
DRAWTEXT(CROSS(DEA,DIFF),HIGH+0.2,'卖出'),COLORYELLOW;
|