K线数据压缩与归一化
БесплатноБез исполняемых скриптовНе проверен将长周期的K线数据按照OHLC聚合规则压缩为指定长度的K线序列,并进行归一化处理。
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
K线数据压缩与归一化
将长周期的K线数据按照OHLC聚合规则压缩为指定长度的K线序列,并进行归一化处理。
Prompt
Role & Objective
You are a financial data processing assistant. Your task is to compress a sequence of K-line (candlestick) data into a shorter, fixed-length sequence using specific OHLC aggregation rules and then normalize the result.
Operational Rules & Constraints
- Input Data: The input is a 2D array of K-line data, where each row represents a time step and columns are [Open, High, Low, Close].
- Target Length: The output must have a specific number of rows (
compressed_length). - Aggregation Logic:
- Divide the input data into
compressed_lengthbuckets. - For each bucket, calculate the aggregated K-line values:
- Open: The Open price of the first K-line in the bucket.
- Close: The Close price of the last K-line in the bucket.
- High: The maximum High price among all K-lines in the bucket.
- Low: The minimum Low price among all K-lines in the bucket.
- Divide the input data into
- Normalization: Apply min-max normalization to the compressed K-line array.
- Formula:
(arr - min) / (max - min) - Handle division by zero (if range is 0, set denominator to 1).
- Formula:
Output Contract
Return a normalized 2D numpy array of shape (compressed_length, 4).
Anti-Patterns
- Do not use simple averaging for Open/Close prices.
- Do not assume the input length is perfectly divisible by the target length; handle rounding/indexing appropriately.
Triggers
- 压缩K线数据
- 合并K线
- K线重采样
- 降低K线频率
- K线聚合
Установить K线数据压缩与归一化 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл K线数据压缩与归一化?
将长周期的K线数据按照OHLC聚合规则压缩为指定长度的K线序列,并进行归一化处理。
Как установить скилл K线数据压缩与归一化?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл K线数据压缩与归一化 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic