feature-f4-limit-open-exit

Detect limit-up board opening and trigger market sell for long positions.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/13g7895123/littile-bao --skill feature-f4-limit-open-exit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feature-f4-limit-open-exit
Source: https://github.com/13g7895123/littile-bao/tree/main/.github/skills/feature-f4-limit-open-exit
Command: npx skills add https://github.com/13g7895123/littile-bao --skill feature-f4-limit-open-exit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps reduce drawdowns by exiting a long position immediately when the stock’s limit-up board opens (best ask price is no longer at the limit-up price).

Core Features & Use Cases

  • Immediate exit trigger (F4): While holding a position, sell at market as soon as the board opens.
  • Configuration controls: Enables/disables F4 via f4_enabled, and is designed to be extended with tolerance settings to avoid false exits.
  • Scenario fit: Useful for momentum/limit-up strategies where opening the board indicates deteriorating strength and you want an automatic risk-off exit.
  • Known risks: Identifies cross-day mis-sell and “open-then-reclose” washout as key failure modes, with mitigation suggestions.

Quick Start

Enable F4 and run the engine to automatically market-sell when is_at_limit_up becomes false during an open position.

Frequently Asked Questions about feature-f4-limit-open-exit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically sell a stock when the limit-up board opens?

To automatically sell a stock when the limit-up board opens, enable the F4 exit trigger to detect when the best ask is no longer at the limit-up price and immediately issue a market sell order for your held position.

What is an F4 limit-up break exit strategy in trading?

An F4 limit-up break exit strategy is a risk control mechanism that monitors active holding periods and executes a market sell order when a stock's limit-up status breaks, aiming to reduce drawdowns from deteriorating momentum.

How do I configure trading engine exit conditions for a broken limit-up price?

You configure exit conditions by enabling the f4_enabled setting in your stock order engine, which activates a guard-based sell requirement to check position quantity and non-limit-up status before triggering a market sell.

What are the risks of using an automated market exit when the limit-up opens?

Known risks of an automated market exit when the limit-up opens include cross-day mis-sell errors and washouts from open-then-reclose price movements, which can be mitigated by extending tolerance settings to avoid false exits.

Does the F4 exit strategy work with backtesting tests for momentum trading?

Yes, the F4 exit strategy fits momentum trading backtesting tests by applying guard-based sell requirements to engine ticks during active holding periods to evaluate drawdown reductions against historical limit-up break scenarios.