What problem does it solve?
It prevents orders from exceeding the configured “per trade投入金額” by automatically converting a monetary amount into a valid whole-lot quantity based on the limit-up price, avoiding cases where the strategy would otherwise attempt an impossible or oversized purchase.
Core Features & Use Cases
- Money-to-lots conversion (F3): Translates
per_stock_amount into an integer number of lots using the formula qty = int(per_stock_amount // (limit_up * 1000)).
- Safety guard when cost exceeds limit-up lot cost: Skips the trade when
lot_cost = limit_up * 1000 is greater than per_stock_amount.
- Whole-lot enforcement with edge-case handling: Blocks the trade for “not enough money to buy at least 1 lot” and disallows zero-lot/odd-lot purchases.
例子與使用情境
當你把 per_stock_amount 調低、或遇到漲停價上升導致單一張的成本變貴時,F3 會把「每檔投入金額」自動換算成可下的張數;如果不足以買到 1 張,則記錄提示並封鎖該檔當日進場,避免資金風險。
Quick Start
Ask the AI to enable the feature by setting per_stock_amount (e.g., 100000) and recalculating F3 lot quantity for limit-up entry candidates before placing orders.