Data Processinglongbridge/skills
turtle-signal
Quantitative signal scanning and position sizing tool based on the original Turtle Trading method. It retrieves market data for A-shares / Hong Kong stocks / US stocks / Singapore stocks via longbridge CLI, and automatically calculates ATR (N value), breakout signals (System 1 / System 2), stop-loss prices, add-on positions, and Unit position sizes.
Trigger this tool when users mention 海龟, turtle, 海龟交易, 海龟信号, turtle signal, turtle trading, or ask about breakout signals, ATR, N value, Unit positions, stop-loss prices, add-on positions, S1/S2 signals, 20-day high/low, 55-day breakout, or request to scan watchlists/indexes for trading signals using the turtle system. It also triggers when users say "扫描突破信号", "帮我算Unit", "海龟止损", "海龟系统分析", or any combination of a stock name/code with "海龟".
**Applicable scenarios:**
- Scan for breakout signals (20-day/55-day high/low breakouts) after daily market close
- Calculate ATR, stop-loss prices, and add-on positions for single stocks or batches of targets
- Calculate reasonable Unit position sizes based on account net assets
- Determine whether existing positions trigger exit or add-on conditions
- Scan turtle signals for watchlist stocks / index components
**Not applicable for:**
- Fundamental analysis (Turtle system is purely technical)
- Predicting price direction
- Automatic order placement (only outputs signals; users operate on their own)
- Short-selling opening operations for A-shares/Hong Kong stocks/Singapore stocks