請問專業幫手,以下是策略雷達腳本 MACD 黃金交叉 頻率是1分鐘
我有加了condition1濾除單量10張以下,沒成功,麻煩您看是哪邊設定錯誤?
// MACD 黃金交叉 (dif向上穿越macd)
//
input: FastLength(12), SlowLength(26), MACDLength(9);
variable: difValue(0), macdValue(0), oscValue(0);
SetTotalBar((maxlist(FastLength,SlowLength,6) + MACDLength) * 3 + 8);
condition1 = GetField("Volume", "Tick") >= 10;
SetInputName(1, "DIF短期期數");
SetInputName(2, "DIF長期期數");
SetInputName(3, "MACD期數");
MACD(weightedclose(), FastLength, SlowLength, MACDLength, difValue, macdValue, oscValue);
Ret = difValue Crosses Above macdValue;
if condition1 then ret =1;
30 評論