你好
請問在警示上, 我想搭配MACD 綠翻紅, 且交易量股票大於3000張,
我嘗試寫了XS , 但是編譯上一直有問題, 可否協助
我改了一下我的XS,
我希望是MACD 綠翻紅, 前三天平均交易量大於3000 , 但是改完後 篩選不到任何股票
不知道哪邊錯誤了... 可以麻煩小幫手嗎
input: FastLength(12), SlowLength(26), MACDLength(9);
input: length(20);
input: confirmVolume(3000);
variable: difValue(0), macdValue(0), oscValue(0);
SetTotalBar((maxlist(FastLength,SlowLength,6) + MACDLength) * 3 + 8);
SetInputName(1, "DIF短期期數");
SetInputName(2, "DIF長期期數");
SetInputName(3, "MACD期數");
setinputname(4, "均量期數");
setinputname(5, "突破均量張數");
MACD(weightedclose(), FastLength, SlowLength, MACDLength, difValue, macdValue, oscValue);
if oscValue Crosses Above 0 then
begin
end;
if volume > Average( volume[1],length) +confirmVolume then ret=1;
2 評論