DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA),COLORSTICK;JC:=CROSS(DIFF,DEA);SC:=CROSSDOWN(DIFF,DEA);N1:=BARSLAST(JC)+1;N2:=BARSLAST(SC)+1;HH:=VALUEWHEN(CROSSDOWN(DIFF,DEA),HHV(C,N1));//上次MACD红柱期间合约最大值HH2:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(HH,1));//上上次MACD红柱期间合约最大值MHD:=VALUEWHEN(CROSSDOWN(DIFF,DEA),HHV(DIFF,N1));//上次MACD红柱期间MACD最大值MHDMACD:=VALUEWHEN(CROSSDOWN(MACD,DEA),HHV(DIFF,N1));MHD2:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(MHD,1));//上上次MACD红柱期间MACD最大值MHDMACD2:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(MHDMACD,1));LL:=VALUEWHEN(CROSS(DIFF,DEA),LLV(C,N2));//上次MACD绿柱期间合约最小值LL2:=VALUEWHEN(CROSS(DIFF,DEA),REF(LL,1));//上上次MACD绿柱期间合约最小值MLD:=VALUEWHEN(CROSS(DIFF,DEA),LLV(DIFF,N2));//上次MACD绿柱期间MACD最小值MLDMACD:=VALUEWHEN(CROSS(DIFF,DEA),LLV(MACD,N2));MLD2:=VALUEWHEN(CROSS(DIFF,DEA),REF(MLD,1));//上上次MACD绿柱期间MACD最小值MLDMACD2:=VA
期货专用指标公式准确率最高的期货指标文华期货软件指 来自淘豆网m.daumloan.com转载请标明出处.