SHORT:=12;LONG:=26;M:=9;最大亏损:=5000;DIF:=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);DEA:=EMA(DIF,M);:=2*(DIF-DEA),STICK;分界:MA(C,50),LINETHICK1,COLORCYAN,POINTDOT;{IF(多空分界>REF(多空分界,1),多空分界,DRAWNULL), COLORRED,LINETHICK1;}TOZ:=MA(C,50),COLORYELLOW,DOTLINE;TMACD:=MA(C,50)+(MACD.MACD)*3;HD0:=OSS(DIF,DEA);金收:=REF(L,BARSLAST(HD0)),COLORYELLOW,DOTLINE;DRAWNUMBER(ISLASTBAR,金收,金收),COLORCYAN;LD0:=CROSS(DEA,DIF);死收:REF(H,BARSLAST(LD0)),COLOR00FF00,DOTLINE;JCSC:=(M-1)/(M+1)*DEA/(1-2/(M+1));{计算出时的DIFF值}DD:=(MACD/2+(D