使用说明:红箭头出现买入;绿箭头出现卖出,每次出现绿箭头可能会有一波下跌;
DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA1:=EMA(DIF1,9);
A:=(DIF1-DEA1)*2*60;
买入:8.05,POINTDOT,COLORRED;
卖出:-4,POINTDOT,COLORGREEN;
X1:=(A-REF(A,1));
X:IF(A-REF(A,1)<=-4.8,-4.9,IF(A-REF(A,1)>=10,10,X1)),COLORYELLOW;
DRAWICON(CROSS(X,买入),买入,1);
DRAWICON(CROSS(卖出,X),卖出,2);