我想寫的盤中警示的邏輯是 盤中創N日新高,開盤是跳空開, 預估成交值N億以上, 這樣跑警示都跳出錯誤請問為何 謝謝.
input: _days(20, "N日新高"), _gap(3, "跳空"), amount(1000000000, "成交金額");
if close > highest(getfield("最高價", "D")[1], _days) and
open > c[1] * (1 + _gap/100) and
getfield("估計量")*close*1000 > amount
then ret = 1;
3 評論