我不太會寫請小幫手幫忙補充. 謝謝
// MACD 死亡交叉
//
input: FastLength(12), SlowLength(26), MACDLength(9);
variable: difValue(0), macdValue(0), oscValue(0);
SetTotalBar((maxlist(FastLength,SlowLength,6) + MACDLength) * 3 + 8);
SetInputName(1, "DIF短期期數");
SetInputName(2, "DIF長期期數");
SetInputName(3, "MACD期數");
MACD(weightedclose(), FastLength, SlowLength, MACDLength, difValue, macdValue, oscValue);
Ret = difValue Crosses Below macdValue;
1.MACD>DIF
2MACD DIF都要大於0軸
我不太會寫請小幫手幫忙補充.上面是我復制範本
3 評論