你好 我想要在細產業指標裡挑選符合以下條件:
過去幾天裡
1. 當日成交比重 >= 1%
2.今量 >= 昨量 * 3
選股腳本我這樣寫:
input:xday(0); var:x(0); x = getField("成交金額(元)","D") / (GetSymbolField("TSE.TW","成交金額(元)","D")+GetSymbolField("OTC.TW","成交金額(元)","D")) *100; if trueAny(GetField("成交量", "D") >= GetField("成交量", "D")[1] * 3 and x >= 1,xday) then ret = 1;
結果沒有符合的標的
但我指標腳本:
if getField("成交金額(元)","D")/(GetSymbolField("TSE.TW","成交金額(元)","D")+GetSymbolField("OTC.TW","成交金額(元)","D")) *100 >= 1 and getField("Volume","D") >= getField("Volume","D")[1] * 3 then plot1(x);
在技術線圖上訊號是有出來的
EX: 貨櫃航運指標(I026020.TW) 5/23 這根K
想請問是哪裡出問題
4 評論