编写要求:
均线指标中的M5大于M10同时M5上涨同时20M上拐同时MACD指标中的DIFF大于0
公式在线网解答:
DIF:=EMA(C,12)-EMA(C,26); DEA:=EMA(DIF,9); MACD:=(DIF-DEA)*2; MA(C,5)>MA(C,10) and MA(C,5)>ref(MA(C,5),1) and MA(C,20)>ref(MA(C,20),1) and dif>0;