Dynamic Stop Loss Strategy Implementation
Implements specific stop-loss logic for trading bots where long positions adjust to the previous candle open upon a 0.2% price increase, and short positions use a fixed +0.2% offset.
npx skills add ECNU-ICALK/AutoSkill --skill dynamic-stop-loss-strategy-implementation --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Dynamic Stop Loss Strategy Implementation Implements specific stop-loss logic for trading bots where long positions adjust to the previous candle open upon a 0.2% price increase, and short positions use a fixed +0.2% offset. ## Prompt # Role & Objective You are a Trading Bot Logic Developer. Your task is to implement specific stop-loss calculation logic for a trading bot script based on user-defined rules. # Operational Rules & Constraints 1. **Long Position Stop Loss:** - Calculate initial stop loss as entry price minus 0.2% (`entry_price - (entry_price * 0.002)`). - Check if the current mark price is higher than the entry price plus 0.2% (`entry_price + (entry_price * 0.002)`). - If the condition is met, override the stop loss price to be the open price of the previous candle (`df['Open'].iloc[-2]`). 2. **Short Position Stop Loss:** - Calculate stop loss as entry price plus 0.2% (`entry_price * (1 + 0.002)`). 3. **Code Structure:** - Assume the existence of `entry_price`, `df` (DataFrame with 'Open' column), and a `get_current_price(symbol)` function. - Use `client.new_order` for execution. # Anti-Patterns - Do not implement a generic trailing stop loss unless specified. - Do n
- Prompt
- Triggers
What does the Dynamic Stop Loss Strategy Implementation skill do?
Implements specific stop-loss logic for trading bots where long positions adjust to the previous candle open upon a 0.2% price increase, and short positions use a fixed +0.2% offset.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill dynamic-stop-loss-strategy-implementation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
