// MACD 黃金交叉 (dif向上穿越macd)
//
input: FastLength(12), SlowLength(26), MACDLength(9);
variable: difValue(0), macdValue(0), oscValue(0);
SetTotalBar((maxlist(FastLength,SlowLength,6) + MACDLength) * 4);
SetInputName(1, "DIF短期期數");
SetInputName(2, "DIF長期期數");
SetInputName(3, "MACD期數");
MACD(weightedclose(), FastLength, SlowLength, MACDLength, difValue, macdValue, oscValue);
Ret = difValue Crosses Above macdValue;
請問小編如何把頻率改成60分K,
另
SetTotalBar((maxlist(FastLength,SlowLength,6) + MACDLength) * 4); 的6跟4代表什麼?

1 評論