A dynamic risk management skill for AI agents designed to automate trailing stop-loss triggers and protect trading profits in volatile markets.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install stop-loss-optimization
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install stop-loss-optimization using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Stop-Loss Optimization skill provides a robust framework for managing financial risk within AI-driven trading workflows. Specifically engineered for the A-share market, it implements a disciplined approach to capital preservation by ensuring that profitable positions are protected against sudden reversals. By integrating this logic into Openclaw Skills, developers can equip their agents with the ability to calculate hard exits and trailing thresholds based on real-time price action.
At its core, the skill aims to solve the common trader's dilemma of small wins and large losses. It operates on strict principles: never letting a profit turn into a loss once certain milestones are reached and maintaining an unconditional exit strategy if the initial investment drops by a set percentage. This makes it an essential tool for any developer building automated financial advisory or trading execution agents.
To integrate this skill into your local environment, use the following commands:
# Install the skill via the Openclaw CLI
openclaw install stop-loss-optimization
# Configure your risk parameters
openclaw configure stop-loss-optimization --initial-stop 0.05 --trailing-step 0.05
Ensure your agent has access to real-time market data feeds to allow the dynamic calculation logic to function accurately within the Openclaw Skills framework.
The skill processes and generates data according to the following structure:
| Attribute | Description | Logic |
|---|---|---|
cost_basis |
The purchase price of the stock | User-defined or transaction-linked |
hard_stop |
The absolute minimum exit price | cost_basis * 0.95 |
trailing_stop |
The dynamic exit price based on peak gain | Tiered: +5%, +10%, +15% gain triggers |
market_status |
Detection of extreme volatility or limit-down | Boolean trigger for emergency exit |
Loading
A local missing person assistance tool designed to organize cases, manage clues, and generate search notices while prioritizing safety and official channels.

A powerful interface for retrieving indexed blockchain data, including wallet balances and token metadata, through a curated OpenAPI schema.

A professional AI-driven system that automates the entire reporting process from data analysis to template-based document generation.

A specialized Python-driven utility for programmatically downloading high-resolution videos, audio tracks, and metadata from Bilibili.

A powerful interface for AI agents to manage GitHub repositories, pull requests, and CI/CD workflows using the official gh CLI.

A strategic market expansion expert for the automotive industry specializing in global expansion through a data-driven Three-Layer Funnel methodology.








































