input: r1(-20); setinputname(1,"籌碼收集比例(%)");
input: volLimit(1000); setinputname(2,"成交量下限(張)");
input: r2(15); setinputname(3,"融資增加比例(%)");
settotalbar(1);
value1 = GetField("法人買賣超張數");
value2 = GetField("法人買賣超張數") / Volume * 100;
value3 = GetField("POMBuy");
value4 = value3 / Volume * 100;
if value2 < r1 and value4 > r2 and volume > volLimit then
ret = 1;
setoutputname1("法人買賣超張數");
setoutputname2("法人籌碼收集比例(%)");
setoutputname3("融資買進張數");
setoutputname4("融資買進比例(%)");
outputfield1(value1);
outputfield2(value2);
outputfield3(value3);
outputfield4(value4);

如上程式,執行了很多次(包括:刪除選股策略,重新啟動全球贏家),其中「融資買進張數」的資料都不對,不了解問題出在哪裡,敬請指正。 謝謝


4 評論