Agent SkillsLumiwealth/lumibot › stock-trading

stock-trading

GitHub

股票与ETF交易技能,涵盖研究、下单、仓位管理及风险控制。指导Agent依据策略规则执行买卖决策,确保订单安全与资金合规。

lumibot/components/agents/skills/stock-trading/SKILL.md Lumiwealth/lumibot

Trigger Scenarios

用户需要研究或交易股票/ETF 涉及 discretionary investing, rotation, breakout, momentum, mean-reversion 等策略 需要进行开盘突破或VWAP交易

Install

npx skills add Lumiwealth/lumibot --skill stock-trading -g -y
More Options

Non-standard path

npx skills add https://github.com/Lumiwealth/lumibot/tree/dev/lumibot/components/agents/skills/stock-trading -g -y

Use without installing

npx skills use Lumiwealth/lumibot@stock-trading

指定 Agent (Claude Code)

npx skills add Lumiwealth/lumibot --skill stock-trading -a claude-code -g -y

安装 repo 全部 skill

npx skills add Lumiwealth/lumibot --all -g -y

预览 repo 内 skill

npx skills add Lumiwealth/lumibot --list

SKILL.md

Frontmatter
{
    "name": "stock-trading",
    "description": "Use before researching, selecting, opening, modifying, or closing a stock or ETF position, including discretionary investing, rotation, breakout, momentum, mean-reversion, opening-range breakout, and VWAP trading. Also use when a broad mandate leads you to consider stocks or ETFs even if the user did not name an asset class initially."
}

Stock Trading

Load this skill before using stocks or ETFs as part of a trading decision. If a broad mandate leads you to a stock idea, load it before submitting an order.

Core workflow

  1. Read portfolio value, cash, current positions, and open orders.
  2. Retrieve the current price and recent price history for every serious candidate.
  3. Use batch tools for a universe. Do not loop one symbol at a time when a batch price or history tool can return the same evidence.
  4. Evaluate the user's entry, exit, sizing, and frequency rules against current evidence. Write down the decisive condition and whether it is true before submitting an order. Do not invent missing signals.
  5. Size from current portfolio value, available cash, current price, volatility or stop distance, and the user's risk rules. For a notional cap, calculate the maximum notional and call risk_calculate_stock_quantity; use its returned whole-share quantity unchanged. Verify its notional is at or below both the cap and available cash before submission. Submit only when the returned quantity is greater than zero; otherwise make a no-trade decision.
  6. Submit the selected order once.
  7. Capture the returned identifier, inspect that exact order, and reread positions and open orders. In backtests, a short bounded orders_wait_for_terminal is appropriate immediately after your own market-order submission because it lets the simulator process the pending fill. Do not use an unbounded wait.
  8. If a related order is already open, inspect that exact order and do not submit another order for the same intended position change. A pending exit already owns the exit. Let it resolve or cancel it deliberately before replacing it.
  9. Reconcile the final summary with the mutation tools and the final account reads. If an order tool returned a submitted identifier, never say that no order was entered. Report the exact observed status instead.

Research depth

Match research to the strategy. A broad discretionary investment decision should use relevant technical, news, macro, and company evidence when available. A mechanical intraday strategy should prioritize the exact price, bar, volume, and indicator evidence required by its rules. Do not force irrelevant research merely to increase tool use.

References

Load only the smallest relevant reference:

  • references/research-sizing-and-orders.md: evidence, sizing, entries, exits, rotation, and order verification.
  • references/intraday-setups.md: opening-range breakout and VWAP mechanics.

The user's active strategy rules decide whether a trade should happen. This skill provides reusable stock-trading mechanics and does not invent a strategy.

Version History

  • f987da3 Current 2026-09-09 03:57

    强化代理和经纪商的安全边界,硬化交易决策及发布闸门逻辑。

  • c99491d 2026-08-27 18:16

Same Skill Collection

lumibot/components/agents/skills/options-trading/SKILL.md
lumibot/components/agents/skills/research-data/SKILL.md

Metadata

Files
0
Version
f987da3
Hash
9cb0ddfc
Indexed
2026-08-27 18:16

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-16 11:20
浙ICP备14020137号-1 $방문자$