feature-f3-position-sizing

Community

Convert per-trade money into buyable lots

Author13g7895123
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: feature-f3-position-sizing
Download link: https://github.com/13g7895123/littile-bao/archive/main.zip#feature-f3-position-sizing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.