diff --git a/README.md b/README.md index c8d38743..4619cefc 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ The MiniMax Code Agent communicates through the host MCP client. Business reques | MiniApp | What it does | Author | | --- | --- | --- | +| [K线价格行为实战台](plugins/alphamao1/kline-intuition-lab/) | A price-action training board for A-share traders: call every bar yourself in a 5-level blind run, then compare against a LightGBM model scored on the same rules, with a motif radar and an after-action review | [AlphaMao1](https://github.com/AlphaMao1) | | [Postman Lite](plugins/ssugarr/postman-lite/) | A lightweight local API request tool: build requests, send them through a local proxy that sidesteps browser CORS limits, and inspect responses, with collections kept as plain JSON | [ssugarr](https://github.com/ssugarr) | | [Weekly Planner](plugins/alanhean/weekly-planner/) | A local weekly planner: add tasks with a date and a priority, review them day by day, tick them off, and track the week's completion rate | [Alanhean](https://github.com/Alanhean) | | [DeepSeek Chat Migration](plugins/danielwalnut/deepseek-chat-migration/) | Preview official DeepSeek web exports locally, restore branches and attachments, and import selected conversations as native MiniMax Code sessions with a bundled importer | [DanielWalnut](https://github.com/DanielWalnut) | diff --git a/README.zh-CN.md b/README.zh-CN.md index 3d158767..c98ee166 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -57,6 +57,7 @@ MiniMax Code Agent 通过宿主 MCP 客户端与 MiniApp 协作。业务请求 | MiniApp | 功能 | 作者 | | --- | --- | --- | +| [K线价格行为实战台](plugins/alphamao1/kline-intuition-lab/README.zh-CN.md) | A 股价格行为训练台:5 关盲判逐根 K 线自己下判断,再与同规则的 LightGBM 模型对账,附母题雷达与赛后复盘 | [AlphaMao1](https://github.com/AlphaMao1) | | [Postman Lite](plugins/ssugarr/postman-lite/README.zh-CN.md) | 轻量的本地 API 请求工具:构建请求、通过本地代理转发(绕过浏览器 CORS 限制)、查看响应,集合以纯 JSON 保存 | [ssugarr](https://github.com/ssugarr) | | [周计划](plugins/alanhean/weekly-planner/README.zh-CN.md) | 本地周计划:手动录入任务、日期与优先级,按天查看安排,勾选完成并跟踪本周完成率 | [Alanhean](https://github.com/Alanhean) | | [DeepSeek 会话迁移](plugins/danielwalnut/deepseek-chat-migration/README_ZH.md) | 在本机预览 DeepSeek 网页版官方导出包,恢复分支和附件,并用自带的导入脚本把选中对话导入成 MiniMax Code 原生会话 | [DanielWalnut](https://github.com/DanielWalnut) | diff --git a/plugins/alphamao1/kline-intuition-lab/.minimax-plugin/plugin.json b/plugins/alphamao1/kline-intuition-lab/.minimax-plugin/plugin.json new file mode 100644 index 00000000..bc18cbe8 --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/.minimax-plugin/plugin.json @@ -0,0 +1,20 @@ +{ + "schemaVersion": 1, + "name": "kline-intuition-lab", + "displayName": "K线价格行为实战台", + "version": "2.0.0", + "description": "以 Al Brooks 价格行为学为理论底座的逐日动态推理训练台:PA-LightGBM 用 20 维纯价格行为特征逐日给出多头胜算分与 TreeSHAP 中文归因;闯关模式 5 关盲判对决(玩家与机器同 T+1、同手续费、10% 颗粒自由调仓,机器决策同拍后置亮牌),形态练习模式按 5 大母题刻意练习并支持 iFinD 动态出题,赛后给出价格行为结构诊断、操作诊断与机器学习对照复盘。", + "author": "AlphaMao1", + "icon": "icon.png", + "category": "Business", + "exampleQueries": [ + "打开 K线价格行为实战台,开始一局 5 关连续盲判对决。", + "来一组「强趋势回踩 20EMA」专项练习,把正反形态对比着打。", + "看看我在 5 大价格行为母题上的识别准确率与跑赢机器的胜率。", + "把上一局错题整理成一段提问,发给 Agent 做深度复盘。", + "用 002415.SZ 动态生成一局价格行为关卡。" + ], + "apps": [], + "mcpServers": [], + "skills": [] +} diff --git a/plugins/alphamao1/kline-intuition-lab/LICENSE b/plugins/alphamao1/kline-intuition-lab/LICENSE new file mode 100644 index 00000000..6868485d --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 AlphaMao1 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/alphamao1/kline-intuition-lab/README.md b/plugins/alphamao1/kline-intuition-lab/README.md new file mode 100644 index 00000000..efc87f2f --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/README.md @@ -0,0 +1,107 @@ +# K线价格行为实战台 (`kline-intuition-lab`) + +A price-action training board for Chinese A-share traders: it replays real daily candles and makes +you call each bar yourself, then scores you against a machine that was trained on the same rules. + +It is for traders who want to train the one skill that reading charts cannot teach on its own: +committing to a position, bar by bar, and finding out afterwards whether the read was right. + +## What it does + +- **闯关模式 (Level mode)** — a 5-level run of blind calls. For every bar you decide buy, sell, or + hold. The machine decides the same bar under the same rules (T+1 lock, 0.075% one-way commission, + 10% position granularity) and shows its card after yours, so the comparison stays honest. +- **形态练习 (Pattern drills)** — deliberate practice on five price-action motifs (强趋势回踩, + 区间震荡, 假突破, 关键位反转, 趋势加速), with positive and negative examples shown side by side. +- **PA-LightGBM** — a gradient-boosted model over 20 price-only features gives a 0–100 bullish + win-probability score per bar, with a TreeSHAP explanation in plain Chinese naming the bars that + drove the number. +- **赛后复盘 (Review)** — after a run you get a price-action structure diagnosis, an operating + diagnosis, and a machine-learning comparison; the wrong bars land in a wrong-answer book, and the + Agent can take a prepared deep-review prompt. +- **动态出题 (Dynamic levels)** — with the iFinD connector connected, the app pulls any A-share + daily history and generates fresh levels for that symbol. + +## Why it is useful + +Reading a chart with hindsight is easy: every trend looks obvious after the fact. The gap this app +closes is decision quality under uncertainty — it removes hindsight, forces a commitment on every +bar, and keeps a record of your reasoning so you can measure it. The five-motif radar turns +"my sense is off" into a specific weakness you can drill next week. + +## Install + +Copy this directory, including the hidden `.minimax-plugin/`, into the MiniMax Code plugins +directory as `kline-intuition-lab/` (`~/.minimax/plugins/kline-intuition-lab/` by default; the root +README's Install section explains where that directory is). Restart MiniMax Code and ask the Agent +to "打开 K线价格行为实战台,开始一局 5 关连续盲判对决。" + +The level mode, the pattern drills, the PA-LightGBM scoring, and the review all work offline out of +the box. Only **动态出题** needs extra setup, described below. + +### Optional: dynamic levels with iFinD + +Dynamic level generation needs two things: + +1. The **iFinD** plugin connected in MiniMax Code, so the app can pull daily history through the + Host Connector. +2. A local **Python 3** environment with `numpy`, `pandas`, and `lightgbm` installed, because the + level generator and the LightGBM inference run in Python. Set `MINIAPP_PYTHON` to point at a + specific interpreter if `python` / `python3` is not the one you want. + +Without both, every other mode still works and the app says so clearly when you ask for a dynamic +level. + +## Tested environment + +- MiniMax Code 3.1.19 on Windows 11. Installed from this directory, opened through the Agent, page + rendered; level mode, pattern drills, and the review were exercised with the bundled data. +- The dynamic level path was exercised against a connected iFinD account on the same machine. +- Python 3 with `numpy`, `pandas`, and `lightgbm` present in the environment. + +## Data & access + +- **Files read:** the bundled package assets under `miniapp/` (client bundle, the built-in level + pool `miniapp/node/data/curated_levels.json`, and the CSI 300 reference history + `miniapp/node/data/hs300.csv` and `miniapp/node/data_v2/000300.SH_hs300.csv`). +- **Files written:** none inside the package. Match history, the motif radar, the wrong-answer book, + and custom levels are written to the host-assigned `dataDir` as `pa_matches.json`, + `pa_records.json`, `pa_wrongbook.json`, and `custom_levels.json`. Writes are atomic (temp file + plus rename). +- **Network:** none of its own. The dynamic level path calls the iFinD market-data tool through the + Host Connector (`hostConnectorAccess.providers: ["thsifind"]`), so credentials stay in the Host. +- **Processes:** spawns a local Python interpreter (`python` / `python3`, or `MINIAPP_PYTHON`) for + level generation and model inference. Nothing is spawned for the offline modes. +- **Agent turns:** none. The app prepares a review prompt as text and hands it to the Agent only + when you ask for it; it never starts a turn by itself. +- **Conversations read:** none. No `agentAccess` is declared. +- **Tools called:** only the iFinD market-data tool listed above, and only for dynamic levels. +- **Microphone, camera, notifications:** none used. +- **Host navigation:** not read. No `hostAccess` is declared. +- **State:** all durable state lives in the host-assigned `dataDir`. + +## Files + +```text +.minimax-plugin/plugin.json Plugin manifest +package.json Mini App declaration +miniapp/miniapp.json Payload roots, Node entry, page route +miniapp/client/index.html The page served at /dashboard +miniapp/client/assets/ Built client bundle (no external CDN) +miniapp/node/server.mjs Node entry: serves the page and the API +miniapp/node/engine.mjs Game engine: bar-by-bar rules and scoring +miniapp/node/rules.mjs Motif taxonomy and scoring constants +miniapp/node/review.mjs Review text and the Agent review prompt +miniapp/node/store.mjs Durable state in dataDir +miniapp/node/pa_levels.mjs Level assembly and scoring helpers +miniapp/node/custom/ifind.mjs iFinD pull and dynamic level generation +miniapp/node/custom/levels_helper.py Python helper invoked for level generation +miniapp/node/custom/host-connector-value.mjs Host Connector value decoder +miniapp/node/py/ Price-action features, LightGBM engine, level scanner +miniapp/node/data/ Built-in level pool and CSI 300 reference history +icon.png Plugin icon +``` + +## License + +[MIT](./LICENSE) diff --git a/plugins/alphamao1/kline-intuition-lab/README.zh-CN.md b/plugins/alphamao1/kline-intuition-lab/README.zh-CN.md new file mode 100644 index 00000000..cea3bdbc --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/README.zh-CN.md @@ -0,0 +1,79 @@ +# K线价格行为实战台 (`kline-intuition-lab`) + +面向 A 股交易者的价格行为训练台:用真实日线回放,让你逐根 K 线自己下判断,再和同一套规则下的机器决策对账。 + +它面向那些想练"读图练不出来"的那一项能力:在不确定中逐根 K 线做决策,事后发现自己判断得准不准。 + +[English](./README.md) | 简体中文 + +## 它能做什么 + +- **闯关模式** — 5 关连续盲判对决。每根 K 线你决定买、卖或空仓;机器在同一套规则下(T+1 锁定、单边 0.075% 手续费、10% 颗粒度调仓)同时决策,并在你亮牌之后才亮自己的牌,保证对决公平。 +- **形态练习** — 按 5 大价格行为母题(强趋势回踩、区间震荡、假突破、关键位反转、趋势加速)刻意练习,正反形态对比呈现。 +- **PA-LightGBM** — 用 20 维纯价格行为特征训练梯度提升模型,逐日给出 0~100 的多头胜算分,并用 TreeSHAP 输出中文归因,指出是哪几根 K 线驱动了这个分数。 +- **赛后复盘** — 一局结束后给出价格行为结构诊断、操作诊断与机器学习对照复盘;错题自动进错题本,也可以把准备好的深度复盘提问交给 Agent。 +- **动态出题** — 连接 iFinD 连接器后,可拉取任意 A 股日线历史,为该标的实时生成新关卡。 + +## 为什么有用 + +事后看图很容易:趋势走出来之后,每一个形态都显得理所当然。这个应用补的是**不确定性下的决策质量**——去掉后视镜,逼你在每根 K 线上先落子,再留下判断记录并可以量化复盘。5 大母题雷达把"感觉不准"变成下一周可以针对性补练的具体短板。 + +## 安装 + +把本目录(含隐藏的 `.minimax-plugin/`)复制到 MiniMax Code 插件目录,命名为 `kline-intuition-lab/`(默认 `~/.minimax/plugins/kline-intuition-lab/`,具体路径见仓库根 README 的 Install 说明)。重启 MiniMax Code 后,让 Agent 执行"打开 K线价格行为实战台,开始一局 5 关连续盲判对决。" + +闯关模式、形态练习、PA-LightGBM 打分和赛后复盘**开箱即用,无需联网**。只有**动态出题**需要额外配置,见下文。 + +### 可选:接入 iFinD 动态出题 + +动态出题需要两样东西: + +1. 在 MiniMax Code 中连接 **iFinD** 插件,应用通过宿主连接器拉取日线历史。 +2. 本地 **Python 3** 环境并安装 `numpy`、`pandas`、`lightgbm`——关卡生成与 LightGBM 推理在 Python 侧运行。若 `python` / `python3` 不是你想用的解释器,可用 `MINIAPP_PYTHON` 指定。 + +两者不齐时,其余模式照常可用;请求动态关卡时应用会明确说明原因。 + +## 测试环境 + +- MiniMax Code 3.1.19 / Windows 11。由本目录安装、经 Agent 打开、页面正常渲染;使用内置数据跑通了闯关模式、形态练习与赛后复盘。 +- 动态出题在同一台机器上连接 iFinD 账号实测通过。 +- 环境中的 Python 3 已安装 `numpy`、`pandas`、`lightgbm`。 + +## 数据与访问 + +- **读取文件:** `miniapp/` 下的随包资源(客户端构建产物、内置关卡池 `miniapp/node/data/curated_levels.json`,以及沪深 300 参考历史 `miniapp/node/data/hs300.csv` 与 `miniapp/node/data_v2/000300.SH_hs300.csv`)。 +- **写入文件:** 不写入包内。战绩、母题雷达、错题本与自定义关卡写入宿主分配的 `dataDir`,分别为 `pa_matches.json`、`pa_records.json`、`pa_wrongbook.json`、`custom_levels.json`,采用原子写(临时文件 + rename)。 +- **网络:** 应用自身不发起网络请求。动态出题通过宿主连接器调用 iFinD 行情工具(`hostConnectorAccess.providers: ["thsifind"]`),凭据始终留在宿主侧。 +- **进程:** 动态出题与模型推理会拉起本地 Python 解释器(`python` / `python3`,或 `MINIAPP_PYTHON`)。离线模式不拉起任何子进程。 +- **Agent 调用:** 不会主动发起。应用只在你要的时候生成一段复盘提问文本交给 Agent。 +- **读取会话:** 不读取,未声明 `agentAccess`。 +- **调用工具:** 仅上述 iFinD 行情工具,且只在动态出题时使用。 +- **麦克风、摄像头、通知:** 均未使用。 +- **宿主导航:** 不读取,未声明 `hostAccess`。 +- **状态存放:** 全部持久化状态位于宿主分配的 `dataDir`。 + +## 文件说明 + +```text +.minimax-plugin/plugin.json 插件清单 +package.json Mini App 声明 +miniapp/miniapp.json 载荷根目录、Node 入口、页面路由 +miniapp/client/index.html /dashboard 提供的页面 +miniapp/client/assets/ 客户端构建产物(无外部 CDN) +miniapp/node/server.mjs Node 入口:提供页面与 API +miniapp/node/engine.mjs 游戏引擎:逐根 K 线规则与裁决 +miniapp/node/rules.mjs 母题体系与计分常量 +miniapp/node/review.mjs 复盘文本与 Agent 复盘提问 +miniapp/node/store.mjs dataDir 内的持久化状态 +miniapp/node/pa_levels.mjs 关卡组装与打分辅助 +miniapp/node/custom/ifind.mjs iFinD 拉取与动态关卡生成 +miniapp/node/custom/levels_helper.py 关卡生成调用的 Python 助手 +miniapp/node/custom/host-connector-value.mjs 宿主连接器返回值解码 +miniapp/node/py/ 价格行为特征、LightGBM 引擎、关卡扫描器 +miniapp/node/data/ 内置关卡池与沪深 300 参考历史 +icon.png 插件图标 +``` + +## 许可 + +[MIT](./LICENSE) diff --git a/plugins/alphamao1/kline-intuition-lab/icon.png b/plugins/alphamao1/kline-intuition-lab/icon.png new file mode 100644 index 00000000..299a26cb Binary files /dev/null and b/plugins/alphamao1/kline-intuition-lab/icon.png differ diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/client/assets/bridge-41eqXDBk.js b/plugins/alphamao1/kline-intuition-lab/miniapp/client/assets/bridge-41eqXDBk.js new file mode 100644 index 00000000..473f381e --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/client/assets/bridge-41eqXDBk.js @@ -0,0 +1 @@ +var e=window;async function t(t){let n=e.mcode?.miniapp?.message?.append;if(n)try{return await n.call(e.mcode.miniapp.message,t),{ok:!0,via:`message`,message:`已发送到 MiniMax Code 对话输入框,请确认后发送`}}catch(e){let t=e?.message||``;return t===`user_cancelled`?{ok:!1,via:`message`,message:`已取消发送`}:{ok:!1,via:`fallback`,message:`发送失败:${t||`未知错误`},已展开全文可手动复制`}}return{ok:!1,via:`fallback`,message:`当前环境未接入宿主输入框,已展开复盘全文供复制`}}export{t as sendToAgent}; \ No newline at end of file diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/client/assets/index-CPL7xR3S.js b/plugins/alphamao1/kline-intuition-lab/miniapp/client/assets/index-CPL7xR3S.js new file mode 100644 index 00000000..d98d1b18 --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/client/assets/index-CPL7xR3S.js @@ -0,0 +1,49 @@ +var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(let c of r(i))!a.call(e,c)&&c!==o&&(s=n(i,c),t(e,c,{get:s&&s.get&&!s.configurable?s.get:()=>i[c],enumerable:!s||s.enumerable}));return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1{t.exports=l()})),d=o((e=>{function t(e,t){var n=e.length;for(e.push(t);0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m){if(n(c)!==null)m=!0,k(x);else{var t=n(l);t!==null&&re(b,t.startTime-e)}}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&re(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,E=-1;function D(){return!(e.unstable_now()-Ee||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,re(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,k(x))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u(),n=f();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;nt}return!1}function v(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){y[e]=new v(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){y[e]=new v(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){y[e]=new v(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){y[e]=new v(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){y[e]=new v(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});function S(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(i===null?r||!(2s||i[o]!==a[s]){var c=` +`+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(``)&&(c=c.replace(``,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{P=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?se(e):``}function le(e){switch(e.tag){case 5:return se(e.type);case 16:return se(`Lazy`);case 13:return se(`Suspense`);case 19:return se(`SuspenseList`);case 0:case 2:case 15:return e=ce(e.type,!1),e;case 11:return e=ce(e.type.render,!1),e;case 1:return e=ce(e.type,!0),e;default:return``}}function ue(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case E:return`Fragment`;case T:return`Portal`;case ee:return`Profiler`;case D:return`StrictMode`;case k:return`Suspense`;case re:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case ne:return(e.displayName||`Context`)+`.Consumer`;case te:return(e._context.displayName||`Context`)+`.Provider`;case O:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case A:return t=e.displayName||null,t===null?ue(e.type)||`Memo`:t;case j:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}function de(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return ue(t);case 8:return t===D?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function fe(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:case`object`:return e;default:return``}}function pe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function me(e){var t=pe(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function he(e){e._valueTracker||=me(e)}function ge(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=pe(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function _e(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function ve(e,t){return N({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t.checked??e._wrapperState.initialChecked})}function ye(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=fe(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function be(e,t){t=t.checked,t!=null&&S(e,`checked`,t,!1)}function xe(e,t){be(e,t);var n=fe(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?Se(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&Se(e,t.type,fe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function F(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function Se(e,t,n){(t!==`number`||_e(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var Ce=Array.isArray;function I(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i`+t.valueOf().toString()+``,t=Ae.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Me(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ne={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Pe=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Ne).forEach(function(e){Pe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ne[t]=Ne[e]})});function Fe(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Ne.hasOwnProperty(e)&&Ne[e]?(``+t).trim():t+`px`}function Ie(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Fe(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Le=N({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Re(e,t){if(t){if(Le[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function ze(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Be=null;function Ve(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var He=null,Ue=null,We=null;function Ge(e){if(e=Hi(e)){if(typeof He!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Wi(t),He(e.stateNode,e.type,t))}}function Ke(e){Ue?We?We.push(e):We=[e]:Ue=e}function qe(){if(Ue){var e=Ue,t=We;if(We=Ue=null,Ge(e),t)for(e=0;e>>=0,e===0?32:31-(Ot(e)/kt|0)|0}var jt=64,Mt=4194304;function Nt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&0x7c00000;case 0x8000000:return 0x8000000;case 268435456:return 268435456;case 536870912:return 536870912;case 0x40000000:return 0x40000000;default:return e}}function Pt(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&0xfffffff;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=Nt(a))):r=Nt(s)}else o=n&~i,o===0?a!==0&&(r=Nt(a)):r=Nt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Bt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dt(t),e[t]=n}function z(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=tr),ir=` `,ar=!1;function or(e,t){switch(e){case`keyup`:return $n.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function sr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var cr=!1;function lr(e,t){switch(e){case`compositionend`:return sr(t);case`keypress`:return t.which===32?(ar=!0,ir):null;case`textInput`:return e=t.data,e===ir&&ar?null:e;default:return null}}function ur(e,t){if(cr)return e===`compositionend`||!er&&or(e,t)?(e=wn(),Cn=Sn=xn=null,cr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mr(n)}}function Pr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fr(){for(var e=window,t=_e();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=_e(e.document)}return t}function Ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Lr(e){var t=Fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Pr(n.ownerDocument.documentElement,n)){if(r!==null&&Ir(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Nr(n,a);var o=Nr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n=document.documentMode,zr=null,Br=null,Vr=null,Hr=!1;function Ur(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hr||zr==null||zr!==_e(r)||(r=zr,`selectionStart`in r&&Ir(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vr&&jr(Vr,r)||(Vr=r,r=hi(Br,`onSelect`),0Ki||(e.current=Gi[Ki],Gi[Ki]=null,Ki--)}function V(e,t){Ki++,Gi[Ki]=e.current,e.current=t}var Yi={},Xi=qi(Yi),Zi=qi(!1),Qi=Yi;function $i(e,t){var n=e.type.contextTypes;if(!n)return Yi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ea(e){return e=e.childContextTypes,e!=null}function ta(){Ji(Zi),Ji(Xi)}function na(e,t,n){if(Xi.current!==Yi)throw Error(r(168));V(Xi,t),V(Zi,n)}function ra(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,de(e)||`Unknown`,a));return N({},n,i)}function ia(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yi,Qi=Xi.current,V(Xi,e),V(Zi,Zi.current),!0}function aa(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=ra(e,t,Qi),i.__reactInternalMemoizedMergedChildContext=e,Ji(Zi),Ji(Xi),V(Xi,e)):Ji(Zi),V(Zi,n)}var oa=null,sa=!1,ca=!1;function la(e){oa===null?oa=[e]:oa.push(e)}function ua(e){sa=!0,la(e)}function da(){if(!ca&&oa!==null){ca=!0;var e=0,t=B;try{var n=oa;for(B=1;e>=o,i-=o,va=1<<32-Dt(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),Ea&&ba(r,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Ea&&ba(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ea&&ba(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Ea&&ba(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===E&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case w:e:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===E){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break e}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===j&&Ba(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Ra(e,l,i),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}i.type===E?(r=au(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=iu(i.type,i.key,i.props,null,e.mode,o),o.ref=Ra(e,r,i),o.return=e,e=o)}return s(e);case T:e:{for(l=i.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}r=cu(i,e.mode,o),r.return=e,e=r}return s(e);case j:return l=i._init,_(e,r,l(i._payload),o)}if(Ce(i))return h(e,r,i,o);if(ae(i))return g(e,r,i,o);za(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=su(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Ha=Va(!0),Ua=Va(!1),Wa=qi(null),Ga=null,Ka=null,qa=null;function Ja(){qa=Ka=Ga=null}function Ya(e){var t=Wa.current;Ji(Wa),e._currentValue=t}function Xa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Za(e,t){Ga=e,qa=Ka=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Bs=!0),e.firstContext=null)}function Qa(e){var t=e._currentValue;if(qa!==e){if(e={context:e,memoizedValue:t,next:null},Ka===null){if(Ga===null)throw Error(r(308));Ka=e,Ga.dependencies={lanes:0,firstContext:e}}else Ka=Ka.next=e}return t}var $a=null;function eo(e){$a===null?$a=[e]:$a.push(e)}function to(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,eo(t)):(n.next=i.next,i.next=n),t.interleaved=n,no(e,r)}function no(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ro=!1;function io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function oo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function so(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,no(e,n)}return i=r.interleaved,i===null?(t.next=t,eo(r)):(t.next=i.next,i.next=t),r.interleaved=t,no(e,n)}function co(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vt(e,n)}}function lo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function uo(e,t,n,r){var i=e.updateQueue;ro=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break e;d=N({},d,f);break e;case 2:ro=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);nl|=o,e.lanes=o,e.memoizedState=d}}function fo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Eo.transition;Eo.transition={};try{e(!1),t()}finally{B=n,Eo.transition=r}}function ps(){return Bo().memoizedState}function ms(e,t,n){var r=xl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gs(e))_s(t,n);else if(n=to(e,t,n,r),n!==null){var i=bl();Sl(n,e,r,i),vs(n,t,r)}}function hs(e,t,n){var r=xl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gs(e))_s(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ar(s,o)){var c=t.interleaved;c===null?(i.next=i,eo(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=to(e,t,i,r),n!==null&&(i=bl(),Sl(n,e,r,i),vs(n,t,r))}}function gs(e){var t=e.alternate;return e===Oo||t!==null&&t===Oo}function _s(e,t){Mo=jo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vs(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vt(e,n)}}var ys={readContext:Qa,useCallback:Fo,useContext:Fo,useEffect:Fo,useImperativeHandle:Fo,useInsertionEffect:Fo,useLayoutEffect:Fo,useMemo:Fo,useReducer:Fo,useRef:Fo,useState:Fo,useDebugValue:Fo,useDeferredValue:Fo,useTransition:Fo,useMutableSource:Fo,useSyncExternalStore:Fo,useId:Fo,unstable_isNewReconciler:!1},bs={readContext:Qa,useCallback:function(e,t){return zo().memoizedState=[e,t===void 0?null:t],e},useContext:Qa,useEffect:ns,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),es(4194308,4,os.bind(null,t,e),n)},useLayoutEffect:function(e,t){return es(4194308,4,e,t)},useInsertionEffect:function(e,t){return es(4,2,e,t)},useMemo:function(e,t){var n=zo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zo();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ms.bind(null,Oo,e),[r.memoizedState,e]},useRef:function(e){var t=zo();return e={current:e},t.memoizedState=e},useState:Zo,useDebugValue:cs,useDeferredValue:function(e){return zo().memoizedState=e},useTransition:function(){var e=Zo(!1),t=e[0];return e=fs.bind(null,e[1]),zo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=Oo,a=zo();if(Ea){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Yc===null)throw Error(r(349));Do&30||Ko(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ns(Jo.bind(null,i,o,e),[e]),i.flags|=2048,Qo(9,qo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=zo(),t=Yc.identifierPrefix;if(Ea){var n=ya,r=va;n=(r&~(1<<32-Dt(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=No++,0<\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[Fi]=t,e[Ii]=i,uc(e,t,!1,!1),t.stateNode=e;e:{switch(c=ze(n,i),n){case`dialog`:ci(`cancel`,e),ci(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:ci(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;ocl&&(t.flags|=128,i=!0,pc(s,!1),t.lanes=4194304)}}else{if(!i){if(e=So(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Ea)return mc(t),null}else 2*vt()-s.renderingStartTime>cl&&n!==0x40000000&&(t.flags|=128,i=!0,pc(s,!1),t.lanes=4194304)}s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(mc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=vt(),t.sibling=null,n=U.current,V(U,i?n&1|2:n&1),t);case 22:case 23:return Ml(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Qc&0x40000000&&(mc(t),t.subtreeFlags&6&&(t.flags|=8192)):mc(t),null;case 24:case 25:return null}throw Error(r(156,t.tag))}function gc(e,t){switch(Ca(t),t.tag){case 1:return ea(t.type)&&ta(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yo(),Ji(Zi),Ji(Xi),wo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xo(t),null;case 13:if(Ji(U),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ji(U),null;case 4:return yo(),null;case 10:return Ya(t.type._context),null;case 22:case 23:return Ml(),null;default:return null}}var _c=!1,vc=!1,yc=typeof WeakSet==`function`?WeakSet:Set,W=null;function bc(e,t){var n=e.ref;if(n!==null){if(typeof n==`function`)try{n(null)}catch(n){Kl(e,t,n)}else n.current=null}}function xc(e,t,n){try{n()}catch(n){Kl(e,t,n)}}var Sc=!1;function Cc(e,t){if(Ci=mn,e=Fr(),Ir(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(wi={focusedElem:e,selectionRange:n},mn=!1,W=t;W!==null;)if(t=W,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,W=e;else for(;W!==null;){t=W;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Cs(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){Kl(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,W=e;break}W=t.return}return h=Sc,Sc=!1,h}function wc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&xc(t,n,a)}i=i.next}while(i!==r)}}function Tc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ec(e){var t=e.ref;if(t!==null){var n=e.stateNode;e.tag,e=n,typeof t==`function`?t(e):t.current=e}}function Dc(e){var t=e.alternate;t!==null&&(e.alternate=null,Dc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fi],delete t[Ii],delete t[Ri],delete t[zi],delete t[Bi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Oc(e){return e.tag===5||e.tag===3||e.tag===4}function kc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ac(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Si));else if(r!==4&&(e=e.child,e!==null))for(Ac(e,t,n),e=e.sibling;e!==null;)Ac(e,t,n),e=e.sibling}function jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(jc(e,t,n),e=e.sibling;e!==null;)jc(e,t,n),e=e.sibling}var Mc=null,Nc=!1;function Pc(e,t,n){for(n=n.child;n!==null;)Fc(e,t,n),n=n.sibling}function Fc(e,t,n){if(Tt&&typeof Tt.onCommitFiberUnmount==`function`)try{Tt.onCommitFiberUnmount(wt,n)}catch{}switch(n.tag){case 5:vc||bc(n,t);case 6:var r=Mc,i=Nc;Mc=null,Pc(e,t,n),Mc=r,Nc=i,Mc!==null&&(Nc?(e=Mc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Mc.removeChild(n.stateNode));break;case 18:Mc!==null&&(Nc?(e=Mc,n=n.stateNode,e.nodeType===8?ji(e.parentNode,n):e.nodeType===1&&ji(e,n),fn(e)):ji(Mc,n.stateNode));break;case 4:r=Mc,i=Nc,Mc=n.stateNode.containerInfo,Nc=!0,Pc(e,t,n),Mc=r,Nc=i;break;case 0:case 11:case 14:case 15:if(!vc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&xc(n,t,o),i=i.next}while(i!==r)}Pc(e,t,n);break;case 1:if(!vc&&(bc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Kl(n,t,e)}Pc(e,t,n);break;case 21:Pc(e,t,n);break;case 22:n.mode&1?(vc=(r=vc)||n.memoizedState!==null,Pc(e,t,n),vc=r):Pc(e,t,n);break;default:Pc(e,t,n)}}function Ic(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new yc),t.forEach(function(t){var r=Xl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Lc(e,t){var n=t.deletions;if(n!==null)for(var i=0;ia&&(a=s),i&=~o}if(i=a,i=vt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Gc(i/1960))-i,10e?16:e,ml===null)var i=!1;else{if(e=ml,ml=null,hl=0,G&6)throw Error(r(331));var a=G;for(G|=4,W=e.current;W!==null;){var o=W,s=o.child;if(W.flags&16){var c=o.deletions;if(c!==null){for(var l=0;lvt()-sl?Nl(e,0):il|=n),Cl(e,t)}function Jl(e,t){t===0&&(e.mode&1?(t=Mt,Mt<<=1,!(Mt&0x7c00000)&&(Mt=4194304)):t=1);var n=bl();e=no(e,t),e!==null&&(Bt(e,t,n),Cl(e,n))}function Yl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jl(e,n)}function Xl(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Jl(e,n)}var Zl=function(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps||Zi.current)Bs=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Bs=!1,lc(e,t,n);Bs=!!(e.flags&131072)}}else Bs=!1,Ea&&t.flags&1048576&&xa(t,ha,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;sc(e,t),e=t.pendingProps;var a=$i(t,Xi.current);Za(t,n),a=Lo(null,t,i,e,a,n);var o=Ro();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ea(i)?(o=!0,ia(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,io(t),a.updater=Ts,t.stateNode=a,a._reactInternals=t,ks(t,i,e,n),t=Ys(null,t,i,!0,o,n)):(t.tag=0,Ea&&o&&Sa(t),Vs(null,t,a,n),t=t.child),t;case 16:i=t.elementType;e:{switch(sc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=nu(i),e=Cs(i,e),a){case 0:t=qs(null,t,i,e,n);break e;case 1:t=Js(null,t,i,e,n);break e;case 11:t=Hs(null,t,i,e,n);break e;case 14:t=Us(null,t,i,Cs(i.type,e),n);break e}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Cs(i,a),qs(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Cs(i,a),Js(e,t,i,a,n);case 3:e:{if(Xs(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,ao(e,t),uo(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated){if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=As(Error(r(423)),t),t=Zs(e,t,i,n,a);break e}if(i!==a){a=As(Error(r(424)),t),t=Zs(e,t,i,n,a);break e}for(Ta=Mi(t.stateNode.containerInfo.firstChild),wa=t,Ea=!0,Da=null,n=Ua(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Fa(),i===a){t=cc(e,t,n);break e}Vs(e,t,i,n)}t=t.child}return t;case 5:return bo(t),e===null&&ja(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,Ti(i,a)?s=null:o!==null&&Ti(i,o)&&(t.flags|=32),Ks(e,t),Vs(e,t,s,n),t.child;case 6:return e===null&&ja(t),null;case 13:return ec(e,t,n);case 4:return vo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ha(t,null,i,n):Vs(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Cs(i,a),Hs(e,t,i,a,n);case 7:return Vs(e,t,t.pendingProps,n),t.child;case 8:case 12:return Vs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,V(Wa,i._currentValue),i._currentValue=s,o!==null){if(Ar(o.value,s)){if(o.children===a.children&&!Zi.current){t=cc(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=oo(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Xa(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Xa(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}}Vs(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,Za(t,n),a=Qa(a),i=i(a),t.flags|=1,Vs(e,t,i,n),t.child;case 14:return i=t.type,a=Cs(i,t.pendingProps),a=Cs(i.type,a),Us(e,t,i,a,n);case 15:return Ws(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Cs(i,a),sc(e,t),t.tag=1,ea(i)?(e=!0,ia(t)):e=!1,Za(t,n),Ds(t,i,a),ks(t,i,a,n),Ys(null,t,i,!0,e,n);case 19:return oc(e,t,n);case 22:return Gs(e,t,n)}throw Error(r(156,t.tag))};function Ql(e,t){return mt(e,t)}function $l(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function eu(e,t,n,r){return new $l(e,t,n,r)}function tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nu(e){if(typeof e==`function`)return+!!tu(e);if(e!=null){if(e=e.$$typeof,e===O)return 11;if(e===A)return 14}return 2}function ru(e,t){var n=e.alternate;return n===null?(n=eu(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&0xe00000,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function iu(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)tu(e)&&(s=1);else if(typeof e==`string`)s=5;else e:switch(e){case E:return au(n.children,a,o,t);case D:s=8,a|=8;break;case ee:return e=eu(12,n,t,a|2),e.elementType=ee,e.lanes=o,e;case k:return e=eu(13,n,t,a),e.elementType=k,e.lanes=o,e;case re:return e=eu(19,n,t,a),e.elementType=re,e.lanes=o,e;case M:return ou(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case te:s=10;break e;case ne:s=9;break e;case O:s=11;break e;case A:s=14;break e;case j:s=16,i=null;break e}throw Error(r(130,e==null?e:typeof e,``))}return t=eu(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function au(e,t,n,r){return e=eu(7,e,r,t),e.lanes=n,e}function ou(e,t,n,r){return e=eu(22,e,r,t),e.elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function su(e,t,n){return e=eu(6,e,null,t),e.lanes=n,e}function cu(e,t,n){return t=eu(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zt(0),this.expirationTimes=zt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function uu(e,t,n,r,i,a,o,s,c){return e=new lu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=eu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},io(a),e}function du(e,t,n){var r=3{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=m();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),g=o((e=>{var t=u(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),_=o(((e,t)=>{t.exports=g()})),v=c(u(),1),y=(0,v.createContext)({});function b(e){let t=(0,v.useRef)(null);return t.current===null&&(t.current=e()),t.current}var x=typeof window<`u`?v.useLayoutEffect:v.useEffect,S=(0,v.createContext)(null);function C(e,t){e.indexOf(t)===-1&&e.push(t)}function w(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var T=(e,t,n)=>n>t?t:n/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ee=e=>typeof e==`object`&&!!e,te=e=>/^0[^.\s]+$/u.test(e);function ne(e){let t;return()=>(t===void 0&&(t=e()),t)}var O=e=>e,k=(...e)=>e.reduce((e,t)=>n=>t(e(n))),re=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},A=class{constructor(){this.subscriptions=[]}add(e){return C(this.subscriptions,e),()=>this.remove(e)}remove(e){w(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;ie*1e3,M=e=>e/1e3,ie=(e,t)=>t?1e3/t*e:0,ae=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function N(e,t,n,r){return e===t&&n===r?O:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=ae(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(ae(s+1e-7,e,n)-i-r)}return ae(s,t,r)}}var oe=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,se=e=>t=>1-e(1-t),P=N(.33,1.53,.69,.99),ce=se(P),le=oe(ce),ue=e=>e>=1?1:(e*=2)<1?.5*ce(e):.5*(2-2**(-10*(e-1))),de=e=>1-Math.sin(Math.acos(e)),fe=se(de),pe=oe(de),me=N(.42,0,1,1),he=N(0,0,.58,1),ge=N(.42,0,.58,1),_e=e=>Array.isArray(e)&&typeof e[0]!=`number`,ve=e=>Array.isArray(e)&&typeof e[0]==`number`,ye={linear:O,easeIn:me,easeInOut:ge,easeOut:he,circIn:de,circInOut:pe,circOut:fe,backIn:ce,backInOut:le,backOut:P,anticipate:ue},be=e=>typeof e==`string`,xe=e=>{if(ve(e)){let[t,n,r,i]=e;return N(t,n,r,i)}return be(e)?ye[e]:e},F={delta:0,timestamp:0,isProcessing:!1},Se;function Ce(){Se=void 0}var I={now:()=>(Se===void 0&&I.set(F.isProcessing||E.useManualTiming?F.timestamp:performance.now()),Se),set:e=>{Se=e,queueMicrotask(Ce)}},we=e=>Math.round(e*1e5)/1e5,Te=e=>t=>typeof t==`string`&&t.startsWith(e),Ee=Te(`--`),De=Te(`var(--`),Oe=e=>De(e)?ke.test(e.split(`/*`)[0].trim()):!1,ke=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ae(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var je={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Me={...je,transform:e=>T(0,1,e)},Ne={...je,default:1},Pe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Fe(e){return e==null}var Ie=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Le=(e,t)=>n=>!!(typeof n==`string`&&Ie.test(n)&&n.startsWith(e)||t&&!Fe(n)&&Object.prototype.hasOwnProperty.call(n,t)),Re=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Pe);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},ze=e=>T(0,255,e),Be={...je,transform:e=>Math.round(ze(e))},Ve={test:Le(`rgb`,`red`),parse:Re(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Be.transform(e)+`, `+Be.transform(t)+`, `+Be.transform(n)+`, `+we(Me.transform(r))+`)`},He=(e,t,n)=>{let r=e.substring(1+t*n,1+(t+1)*n);return n>1?r:r+r};function Ue(e){let t=e.length>5?2:1,n=He(e,3,t);return{red:parseInt(He(e,0,t),16),green:parseInt(He(e,1,t),16),blue:parseInt(He(e,2,t),16),alpha:n?parseInt(n,16)/255:1}}var We={test:Le(`#`),parse:Ue,transform:Ve.transform},Ge=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ke=Ge(`deg`),qe=Ge(`%`),L=Ge(`px`),Je=Ge(`vh`),Ye=Ge(`vw`),Xe={...qe,parse:e=>qe.parse(e)/100,transform:e=>qe.transform(e*100)},Ze={test:Le(`hsl`,`hue`),parse:Re(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+qe.transform(we(t))+`, `+qe.transform(we(n))+`, `+we(Me.transform(r))+`)`},Qe={test:e=>Ve.test(e)||We.test(e)||Ze.test(e),parse:e=>Ve.test(e)?Ve.parse(e):Ze.test(e)?Ze.parse(e):We.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Ve.transform(e):Ze.transform(e),getAnimatableNone:e=>{let t=Qe.parse(e);return t.alpha=0,Qe.transform(t)}},$e=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,et=new RegExp(Pe.source),tt=new RegExp($e.source,`i`);function nt(e){return isNaN(e)&&typeof e==`string`&&(et.test(e)||tt.test(e))}var rt=`number`,it=`color`,at=`var`,ot=`var(`,st="${}",ct=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;function lt(e){let t=e.toString();return et.test(t)||tt.test(t)}function ut(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(ct,e=>(Qe.test(e)?(r.color.push(a),i.push(it),n.push(Qe.parse(e))):e.startsWith(ot)?(r.var.push(a),i.push(at),n.push(e)):(r.number.push(a),i.push(rt),n.push(parseFloat(e))),++a,st)).split(st),indexes:r,types:i}}function dt(e){return ut(e).values}function ft({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;atypeof e==`number`?0:Qe.test(e)?Qe.getAnimatableNone(e):e,ht=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:mt(e);function gt(e){let t=ut(e);return ft(t)(t.values.map((e,n)=>ht(e,t.split[n])))}var _t={test:nt,parse:dt,createTransformer:pt,getAnimatableNone:gt};function vt(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=vt(s,r,e+1/3),a=vt(s,r,e),o=vt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function bt(e,t){return n=>n>0?t:e}var R=(e,t,n)=>e+(t-e)*n,xt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},St=[We,Ve,Ze],Ct=e=>St.find(t=>t.test(e));function wt(e){let t=Ct(e);if(!t)return!1;let n=t.parse(e);return t===Ze&&(n=yt(n)),n}var Tt=(e,t)=>{let n=wt(e),r=wt(t);if(!n||!r)return bt(e,t);let i={...n};return e=>(i.red=xt(n.red,r.red,e),i.green=xt(n.green,r.green,e),i.blue=xt(n.blue,r.blue,e),i.alpha=R(n.alpha,r.alpha,e),Ve.transform(i))},Et=new Set([`none`,`hidden`]);function Dt(e,t){return Et.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ot(e,t){return n=>R(e,t,n)}function kt(e){return typeof e==`number`?Ot:typeof e==`string`?Oe(e)?bt:Qe.test(e)?Tt:Nt:Array.isArray(e)?At:typeof e==`object`?Qe.test(e)?Tt:jt:bt}function At(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>kt(e)(e,t[n]));return e=>{for(let t=0;t{for(let t in r)n[t]=r[t](e);return n}}function Mt(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i{let n=ut(e),r=ut(t);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?Et.has(e)&&!r.values.length||Et.has(t)&&!n.values.length?Dt(e,t):k(At(Mt(n,r),r.values),ft(r)):bt(e,t)},Pt=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Ft(e,t){let n=Pt.exec(e);if(!n)return;let r=Pt.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>we(R(a,o,e))+i}function It(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return R(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Ft(e,t);if(n)return n}return kt(e)(e,t)}var Lt=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Rt(e){let t=new Set,n=new Set,r=!1,i=!1,a,o=new Set,s={delta:0,timestamp:0,isProcessing:!1};function c(t){o.has(t)&&(n.add(t),e()),(a=t)(s)}let l={schedule:(e,i=!1,s=!1)=>{let c=s&&r,l=c?t:n;return i&&o.add(e),c&&e!==a&&l.delete(e),l.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,r){i=!0;return}r=!0;let o=t;t=n,n=o,t.forEach(c),t.clear(),a=void 0,r=!1,i&&(i=!1,l.process(e))}};return l}var zt=40;function Bt(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=Lt.reduce((e,t)=>(e[t]=Rt(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=E.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,zt),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:Lt.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>z.update(t,e),stop:()=>Vt(t),now:()=>F.isProcessing?F.timestamp:I.now()}},Ut=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t=n?1/0:i}function Kt(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(Gt(o),Wt);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:M(s)}}var qt=100,Jt=10,Yt=1,Xt=800,Zt=.3,Qt=.3,$t=.01,en=2,tn=.005,nn=.5,rn=.01,an=10,on=.05,sn=e=>e<0?1/Math.max(1+e,on):Math.max(1-e,on);function cn(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return dn(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function ln(e,t){return e*Math.sqrt(1-t*t)}var un=12;function dn(e,t,n){let r=n;for(let n=1;n{let n=t*i,r=n*e,a=ln(t,i),o=Math.exp(-r);return fn-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=ln(t*t,i);return(-n(t)+fn>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=dn(n,r,a),s=o*cn(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:j(e)}}var mn=(e,t)=>(t?e>=0:e>0)&&e<1/0;function hn(e,t){if(mn(e,t))return e}function gn(e){let t=hn(e.stiffness),n=hn(e.damping,!0),r=hn(e.mass),i={...e,stiffness:t??qt,damping:n??Jt,mass:r??Yt,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=sn(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*cn(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,pn(i)),i.isResolvedFromDuration=!0;mn(i.stiffness)&&mn(i.damping,!0)||(i.stiffness=qt,i.damping=Jt)}return i}function _n(e=Qt,t=Zt){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=gn({...n}),f=e=>u?0:-M(e),p=s/(2*Math.sqrt(o*c)),m=M(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?$t:en),g.restDelta=n.restDelta||(e?tn:nn)};_();let v,y,b;if(p<1){let e=ln(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=e<1||d?1/0:300/e,i=(e,t)=>Math.exp(t>r?(h-e)*r-h*t:-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>j(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=j(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(Gt(S),Wt),t=Ut(t=>S.next(e*t).value,e,30);return e+`ms `+t}};return S}var vn=Object.assign(_n,{applyToOptions:e=>{let t=Kt(e,100,_n);return e.ease=t.ease,e.duration=j(t.duration),e.type=`keyframes`,e}});function yn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>ec,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:e?_+t:d},b,x,S=e=>{p(f.value)&&(b=e,x=vn({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function bn(e,t,n){let r=[],i=E.mix||It,a=e.length-1;for(let o=0;ot[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=bn(t,r,i),c=s.length,l=n=>{if(o&&n1)for(;rl(T(e[0],e[a-1],t)):l}function Sn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=re(0,t,r);e.push(R(n,1,i))}}function Cn(e){let t=[0];return Sn(t,e.length-1),t}function wn(e,t){return e.map(e=>e*t)}function Tn(e,t){return e.map(()=>t||ge).splice(0,e.length-1)}function En({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`,mixer:i}){let a=typeof t[0]==`number`?void 0:i,o=_e(r)?r.map(xe):xe(r)||ge,s={done:!1,value:t[0]},c=-1;if(!a){for(let e=1;e=0){c=-2;break}c=e-1}}if(c>=0){let r=n&&n.length===t.length?n:Cn(t),i=r[c]*e,a=r[c+1]*e,l=t[c],u=t[c+1],d=Array.isArray(o)?o[c]:o,f=(E.mix||It)(l,u),p=t.length-2;return{calculatedDuration:e,next:t=>(s.value=c&&t=a||!e)?typeof u==`number`?u:f(1):f(d(t>=a||!e?1:t<=i?0:(t-i)/(a-i))),s.done=t>=e,s)}}let l=xn(wn(n&&n.length===t.length?n:Cn(t),e),t,{ease:Array.isArray(o)?o:Tn(t,o),mixer:a});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}var Dn=5;function On(e,t,n){let r=Math.max(t-Dn,0);return ie(n-e(r),t-r)}function kn(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):On(t=>e.next(t).value,t,e.next(t).value)}function An(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a,o,s=0;for(let t=0;tt-e>Nn&&!E.useManualTiming?t:e;function Fn(e,t){return{kind:e,animation:t,timestamp:I.now(),frameTimestamp:F.timestamp,frameIsProcessing:F.isProcessing}}function In(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...Fn(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function Ln(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...Fn(`layout-animation-start`,e),node:t})}catch{}}var Rn=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},zn=e=>e/100,Bn=e=>Math.round(e*1e4)/1e4,Vn=class extends Rn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options,t=I.now();e&&e.updatedAt!==t&&this.tick(e.updatedAt=t),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),In(this,this.options)}initAnimation(){let{options:e}=this;Mn(e);let{type:t=En,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||En;this.mixKeyframes=void 0,s!==En&&typeof o[0]!=`number`&&(this.mixKeyframes=k(zn,e.mixer?.(o[0],o[1])||It(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Gt(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){this.currentTime=this.holdTime??Math.round(e-this.startTime)*this.playbackSpeed}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=Pn(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;d||(p=this.playbackSpeed>=0?i<1/0?this.currentTime>=r:p:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==yn&&(f.value=An(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??Bn((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==yn?An(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=T(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}get duration(){return M(this.calculatedDuration)}get iterationDuration(){return this.duration+M(this.options.delay??0)}get time(){return M(this.currentTime)}set time(e){this.state===`finished`&&this.updateFinished(),e=j(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return kn(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(I.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=M(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Ht,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(I.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.driver?.stop(),this.driver=void 0,this.startTime=this.holdTime=null}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}},Hn=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Un(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Pe)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Hn.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Wn=/\b([a-z-]*)\(.*?\)/gu,Gn={..._t,getAnimatableNone:e=>{let t=e.match(Wn);return t?t.map(Un).join(` `):e}},Kn={..._t,getAnimatableNone:e=>{let t=_t.parse(e);return _t.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},qn={...je,transform:Math.round},Jn={rotate:Ke,pathRotation:Ke,rotateX:Ke,rotateY:Ke,rotateZ:Ke,scale:Ne,scaleX:Ne,scaleY:Ne,scaleZ:Ne,skew:Ke,skewX:Ke,skewY:Ke,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:Me,originX:Xe,originY:Xe,originZ:L},Yn={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,inset:L,insetBlock:L,insetBlockStart:L,insetBlockEnd:L,insetInline:L,insetInlineStart:L,insetInlineEnd:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,paddingBlock:L,paddingBlockStart:L,paddingBlockEnd:L,paddingInline:L,paddingInlineStart:L,paddingInlineEnd:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,marginBlock:L,marginBlockStart:L,marginBlockEnd:L,marginInline:L,marginInlineStart:L,marginInlineEnd:L,fontSize:L,backgroundPositionX:L,backgroundPositionY:L,...Jn,zIndex:qn,fillOpacity:Me,strokeOpacity:Me,numOctaves:qn},Xn={...Yn,color:Qe,backgroundColor:Qe,outlineColor:Qe,fill:Qe,stroke:Qe,borderColor:Qe,borderTopColor:Qe,borderRightColor:Qe,borderBottomColor:Qe,borderLeftColor:Qe,filter:Gn,WebkitFilter:Gn,mask:Kn,WebkitMask:Kn},Zn=e=>Xn[e],Qn=new Set([Gn,Kn]),$n,er,tr;function nr(e,t){if(e===$n&&t===er)return tr;let n=Zn(e);return Qn.has(n)||(n=_t),tr=n.getAnimatableNone?n.getAnimatableNone(t):void 0,$n=e,er=t,tr}function rr(e){for(let t=1;te*180/Math.PI,ar=e=>sr(ir(Math.atan2(e[1],e[0]))),or={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ar,rotateZ:ar,skewX:e=>ir(Math.atan(e[1])),skewY:e=>ir(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},sr=e=>(e%=360,e<0&&(e+=360),e),cr=ar,lr=e=>Math.hypot(e[0],e[1]),ur=e=>Math.hypot(e[4],e[5]),dr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:lr,scaleY:ur,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(lr(e)+ur(e))/2,rotateX:e=>sr(ir(Math.atan2(e[6],e[5]))),rotateY:e=>sr(ir(Math.atan2(-e[2],e[0]))),rotateZ:cr,rotate:cr,skewX:e=>ir(Math.atan(e[4])),skewY:e=>ir(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function fr(e){return+!!e.includes(`scale`)}function pr(e,t){if(!e||e===`none`)return fr(t);let n=e.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);if(!n)return fr(t);let r=(n[1]?dr:or)[t],i=n[2].split(`,`).map(e=>parseFloat(e));return typeof r==`function`?r(i):i[r]}var mr=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return pr(n,t)},hr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],gr=new Set([...hr,`pathRotation`]),_r=e=>e===je||e===L,vr=new Set([`x`,`y`,`z`]),yr=hr.filter(e=>!vr.has(e));function br(e){let t=[];return yr.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var xr=new Set([`bottom`,`right`]);function Sr(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var Cr=({transform:e})=>pr(e,`x`),wr=({transform:e})=>pr(e,`y`),Tr={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>Sr(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>Sr(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:Cr,y:wr,translateX:Cr,translateY:wr},Er=new Set,Dr=!1,Or=!1,kr=!1;function Ar(){if(Or){let e=[],t=new Set,n=new Set;Er.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),xr.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=br(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Or=!1,Dr=!1,Er.forEach(e=>e.complete(kr)),Er.clear()}function jr(){Er.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Or=!0)})}function Mr(){kr=!0,jr(),Ar(),kr=!1}function Nr(e,t,n){if(typeof e==`string`){if(D(e)||te(e))return parseFloat(e);if(!_t.test(e)&&_t.test(n))return nr(t,n)}return e??void 0}var Pr=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Er.add(this),Dr||(Dr=!0,z.read(jr),z.resolveKeyframes(Ar))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=Nr(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}rr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Er.delete(this)}cancel(){this.state===`scheduled`&&(Er.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Fr=e=>e.startsWith(`--`);function Ir(e,t,n){Fr(t)?e.style.setProperty(t,n):e.style[t]=n}var Lr={};function Rr(e,t){let n=ne(e);return()=>Lr[t]??n()}var zr=Rr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Br=Rr(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Vr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Hr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Vr([0,.65,.55,1]),circOut:Vr([.55,0,1,.45]),backIn:Vr([.31,.01,.66,-.59]),backOut:Vr([.33,1.53,.69,.99])};function Ur(e,t){if(e)return typeof e==`function`?Br()?Ut(e,t):`ease-out`:ve(e)?Vr(e):Array.isArray(e)?e.map(e=>Ur(e,t)||Hr.easeOut):Hr[e]}function Wr(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Ur(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Gr(e){return typeof e==`function`&&`applyToOptions`in e}function Kr({type:e,...t}){return Gr(e)&&Br()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var qr=class extends Rn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e;let c=Kr(e);this.animation=Wr(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=this.onFinish=()=>{if(this.animation.onfinish=null,this.finishedTime=this.time,!i){let e=An(r,this.options,o,this.speed);this.updateMotionValue?.(e),Ir(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},In(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.onfinish=this.onFinish,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.isStopped||(this.animation.onfinish=this.onFinish),this.animation.finish?.()}cancel(){this.animation.onfinish=null;try{this.animation.cancel()}catch{}}stop(){this.isStopped||(this.isStopped=!0,this.state!==`idle`&&this.finishedTime===null&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel()))}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return M(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+M(e)}get time(){return M(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=j(e),t&&(this.animation.pause(),this.updateFinished())}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=this.onFinish=null,e&&zr()?(this.animation.timeline=e,t?.(this.animation),O):n(this)}},Jr={anticipate:ue,backInOut:le,circInOut:pe};function Yr(e){return e in Jr}function Xr(e){typeof e.ease==`string`&&Yr(e.ease)&&(e.ease=Jr[e.ease])}var Zr=class extends qr{constructor(e){Xr(e),Mn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(I.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new Vn({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?T(0,10,a):0,s=this.sample(a);n&&r&&Ir(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Qr=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(_t.test(e)||e===`0`)&&!e.startsWith(`url(`));function $r(e){let t=e[0];if(e.length===1)return!0;for(let n=0;ne&&typeof t[0]!=`number`&&t.some((n,r)=>r&&e(t[r-1],n)),oi=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),si=()=>!E.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,`animate`);function ci(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(ni.has(n)||oi.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return si()&&(ni.has(n)||oi.has(n)&&ii(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`&&!ai(e)}var li=(e,t)=>t&&typeof e==`number`?t.transform(e):e,ui={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},di=hr.length,fi={},pi=(e,t,n=li(t,Jn[e]))=>(fi[e]||(fi[e]=(ui[e]||e)+`(`))+n+`)`,mi=(e,t)=>(typeof t==`number`?t:parseFloat(t))===+!!e.startsWith(`scale`);function hi(e,t,n){let r=``;for(let i=0;iCi.has(e),Ti=new WeakMap,Ei=(e,t)=>{let n=Ti.get(e);return n?.[0]!==t&&(n=[t,`linear(`+Cn(Array(t+1)).map(t=>Bn(e(t))+` `+Bn(t*100)+`%`)+`)`],Ti.set(e,n)),n[1]},Di=(e,t)=>Math.min(_i,Math.max(2,Math.ceil((t-e)/10))),Oi=(e,t)=>Math.abs(e-t)<=vi,ki=(e,t)=>e-t,Ai=(e,t,n)=>Cn(Array(n+1)).map(n=>R(e,t,n)),ji=e=>e.motionValue.owner,Mi=e=>gi.get(e),Ni=({state:e})=>e===`idle`||e===`finished`,Pi=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),Fi=({name:e,motionValue:t})=>e&&hr.includes(e)&&t?.owner?.current instanceof HTMLElement&&si()&&Br();function Ii(e){let t=ji(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(Pi(t,`transform`)||`none`)===`none`&&!Pi(t,`pathRotation`)&&!t.projection?.isProjecting()&&!ai(e)}var Li=class{constructor(e,t,n,r){this.element=e,this.update=t,this.makeDriver=n,this.animation=r}get js(){return this.driver||=this.makeDriver(this.update)}now(){return this.driver||this.makeDriver!==Ht?this.js.now():F.isProcessing?F.timestamp:I.now()}start(e=!0){let t=Mi(this.element);!t||t.isJS?this.js.start(e):t.schedule(!1,!e)}stopJS(){this.driver?.stop()}stop(){this.stopJS();let e=Mi(this.element);e&&!e.isFinishing&&e.release(this.animation)}},Ri,zi=class extends Vn{constructor(e){let t=ji(e).current,{driver:n=Ht}=e,r,i=Ii(e);e.driver=e=>new Li(t,e,n,r),super(e),r=this;let a=this.driver;a&&(a.animation=this),this.canAccelerate=i;let{stop:o}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),o()}}offsets(){let{keyframes:e,times:t}=this.options;return t||(this.offsetsOf!==e&&(this.offsetsOf=e,this.cachedOffsets=Cn(e)),this.cachedOffsets)}get group(){return Mi(ji(this.options).current)}get js(){return this.driver?.js}stopJS(){this.driver?.stopJS()}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(I.now()):void 0}tween(){let{keyframes:e,type:t,repeat:n,delay:r=0}=this.options,i=-1;if(n||t!==En||this.holdTime!==null)return;for(let t=1;t=0)return;i=t-1}let{ease:a}=this.options;_e(a)&&(a=a[i]);let o=this.offsets(),s=e=>this.startTime+(r+o[e]*this.totalDuration)/this.speed;if(i>=0){let e=ve(a)?Vr(a):wi(a)?Hr[a]:xe(a);return[s(i),s(i+1),typeof e==`string`||Oi(e(0),0)&&Oi(e(1),1)?e:void 0]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,type:u}=a,d=(u||En)===En?this.offsets():[0,1],f=n+o/r,p=[];if(this.holdTime!==null||!(i>0))return p;for(let n=Math.max(0,Math.floor((e-f)*r/i));n<=s;n++){let a=f+n*i/r;if(a>t)break;for(let o of d){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s{Bi||queueMicrotask(()=>{let e=Bi;Bi=void 0,e.forEach(e=>e())}),(Bi||=[]).push(e)};function Hi(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p,m=1/0,h,g=e=>{for(let t of n)if(t.name===e)return!0},_=(t,n)=>{let o={};for(let s of t===void 0?hr:a){let a=r.get(s),c=t===void 0?Pi(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},v=(e,t)=>{let n=``;for(let r in e){let i=e[r];t&&mi(r,i)||(n+=pi(r,i)+` `)}return(t?n.trim():n)||`none`},y=(e,t)=>v(_(e,t)),b=(e=_())=>{t.style.transform=v(e,!0)},x=e=>{e.onfinish=e.oncancel=null,e.cancel()},S=(e=!0)=>{clearTimeout(p),m=1/0,h=void 0,e&&b(),s.forEach(({animation:e})=>x(e)),s=[]},C=(e,n)=>new Animation(new KeyframeEffect(t,e,n)),w=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=I.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(x(e),s=s.filter(e=>e!==r)),M.schedule(!1)}),e.oncancel=()=>s.includes(r)&&M.demote(),s.push(r)},T=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},E=(e,t,n,r)=>{let i=Di(t,n);if(r.length*4>i)return;let a;for(let r of e){let e=r.numberAt(t),i=(r.numberAt((t+n)/2)-e)/(r.numberAt(n)-e);if(i===i){if(a===void 0)a=i;else if(!Oi(i,a))return}}let o=Ai(t,n,i).concat(r).sort(ki),s=e=>re(t,n,e),c,l;for(let n of e){let e=n.numberAt(t),r=o.map(t=>n.numberAt(t)-e),i=r[r.length-1],a=r.some(e=>Math.abs(e)*vi>Math.abs(i))?0:i,s=r.map(e=>a?e/a:e);if(a&&!c)c=s,l=t=>(n.numberAt(t)-e)/a;else if(s.some((e,t)=>!Oi(e,a&&c[t])))return}if(!c||c.every((e,t)=>Oi(e,s(o[t]))))return`linear`;let u=[],d=(e,t=l(e))=>u.push(Bn(t)+` `+Bn(s(e)*100)+`%`);return c.forEach((e,t)=>{t&&Math.abs(e-c[t-1])>.2&&T(l,o[t-1],o[t]).forEach(e=>d(e)),d(o[t],e)}),`linear(`+u+`)`},D=(e,t,n,r)=>{let i=[t],a=[],o=n,s=t;for(let r of e){let e=r.tween();if(e?.[2]!==`linear`){let[i,c]=r.timing(),[l,u]=e||[t,c?n:i];o=Math.min(o,l),s=Math.max(s,u),a.push(r)}}o=Math.max(t,o),s=Math.min(n,s);let c=(e,t)=>a.every(n=>!(Math.abs(n.numberAt((e+t)/2)-(n.numberAt(e)+n.numberAt(t))/2)>(n.name.startsWith(`scale`)?bi:yi))),l=(t,n,r)=>{if(n-t<1||c(t,n))i.push(n);else if(r<4)l(t,(t+n)/2,r+1),l((t+n)/2,n,r+1);else{for(let r of e)i.push(...T(e=>r.numberAt(e),t,n));i.push(n)}},u=s>o?Ai(o,s,Math.ceil((s-o)/100)):[];u.push(n);for(let e of r)u.push(e,Math.min(e+.01,n));let d=t;for(let e of u.sort(ki))e>d&&l(d,e,0),d=e;return i.sort(ki)},ee=e=>{let t;for(let n of e){let e=n.tween();if(!e||t&&(Math.abs(e[0]-t[0])>1||Math.abs(e[1]-t[1])>1))return;t=[e[0],e[1],!t||e[2]===t[2]?e[2]:void 0]}return t},te=(e,t,n,r,i={fill:`both`},a)=>{let o=r?[]:e.flatMap(e=>e.boundaries(t,n)),s=r||E(e,t,n,o),c=s?[t,n]:D(e,t,n,o),l=c.map(e=>y(e,a)),u={transform:l};return s||(u.offset=c.map(e=>re(t,n,e))),l.every(e=>e===l[0])&&(b(_(t,a)),u=null),C(u,{...i,duration:n-t,easing:s||`linear`})},ne=e=>{let t=I.now()+e;t{m=1/0,M.schedule(!1)},e))},O=t=>{let c=t,l=0,u=0,d=[],f=[],p=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[n,i]=e.timing(),a=n===1/0;if(o.set(e,[e.at(t),e.speed,a]),!a){if(e.speed<0)return;if(i){if(l){let e=(n-u)/i;if(Math.abs(i-l)>1||Math.abs(e-Math.round(e))*l>1)return}else l=i,u=n;f.push(e)}else p.add(n);d.push(e),c=Math.max(c,n)}}i={},a=hr.filter(t=>{if(r.has(t))return!0;let n=i[t]=Pi(e,t);return n!==void 0&&!mi(t,n)}),S(!1);let m=!l&&ee(d);try{if(c>t){let e;if(m&&m[1]>t){let[n,r,i]=m;if(n-t>Si)return d.forEach(e=>e.sync()),ne(h=n-t-Si),!0;e=typeof i==`string`?i:i?Ei(i,Di(n,r)):E(d,n,r,[]),e&&w(te(d,n,r,e,{fill:`both`,endDelay:c-r}),n-t,c-n)}e||w(te(d,t,c),0,c-t),p.forEach(e=>e{let r,i=0;for(let t of n){let n=o.get(t);if(!n)return!1;let[a,c,l]=n,u=t.at(e),d=t.timing()[0]===1/0;if(l){if(d&&(u===a||!s.length))continue;return!1}let f=(u-a)/c,p=d?0:t.speed/c;if(r===void 0)r=f,i=p;else if(Math.abs(f-r)>1||p!==i)return!1}if(r===void 0)return!0;if(!s.length){if(h===void 0||t&&i)return!1;if(i){let e=(h-r)/i;if(e<1)return!1;ne(e)}return!0}for(let{offset:e,end:n,isDone:i}of s){let a=r-e;if(n<1/0&&(i?a=n))return!1}for(let{animation:t,offset:n,isDone:a}of s){if(a)continue;let o=r-n;i&&t.updatePlaybackRate&&t.playState===`running`&&Math.abs(Number(t.currentTime)-o)<20?t.playbackRate!==i&&t.updatePlaybackRate(i):i?(t.playbackRate!==i&&(t.playbackRate=i),t.startTime=e-o/i):(t.startTime=null,t.currentTime=o)}return!0},A=()=>!n.size&&(u=!0,Mi(t)===M&&gi.delete(t),M.isJS||S(),!0),j=()=>{let t=I.now();if(M.isJS||(M.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=Pi(e,n.name),o.has(n)||(c=!0))}),M.isFinishing=!1),l=!1,u||(n.forEach(e=>Ni(e)&&n.delete(e)),A()))return;for(let e of n)if(!e.canAccelerate)return M.demote(!0);M.isJS&&(M.isJS=!1,c=!0,n.forEach(e=>e.stopJS()));let r=c,a=d;if(c=d=!1,r||!k(t,a)){if(a){if(t-fe.timing()[0]===1/0&&e.sync())},M={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,F.isProcessing?z.render(j,!1,!0):Vi(j)))},release(e){Ni(e)&&n.delete(e),A()||M.schedule(!0)},check(){if(!M.isJS){for(let t in i)if(Pi(e,t)!==i[t]&&!g(t))return M.schedule(!0,!0)}},demote(e){if(!(M.isJS||u))return n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),M.isJS=!0,o=new Map,S(),n.forEach(e=>e.state===`running`&&e.js?.start()),!0}};return gi.set(t,M),M}var Ui=class extends Rn{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=I.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||Pr;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=I.now();let u=ei(e,i,a,o);u||((E.instantAnimations||!s)&&l?.(An(e,n,t)),e[0]=e[e.length-1],ti(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&ci(n),p=!f&&Fi(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=Pn(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Zr(n)}catch{m=new Vn(n)}}else m=p?new zi(n):new Vn(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),Mr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation?.cancel(),this.keyframeResolver?.cancel()}};function Wi(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Gi=30,Ki=e=>!isNaN(parseFloat(e)),qi={current:void 0},Ji=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=I.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.dirty(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=I.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ki(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new A)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new A,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){z.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){t&&(this.updatedAt=I.now(),this.stop()),this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stopPassiveEffect?.()}dirty(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){(this.dependents||=new Set).add(e)}removeDependent(e){this.dependents?.delete(e)}get(){qi.current?.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=I.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Gi)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Gi);return ie(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return new Promise(t=>this.run(e,t))}run(e,t){this.stop(),this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&(this.animation=void 0),t?.()}),n||(this.animation=r),this.events.animationStart?.notify()}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel?.notify()),this.animation=void 0}isAnimating(){return!!this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect?.()}};function V(e,t){return new Ji(e,t)}function Yi(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Xi(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Yi(n,e)}var Zi={type:`spring`,stiffness:500,damping:25,restSpeed:10},Qi=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$i={type:`keyframes`,duration:.8},ea={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},ta=(e,{keyframes:t})=>t.length>2?$i:gr.has(e)?e.startsWith(`scale`)?Qi(t[1]):Zi:ea,na=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`,`out`,`mixer`]);function ra(e){for(let t in e)if(!na.has(t))return!0;return!1}var ia=(e,t,n,r={},i,a)=>o=>{let s=Xi(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=j(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i,hasOnUpdate:!!s.onUpdate};ra(s)||Object.assign(u,ta(e,u)),u.duration&&=j(u.duration),u.repeatDelay&&=j(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ti(u),u.delay===0&&(d=!0)),(E.instantAnimations||E.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,ti(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=An(u.keyframes,s);if(e!==void 0){z.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Vn(u):new Ui(u)},aa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function oa(e){let t=aa.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function sa(e,t,n=1){let[r,i]=oa(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return D(e)?parseFloat(e):e}return Oe(i)?sa(i,t,n+1):i}function ca(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function la(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...ca(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function ua(e,t,n){return la(e.getProps(),t,n,e)}var da=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,fa=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...hr]),pa=e=>Array.isArray(e);function ma(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,V(n))}function ha(e){return pa(e)?e[e.length-1]||0:e}function ga(e,t){let{transitionEnd:n={},transition:r={},...i}=ua(e,t)||{};i={...i,...n};for(let t in i)ma(e,t,ha(i[t]))}var H=e=>!!(e&&e.getVelocity);function _a(e){return!!(H(e)&&e.add)}function va(e,t){let n=e.getValue(`willChange`);if(_a(n))return n.add(t);if(!n&&E.WillChange){let n=new E.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}var ya=`data-framer-appear-id`;function ba(e){return e.props[ya]}var xa=typeof window<`u`;function Sa({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function Ca(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Yi(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState?.getState()[i],p=a?.path;p&&(p.animateValues?p.animateValues(t=>e.getValue(t,e.latestValues[t]??0),s,a,n,d):p.animateVisualElement?.(e,s,a,n,d));for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Sa(f,t))continue;let o={delay:n,...Xi(f?.out[t]||a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){z.update(()=>r.set(i));continue}let p=!1;if(xa&&window.MotionHandoffAnimation){let n=ba(e);if(n){let e=window.MotionHandoffAnimation(n,t,z);e!==null&&(o.startTime=e,p=!0)}}va(e,t);let m=l??e.shouldReduceMotion;r.run(ia(t,r,i,m&&fa.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>z.update(()=>{o&&ga(e,o)});d.length?Promise.all(d).then(t):t()}return d}function wa(e,t,n={}){let r=ua(e,t,da(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?Ca(e,r,n):[]),o=(r=0)=>{let{variantChildren:a}=e,{delayChildren:o=0,staggerChildren:s,staggerDirection:c}=i,l=[];return a?.forEach(e=>{e.notify(`AnimationStart`,t),l.push(wa(e,t,{...n,delay:r+(typeof o==`function`?0:o)+Wi(a,e,o,s,c)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(l)},{when:s}=i;return s?s===`beforeChildren`?a().then(()=>o()):o().then(a):Promise.all([a(),o(n.delay)])}function Ta(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>wa(e,t,n))):typeof t==`string`?wa(e,t,n):Promise.all(Ca(e,ua(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var Ea={test:e=>e===`auto`,parse:e=>e},Da=e=>t=>t.test(e),Oa=[je,L,qe,Ke,Ye,Je,Ea],ka=e=>Oa.find(Da(e));function Aa(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||te(e)}var ja=new Set([`auto`,`none`,`0`]);function Ma(e,t,n){let r=0,i;for(;re.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e?.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e?.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.resolveNoneKeyframes()}},Pa=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function Fa(e){return ee(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function Ia(e){return ee(e)&&`ownerSVGElement`in e}var La={};function Ra(e){return La.current?.add(e),e}var za=e=>La.current?La.current.bind(e):e;function Ba(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=t?t.current:La.current?.root||document,i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function Va(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function Ha(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(gr.has(e))o=!0;else if(Ee(e))i[e]=n;else{let t=li(n,Yn[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=hi(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var Ua={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Wa={offset:`strokeDashoffset`,array:`strokeDasharray`};function Ga(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Ua:Wa;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Ka=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function qa(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Ha(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of Ka)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Ga(d,i,a,o,!1)}function Ja({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ya({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Xa(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Za(e){return e===void 0||e===1}function Qa({scale:e,scaleX:t,scaleY:n}){return!Za(e)||!Za(t)||!Za(n)}var $a=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`];function eo(e){return Qa(e)||no(e)||to(e)}function to(e){return e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function no(e){return ro(e.x)||ro(e.y)}function ro(e){return e&&e!==`0%`}function io(e,t,n){return n+t*(e-n)}function ao(e,t,n,r,i){return i!==void 0&&(e=io(e,i,r)),io(e,n,r)+t}function oo(e,t=0,n=1,r,i){e.min=ao(e.min,t,n,r,i),e.max=ao(e.max,t,n,r,i)}function so(e,{x:t,y:n}){oo(e.x,t.translate,t.scale,t.originPoint),oo(e.y,n.translate,n.scale,n.originPoint)}var co=.999999999999,lo=1.0000000000001;function uo(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;sco&&(t.x=1),t.yco&&(t.y=1)}function fo(e,t){e.min+=t,e.max+=t}function po(e,t,n,r,i=.5){oo(e,t,n,R(e.min,e.max,i),r)}function mo(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function ho(e,t,n){let r=n??e;po(e.x,mo(t.x,r.x),t.scaleX,t.scale,t.originX),po(e.y,mo(t.y,r.y),t.scaleY,t.scale,t.originY)}function go(e,t){return Ja(Xa(e.getBoundingClientRect(),t))}function _o(e,t,n){let r=go(e,n),{scroll:i}=t;return i&&(fo(r.x,i.offset.x),fo(r.y,i.offset.y)),r}var vo=()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),{schedule:yo,cancel:bo}=Bt(queueMicrotask,!1);function xo(e,t,n){let r=H(e)?e:V(e);return r.run(ia(``,r,t,n)),r.animation}var U={},So={value:null,addProjectionMetrics:null,countProjection:void 0};function Co(e,t){let n=I.now();e=za(e);let r=({timestamp:i})=>{let a=i-n;a>=t&&(Vt(r),e(a-t))};return z.setup(r,!0),Ra(()=>Vt(r))}function wo(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function To(e){return Ia(e)&&e.tagName===`svg`}function Eo(e){return H(e)?e.get():e}var Do=e=>typeof e==`number`?e:parseFloat(e),Oo=Pa.length,ko=e=>typeof e==`number`||L.test(e);function Ao(e,t,n,r,i,a){i?(e.opacity=R(0,n.opacity??1,Mo(r)),e.opacityExit=R(t.opacity??1,0,No(r))):a&&(e.opacity=R(t.opacity??1,n.opacity??1,r));for(let i=0;irt?1:n(re(e,t,r))}var Fo=(e,t,{x:n,y:r})=>{let i=e*e+t*t;return i<1?0:-1e3*(n*e+r*t)/i},Io=(e,t=300)=>{let n=T(.25,2,t/300),{stiffness:r,damping:i}=gn({...e,duration:e.duration&&j(e.duration)});return{...e,stiffness:r,damping:i*Math.sqrt(n),mass:n}};function Lo(e,t){e.min=t.min,e.max=t.max}function Ro(e,t){Lo(e.x,t.x),Lo(e.y,t.y)}function zo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Bo=.9999,Vo=1.0001,Ho=-.01,Uo=.01;function Wo(e){return e.max-e.min}function Go(e,t,n){return Math.abs(e-t)<=n}function Ko(e,t,n,r=.5){e.origin=r,e.originPoint=R(t.min,t.max,e.origin),e.scale=Wo(n)/Wo(t),e.translate=R(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Bo&&e.scale<=Vo||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ho&&e.translate<=Uo||isNaN(e.translate))&&(e.translate=0)}function qo(e,t,n,r){Ko(e.x,t.x,n.x,r?.originX),Ko(e.y,t.y,n.y,r?.originY)}function Jo(e,t,n,r=0){e.min=(r?R(n.min,n.max,r):n.min)+t.min,e.max=e.min+Wo(t)}function Yo(e,t,n,r){Jo(e.x,t.x,n.x,r?.x),Jo(e.y,t.y,n.y,r?.y)}function Xo(e,t,n,r=0){let i=r?R(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Wo(t)}function Zo(e,t,n,r){Xo(e.x,t.x,n.x,r?.x),Xo(e.y,t.y,n.y,r?.y)}function Qo(e,t,n,r,i){return e-=t,e=io(e,1/n,r),i!==void 0&&(e=io(e,1/i,r)),e}function $o(e,t=0,n=1,r=.5,i,a=e,o=e){if(qe.test(t)&&(t=parseFloat(t),t=R(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=R(a.min,a.max,r);e===a&&(s-=t),e.min=Qo(e.min,t,n,s,i),e.max=Qo(e.max,t,n,s,i)}function es(e,t,[n,r,i],a,o){$o(e,t[n],t[r],t[i],t.scale,a,o)}var ts=[`x`,`scaleX`,`originX`],ns=[`y`,`scaleY`,`originY`];function rs(e,t,n,r){es(e.x,t,ts,n?.x,r?.x),es(e.y,t,ns,n?.y,r?.y)}var is=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),as=is(`applewebkit/`)&&!is(`chrome/`)?Math.round:O;function os(e){e.min=as(e.min),e.max=as(e.max)}function ss(e){os(e.x),os(e.y)}var cs=()=>({translate:0,scale:1,origin:0,originPoint:0}),ls=()=>({x:cs(),y:cs()}),us=()=>({min:0,max:0}),ds=()=>({x:us(),y:us()});function fs(e){return e.translate===0&&e.scale===1}function ps(e){return fs(e.x)&&fs(e.y)}function ms(e,t){return e.min===t.min&&e.max===t.max}function hs(e,t){return ms(e.x,t.x)&&ms(e.y,t.y)}function gs(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function _s(e,t){return gs(e.x,t.x)&&gs(e.y,t.y)}function vs(e){return Wo(e.x)/Wo(e.y)}function ys(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var bs=class{constructor(){this.members=[]}add(e){C(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected!==!1||n.snapshot||(w(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(w(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};function xs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Ss={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(L.test(e))e=parseFloat(e);else return e}return`${xs(e,t.target.x)}% ${xs(e,t.target.y)}%`}},Cs={borderRadius:Object.assign({},Ss,{applyTo:Pa.slice()}),borderTopLeftRadius:Ss,borderTopRightRadius:Ss,borderBottomLeftRadius:Ss,borderBottomRightRadius:Ss,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=_t.parse(e);if(i.length>5)return r;let a=_t.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=R(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}}};function ws(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;(i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `);let s=``;if(n){let{transformPerspective:e}=n;e&&(r=`perspective(${e}px) ${r}`);for(let e=0;e<$a.length;e++){let t=$a[e],r=n[t];r&&(s+=`${t}(${r}deg) `),!e&&n.pathRotation&&(s+=`rotate(${n.pathRotation}deg) `)}}if(s){(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),r+=s;let n=e.x.scale*t.x,i=e.y.scale*t.y;(n!==1||i!==1)&&(r+=`scale(${n}, ${i})`)}else e.x.scale!==1||e.y.scale!==1?r+=`scale(${e.x.scale}, ${e.y.scale})`:r||t.x===1&&t.y===1||(r=`scale(1, 1)`);return r||`none`}function Ts(e){return[e(`x`),e(`y`)]}var Es=(e,t)=>e.depth-t.depth,Ds=class{constructor(){this.children=[],this.isDirty=!1}add(e){C(this.children,e),this.isDirty=!0}remove(e){w(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Es),this.isDirty=!1,this.children.forEach(e)}},Os={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ks=[`z`,`skew`,`skewZ`],As=1e3,js=0;function Ms(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var Ns=e=>e.instance&&gi.get(e.instance)?.demote()&&e.resetSkewAndRotation();function Ps(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=ba(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,z,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ps(r)}function Fs(e){if(e)return e.options.allowProjection===!1?Fs(e.parent):e.projection}function Is({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return Object.assign(U,{...Cs,...U}),class{static create(e,t,n){let{layoutId:r,layout:i,drag:a,dragConstraints:o,layoutScroll:s,layoutRoot:c,layoutAnchor:l,layoutCrossfade:u}=t,d=e.projection=new this(e.latestValues,t[`data-framer-portal-id`]?void 0:Fs(e.parent));d.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!a||o&&wo(o),visualElement:e,animationType:typeof i==`string`?i:`both`,initialPromotionConfig:n,crossfade:u,layoutScroll:s,layoutRoot:c,layoutAnchor:l});let f=d.getStack()?.lead;f&&!d.root.isUpdateBlocked()&&(f.willUpdate(),f.scheduleCheckAfterUnmount())}constructor(e={},n=t?.()){this.id=js++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(zs),this.nodes.forEach(Xs),this.nodes.forEach(Zs),this.nodes.forEach(Bs),So.countProjection?.()},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;z.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n?.(),n=Co(i,250),Os.hasAnimatedSinceResize&&(Os.hasAnimatedSinceResize=!1,this.nodes.forEach(Ys)))})}n&&this.root.registerSharedNode(n,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:e,layout:t,visualElement:n,animate:r}=this.options;this.instance&&!this.hasLayoutListener&&r!==!1&&n&&(e||t)&&(this.hasLayoutListener=!0,this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||n.getDefaultTransition()||ic,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!_s(this.targetLayout,i),l=!t&&r;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Xi(a,`layout`),onPlay:o,onComplete:s};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Ys(this),this.isLead()&&this.options.onExitComplete?.();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),this.getStack()?.remove(this),this.parent?.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,Vt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes?.forEach(Qs),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete?.();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ps(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;Ns(this),this.isLayoutDirty=!0;for(let e=0;ee.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!Wo(this.snapshot.measuredBox.x)&&!Wo(this.snapshot.measuredBox.y)&&(this.snapshot=void 0),this.snapshot)){let{visualElement:e}=this.options,t=this.currentAnimation?.state===`running`,n=t&&this.animationEdges;t&&this.relativeTarget&&(this.snapshot.relativeVelocity=this.relativeVelocity?.slice()||[]);let r=n&&this.motionValue?.getVelocity()||0,i=[0,1,2,3,4,5].map(t=>(t<4?n&&(this.edgeValues?this.edgeVelocity(t):-n[t]*r/1e3):e?.getValue(t<5?`x`:`y`)?.getVelocity())||0);i.some(Boolean)&&(this.snapshot.velocity=i)}}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e{let{translate:r,scale:i,originPoint:a}=e[n<2?`x`:`y`];return(t-a)*(i-1)+r});h?.every(isFinite)||(h=void 0),this.animationEdges=h,this.edgeValues=this.startVelocity=this.impulse=this.relativeVelocity=this.relativeStart=void 0;let g=r?.velocity,_=r?.relativeVelocity||g;if(_?.slice(0,4).some(Boolean)&&this.getClosestProjectingParent()&&(this.relativeStart=_),g&&h){let t=g.slice(0,4).map((e,t)=>e+(c?g[4+(t>>1)]:0));t.some(Boolean)&&(this.startVelocity=p?Fo(e.x.translate,e.y.translate,{x:(t[0]+t[1])/2,y:(t[2]+t[3])/2}):t)}this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n),l=this.edgeValues;for(let t=0;t<2;t++){let r=t?`y`:`x`;l?$s(o[r],e[r],this.layout.layoutBox[r],l[t*2],l[t*2+1]):ec(o[r],e[r],n)}if(r&&(o.x.translate=r.x,o.y.translate=r.y),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){Zo(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0);let e=this.relativeTargetOrigin,t=s;if(nc(this.relativeTarget,e,t,n),this.isSpringLayout){let e=this.relativeTarget,t=this.impulse||0,n=this.relativeStart,r=I.now(),i=(r-this.relativeTime)/1e3;this.relativeTime=r;let a=this.relativeVelocity||=[0,0,0,0];for(let r=0;r<4;r++){let o=r<2?`x`:`y`,s=r&1?`max`:`min`;n&&(e[o][s]+=n[r]*t),f&&i>0&&(a[r]=(e[o][s]-f[o][s])/i)}}f&&hs(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=ds(),Ro(f,this.relativeTarget)}c&&(this.animationValues=a,Ao(a,i,this.latestValues,n,d,u)),r?.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`);let t=this.isSpringLayout=e.type===`spring`;this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.resumingFrom&&(this.resumingFrom.edgeValues=void 0),this.pendingAnimation&&=(Vt(this.pendingAnimation),void 0),this.pendingAnimation=z.update(()=>{Os.hasAnimatedSinceResize=!0,this.motionValue||=V(0),this.motionValue.jump(0,!1);let n=this.startVelocity;this.startVelocity=void 0;let r=e,i=0;if(t){if(e.mass===`auto`){let t=this.layout?.layoutBox;r=Io(e,t&&Math.sqrt(Wo(t.x)*Wo(t.y)))}let t=this.relativeStart;if((n||t)&&!e.repeat){if(typeof n==`number`)i=n;else{let e=n&&this.animationEdges;r={...r,type:r=>{let i=[r.velocity,...n||[]].map((t,n)=>vn({...r,keyframes:n?[e[n-1],0]:r.keyframes,velocity:t})),a=i.length;t&&i.push(vn({...r,keyframes:[0,0],velocity:1e3,restDelta:.5,restSpeed:5}));let o=0,s=[],c={calculatedDuration:null,next:t=>{o=t;let n=i[0].next(t),r=n.done;for(let e=1;ei[e+1].velocity(o),c}}}}}let a=xo(this.motionValue,[0,1e3],{...r,velocity:i,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}});this.currentAnimation=a,Ln(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=this.edgeValues=this.edgeVelocity=this.impulse=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.edgeValues=this.impulse=void 0,this.mixTargetDelta?.(As),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&oc(this.options.animationType,this.layout.layoutBox,n.layoutBox)){let{layoutBox:e}=this.layout,t=i;i=this.target||ds(),ac(i.x,t.x,e.x),ac(i.y,t.y,e.y)}Ro(t,i),ho(t,r),qo(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new bs),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?.transition,preserveFollowOpacity:n?.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){this.getStack()?.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){return this.getStack()?.relegate(this)||!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let{latestValues:t}=e;if(!to(t))return;let n={};for(let t=0;te.currentAnimation?.stop()),this.root.nodes.forEach(Hs),this.root.sharedNodes.clear()}}}function Ls(e){e.updateLayout(),Gs(e)}function Rs(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source,o=(r,a)=>{if(i===`size`)Ts(e=>{let t=Wo(r[e]);r[e].min=a[e].min,r[e].max=r[e].min+t});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Lo(r[e],a[e])}else oc(i,t.layoutBox,n)&&Ts(t=>{let n=Wo(a[t]);r[t].max=r[t].min+n,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[t].max=e.relativeTarget[t].min+n)})},s=a?t.measuredBox:t.layoutBox;o(s,n);let c=ls();qo(c,n,t.layoutBox);let l=ls();qo(l,a?e.applyTransform(r,!0):n,s);let u=!ps(c),d=!1,f=e.getClosestProjectingParent();if((!a||f?.options.layoutRoot&&e.resumeFrom?.path.includes(f))&&f&&!f.resumeFrom){let{snapshot:r,layout:i}=f;if(r&&i){let s=e.options.layoutAnchor||void 0,c=ds();Zo(c,a?e.resumeFrom.applyTransform(t.layoutBox,!0,void 0,!0,f.depth+1):t.layoutBox,r.layoutBox,s);let l=ds();Zo(l,n,i.layoutBox,s),a&&o(c,l),_s(c,l)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=c,e.relativeParent=f)}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:l,layoutDelta:c,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else e.isLead()&&e.options.onExitComplete?.();e.options.transition=void 0}function zs(e){So.countProjection?.(0),e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Bs(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Vs(e){e.clearSnapshot()}function Hs(e){e.clearMeasurements()}function Us(e){e.isLayoutDirty=!0,e.updateLayout()}function Ws(e){e.isLayoutDirty=!1}function Gs(e){let{snapshot:t,dragAncestor:n}=e,r=n?.isAnimationBlocked&&n.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;Ts(e=>fo(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function Ks(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function qs(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function Js(e){let{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Ys(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Xs(e){e.resolveTargetDelta()}function Zs(e){e.calcProjection()}function Qs(e){e.resetSkewAndRotation()}function $s(e,t,n,r,i){let a=n.max-n.min,o=a?Math.max(0,(a+i-r)/a):1,s=e.originPoint=t.originPoint;e.origin=t.origin,e.scale=o,e.translate=n.min+r-(s+(n.min-s)*o)}function ec(e,t,n){e.translate=R(t.translate,0,n),e.scale=R(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tc(e,t,n,r){e.min=R(t.min,n.min,r),e.max=R(t.max,n.max,r)}function nc(e,t,n,r){tc(e.x,t.x,n.x,r),tc(e.y,t.y,n.y,r)}function rc(e){return e.animationValues?.opacityExit!==void 0}var ic={duration:.45,ease:[.4,0,.1,1]};function ac(e,t,n){e.max=Wo(n)+(e.min=t.min)}function oc(e,t,n){return e===`position`||e===`preserve-aspect`&&!Go(vs(t),vs(n),.2)}function sc(e){return e!==e.root&&e.scroll?.wasRoot}function cc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var lc=Is({attachResizeListener:(e,t)=>cc(e,`resize`,t),measureScroll:vo,checkIsScrollRoot:()=>!0}),uc={current:void 0},dc=Is({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!uc.current){let e=new lc({});e.mount(window),e.setOptions({layoutScroll:!0}),uc.current=e}return uc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),fc=new WeakMap;function pc(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function mc(e){return typeof e==`string`||Array.isArray(e)}var hc=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`whilePinch`,`exit`],gc=[`initial`].concat(hc);function _c(e){if(pc(e.animate))return!0;for(let t=0;tW.current=e.matches;e.addEventListener(`change`,t),t()}else W.current=!1}}var Cc=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],wc={};function Tc(e){wc=e}function Ec(){return wc}var Dc=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Pr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=I.now();this.renderScheduledAtt.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(bc.current||Sc(),this.shouldReduceMotion=W.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection?.unmount(),Vt(this.notifyUpdate),Vt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree?.(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),(this.enteringChildren||=new Set).add(e)}removeChild(e){this.children.delete(e),this.enteringChildren?.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.get(e)?.(),t.accelerate&&ni.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new qr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:j(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=gr.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&z.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),gi.get(this.current)?.check()),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i?.()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in wc){let t=wc[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ds()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){let{transformTemplate:n,onUpdate:r}=this.props;(e.transformTemplate||n)&&this.scheduleRender(),(e.transformTemplate&&!n||e.onUpdate&&!r)&&gi.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t{this.current&&(this.current.textContent=`${e}`)}))}};function kc(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Ac(e,{layout:t,layoutId:n}){return gr.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!U[e]||e===`opacity`)}function jc(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(H(r[t])||i&&H(i[t])||Ac(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Mc(e){return window.getComputedStyle(e)}var Nc=class extends Oc{constructor(){super(...arguments),this.type=`html`,this.renderInstance=kc}mount(e){super.mount(e)}readValueFromInstance(e,t){if(gr.has(t))return this.projection?.isProjecting?fr(t):mr(e,t);{let n=Mc(e),r=(Ee(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return go(e,t)}build(e,t,n){Ha(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return jc(e,t,n)}},Pc=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function Fc(e){return{point:{x:e.pageX,y:e.pageY}}}var Ic=e=>t=>Pc(t)&&e(t,Fc(t));function Lc(e,t,n,r){return cc(e,t,Ic(n),r)}var Rc=new WeakMap,zc,Bc=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Ia(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Vc=Bc(`inline`,`width`,`offsetWidth`),Hc=Bc(`block`,`height`,`offsetHeight`);function Uc({target:e,borderBoxSize:t}){Rc.get(e)?.forEach(n=>{n(e,{get width(){return Vc(e,t)},get height(){return Hc(e,t)}})})}function Wc(e){e.forEach(Uc)}function Gc(){typeof ResizeObserver<`u`&&(zc=new ResizeObserver(Wc))}function Kc(e,t){zc||Gc();let n=Ba(e);return n.forEach(e=>{let n=Rc.get(e);n||(n=new Set,Rc.set(e,n)),n.add(t),zc?.observe(e)}),()=>{n.forEach(e=>{let n=Rc.get(e);n?.delete(t),n?.size||zc?.unobserve(e)})}}var qc=new Set,Jc;function G(){Jc=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};qc.forEach(t=>t(e))},window.addEventListener(`resize`,Jc)}function Yc(e){return qc.add(e),Jc||G(),()=>{qc.delete(e),!qc.size&&typeof Jc==`function`&&(window.removeEventListener(`resize`,Jc),Jc=void 0)}}function Xc(e,t){return Ra(typeof e==`function`?Yc(e):Kc(e,t))}var Zc=(e,t)=>Math.abs(e-t);function Qc(e,t){let n=Zc(e.x,t.x),r=Zc(e.y,t.y);return Math.sqrt(n**2+r**2)}var $c=new Set([`auto`,`scroll`]),el=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o,immediate:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=nl(this.lastRawMoveEventInfo,this.transformPagePoint));let e=il(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Qc(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:I.now()});let{onStart:i,onMove:a}=this.handlers;t||(i?.(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a?.(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.handleScroll(window),this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=nl(t,this.transformPagePoint),this.hasPendingMove=!0,z.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i?.(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=il(e.type===`pointercancel`?this.lastMoveEventInfo:nl(t,this.transformPagePoint),this.history);this.startEvent&&n?.(e,a),r?.(e,a)},!Pc(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=s?0:a,this.contextWindow=r||window;let c=Fc(e),l=nl(c,this.transformPagePoint),{point:u}=l;this.history=[{...u,timestamp:I.now()}];let{onSessionStart:d}=t;d&&d(e,il(l,this.history));let f={passive:!0,capture:!0};this.removeListeners=k(Lc(this.contextWindow,`pointermove`,this.handlePointerMove,f),Lc(this.contextWindow,`pointerup`,this.handlePointerUp,f),Lc(this.contextWindow,`pointercancel`,this.handlePointerUp,f)),o&&this.startScrollTracking(o),s&&(this.handlePointerMove(e,c),this.updatePoint())}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);($c.has(e.overflowX)||$c.has(e.overflowY))&&this.scrollPositions.set(t,tl(t)),t=t.parentElement}this.scrollPositions.set(window,tl(window)),this.removeScrollListeners=k(cc(window,`scroll`,this.onElementScroll,{capture:!0}),cc(window,`scroll`,this.onWindowScroll,{}))}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=tl(e),i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),z.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners?.(),this.removeScrollListeners?.(),this.scrollPositions.clear(),Vt(this.updatePoint)}},tl=e=>e===window?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop};function nl(e,t){return t?{point:t(e.point)}:e}function rl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function il({point:e},t){return{point:e,delta:rl(e,ol(t)),offset:rl(e,al(t)),velocity:sl(t,.1)}}function al(e){return e[0]}function ol(e){return e[e.length-1]}function sl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=ol(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>j(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>j(t)*2&&(r=e[1]);let a=M(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var cl=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function ll(e){return cl.has(e.tagName)||e.isContentEditable===!0}var ul=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function dl(e){return ul.has(e.tagName)||e.isContentEditable===!0}var fl={x:!1,y:!1};function pl(){return fl.x||fl.y}function ml(e){return e===`x`||e===`y`?fl[e]?null:(fl[e]=!0,()=>{fl[e]=!1}):fl.x||fl.y?null:(fl.x=fl.y=!0,()=>{fl.x=fl.y=!1})}function hl(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?R(n,e,r.max):Math.min(e,n)),e}function gl(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function _l(e,{top:t,left:n,bottom:r,right:i}){return{x:gl(e.x,n,i),y:gl(e.y,t,r)}}function vl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=re(t.min,t.max-r,e.min):r>i&&(n=re(e.min,e.max-i,t.min)),T(0,1,n)}function xl(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Sl=.35;function Cl(e=Sl){return e===!1?e=0:e===!0&&(e=Sl),{x:wl(e,`left`,`right`),y:wl(e,`top`,`bottom`)}}function wl(e,t,n){return{min:Tl(e,t),max:Tl(e,n)}}function Tl(e,t){return typeof e==`number`?e:e[t]||0}function El(e){let t=``;for(let n of e.path){n.scroll=void 0,n.updateScroll();let{scroll:r}=n;n!==e.root&&r&&(t+=r.offset.x+`,`+r.offset.y+`,`)}return t}var Dl=new WeakMap,Ol=class{constructor(e,t=()=>e.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ds(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e,this.readProps=t}start(e,t={}){if(this.visualElement.presenceContext?.isPresent===!1)return;let n=e=>{t.snapToCursor&&this.snapToCursor(e),this.stopAnimation()},r=(e,t)=>{let{drag:n,dragConstraints:r,dragPropagation:i,onDragStart:a}=this.getProps();if(n&&!i&&(this.openDragLock?.(),this.openDragLock=ml(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints();let{projection:o}=this.visualElement;o&&(o.isAnimationBlocked=!0,o.target=void 0),Ts(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Oe(t)&&(t=sa(t,this.visualElement.current)||0),L.test(t))t=parseFloat(t);else if(qe.test(t)){let n=o?.layout?.layoutBox[e];n&&(t=Wo(n)*(parseFloat(t)/100))}this.originPoint[e]=t}),this.point=typeof r==`function`&&r(this),a&&z.update(()=>a(e,t),!1,!0),va(this.visualElement,`transform`),this.visualElement.animationState?.setActive(`whileDrag`,!0)},i=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){if(this.currentDirection=Pl(o),this.currentDirection===null)return;i&&i(this.currentDirection)}this.updateAxis(`x`,o),this.updateAxis(`y`,o),this.point&&this.point.move(),this.visualElement.render(),a&&z.update(()=>a(e,t),!1,!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},o=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints||this.point)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:s}=this.getProps();this.panSession=new el(e,{onSessionStart:n,onStart:r,onMove:i,onSessionEnd:a,resumeAnimation:o},{...t,transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(e,t,n){let r=e||this.latestPointerEvent,i=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;let{velocity:o}=i;this.startAnimation(o,n);let{onDragEnd:s}=this.getProps();s&&z.postRender(()=>s(r,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession(),!this.getProps().dragPropagation&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t?.setActive(`whileDrag`,!1)}endPanSession(){this.panSession?.end(),this.panSession=void 0}updateAxis(e,t){let{drag:n}=this.readProps();if(!t||!Nl(e,n,this.currentDirection))return;let r=this.getAxisMotionValue(e),i=this.originPoint[e]+t[e],a=this.constraints&&this.constraints[e];a&&(i=hl(i,a,this.elastic[e])),this.point?this.point[e]=i:r.set(i)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{projection:n}=this.visualElement,r=n&&(n.layout||n.measure(!1)),i=this.constraints;kl(e)?this.constraints&&this.scroll===El(n)||(this.constraints=this.resolveRefConstraints()):this.constraints=e&&r&&typeof e==`object`?_l(r.layoutBox,e):!1,this.elastic=Cl(t),i!==this.constraints&&!kl(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&Ts(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=xl(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!kl(e))return!1;let n=Al(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;this.scroll=El(r);let i=_o(n,r.root,this.visualElement.getTransformPagePoint()),a=yl(r.layout.layoutBox,r.removeElementScroll(i));if(t){let e=t(Ya(a));this.hasMutatedConstraints=!!e,e&&(a=Ja(e))}return a}startAnimation(e,t){let{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),c={bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...a},l=i=>r&&!(this.point&&o)&&Nl(i,t||n,this.currentDirection)?e[i]:0;if(this.point&&!o)return this.point.release({x:l(`x`),y:l(`y`)},c).then(s);let u=this.constraints||{},d=Ts(e=>{if(!Nl(e,t||n,this.currentDirection))return;let r=u[e]||{};(o===!0||o===e)&&(r={min:0,max:0});let i={type:`inertia`,velocity:l(e),...c,...r};return this.startAxisValueAnimation(e,i)});return Promise.all(d).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return va(this.visualElement,e),n.start(ia(e,n,0,t,this.visualElement,!1))}stopAnimation(){Ts(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.readProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();Ts(e=>{if(!Nl(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-R(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!kl(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};Ts(e=>{let t=this.getAxisMotionValue(e).get();i[e]=bl({min:t,max:t},r[e])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},``):`none`,n.root?.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Ts(t=>{let n=this.getAxisMotionValue(t);if(!Nl(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(R(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Dl.set(this.visualElement,this);let e=this.visualElement.current,t=Lc(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&dl(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=kl(t)&&Al(t);r&&(this.constraints=this.resolveRefConstraints(),n||=Ml(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i.layout||(i.root?.updateScroll(),i.updateLayout()),z.read(r);let o=cc(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Ts(t=>{if(!Nl(t,this.getProps().drag,this.currentDirection))return;let n=this.getAxisMotionValue(t);this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate)}),this.visualElement.render())}));return()=>{o(),t(),a(),s(),n?.()}}getProps(){let e=this.readProps(),{dragElastic:t=Sl,dragMomentum:n=!0}=e;return{...e,dragElastic:t,dragMomentum:n}}};function kl(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var Al=e=>`current`in e?e.current:e;function jl(e){let t=!0;return()=>{t?t=!1:e()}}function Ml(e,t,n){let r=Xc(e,jl(n)),i=Xc(t,jl(n));return()=>{r(),i()}}function Nl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Pl(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function Fl(e,t){let n=Ba(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},Ra(()=>r.abort())]}function Il(e){return!(e.pointerType===`touch`||pl())}function Ll(e,t,n={}){t=za(t);let[r,i,a]=Fl(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!Il(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Rl=(e,t)=>t?e===t||Rl(e,t.parentElement):!1,zl=new WeakSet;function Bl(e){return t=>{t.key===`Enter`&&e(t)}}function Vl(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Hl=(e,t)=>{let n=!1,r=Bl(()=>{n||zl.has(e)||(n=!0,Vl(e,`down`))}),i=Bl(()=>{n&&(n=!1,Vl(e,`up`))});e.addEventListener(`keydown`,r,t),e.addEventListener(`keyup`,i,t),e.addEventListener(`blur`,()=>{e.removeEventListener(`keydown`,r),e.removeEventListener(`keyup`,i),n&&Vl(e,`cancel`)},{...t,once:!0})};function Ul(e){return Pc(e)&&!pl()}var Wl=new WeakSet,Gl=100,Kl=8,ql=(e,t,n)=>Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)>n,Jl=e=>e.preventDefault();function Yl(e,t,n={}){t=za(t);let[r,i,a]=Fl(e,n),o=new WeakMap,s=e=>{let r=e.currentTarget;if(!Ul(e)||Wl.has(e))return;n.stopPropagation&&Wl.add(e);let{count:a=1,countTimeout:s=.3,hold:c=0,repeat:l}=n,u=I.now(),d=j(c),f=j(s),p=o.get(r);p?.expire(ql(p.event,e,Gl))?p=void 0:p&&(Vt(p.expire),o.delete(r));let m=p?p.count+1:1,h=m>=a,g=h&&(c||l),_=!c,v=0,y;if(zl.add(r),p)y=p.handlers;else{let n=t(r,e);y=typeof n==`function`?{onComplete:n}:n||{}}h&&_&&y.onActive?.();let b=j(l),x=d||b,S=u+x,C=!0,w=()=>{if(i.signal.aborted)return Vt(w);let e=Math.min(1-(S-I.now())/x,1);C&&e<1&&(e=0),C=!1,y.onHold?.(e),e<1||(_?y.onRepeat?.(++v):(_=!0,y.onActive?.()),l?(C=!0,S+=x=b):Vt(w))},T={...i,capture:!0},E=(t,n)=>{if(Pc(t)){if(window.removeEventListener(`pointerup`,D,T),window.removeEventListener(`pointercancel`,ee,T),window.removeEventListener(`pointermove`,te,T),r.removeEventListener(`contextmenu`,Jl),Vt(w),zl.delete(r),pl()&&(n=!1),n&&!h){let n=I.now(),a=e=>{let s=i.signal.aborted;if(s||e===!0||I.now()-n>f)return Vt(a),o.delete(r),s||y.onComplete?.(t,{success:!1}),!0};o.set(r,{count:m,event:e,handlers:y,expire:a}),z.update(a,!0)}else y.onComplete?.(t,{success:n&&_})}},D=e=>{E(e,r===window||r===document||n.useGlobalTarget||Rl(r,e.target))},ee=e=>{E(e,!1)},te=t=>{Pc(t)&&((l||!_)&&ql(e,t,Kl)||a>1&&pl())&&ee(t)};window.addEventListener(`pointerup`,D,T),window.addEventListener(`pointercancel`,ee,T),(g||a>1)&&window.addEventListener(`pointermove`,te,T),g&&(z.update(w,!0),r.addEventListener(`contextmenu`,Jl,{...i,passive:!1}))};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,s,i),Fa(e)&&(e.addEventListener(`focus`,()=>Hl(e,i),i),!ll(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var Xl=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},Zl=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),Ql=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function $l(e,t,n,r){kc(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Zl.has(n)?n:Va(n),t.attrs[n])}function eu(e,t,n){let r=jc(e,t,n);for(let n in e)if(n!==`children`&&(H(e[n])||H(t[n]))){let t=hr.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var tu=class extends Oc{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=ds}getBaseTargetFromProps(e,t){return gr.has(t)?super.getBaseTargetFromProps(e,t)??fr(t):e[t]}getDefaultValue(e){return gr.has(e)?this.latestValues[e]??fr(e):void 0}readValueFromInstance(e,t){if(gr.has(t)){let e=Zn(t);return e&&e.default||0}if(Ka.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Zl.has(t)?t:Va(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return eu(e,t,n)}build(e,t,n){qa(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){$l(e,t,n,r)}mount(e){this.isSVGTag=Ql(e.tagName),super.mount(e)}};function nu(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;re?.out===!0?e:e?.out;function au(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>Ta(e,t,n))),n=su(),r=!0,i=!1;function a(a){let{props:o,parent:s,manuallyAnimateOnMount:c}=e,{initial:l}=o,u=r||i,d=[],f=(t=l)=>typeof t!=`boolean`&&ua(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom)||void 0,p=new Map,m={},h=1/0,g=e;do g=g.props.inherit!==!1&&g.parent;while(g&&!g.isControllingVariants);let _=u&&iu(f(l??(g&&g.props.initial))?.transition);if(ru.forEach((t,r)=>{let i=n[t],l=o[t],f=g&&g.props[t],v=l===void 0?mc(f)||f===!1?f:void 0:l,y=mc(v),b=t===a?i.isActive:null,x=y&&l===void 0&&!(u&&c);if(i.protectedKeys={...m},!i.isActive&&b===null||!v&&!i.prevProp||pc(v)||typeof v==`boolean`)return;if(b===!1&&(h=r),t===`exit`&&i.isActive&&b!==!0){m={...m,...i.prevResolvedValues};return}let S=ou(i.prevProp,v),C=S||y&&(b&&!x||r>h),w=!1,T=Array.isArray(v)?v:[v],E={},D;if(b!==!1)for(let n of T){let{transition:r,transitionEnd:i,...a}=ua(e,n,da(e,t))||{};E={...E,...a,...i},D=iu(r)||D}let{prevResolvedValues:ee}=i;for(let t in{...ee,...E}){if(t in m)continue;let n=E[t],r=ee[t],a=Array.isArray(n)&&Array.isArray(r)?!nu(n,r)||S:n!==r,o;if(a&&n==null)p.has(t)||p.set(t,i.prevOut);else if(a||n!==void 0&&p.has(t)){C=!0,o=p.get(t)||_,p.delete(t)&&(w=!0),i.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)}else i.protectedKeys[t]=!0;i.out[t]=o}if(i.prevProp=v,i.prevResolvedValues=E,i.prevOut=D,i.isActive&&(m={...m,...E}),C&&(!(x&&S)||w))for(let n of T){let r={type:t};if(typeof n==`string`&&u&&c&&s?.enteringChildren){let t=ua(s,n)?.transition?.delayChildren;r.delay=Wi(s.enteringChildren,e,t)}d.push({animation:n,options:r})}}),p.size){let t={},n=f(),r=n?.transition;p.forEach((i,a)=>{i&&(r={...r||e.getDefaultTransition(),[a]:i});let s=e.getValue(a);s&&(s.liveStyle=!0);let c=n&&!Array.isArray(l)?n[a]:void 0,u=e.getBaseTargetFromProps(o,a);t[a]=(c===void 0?u!==void 0&&!H(u)?u:e.initialValues[a]===void 0?e.baseTarget[a]:void 0:c)??null}),r&&(t.transition=r),d.push({animation:t})}let v=u&&e.blockInitialAnimation||r&&!c&&(o.initial===!1||o.initial===o.animate);return r=i=!1,!v&&d.length?t(d):Promise.resolve()}function o(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:a,setActive:o,setAnimateFunction:n=>{t=n(e)},getState:()=>n,reset:()=>{n=su(),i=!0}}}function ou(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!nu(t,e):!1}function su(){let e={};for(let t of hc)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{},out:{}};return e}var cu=(0,v.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function lu(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function uu(...e){return t=>{let n=!1,r=e.map(e=>{let r=lu(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t{let{width:t,height:n}=e?.getBoundingClientRect()||{};return[t/e?.offsetWidth||1,n/e?.offsetHeight||1]},pu=e=>{let{left:t,top:n}=e.getBoundingClientRect(),r=e;for(;r=r.parentElement||r.parentNode?.host;){let{scrollLeft:e,scrollTop:i}=r;if(e||i){let[a,o]=fu(r);t+=e*a,n+=i*o}if(getComputedStyle(r).position===`fixed`)break}let[i,a]=fu(e.offsetParent);return[t/i,n/a]},mu=class extends v.Component{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(Fa(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Fa(e)&&e.offsetWidth||0,r=Fa(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction,a.point=pu(t)}return null}componentDidUpdate(){}render(){return this.props.children}};function hu({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a,popNode:o}){let s=(0,v.useId)(),c=(0,v.useRef)(null),l=(0,v.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=(0,v.useContext)(cu),d=du(c,a===!1?void 0:e.props?.ref??e?.ref),f=()=>c.current||o?.current?.current,p=e=>{let{width:t,height:i,top:a,left:o,right:c,bottom:u,direction:d}=l.current,f=d===`rtl`,p=n===`left`?f?`right:${c}`:`left:${o}`:f?`left:${o}`:`right:${c}`,m=r===`bottom`?`bottom:${u}`:`top:${a}`;e?.insertRule(`[data-motion-pop-id="${s}"]{position:absolute!important;width:${t}px!important;height:${i}px!important;${p}px!important;${m}px!important}`)};return(0,v.useInsertionEffect)(()=>{let{width:e,height:n}=l.current,r=f();if(t||a===!1||!r||!e||!n)return;r.dataset.motionPopId=s;let o=r.ownerDocument,c=o.createElement(`style`);u&&(c.nonce=u);let d=i??o.head;d.appendChild(c),p(c.sheet);let m=0,h=0;return yo.setup(()=>{let[e,t]=pu(r);m=l.current.point[0]-e,h=l.current.point[1]-t}),yo.read(()=>{let{sheet:e}=c;if(!e||!m&&!h)return;let t=l.current;t.left+=m,t.right-=m,t.top+=h,t.bottom-=h,e.deleteRule(0),p(e)}),()=>{r.removeAttribute(`data-motion-pop-id`),d.contains(c)&&d.removeChild(c)}},[t]),(0,K.jsx)(mu,{isPresent:t,getElement:f,sizeRef:l,pop:a,children:a===!1?e:v.cloneElement(e,{ref:d})})}var gu=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=b(_u),d=(0,v.useId)(),f=(0,v.useRef)(),p=(0,v.useRef)(n),m=(0,v.useRef)(r);x(()=>{p.current=n,m.current=r});let h=!0,g=(0,v.useMemo)(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:(e,t)=>(u.set(e,!1),t&&t.parent?.presenceContext?.id!==d&&(f.current=t),()=>{u.delete(e),!p.current&&!u.size&&m.current?.()})}),[n,u,r]);return a&&h&&(g={...g}),(0,v.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),v.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,K.jsx)(hu,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,popNode:f,children:e}),(0,K.jsx)(S.Provider,{value:g,children:e})};function _u(){return new Map}function vu(e=!0){let t=(0,v.useContext)(S);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,v.useId)();(0,v.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,v.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var yu=e=>e.key||``;function bu(e){let t=[];return v.Children.forEach(e,e=>{(0,v.isValidElement)(e)&&t.push(e)}),t}var xu=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=vu(o),f=(0,v.useMemo)(()=>bu(e),[e]),p=o&&!u?[]:f.map(yu),m=(0,v.useRef)(!0),h=b(()=>new Map),g=(0,v.useRef)(new Set),[_,S]=(0,v.useState)(f),[C,w]=(0,v.useState)(f);x(()=>{o&&!u&&!C.length&&d?.()},[u,o,C.length,d]);let T=(0,v.useRef)();(0,v.useEffect)(()=>()=>{let e=T.current;T.current=void 0,e?.()},[C]),x(()=>{m.current=!1;for(let e=0;eh.get(yu(e)))?e=f:a===`wait`&&(e=E),w(bu(e)),S(f),null}let{forceRender:D}=(0,v.useContext)(y);return(0,K.jsx)(K.Fragment,{children:C.map(e=>{let _=yu(e),v=o&&!u?!1:f===C||p.includes(_);return(0,K.jsx)(gu,{isPresent:v,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:v?void 0:()=>{if(g.current.has(_))return;if(h.has(_))g.current.add(_),h.set(_,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(D?.(),S([]),o&&d?.(),T.current=r)},anchorX:s,anchorY:c,children:e},_)})})},Su=(0,v.createContext)({strict:!1}),Cu={animation:[`variants`,...hc],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},wu=!1;function Tu(){if(wu)return;let e={};for(let t in Cu)e[t]={isEnabled:e=>Cu[t].some(t=>!!e[t])};Tc(e),wu=!0}function Eu(){return Tu(),Ec()}function Du(e){let t=Eu();for(let n in e)t[n]={...t[n],...e[n]};Tc(t)}var Ou=(0,v.createContext)({});function ku(e,t){if(_c(e)){let{initial:t,animate:n}=e;return{initial:t===!1||mc(t)?t:void 0,animate:mc(n)?n:void 0}}return e.inherit===!1?{}:t}function Au(e){let{initial:t,animate:n}=ku(e,(0,v.useContext)(Ou));return(0,v.useMemo)(()=>({initial:t,animate:n}),[ju(t),ju(n)])}function ju(e){return Array.isArray(e)?e.join(` `):e}var Mu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Nu(e,t,n){for(let r in t)!H(t[r])&&!Ac(r,n)&&(e[r]=t[r])}function Pu({transformTemplate:e},t){return(0,v.useMemo)(()=>{let n=Mu();return Ha(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Fu(e,t){let n=e.style||{},r={};return Nu(r,n,e),Object.assign(r,Pu(e,t)),r}function Iu(e,t){let n={},r=Fu(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Lu=()=>({...Mu(),attrs:{}});function Ru(e,t,n,r){let i=(0,v.useMemo)(()=>{let n=Lu();return qa(n,t,Ql(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};return Nu(t,e.style,e),{...i,style:{...t,...i.style}}}return i}var zu=new Set(`animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.tap.propagate.ignoreStrict.viewport.pinch`.split(`.`));function Bu(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||zu.has(e)}function Vu(e,t){return e.startsWith(`on`)?!Bu(e):t?.(e)??!Bu(e)}function Hu(e,t,n,r){let i={};for(let a in e)a===`values`&&typeof e.values==`object`||H(e[a])||(a===`fx`?e.fx&&(i.fx=``):(Vu(a,r)||n===!0&&Bu(a)||!t&&!Bu(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var Uu=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Wu(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Uu.indexOf(e)>-1||/[A-Z]/u.test(e))}function Gu(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??Wu(e)?Ru:Iu)(t,r,i,e),l=Hu(t,typeof e==`string`,a,s),u=e===v.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,v.useMemo)(()=>H(d)?d.get():d,[d]);return(0,v.createElement)(e,{...u,children:f})}function Ku({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:qu(n,r,i,e),renderState:t()}}function qu(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Eo(a[e]);let{initial:o,animate:s}=e,c=_c(e),l=vc(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!pc(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n(t,n)=>{let r=(0,v.useContext)(Ou),i=(0,v.useContext)(S),a=()=>Ku(e,t,r,i);return n?a():b(a)},Yu=Ju({scrapeMotionValuesFromProps:jc,createRenderState:Mu}),Xu=Ju({scrapeMotionValuesFromProps:eu,createRenderState:Lu}),Zu=Symbol.for(`motionComponentSymbol`);function Qu(e,t,n){let r=(0,v.useRef)(n);(0,v.useInsertionEffect)(()=>{r.current=n});let i=(0,v.useRef)(null);return(0,v.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var $u=(0,v.createContext)({});function ed(e,t,n,r,i,a){let{visualElement:o}=(0,v.useContext)(Ou),s=(0,v.useContext)(Su),c=(0,v.useContext)(S),l=(0,v.useContext)(cu),u=l.reducedMotion,d=l.skipAnimations,f=(0,v.useRef)(null),p=(0,v.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,v.useContext)($u);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&i.create(m,n,h),(0,v.useInsertionEffect)(()=>{m&&m.props!==n&&m.update(n,c)});let g=n[ya],_=(0,v.useRef)(!!g&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return x(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),x(()=>{p.current=!0,m&&(window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),_.current&&m.animationState&&m.animationState.animateChanges())}),(0,v.useEffect)(()=>{m&&(!_.current&&m.animationState&&m.animationState.animateChanges(),_.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),!1),m.enteringChildren=void 0)}),m}function td(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Du(r);let a=n?n===`svg`:Wu(e),o=a?Xu:Yu;function s(n,s){let c,l=nd(n);b(()=>!!uc.current?.sharedNodes.get(l)?.lead&&n.initial)&&(n={...n,initial:!1});let u={...(0,v.useContext)(cu),...n,layoutId:l},{isStatic:d,isValidProp:f}=u,p=Au(n),m=o(n,d);if(!d&&typeof window<`u`){rd(u,r);let t=id(u);p.visualElement=ed(e,m,u,i,t.ProjectionNode,a),(t.isEnabled||p.visualElement?.projection?.options.layoutId)&&(c=t.MeasureLayout)}return(0,K.jsxs)(Ou.Provider,{value:p,children:[c&&p.visualElement?(0,K.jsx)(c,{visualElement:p.visualElement,...u}):null,Gu(e,n,Qu(m,p.visualElement,s),m,d,t,a,f)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,v.forwardRef)(s);return c[Zu]=e,c}function nd({layoutId:e}){let t=(0,v.useContext)(y).id;return t&&e!==void 0?t+`-`+e:e}function rd(e,t){(0,v.useContext)(Su).strict}function id(e){let{drag:t,layout:n}=Eu();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:r.MeasureLayout,isEnabled:t?.isEnabled(e)||n?.isEnabled(e),ProjectionNode:r.ProjectionNode}}function ad(e,t){if(typeof Proxy>`u`)return td;let n=new Map,r=(n,r)=>td(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,td(a,void 0,e,t)),n.get(a))})}var od=(e,t)=>t.isSVG??Wu(e)?new tu(t):new Nc(t,{allowProjection:e!==v.Fragment}),sd=class extends Xl{constructor(e){super(e),e.animationState||=au(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();pc(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){this.node.getProps().animate!==this.node.prevProps?.animate&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},cd=0,ld={animation:{Feature:sd},exit:{Feature:class extends Xl{constructor(){super(...arguments),this.id=cd++}update(){let{presenceContext:e,animationState:t}=this.node;if(!e||!t)return;let{isPresent:n,onExitComplete:r}=e;if(n===!this.exit)return;if(n){if(this.exit===!0){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:n,...r}=ua(this.node,e)||{};for(let e in r)this.node.getValue(e)?.jump(r[e])}this.node.blockInitialAnimation=!1,t.reset(),t.animateChanges()}else t.setActive(`exit`,!1);this.exit=void 0;return}let i=this.exit=t.setActive(`exit`,!0);r&&i.then(()=>{this.exit===i&&(this.exit=!0,r(this.id))})}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id,this.node)),this.update()}unmount(){}}}},ud=class extends Xl{constructor(e){super(e),this.removeGroupControls=O,this.removeListeners=O,this.controls=new Ol(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||O}update(){let{dragControls:e,drag:t}=this.node.getProps(),{dragControls:n,drag:r}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls))),r&&!t&&this.controls.stop(void 0,void 0,r)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},dd=e=>(t,n)=>{e&&z.update(()=>e(t,n),!1,!0)},fd=class extends Xl{constructor(){super(...arguments),this.removePointerDownListener=O}onPointerDown(e){this.session=new el(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:this.node.current?.ownerDocument.defaultView})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:dd(e),onStart:dd(t),onMove:dd(n),onEnd:(e,t)=>{delete this.session,r&&z.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Lc(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session?.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session?.end()}},pd=!1,md=({layout:e,layoutDependency:t,layoutAnchor:n})=>({layout:e,layoutDependency:t,layoutAnchor:n,animationType:typeof e==`string`?e:`both`}),hd=(e,t)=>{let{snapshot:n}=e,r=e.getStack();r?.remove(e);let i=r?.lead;if(r?.prevLead===e&&i.resumeFrom===e&&(i.resumeFrom=i.currentAnimation=e.resumingFrom=void 0),e.options.layoutId=t,!t)e.needsShow=!0;else return e.root.registerSharedNode(t,e),()=>{let{resumeFrom:t}=e;t?.isPresent!==!1&&e.getStack().members.includes(t)&&(t.hide(),e.resumeFrom=void 0,e.snapshot=n)}},gd=class extends v.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group?.add(i),r&&n?.register?.(i),pd&&i.root.didUpdate(),i.options.layoutId!==r&&hd(i,r)?.(),i.addEventListener(`animationComplete`,()=>this.safeToRemove()),i.setOptions({...i.options,...md(this.props),onExitComplete:()=>this.safeToRemove()})),Os.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,layoutId:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,this.takeOver=e.layoutId===n?void 0:(o.willUpdate(),hd(o,n)),o.setOptions({...o.options,...md(this.props)}),pd=!0,i||e.layoutDependency!==t||t===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||z.postRender(()=>{o.getStack()?.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(this.takeOver?.(),e.root.didUpdate(),yo.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;pd=!0,r&&(r.scheduleCheckAfterUnmount(),t.group?.remove(r),n?.deregister?.(r))}safeToRemove(){this.props.safeToRemove?.()}render(){return null}};function _d(e){let[t,n]=vu(),r=(0,v.useContext)(y);return(0,K.jsx)(gd,{...e,layoutGroup:r,switchLayoutGroup:(0,v.useContext)($u),isPresent:t,safeToRemove:n})}var vd={pan:{Feature:fd},drag:{Feature:ud,ProjectionNode:dc,MeasureLayout:_d}};function yd(e,t,n,r,i){let{props:a}=e,o=`while`+n;!i&&e.animationState&&a[o]&&e.animationState.setActive(o,r===`Start`);let s=a[`on`+n+r];s&&z.postRender(()=>s(t,Fc(t)))}var bd=class extends Xl{mount(){let{current:e}=this.node;e&&(this.unmount=Ll(e,(e,t)=>(yd(this.node,t,`Hover`,`Start`),e=>yd(this.node,e,`Hover`,`End`))))}unmount(){}},xd=class extends Xl{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=k(cc(this.node.current,`focus`,()=>this.onFocus()),cc(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Sd(e,t,n,r){e.current instanceof HTMLButtonElement&&e.current.disabled||yd(e,t,`Tap`,n,r)}var Cd=class extends Xl{constructor(){super(...arguments),this.options={}}mount(){let{current:e}=this.node;e&&(this.update(),this.unmount=Yl(e,(e,t)=>(Sd(this.node,t,`Start`),{onComplete:(e,{success:t})=>Sd(this.node,e,t?``:`Cancel`),onRepeat:()=>Sd(this.node,t,``,!0)}),this.options))}update(){let{options:e,node:t}=this,{globalTapTarget:n,propagate:r,tap:i}=t.props;for(let t in e)delete e[t];Object.assign(e,i,{useGlobalTarget:n,stopPropagation:r?.tap===!1})}unmount(){}},wd=new WeakMap,Td=new WeakMap,Ed=e=>{let t=wd.get(e.target);t&&t(e)},Dd=e=>{e.forEach(Ed)};function Od({root:e,...t}){let n=e||document;Td.has(n)||Td.set(n,{});let r=Td.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Dd,{root:e,...t})),r[i]}function kd(e,t,n){let r=Od(t);return wd.set(e,n),r.observe(e),()=>{wd.delete(e),r.unobserve(e)}}var Ad={some:0,all:1},jd=class extends Xl{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Ad[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=kd(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Md(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Md({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Nd=ad(Object.assign({},ld,{inView:{Feature:jd},tap:{Feature:Cd},focus:{Feature:xd},hover:{Feature:bd}},vd,{layout:{ProjectionNode:dc,MeasureLayout:_d}}),od),Pd=e=>(e.match(/\d+[xX]\d+|[A-Z]?[a-z]+|[A-Z]|\d+/g)??[]).join(`-`).toLowerCase();function Fd(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Pd(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Id=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},Ld=e=>{let t=Id(e);return t.charAt(0).toUpperCase()+t.slice(1)},Rd=(...e)=>{let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of n.split(/\s+/))e&&t.add(e);return[...t].join(` `)},zd={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function Bd(e){return e!=null}function Vd(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??zd.width,a=e.size??e.height??zd.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Rd(...c):Rd(`lucide`,...s,...c),u=t.strokeWidth??zd[`stroke-width`];if(t.absoluteStrokeWidth){let n=Number(u)*Number(e.size??e.width??zd.width)/Number(t.size??t.width??zd.width);Number.isFinite(n)&&(u=n)}return[`svg`,{...Object.entries(zd).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Bd(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Bd(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Bd(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function Hd(e,t={}){return Vd(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var Ud=e=>{if(typeof e!=`object`||!e)return!1;for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&(t.startsWith(`aria-`)||t===`role`||t===`title`)&&e[t]!=null)return!0;return!1},Wd=(0,v.createContext)({}),Gd=()=>(0,v.useContext)(Wd),Kd=(0,v.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:y=``}=Gd()??{},b=!!c||Ud(d),[x,S,C=[]]=Hd(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:Rd(y,s),hasA11yProp:b,attributes:d});return(0,v.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,v.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function q(e,t=[],n=[]){let r=typeof e==`string`?Fd(e,t,n):e,i=(0,v.forwardRef)(({className:e,...t},n)=>(0,v.createElement)(Kd,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Ld(r.name)),i}var qd={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};qd.node;var Jd=q(qd),Yd={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};Yd.node;var Xd=q(Yd),Zd={name:`award`,size:24,node:[[`path`,{d:`m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526`,key:`1yiouv`}],[`circle`,{cx:`12`,cy:`8`,r:`6`,key:`1vp47v`}]]};Zd.node;var Qd=q(Zd),$d={name:`badge-check`,size:24,node:[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`verified`]};$d.node;var ef=q($d),tf={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};tf.node;var nf=q(tf),rf={name:`bot`,size:24,node:[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]};rf.node;var af=q(rf),of={name:`brain-circuit`,size:24,node:[[`path`,{d:`M12 13h4`,key:`1ku699`}],[`path`,{d:`M12 18h6a2 2 0 012 2v1`,key:`6s3bw4`}],[`path`,{d:`M12 8h8`,key:`1lhi5i`}],[`path`,{d:`M12 9a4.17 4.17 0 01-3 4`,key:`13l7kh`}],[`path`,{d:`M16 8V5a2 2 0 012-2`,key:`gais5y`}],[`path`,{d:`M6 18a4 4 0 01-2-7.465`,key:`1y2m15`}],[`path`,{d:`M6.004 5.125a4 4 0 00-2.526 5.77`,key:`3cw1ss`}],[`path`,{d:`M6.294 6.294A3 3 0 1112 5v13a4 4 0 11-7.967-.518`,key:`m2z1wm`}],[`circle`,{cx:`16`,cy:`13`,r:`0.5`,fill:`currentColor`,key:`9zzywh`}],[`circle`,{cx:`18`,cy:`3`,r:`0.5`,fill:`currentColor`,key:`i2xui6`}],[`circle`,{cx:`20`,cy:`21`,r:`0.5`,fill:`currentColor`,key:`1dobdp`}],[`circle`,{cx:`20`,cy:`8`,r:`0.5`,fill:`currentColor`,key:`r9nqlq`}]]};of.node;var sf=q(of),cf={name:`chart-column`,size:24,node:[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]],aliases:[`bar-chart-3`]};cf.node;var lf=q(cf),uf={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};uf.node;var df=q(uf),ff={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};ff.node;var pf=q(ff),mf={name:`circle-x`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-circle`]};mf.node;var hf=q(mf),gf={name:`compass`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]};gf.node;var _f=q(gf),vf={name:`cpu`,size:24,node:[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]};vf.node;var yf=q(vf),bf={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};bf.node;var xf=q(bf),Sf={name:`eye-off`,size:24,node:[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]};Sf.node;var Cf=q(Sf),wf={name:`eye`,size:24,node:[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};wf.node;var Tf=q(wf),Ef={name:`flame`,size:24,node:[[`path`,{d:`M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4`,key:`1slcih`}]]};Ef.node;var Df=q(Ef),Of={name:`gauge`,size:24,node:[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]};Of.node;var kf=q(Of),Af={name:`git-commit-horizontal`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`line`,{x1:`3`,x2:`9`,y1:`12`,y2:`12`,key:`1dyftd`}],[`line`,{x1:`15`,x2:`21`,y1:`12`,y2:`12`,key:`oup4p8`}]],aliases:[`git-commit`]};Af.node;var jf=q(Af),Mf={name:`graduation-cap`,size:24,node:[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]};Mf.node;var Nf=q(Mf),Pf={name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]};Pf.node;var Ff=q(Pf),If={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};If.node;var Lf=q(If),Rf={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};Rf.node;var zf=q(Rf),Bf={name:`message-square-quote`,size:24,node:[[`path`,{d:`M14 14a2 2 0 0 0 2-2V8h-2`,key:`1r06pg`}],[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M8 14a2 2 0 0 0 2-2V8H8`,key:`1jzu5j`}]]};Bf.node;var Vf=q(Bf),Hf={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};Hf.node;var Uf=q(Hf),Wf={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};Wf.node;var Gf=q(Wf),Kf={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Kf.node;var qf=q(Kf),Jf={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};Jf.node;var Yf=q(Jf),Xf={name:`skip-forward`,size:24,node:[[`path`,{d:`M21 4v16`,key:`7j8fe9`}],[`path`,{d:`M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z`,key:`zs4d6`}]]};Xf.node;var Zf=q(Xf),Qf={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};Qf.node;var $f=q(Qf),ep={name:`swords`,size:24,node:[[`path`,{d:`m13 19 6-6`,key:`gj6q8g`}],[`path`,{d:`M14.5 17.5 3.586 6.586A2 2 0 013 5.172V3h2.172a2 2 0 011.414.586L17.5 14.5`,key:`uwfxh8`}],[`path`,{d:`m14.828 6.172 2.586-2.586A2 2 0 0118.828 3H21v2.172a2 2 0 01-.586 1.414l-2.586 2.586`,key:`1f17hx`}],[`path`,{d:`m16 16 4 4`,key:`up5ibb`}],[`path`,{d:`m19 21 2-2`,key:`1phfkn`}],[`path`,{d:`m5 14 4 4`,key:`1gk0qx`}],[`path`,{d:`m5 21-2-2`,key:`1kw20b`}],[`path`,{d:`M7.5 16.5 4 20`,key:`14nozp`}]]};ep.node;var tp=q(ep),np={name:`target`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]};np.node;var rp=q(np),ip={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};ip.node;var ap=q(ip),op={name:`trending-down`,size:24,node:[[`path`,{d:`M16 17h6v-6`,key:`t6n2it`}],[`path`,{d:`m22 17-8.5-8.5-5 5L2 7`,key:`x473p`}]]};op.node;var sp=q(op),cp={name:`trending-up`,size:24,node:[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]};cp.node;var lp=q(cp),up={name:`triangle-exclamation-point`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`,`triangle-alert`]};up.node;var dp=q(up),fp={name:`trophy`,size:24,node:[[`path`,{d:`M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2`,key:`pwuv1l`}],[`path`,{d:`M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2`,key:`1y54w1`}],[`path`,{d:`M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3`,key:`e30mpu`}],[`path`,{d:`M4 22h16`,key:`57wxv0`}],[`path`,{d:`M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z`,key:`1mhfuq`}],[`path`,{d:`M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3`,key:`i0yafy`}]]};fp.node;var pp=q(fp),mp=c(h(),1);async function hp(e,t){let n=await fetch(e,{...t,headers:{"content-type":`application/json`,...t?.headers||{}}}),r=await n.text(),i=null;try{i=r?JSON.parse(r):null}catch{throw Error(`服务端返回了无法解析的数据`)}if(!n.ok)throw Error(i?.error||`请求失败(${n.status})`);return i}var gp=(e,t)=>hp(e,{method:`POST`,body:JSON.stringify(t??{})}),_p={bootstrap:()=>hp(`/api/bootstrap`),library:e=>hp(`/api/library${e?`?motif=${encodeURIComponent(e)}`:``}`),startChallenge:()=>gp(`/api/match/start`,{mode:`challenge`}),startPractice:e=>gp(`/api/match/start`,{mode:`practice`,levelId:e}),quiz:(e,t)=>gp(`/api/match/quiz`,{matchId:e,motif:t}),state:e=>hp(`/api/match/state?matchId=${encodeURIComponent(e)}`),decide:(e,t)=>gp(`/api/match/decide`,{matchId:e,weight:t}),advance:(e,t)=>gp(`/api/match/advance`,{matchId:e,steps:t}),settle:e=>gp(`/api/match/settle`,{matchId:e}),summary:e=>hp(`/api/match/summary?matchId=${encodeURIComponent(e)}`),review:(e,t)=>hp(`/api/review?matchId=${encodeURIComponent(e)}${t===void 0?``:`&levelIndex=${t}`}`),stats:()=>hp(`/api/stats`),removeWrongBook:e=>gp(`/api/wrongbook/remove`,{levelId:e}),clearWrongBook:()=>gp(`/api/wrongbook/clear`),fetchCustom:(e,t)=>gp(`/api/custom/fetch`,{code:e,name:t})};function vp(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),Sp=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Cp=`-`,wp=[],Tp=`arbitrary..`,Ep=e=>{let t=kp(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Op(e);let n=e.split(Cp);return Dp(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?bp(i,t):t:i||wp}return n[e]||wp}}},Dp=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Dp(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Cp):e.slice(t).join(Cp),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Tp+r:void 0})(),kp=e=>{let{theme:t,classGroups:n}=e;return Ap(n,t)},Ap=(e,t)=>{let n=Sp();for(let r in e)jp(e[r],n,r,t);return n},jp=(e,t,n,r)=>{let i=e.length;for(let a=0;a{typeof e==`string`?Np(e,t,n):typeof e==`function`?Pp(e,t,n,r):Fp(e,t,n,r)},Np=(e,t,n)=>{let r=e===``?t:Ip(t,e);r.classGroupId=n},Pp=(e,t,n,r)=>{Lp(e)?jp(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(xp(n,e)))},Fp=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(Cp),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,Rp=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},zp=`!`,Bp=`:`,Vp=[],Hp=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Up=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i-u:void 0;return Hp(t,l,c,d)};if(t){let e=t+Bp,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Hp(Vp,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Wp=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Gp=e=>({cache:Rp(e.cacheSize),parseClassName:Up(e),sortModifiers:Wp(e),postfixLookupClassGroupIds:Kp(e),...Ep(e)}),Kp=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(qp),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h||(g=r(p),!g)){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+zp:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e0?` `+l:l)}return l},Yp=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=Gp(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Jp(e,n);return i(e,a),a};return a=o,(...e)=>a(Yp(...e))},Qp=[],$p=e=>{let t=t=>t[e]||Qp;return t.isThemeGetter=!0,t.themeKey=e,t},em=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,tm=/^\((?:(\w[\w-]*):)?(.+)\)$/i,nm=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,rm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,im=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|Q|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^--spacing\(.+\)|^0$/,am=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark|contrast-color|device-cmyk|--alpha)\(.+\)$/i,om=/^(?:_*[+-]?(?:\d|\.\d)|[\w-]+\(|_*(?:inherit|initial|revert(?:-layer)?|unset)_*$)/i,sm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lm=e=>nm.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),um=e=>!!e&&Number.isInteger(Number(e)),dm=e=>e.endsWith(`%`)&&J(e.slice(0,-1)),fm=e=>rm.test(e),pm=()=>!0,mm=e=>im.test(e)&&!am.test(e),hm=e=>om.test(e)&&!am.test(e),gm=()=>!1,_m=e=>sm.test(e),vm=e=>cm.test(e),ym=e=>!Y(e)&&!X(e),bm=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),xm=e=>Rm(e,Hm,gm),Y=e=>em.test(e),Sm=e=>Rm(e,Um,mm),Cm=e=>Rm(e,Wm,hm),wm=e=>Rm(e,Gm,J),Tm=e=>Rm(e,qm,pm),Em=e=>Rm(e,Km,gm),Dm=e=>Rm(e,Bm,gm),Om=e=>Rm(e,Vm,vm),km=e=>Rm(e,Jm,_m),X=e=>tm.test(e),Am=e=>zm(e,Um),jm=e=>zm(e,Wm,!0),Mm=e=>zm(e,Km),Nm=e=>zm(e,Bm),Pm=e=>zm(e,Hm),Fm=e=>zm(e,Vm),Im=e=>zm(e,Jm,!0),Lm=e=>zm(e,qm,!0),Rm=(e,t,n)=>{let r=em.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},zm=(e,t,n=!1)=>{let r=tm.exec(e);return r?r[1]?t(r[1]):n:!1},Bm=e=>e===`position`||e===`percentage`,Vm=e=>e===`image`||e===`url`,Hm=e=>e===`length`||e===`size`||e===`bg-size`,Um=e=>e===`length`,Wm=e=>e!==`color`,Gm=e=>e===`number`,Km=e=>e===`family-name`,qm=e=>e===`number`||e===`weight`,Jm=e=>e===`shadow`,Ym=Zp(()=>{let e=$p(`color`),t=$p(`font`),n=$p(`text`),r=$p(`font-weight`),i=$p(`tracking`),a=$p(`leading`),o=$p(`breakpoint`),s=$p(`container`),c=$p(`spacing`),l=$p(`radius`),u=$p(`shadow`),d=$p(`inset-shadow`),f=$p(`text-shadow`),p=$p(`drop-shadow`),m=$p(`blur`),h=$p(`perspective`),g=$p(`aspect`),_=$p(`ease`),v=$p(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),X,Y],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[X,Y,c],T=()=>[lm,`full`,`auto`,...w()],E=()=>[um,`none`,`subgrid`,X,Y],D=()=>[`auto`,{span:[`full`,um,X,Y]},um,X,Y],ee=()=>[um,`auto`,X,Y],te=()=>[`auto`,`min`,`max`,`fr`,X,Y],ne=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],O=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],k=()=>[`auto`,...w()],re=()=>[lm,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],A=()=>[s,lm,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],j=()=>[lm,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],M=()=>[e,X,Y],ie=()=>[...b(),Nm,Dm,{position:[X,Y]}],ae=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],N=()=>[`auto`,`cover`,`contain`,Pm,xm,{size:[X,Y]}],oe=()=>[dm,Am,Sm],se=()=>[``,`none`,`full`,l,X,Y],P=()=>[``,J,Am,Sm],ce=()=>[`solid`,`dashed`,`dotted`,`double`],le=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ue=()=>[J,dm,jm,Cm],de=()=>[``,`none`,m,X,Y],fe=()=>[`none`,J,X,Y],pe=()=>[`none`,J,X,Y],me=()=>[J,X,Y],he=()=>[lm,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[fm],breakpoint:[fm],color:[pm],container:[fm],"drop-shadow":[fm],ease:[`in`,`out`,`in-out`],font:[ym],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[fm],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[fm],shadow:[fm],spacing:[`px`,J],text:[fm],"text-shadow":[fm],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,lm,Y,X,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,X,Y]}],"container-named":[bm],columns:[{columns:[J,`auto`,Y,X,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`],"not-sr":[`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[um,`auto`,X,Y]}],basis:[{basis:[lm,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[J,lm,`auto`,`initial`,`none`,X,Y]}],grow:[{grow:[``,J,X,Y]}],shrink:[{shrink:[``,J,X,Y]}],order:[{order:[um,`first`,`last`,`none`,X,Y]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ne(),`normal`]}],"justify-items":[{"justify-items":[...O(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...O()]}],"align-content":[{content:[`normal`,...ne()]}],"align-items":[{items:[...O(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...O(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...O(),`baseline`]}],"place-self":[{"place-self":[`auto`,...O()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:re()}],"inline-size":[{inline:[`auto`,...A()]}],"min-inline-size":[{"min-inline":[`auto`,...A()]}],"max-inline-size":[{"max-inline":[`none`,...A()]}],"block-size":[{block:[`auto`,...j()]}],"min-block-size":[{"min-block":[`auto`,...j()]}],"max-block-size":[{"max-block":[`none`,...j()]}],w:[{w:[s,`screen`,...re()]}],"min-w":[{"min-w":[s,`screen`,`none`,...re()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...re()]}],h:[{h:[`screen`,`lh`,...re()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...re()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...re()]}],"font-size":[{text:[`base`,n,Am,Sm]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Lm,Tm]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,dm,Y]}],"font-family":[{font:[Mm,Em,t]}],"font-features":[{"font-features":[Y]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,X,Y]}],"line-clamp":[{"line-clamp":[J,`none`,X,Y]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,X,Y]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,X,Y]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ce(),`wavy`]}],"text-decoration-thickness":[{decoration:[J,`from-font`,`auto`,Am,Nm,Sm]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[J,`auto`,X,Y]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[um,X,Y]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,X,Y]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,X,Y]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:N()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},um,X,Y],radial:[``,X,Y],conic:[``,um,X,Y]},Fm,Om]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:se()}],"rounded-s":[{"rounded-s":se()}],"rounded-e":[{"rounded-e":se()}],"rounded-t":[{"rounded-t":se()}],"rounded-r":[{"rounded-r":se()}],"rounded-b":[{"rounded-b":se()}],"rounded-l":[{"rounded-l":se()}],"rounded-ss":[{"rounded-ss":se()}],"rounded-se":[{"rounded-se":se()}],"rounded-ee":[{"rounded-ee":se()}],"rounded-es":[{"rounded-es":se()}],"rounded-tl":[{"rounded-tl":se()}],"rounded-tr":[{"rounded-tr":se()}],"rounded-br":[{"rounded-br":se()}],"rounded-bl":[{"rounded-bl":se()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":P()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ce(),`hidden`,`none`]}],"divide-style":[{divide:[...ce(),`hidden`,`none`]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...ce(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[J,X,Y]}],"outline-w":[{outline:[``,J,Am,Sm]}],"outline-color":[{outline:M()}],shadow:[{shadow:[``,`inner`,`none`,u,Im,km]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":[`none`,d,Im,km]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:P()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[J,Sm]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":[`none`,f,Im,km]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[J,X,Y]}],"mix-blend":[{"mix-blend":[...le(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[J]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[X,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{mask:[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[J]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,X,Y]}],filter:[{filter:[``,`none`,X,Y]}],blur:[{blur:de()}],brightness:[{brightness:[J,X,Y]}],contrast:[{contrast:[J,X,Y]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Im,km]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:[``,J,X,Y]}],"hue-rotate":[{"hue-rotate":[J,X,Y]}],invert:[{invert:[``,J,X,Y]}],saturate:[{saturate:[J,X,Y]}],sepia:[{sepia:[``,J,X,Y]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,X,Y]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[J,X,Y]}],"backdrop-contrast":[{"backdrop-contrast":[J,X,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,J,X,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,X,Y]}],"backdrop-invert":[{"backdrop-invert":[``,J,X,Y]}],"backdrop-opacity":[{"backdrop-opacity":[J,X,Y]}],"backdrop-saturate":[{"backdrop-saturate":[J,X,Y]}],"backdrop-sepia":[{"backdrop-sepia":[``,J,X,Y]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,X,Y]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[J,`initial`,X,Y]}],ease:[{ease:[`linear`,`initial`,_,X,Y]}],delay:[{delay:[J,X,Y]}],animate:[{animate:[`none`,v,X,Y]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,X,Y]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":[`scale-3d`],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[X,Y,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":[`translate-none`],zoom:[{zoom:[um,X,Y]}],accent:[{accent:M()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,X,Y]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,X,Y]}],fill:[{fill:[`none`,...M()]}],"stroke-w":[{stroke:[J,Am,Sm,wm]}],stroke:[{stroke:[`none`,...M()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],"place-content":[`align-content`,`justify-content`],"place-items":[`align-items`,`justify-items`],"place-self":[`align-self`,`justify-self`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],sr:`not-sr.position.size.w.h.p.px.py.ps.pe.pbs.pbe.pt.pr.pb.pl.m.mx.my.ms.me.mbs.mbe.mt.mr.mb.ml.overflow.overflow-x.overflow-y.whitespace`.split(`.`),"not-sr":[`sr`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],"mask-image-x-from-pos":[`mask-image-r-from-pos`,`mask-image-l-from-pos`],"mask-image-x-to-pos":[`mask-image-r-to-pos`,`mask-image-l-to-pos`],"mask-image-x-from-color":[`mask-image-r-from-color`,`mask-image-l-from-color`],"mask-image-x-to-color":[`mask-image-r-to-color`,`mask-image-l-to-color`],"mask-image-y-from-pos":[`mask-image-t-from-pos`,`mask-image-b-from-pos`],"mask-image-y-to-pos":[`mask-image-t-to-pos`,`mask-image-b-to-pos`],"mask-image-y-from-color":[`mask-image-t-from-color`,`mask-image-b-from-color`],"mask-image-y-to-color":[`mask-image-t-to-color`,`mask-image-b-to-color`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}}),Xm=Object.defineProperty,Zm=(e,t)=>Xm(e,`name`,{value:t,configurable:!0}),Qm=!!(typeof window<`u`&&window.document&&window.document.createElement);function $m(e,t,{checkForDefaultPrevented:n=!0}={}){return Zm(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Zm($m,`composeEventHandlers`);function eh(e){if(!Qm)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Zm(eh,`getOwnerWindow`);function th(e){if(!Qm)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Zm(th,`getOwnerDocument`);function nh(e,t=!1){let{activeElement:n}=th(e);if(!n?.nodeName)return null;if(rh(n)&&n.contentDocument)return nh(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=th(n).getElementById(e);if(t)return t}}return n}Zm(nh,`getActiveElement`);function rh(e){return e.tagName===`IFRAME`}Zm(rh,`isFrame`);var ih=Object.defineProperty,ah=(e,t)=>ih(e,`name`,{value:t,configurable:!0});function oh(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}ah(oh,`setRef`);function sh(...e){return t=>{let n=!1,r=e.map(e=>{let r=oh(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;tlh(e,`name`,{value:t,configurable:!0});function dh(e,t){let n=v.createContext(t);n.displayName=e+`Context`;let r=uh(e=>{let{children:t,...r}=e,i=v.useMemo(()=>r,Object.values(r));return(0,K.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=v.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return uh(i,`useContext`),[r,i]}uh(dh,`createContext`);function fh(e,t=[]){let n=[];function r(t,r){let i=v.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=uh(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=v.useMemo(()=>o,Object.values(o));return(0,K.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=v.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return uh(s,`useContext`),[o,s]}uh(r,`createContext`);let i=uh(()=>{let t=n.map(e=>v.createContext(e));return uh(function(n){let r=n?.[e]||t;return v.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,ph(i,...t)]}uh(fh,`createContextScope`);function ph(...e){let t=e[0];if(e.length===1)return t;let n=uh(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return uh(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}uh(ph,`composeContextScopes`);var mh=c(m(),1),hh=Object.defineProperty,gh=(e,t)=>hh(e,`name`,{value:t,configurable:!0});function _h(e){let t=v.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=Dh(r),v.Children.forEach(r,e=>{if(Ch(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;Th(n)&&typeof jh==`function`;)n=jh(n._payload);a=bh(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=v.cloneElement(a,void 0,s):!o&&v.Children.count(r)===1&&v.isValidElement(r)&&(a=r);let c=a?Sh(a):void 0,l=ch(n,c);if(!a){if(r||r===0)throw Error(o?Ah(e):kh(e));return r}let u=xh(i,a.props??{});return a.type!==v.Fragment&&(u.ref=n?l:c),v.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}gh(_h,`createSlot`);var vh=Symbol.for(`radix.slottable`);function yh(e){let t=gh(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=vh,t}gh(yh,`createSlottable`);var bh=gh((e,t)=>`child`in e.props?v.isValidElement(t)?v.cloneElement(t,void 0,e.props.children(t.props.children)):null:v.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function xh(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=Oh(a,i))}return{...e,...n}}gh(xh,`mergeProps`);function Sh(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}gh(Sh,`getElementRef`);function Ch(e){return v.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===vh}gh(Ch,`isSlottable`);var wh=Symbol.for(`react.lazy`);function Th(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===wh&&`_payload`in e&&Eh(e._payload)}gh(Th,`isLazyComponent`);function Eh(e){return typeof e==`object`&&!!e&&`then`in e}gh(Eh,`isPromiseLike`);function Dh(e){let t=e;for(;Th(t)&&typeof jh==`function`;)t=jh(t._payload);return t}gh(Dh,`useUnwrappedLazy`);function Oh(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}gh(Oh,`concatAriaDescribedby`);var kh=gh(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Ah=gh(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),jh=v.use,Mh=Object.defineProperty,Nh=(e,t)=>Mh(e,`name`,{value:t,configurable:!0}),Ph=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=_h(`Primitive.${t}`),r=v.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,K.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Fh(e,t){e&&mh.flushSync(()=>e.dispatchEvent(t))}Nh(Fh,`dispatchDiscreteCustomEvent`);var Ih=globalThis?.document?v.useLayoutEffect:()=>{},Lh=Object.defineProperty,Rh=(e,t)=>Lh(e,`name`,{value:t,configurable:!0}),zh=v.useInsertionEffect;function Bh(e){let t=v.useRef(e);return typeof zh==`function`?zh(()=>{t.current=e}):Ih(()=>{t.current=e}),v.useMemo(()=>((...e)=>t.current?.(...e)),[])}Rh(Bh,`useCallbackRef`);var Vh=Object.defineProperty,Hh=(e,t)=>Vh(e,`name`,{value:t,configurable:!0}),Uh=`dismissableLayer.update`,Wh=`dismissableLayer.pointerDownOutside`,Gh=`dismissableLayer.focusOutside`,Kh,qh=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Jh=v.forwardRef(Hh(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=v.useContext(qh),[d,f]=v.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=v.useState({}),h=ch(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=_?g.indexOf(_):-1,b=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,C=v.useRef(!1),w=Zh(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:v.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return S&&!t},[u.branches,S])}),T=Qh(e=>{if(r&&C.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),E=d?b===g.length-1:!1,D=Bh(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return v.useEffect(()=>{if(E)return p.addEventListener(`keydown`,D,{capture:!0}),()=>p.removeEventListener(`keydown`,D,{capture:!0})},[p,E,D]),v.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Kh=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),$h(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=Kh))}},[d,p,n,u]),v.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),$h())},[d,u]),v.useEffect(()=>{let e=Hh(()=>m({}),`handleUpdate`);return document.addEventListener(Uh,e),()=>document.removeEventListener(Uh,e)},[]),(0,K.jsx)(Ph.div,{...l,ref:h,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:$m(e.onFocusCapture,T.onFocusCapture),onBlurCapture:$m(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:$m(e.onPointerDownCapture,w.onPointerDownCapture)})},`DismissableLayer`));function Yh(){let e=v.useContext(qh),[t,n]=v.useState(null);return v.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Hh(Yh,`useDismissableLayerSurface`);var Xh=Hh(()=>!0,`IS_TRUE`);function Zh(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Xh}=t,s=Bh(e),c=v.useRef(!1),l=v.useRef(!1),u=v.useRef(new Map),d=v.useRef(()=>{});return v.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}Hh(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}Hh(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}Hh(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}Hh(p,`handleInteractionBubble`);let m=Hh(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||eg(Wh,s,p,{discrete:!0})};if(Hh(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:Hh(()=>c.current=!0,`onPointerDownCapture`)}}Hh(Zh,`usePointerDownOutside`);function Qh(e,t=globalThis?.document){let n=Bh(e),r=v.useRef(!1);return v.useEffect(()=>{let e=Hh(e=>{e.target&&!r.current&&eg(Gh,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:Hh(()=>r.current=!0,`onFocusCapture`),onBlurCapture:Hh(()=>r.current=!1,`onBlurCapture`)}}Hh(Qh,`useFocusOutside`);function $h(){let e=new CustomEvent(Uh);document.dispatchEvent(e)}Hh($h,`dispatchUpdate`);function eg(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Fh(i,a):i.dispatchEvent(a)}Hh(eg,`handleAndDispatchCustomEvent`);var tg=Object.defineProperty,ng=(e,t)=>tg(e,`name`,{value:t,configurable:!0}),rg=`focusScope.autoFocusOnMount`,ig=`focusScope.autoFocusOnUnmount`,ag={bubbles:!1,cancelable:!0},og=v.forwardRef(ng(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=v.useState(null),u=Bh(a),d=Bh(o),f=v.useRef(null),p=ch(t,l),m=v.useRef(i);v.useEffect(()=>{m.current=i});let h=v.useCallback(e=>e?c?.contains(e)?!0:!!m.current?.some(t=>t.contains(e)):!1,[c]),g=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let e=function(e){if(g.paused||!c)return;let t=e.target;h(t)?f.current=t:_g(f.current,{select:!0})},t=function(e){if(g.paused||!c)return;let t=e.relatedTarget;t!==null&&(h(t)||_g(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&_g(c)};ng(e,`handleFocusIn`),ng(t,`handleFocusOut`),ng(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,g.paused,h]),v.useEffect(()=>{if(c){vg.add(g);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(rg,ag);c.addEventListener(rg,u),c.dispatchEvent(t),t.defaultPrevented||(dg(xg(pg(c)),{select:!0}),document.activeElement===e&&_g(c))}return()=>{c.removeEventListener(rg,u);let t=c.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(ig,ag);c.addEventListener(ig,d),c.dispatchEvent(r),r.defaultPrevented||_g(e??t.body,{select:!0}),c.removeEventListener(ig,d),vg.remove(g)},0)}}},[c,u,d,g]);let _=v.useCallback(e=>{if(!n&&!r||g.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=fg(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&_g(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&_g(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,K.jsx)(Ph.div,{tabIndex:-1,...s,ref:p,onKeyDown:_})},`FocusScope`)),sg=v.createContext(null);function cg({registry:e,children:t}){return e?(0,K.jsx)(sg.Provider,{value:e,children:t}):t}ng(cg,`FocusScopeBranchProvider`);function lg(){let[e,t]=v.useState([]);return{nodes:e,registry:v.useMemo(()=>({add:ng(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:ng(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}ng(lg,`useFocusScopeBranchRegistry`);function ug(e){let t=v.useContext(sg);v.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}ng(ug,`useFocusScopeBranch`);function dg(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(_g(r,{select:t}),document.activeElement!==n)return}ng(dg,`focusFirst`);function fg(e){let t=pg(e);return[mg(t,e),mg(t.reverse(),e)]}ng(fg,`getTabbableEdges`);function pg(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:ng(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}ng(pg,`getTabbableCandidates`);function mg(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):hg(r,{upTo:t})))return r}ng(mg,`findVisible`);function hg(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}ng(hg,`isHidden`);function gg(e){return e.tagName===`INPUT`&&typeof e.select==`function`}ng(gg,`isSelectableInput`);function _g(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&gg(e)&&t&&e.select()}}ng(_g,`focus`);var vg=yg();function yg(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=bg(e,t),e.unshift(t)},remove(t){e=bg(e,t),e[0]?.resume()}}}ng(yg,`createFocusScopesStack`);function bg(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}ng(bg,`arrayRemove`);function xg(e){return e.filter(e=>e.tagName!==`A`)}ng(xg,`removeLinks`);var Sg=Object.defineProperty,Cg=(e,t)=>Sg(e,`name`,{value:t,configurable:!0}),wg=v.useId||(()=>void 0),Tg=0;function Eg(e){let[t,n]=v.useState(wg());return Ih(()=>{e||n(e=>e??String(Tg++))},[e]),e||(t?`radix-${t}`:``)}Cg(Eg,`useId`);var Dg=Object.defineProperty,Og=v.forwardRef(((e,t)=>Dg(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=v.useState(!1);Ih(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?mh.createPortal((0,K.jsx)(Ph.div,{...r,ref:t}),o):null},`Portal`)),kg=Object.defineProperty,Ag=(e,t)=>kg(e,`name`,{value:t,configurable:!0});function jg(e,t){return v.useReducer((e,n)=>t[e][n]??e,e)}Ag(jg,`useStateMachine`);var Mg=Ag(e=>{let{present:t,children:n}=e,r=Ng(t),i=typeof n==`function`?n({present:r.isPresent}):v.Children.only(n),a=Fg(r.ref,Lg(i));return typeof n==`function`||r.isPresent?v.cloneElement(i,{ref:a}):null},`Presence`);function Ng(e){let[t,n]=v.useState(),r=v.useRef(null),i=v.useRef(e),a=v.useRef(`none`),o=v.useRef(void 0),[s,c]=jg(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return v.useEffect(()=>{s===`mounted`?(a.current=o.current??Ig(r.current),o.current=void 0):a.current=`none`},[s]),Ih(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Ig(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),Ih(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=Ag(a=>{let o=Ig(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=Ag(e=>{e.target===t&&(a.current=Ig(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:v.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Ig(t)}else r.current=null;n(e)},[])}}Ag(Ng,`usePresence`);function Pg(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Ag(Pg,`setRef`);function Fg(...e){let t=v.useRef(e);return t.current=e,v.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Pg(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;eRg(e,`name`,{value:t,configurable:!0}),Bg=v.useEffectEvent,Vg=v.useInsertionEffect;function Hg(e){if(typeof Bg==`function`)return Bg(e);let t=v.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Vg==`function`?Vg(()=>{t.current=e}):Ih(()=>{t.current=e}),v.useMemo(()=>((...e)=>t.current?.(...e)),[])}zg(Hg,`useEffectEvent`);var Ug=Object.defineProperty,Wg=(e,t)=>Ug(e,`name`,{value:t,configurable:!0}),Gg=v.useInsertionEffect||Ih;function Kg({prop:e,defaultProp:t,onChange:n=Wg(()=>{},`onChange`),caller:r}){let[i,a,o]=qg({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,v.useCallback(t=>{if(s){let n=Jg(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}Wg(Kg,`useControllableState`);function qg({defaultProp:e,onChange:t}){let[n,r]=v.useState(e),i=v.useRef(n),a=v.useRef(t);return Gg(()=>{a.current=t},[t]),v.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}Wg(qg,`useUncontrolledState`);function Jg(e){return typeof e==`function`}Wg(Jg,`isFunction`);var Yg=Symbol(`RADIX:SYNC_STATE`);function Xg(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=Hg(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=v.useReducer((t,n)=>{if(n.type===Yg)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=v.useRef(p);v.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=v.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return v.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:Yg,state:i})},[i,d.state,c]),[h,f]}Wg(Xg,`useControllableStateReducer`);var Z=(...e)=>Ym(yp(e)),Zg={primary:`bg-brand-600 text-white hover:bg-brand-700 active:bg-brand-700 shadow-sm disabled:bg-brand-200 disabled:text-white/70 disabled:shadow-none`,secondary:`bg-white text-ink-800 border border-line hover:border-brand-200 hover:text-brand-700 hover:bg-brand-50/60 disabled:text-ink-300 disabled:hover:border-line`,ghost:`text-ink-600 hover:bg-slate-soft hover:text-ink-900 disabled:text-ink-300`,danger:`bg-up-soft text-up-deep hover:bg-up/15 disabled:opacity-50`,dark:`bg-ink-800 text-white hover:bg-ink-900 disabled:bg-ink-300`},Qg={sm:`h-7 px-2.5 text-2xs rounded-md gap-1`,md:`h-9 px-3.5 text-xs rounded-lg gap-1.5`,lg:`h-11 px-5 text-sm rounded-xl gap-2`},$g=v.forwardRef(({variant:e=`secondary`,size:t=`md`,icon:n,className:r,children:i,...a},o)=>(0,K.jsxs)(`button`,{ref:o,type:`button`,className:Z(`inline-flex items-center justify-center font-medium transition-all duration-200 ease-smooth`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-400/60 focus-visible:ring-offset-1`,`disabled:cursor-not-allowed select-none`,Zg[e],Qg[t],r),...a,children:[n,i]}));$g.displayName=`Button`;var e_=({className:e,children:t,...n})=>(0,K.jsx)(`div`,{className:Z(`card`,e),...n,children:t}),t_=({title:e,desc:t,right:n,className:r})=>(0,K.jsxs)(`div`,{className:Z(`flex items-start justify-between gap-3 border-b border-line px-4 py-3`,r),children:[(0,K.jsxs)(`div`,{className:`min-w-0`,children:[(0,K.jsx)(`h2`,{className:`section-title truncate`,children:e}),t?(0,K.jsx)(`p`,{className:`mt-0.5 text-2xs text-ink-400`,children:t}):null]}),n?(0,K.jsx)(`div`,{className:`shrink-0`,children:n}):null]}),n_=({children:e,tone:t=`neutral`,className:n})=>(0,K.jsx)(`span`,{className:Z(`inline-flex items-center gap-1 rounded-md border px-1.5 py-0.5 text-2xs font-medium`,{neutral:`bg-slate-soft text-ink-600 border-transparent`,up:`bg-up-soft text-up-deep border-transparent`,down:`bg-down-soft text-down-deep border-transparent`,brand:`bg-brand-50 text-brand-700 border-brand-100`,gold:`bg-gold-soft text-gold border-transparent`,dark:`bg-ink-800 text-white border-transparent`}[t],n),children:e}),r_=({label:e,value:t,sub:n,tone:r,className:i})=>(0,K.jsxs)(`div`,{className:Z(`min-w-0`,i),children:[(0,K.jsx)(`div`,{className:`text-2xs font-medium uppercase tracking-wide text-ink-400`,children:e}),(0,K.jsx)(`div`,{className:Z(`tnum mt-0.5 truncate text-[15px] font-semibold leading-tight`,{up:`text-up`,down:`text-down`,neutral:`text-ink-900`,brand:`text-brand-700`}[r||`neutral`]),children:t}),n?(0,K.jsx)(`div`,{className:`tnum mt-0.5 text-2xs text-ink-400`,children:n}):null]});function i_({value:e,options:t,onChange:n,size:r=`md`,className:i}){return(0,K.jsx)(`div`,{role:`tablist`,className:Z(`inline-flex items-center gap-0.5 rounded-lg border border-line bg-white p-0.5`,i),children:t.map(t=>{let i=t.value===e,a=t.tone===`up`?`bg-up-soft text-up-deep`:t.tone===`down`?`bg-down-soft text-down-deep`:t.tone===`brand`?`bg-brand-600 text-white`:`bg-ink-800 text-white`;return(0,K.jsx)(`button`,{role:`tab`,"aria-selected":i,type:`button`,onClick:()=>n(t.value),className:Z(`rounded-md font-medium transition-all duration-200 ease-smooth`,r===`sm`?`h-6 px-2 text-2xs`:`h-8 px-3 text-xs`,i?Z(a,`shadow-sm`):`text-ink-500 hover:bg-slate-soft hover:text-ink-800`),children:t.label},String(t.value))})})}var a_=({title:e,desc:t,action:n})=>(0,K.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-2 px-6 py-14 text-center`,children:[(0,K.jsx)(`div`,{className:`grid-noise h-12 w-12 rounded-2xl border border-line bg-slate-soft`}),(0,K.jsx)(`div`,{className:`text-sm font-medium text-ink-700`,children:e}),t?(0,K.jsx)(`div`,{className:`max-w-sm text-xs text-ink-400`,children:t}):null,n?(0,K.jsx)(`div`,{className:`mt-2`,children:n}):null]});function o_(){let[e,t]=v.useState([]);return{push:v.useCallback((e,n=`ok`)=>{let r=Date.now()+Math.random();t(t=>[...t,{id:r,text:e,tone:n}]),setTimeout(()=>t(e=>e.filter(e=>e.id!==r)),3600)},[]),node:(0,K.jsx)(`div`,{className:`pointer-events-none fixed bottom-5 left-1/2 z-[80] flex -translate-x-1/2 flex-col items-center gap-2`,children:e.map(e=>(0,K.jsx)(`div`,{role:`status`,className:Z(`rounded-xl border px-3.5 py-2 text-xs shadow-pop backdrop-blur`,e.tone===`ok`?`border-line bg-white/95 text-ink-800`:`border-up/25 bg-up-soft/95 text-up-deep`),children:e.text},e.id))})}}var s_=(e,t=0)=>{let n=Number(e);return Number.isFinite(n)?n.toLocaleString(`zh-CN`,{minimumFractionDigits:t,maximumFractionDigits:t}):`—`},c_=(e,t=0)=>{let n=Number(e);if(!Number.isFinite(n))return`—`;let r=s_(Math.abs(n),t);return`${n>0?`+`:n<0?`−`:``}${r}`},l_=(e,t=2)=>{let n=Number(e);return Number.isFinite(n)?`${(n*100).toFixed(t)}%`:`—`},u_=(e,t=2)=>{let n=Number(e);return Number.isFinite(n)?`${n>0?`+`:n<0?`−`:``}${(Math.abs(n)*100).toFixed(t)}%`:`—`},d_=e=>e===`buy`?`加仓`:e===`sell`?`减仓`:`维持`,f_=e=>{try{let t=new Date(e);return`${t.getMonth()+1}/${t.getDate()} ${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}`}catch{return e}};function p_({boot:e,onChallenge:t,onPractice:n,onAcademy:r,onProfile:i}){let[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(!1);(0,v.useEffect)(()=>{c(!0),_p.stats().then(e=>o(e)).catch(()=>void 0).finally(()=>c(!1))},[]);let l=a?.profile?.totals,u=a?.profile?.weakestSkill;return(0,K.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col gap-4 overflow-y-auto p-6`,children:[(0,K.jsxs)(Nd.section,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.35},className:`relative overflow-hidden rounded-2xl border border-line bg-paper px-7 py-6 shadow-card`,children:[(0,K.jsx)(`div`,{className:`absolute -right-24 -top-28 h-72 w-72 rounded-full bg-brand-500/[0.07] blur-3xl`}),(0,K.jsxs)(`div`,{className:`relative flex items-start justify-between gap-8`,children:[(0,K.jsxs)(`div`,{className:`max-w-2xl`,children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,K.jsxs)(n_,{tone:`brand`,children:[(0,K.jsx)(Df,{size:11}),`Al Brooks 价格行为四层框架`]}),(0,K.jsx)(n_,{tone:`neutral`,children:`同花顺 iFinD 真实前复权日线 × PA-LightGBM`})]}),(0,K.jsx)(`h1`,{className:`mt-3 text-[26px] font-semibold leading-tight tracking-tight text-ink-900`,children:`玩时裸 K 真刀对决,赛后 4 帧动态画线带教`}),(0,K.jsxs)(`p`,{className:`mt-2 text-sm leading-relaxed text-ink-600`,children:[`严选 12 只 A 股龙头近 5 年 `,(0,K.jsx)(`strong`,{children:`24 个教科书级真实名场面`}),`(箱体真假突破、回踩 20EMA、急跌楔形反转、高位抢购高潮)。 盘中以极简裸 K 与机器学习对手盘逐根博弈;结算后自动浮现结构画线,逐帧拆解「周期 → 关键棒跟随与证伪 → 模型概率天平」。`]}),(0,K.jsxs)(`div`,{className:`mt-4 flex flex-wrap items-center gap-2.5`,children:[(0,K.jsx)($g,{variant:`primary`,size:`lg`,onClick:t,icon:(0,K.jsx)(tp,{size:15}),children:`开始盲判闯关(4 大课题连战)`}),(0,K.jsx)($g,{variant:`secondary`,size:`lg`,onClick:n,icon:(0,K.jsx)(nf,{size:15}),children:`专项课题练习库(24 关)`}),(0,K.jsx)($g,{variant:`secondary`,size:`lg`,onClick:r,icon:(0,K.jsx)(Nf,{size:15}),children:`价格行为学堂(先懂体系)`})]})]}),(0,K.jsxs)(`div`,{className:`hidden w-[330px] shrink-0 grid-cols-2 gap-3 lg:grid`,children:[(0,K.jsx)(r_,{label:`严选名场面`,value:`${e.library.builtin} 关`,sub:`4 大课题 · 正反严格对称`}),(0,K.jsx)(r_,{label:`训练底稿样本`,value:`14,119 根`,sub:`5 年真实前复权日 K`,tone:`brand`}),(0,K.jsx)(r_,{label:`调仓自由度`,value:`10% 步进`,sub:`0%~100% 实盘 T+1 规则`}),(0,K.jsx)(r_,{label:`量化特征维数`,value:`20 维 PA`,sub:`TreeSHAP 逐日加减分拆解`})]})]})]}),(0,K.jsxs)(`div`,{className:`grid grid-cols-3 gap-4`,children:[(0,K.jsx)(m_,{icon:(0,K.jsx)(Nf,{size:16}),tag:`第 1 步 · 先建标尺`,title:`价格行为学堂(四层理论图解)`,desc:`不背零散口诀,用 4 张可视化交互图解掌握「市场四周期与80%区间铁律 → 趋势棒与H2信号 → 跟随确认与前提证伪 → LightGBM 概率计算原理」。`,cta:`进入学堂看图解`,onClick:r}),(0,K.jsx)(m_,{icon:(0,K.jsx)(tp,{size:16}),tag:`第 2 步 · 纯粹实战`,title:`盲判闯关 & 专项课题特训`,desc:`遮住股票名与年份,10% 颗粒度自由加减仓,与 PA-LightGBM 同拍亮牌飙戏;支持调用同花顺 iFinD 输入任意 A 股代码实时生成新关卡。`,cta:`进入专项题库`,onClick:n}),(0,K.jsx)(m_,{icon:(0,K.jsx)(_f,{size:16}),tag:`第 3 步 · 深度复盘`,title:`4 帧画线回放 & 四维基本功雷达`,desc:`每关打完动态画出箱体带、楔形线与生死防守位,拆开模型 47% 基准胜率加减分过程,长期追踪你在四项价格行为基本功上的短板。`,cta:`查看成长档案`,onClick:i})]}),(0,K.jsxs)(`div`,{className:`grid grid-cols-[minmax(0,1fr)_360px] gap-4`,children:[(0,K.jsxs)(e_,{children:[(0,K.jsx)(t_,{title:`我的实战与四维能力速览`,desc:`本地持久化存储,关闭重启不丢失`,right:(0,K.jsxs)($g,{size:`sm`,variant:`ghost`,onClick:i,children:[`打开完整雷达档案 `,(0,K.jsx)(Xd,{size:12})]})}),(0,K.jsx)(`div`,{className:`p-4`,children:s?(0,K.jsxs)(`div`,{className:`flex items-center gap-2 py-6 text-xs text-ink-400`,children:[(0,K.jsx)(zf,{size:13,className:`animate-spin`}),` 读取中…`]}):!l||l.played===0?(0,K.jsx)(`div`,{className:`py-5 text-center text-xs text-ink-400`,children:`尚无实战记录。建议先花 1 分钟浏览「价格行为学堂」,再开启第一局盲判对决!`}):(0,K.jsxs)(`div`,{className:`grid grid-cols-4 gap-4`,children:[(0,K.jsx)(r_,{label:`已完成训练`,value:`${l.played} 关`,sub:`累计 ${l.matches} 轮闯关`}),(0,K.jsx)(r_,{label:`累计净收益`,value:c_(l.pnl),sub:`当前总权益 ${s_(1e5+l.pnl)}`,tone:l.pnl>=0?`up`:`down`}),(0,K.jsx)(r_,{label:`击败机器胜率`,value:l_(l.beatAiRate??0,0),sub:`机器同期 ${c_(l.aiPnl)}`,tone:`brand`}),(0,K.jsx)(r_,{label:`当前最需补强`,value:u?u.cn:`均衡发展`,sub:u?`能力分 ${u.score}/100`:`继续保持`})]})})]}),(0,K.jsxs)(e_,{children:[(0,K.jsx)(t_,{title:`近期闯关快报`,desc:`最近 3 轮盲判连战记录`}),(0,K.jsx)(`div`,{className:`space-y-2 p-3.5`,children:a?.matches?.length?a.matches.slice(0,3).map(e=>(0,K.jsxs)(`div`,{className:`flex items-center justify-between rounded-xl border border-line bg-white px-3 py-2`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`div`,{className:`text-xs font-semibold text-ink-800`,children:e.rank}),(0,K.jsx)(`div`,{className:`text-2xs text-ink-400`,children:f_(e.at)})]}),(0,K.jsxs)(`div`,{className:`tnum text-right`,children:[(0,K.jsx)(`div`,{className:Z(`text-xs font-bold`,e.playerPnl>=0?`text-up`:`text-down`),children:c_(e.playerPnl)}),(0,K.jsxs)(`div`,{className:`text-2xs text-ink-400`,children:[`AI `,c_(e.aiPnl)]})]})]},e.id)):(0,K.jsx)(`div`,{className:`py-5 text-center text-2xs text-ink-400`,children:`完成一轮 4 关闯关后在此展示称号`})})]})]})]})}function m_({icon:e,tag:t,title:n,desc:r,cta:i,onClick:a}){return(0,K.jsxs)(Nd.div,{whileHover:{y:-2},className:`card flex flex-col justify-between p-5`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,K.jsx)(`span`,{className:`grid h-9 w-9 place-items-center rounded-xl bg-brand-50 text-brand-600`,children:e}),(0,K.jsx)(`span`,{className:`text-2xs font-medium text-brand-600`,children:t})]}),(0,K.jsx)(`h3`,{className:`mt-3 text-sm font-semibold text-ink-900`,children:n}),(0,K.jsx)(`p`,{className:`mt-1.5 text-2xs leading-relaxed text-ink-500`,children:r})]}),(0,K.jsx)(`div`,{className:`mt-4 border-t border-line pt-3`,children:(0,K.jsxs)($g,{variant:`secondary`,size:`sm`,onClick:a,children:[i,` `,(0,K.jsx)(Xd,{size:12})]})})]})}function Q(e){var t=e.width,n=e.height;if(t<0)throw Error(`Negative width is not allowed for Size`);if(n<0)throw Error(`Negative height is not allowed for Size`);return{width:t,height:n}}function h_(e,t){return e.width===t.width&&e.height===t.height}var g_=function(){function e(e){var t=this;this._resolutionListener=function(){return t._onResolutionChanged()},this._resolutionMediaQueryList=null,this._observers=[],this._window=e,this._installResolutionListener()}return e.prototype.dispose=function(){this._uninstallResolutionListener(),this._window=null},Object.defineProperty(e.prototype,"value",{get:function(){return this._window.devicePixelRatio},enumerable:!1,configurable:!0}),e.prototype.subscribe=function(e){var t=this,n={next:e};return this._observers.push(n),{unsubscribe:function(){t._observers=t._observers.filter(function(e){return e!==n})}}},e.prototype._installResolutionListener=function(){if(this._resolutionMediaQueryList!==null)throw Error(`Resolution listener is already installed`);var e=this._window.devicePixelRatio;this._resolutionMediaQueryList=this._window.matchMedia(`all and (resolution: ${e}dppx)`),this._resolutionMediaQueryList.addListener(this._resolutionListener)},e.prototype._uninstallResolutionListener=function(){this._resolutionMediaQueryList!==null&&(this._resolutionMediaQueryList.removeListener(this._resolutionListener),this._resolutionMediaQueryList=null)},e.prototype._reinstallResolutionListener=function(){this._uninstallResolutionListener(),this._installResolutionListener()},e.prototype._onResolutionChanged=function(){var e=this;this._observers.forEach(function(t){return t.next(e._window.devicePixelRatio)}),this._reinstallResolutionListener()},e}();function __(e){return new g_(e)}var v_=function(){function e(e,t,n){this._canvasElement=null,this._bitmapSizeChangedListeners=[],this._suggestedBitmapSize=null,this._suggestedBitmapSizeChangedListeners=[],this._devicePixelRatioObservable=null,this._canvasElementResizeObserver=null,this._canvasElement=e,this._canvasElementClientSize=Q({width:this._canvasElement.clientWidth,height:this._canvasElement.clientHeight}),this._transformBitmapSize=t??(function(e){return e}),this._allowResizeObserver=n?.allowResizeObserver??!0,this._chooseAndInitObserver()}return e.prototype.dispose=function(){var e,t;if(this._canvasElement===null)throw Error(`Object is disposed`);(e=this._canvasElementResizeObserver)==null||e.disconnect(),this._canvasElementResizeObserver=null,(t=this._devicePixelRatioObservable)==null||t.dispose(),this._devicePixelRatioObservable=null,this._suggestedBitmapSizeChangedListeners.length=0,this._bitmapSizeChangedListeners.length=0,this._canvasElement=null},Object.defineProperty(e.prototype,"canvasElement",{get:function(){if(this._canvasElement===null)throw Error(`Object is disposed`);return this._canvasElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canvasElementClientSize",{get:function(){return this._canvasElementClientSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bitmapSize",{get:function(){return Q({width:this.canvasElement.width,height:this.canvasElement.height})},enumerable:!1,configurable:!0}),e.prototype.resizeCanvasElement=function(e){this._canvasElementClientSize=Q(e),this.canvasElement.style.width=`${this._canvasElementClientSize.width}px`,this.canvasElement.style.height=`${this._canvasElementClientSize.height}px`,this._invalidateBitmapSize()},e.prototype.subscribeBitmapSizeChanged=function(e){this._bitmapSizeChangedListeners.push(e)},e.prototype.unsubscribeBitmapSizeChanged=function(e){this._bitmapSizeChangedListeners=this._bitmapSizeChangedListeners.filter(function(t){return t!==e})},Object.defineProperty(e.prototype,"suggestedBitmapSize",{get:function(){return this._suggestedBitmapSize},enumerable:!1,configurable:!0}),e.prototype.subscribeSuggestedBitmapSizeChanged=function(e){this._suggestedBitmapSizeChangedListeners.push(e)},e.prototype.unsubscribeSuggestedBitmapSizeChanged=function(e){this._suggestedBitmapSizeChangedListeners=this._suggestedBitmapSizeChangedListeners.filter(function(t){return t!==e})},e.prototype.applySuggestedBitmapSize=function(){if(this._suggestedBitmapSize!==null){var e=this._suggestedBitmapSize;this._suggestedBitmapSize=null,this._resizeBitmap(e),this._emitSuggestedBitmapSizeChanged(e,this._suggestedBitmapSize)}},e.prototype._resizeBitmap=function(e){var t=this.bitmapSize;h_(t,e)||(this.canvasElement.width=e.width,this.canvasElement.height=e.height,this._emitBitmapSizeChanged(t,e))},e.prototype._emitBitmapSizeChanged=function(e,t){var n=this;this._bitmapSizeChangedListeners.forEach(function(r){return r.call(n,e,t)})},e.prototype._suggestNewBitmapSize=function(e){var t=this._suggestedBitmapSize,n=Q(this._transformBitmapSize(e,this._canvasElementClientSize)),r=h_(this.bitmapSize,n)?null:n;t===null&&r===null||t!==null&&r!==null&&h_(t,r)||(this._suggestedBitmapSize=r,this._emitSuggestedBitmapSizeChanged(t,r))},e.prototype._emitSuggestedBitmapSizeChanged=function(e,t){var n=this;this._suggestedBitmapSizeChangedListeners.forEach(function(r){return r.call(n,e,t)})},e.prototype._chooseAndInitObserver=function(){var e=this;this._allowResizeObserver?x_().then(function(t){return t?e._initResizeObserver():e._initDevicePixelRatioObservable()}):this._initDevicePixelRatioObservable()},e.prototype._initDevicePixelRatioObservable=function(){var e=this;if(this._canvasElement!==null){var t=b_(this._canvasElement);if(t===null)throw Error(`No window is associated with the canvas`);this._devicePixelRatioObservable=__(t),this._devicePixelRatioObservable.subscribe(function(){return e._invalidateBitmapSize()}),this._invalidateBitmapSize()}},e.prototype._invalidateBitmapSize=function(){if(this._canvasElement!==null){var e=b_(this._canvasElement);if(e!==null){var t=this._devicePixelRatioObservable?.value??e.devicePixelRatio,n=this._canvasElement.getClientRects(),r=n[0]===void 0?Q({width:this._canvasElementClientSize.width*t,height:this._canvasElementClientSize.height*t}):S_(n[0],t);this._suggestNewBitmapSize(r)}}},e.prototype._initResizeObserver=function(){var e=this;this._canvasElement!==null&&(this._canvasElementResizeObserver=new ResizeObserver(function(t){var n=t.find(function(t){return t.target===e._canvasElement});if(n&&n.devicePixelContentBoxSize&&n.devicePixelContentBoxSize[0]){var r=n.devicePixelContentBoxSize[0],i=Q({width:r.inlineSize,height:r.blockSize});e._suggestNewBitmapSize(i)}}),this._canvasElementResizeObserver.observe(this._canvasElement,{box:`device-pixel-content-box`}))},e}();function y_(e,t){if(t.type===`device-pixel-content-box`)return new v_(e,t.transform,t.options);throw Error(`Unsupported binding target`)}function b_(e){return e.ownerDocument.defaultView}function x_(){return new Promise(function(e){var t=new ResizeObserver(function(n){e(n.every(function(e){return`devicePixelContentBoxSize`in e})),t.disconnect()});t.observe(document.body,{box:`device-pixel-content-box`})}).catch(function(){return!1})}function S_(e,t){return Q({width:Math.round(e.left*t+e.width*t)-Math.round(e.left*t),height:Math.round(e.top*t+e.height*t)-Math.round(e.top*t)})}var C_=function(){function e(e,t,n){if(t.width===0||t.height===0)throw TypeError(`Rendering target could only be created on a media with positive width and height`);if(this._mediaSize=t,n.width===0||n.height===0)throw TypeError(`Rendering target could only be created using a bitmap with positive integer width and height`);this._bitmapSize=n,this._context=e}return e.prototype.useMediaCoordinateSpace=function(e){try{return this._context.save(),this._context.setTransform(1,0,0,1,0,0),this._context.scale(this._horizontalPixelRatio,this._verticalPixelRatio),e({context:this._context,mediaSize:this._mediaSize})}finally{this._context.restore()}},e.prototype.useBitmapCoordinateSpace=function(e){try{return this._context.save(),this._context.setTransform(1,0,0,1,0,0),e({context:this._context,mediaSize:this._mediaSize,bitmapSize:this._bitmapSize,horizontalPixelRatio:this._horizontalPixelRatio,verticalPixelRatio:this._verticalPixelRatio})}finally{this._context.restore()}},Object.defineProperty(e.prototype,"_horizontalPixelRatio",{get:function(){return this._bitmapSize.width/this._mediaSize.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_verticalPixelRatio",{get:function(){return this._bitmapSize.height/this._mediaSize.height},enumerable:!1,configurable:!0}),e}();function w_(e,t){var n=e.canvasElementClientSize;if(n.width===0||n.height===0)return null;var r=e.bitmapSize;if(r.width===0||r.height===0)return null;var i=e.canvasElement.getContext(`2d`,t);return i===null?null:new C_(i,n,r)}var T_={title:``,visible:!0,hitTestTolerance:3,lastValueVisible:!0,priceLineVisible:!0,priceLineSource:0,priceLineWidth:1,priceLineColor:``,priceLineStyle:2,baseLineVisible:!0,baseLineWidth:1,baseLineColor:`#B2B5BE`,baseLineStyle:0,priceFormat:{type:`price`,precision:2,minMove:.01}},E_,D_;function O_(e,t){let n=function(e,t){switch(e){case 0:default:return[];case 1:return[t,t];case 2:return[2*t,2*t];case 3:return[6*t,6*t];case 4:return[t,4*t]}}(t,e.lineWidth);return e.setLineDash(n),n}function k_(e,t,n,r){e.beginPath();let i=e.lineWidth%2?.5:0;e.moveTo(n,t+i),e.lineTo(r,t+i),e.stroke()}function A_(e,t){if(!e)throw Error(`Assertion failed`+(t?`: `+t:``))}function j_(e){if(e===void 0)throw Error(`Value is undefined`);return e}function $(e){if(e===null)throw Error(`Value is null`);return e}function M_(e){return $(j_(e))}(function(e){e[e.Simple=0]=`Simple`,e[e.WithSteps=1]=`WithSteps`,e[e.Curved=2]=`Curved`})(E_||={}),function(e){e[e.Solid=0]=`Solid`,e[e.Dotted=1]=`Dotted`,e[e.Dashed=2]=`Dashed`,e[e.LargeDashed=3]=`LargeDashed`,e[e.SparseDotted=4]=`SparseDotted`}(D_||={});var N_=class{constructor(){this.t=[]}i(e,t,n){let r={h:e,l:t,o:!0===n};this.t.push(r)}_(e){let t=this.t.findIndex(t=>e===t.h);t>-1&&this.t.splice(t,1)}u(e){this.t=this.t.filter(t=>t.l!==e)}p(e,t,n){let r=[...this.t];this.t=this.t.filter(e=>!e.o),r.forEach(r=>r.h(e,t,n))}v(){return this.t.length>0}m(){this.t=[]}};function P_(e,...t){for(let n of t)for(let t in n)n[t]!==void 0&&Object.prototype.hasOwnProperty.call(n,t)&&![`__proto__`,`constructor`,`prototype`].includes(t)&&(typeof n[t]!=`object`||n[t]===null||e[t]===void 0||Array.isArray(n[t])?e[t]=n[t]:P_(e[t],n[t]));return e}function F_(e){return typeof e==`number`&&isFinite(e)}function I_(e){return typeof e==`number`&&e%1==0}function L_(e){return typeof e==`string`}function R_(e){return typeof e==`boolean`}function z_(e){let t=e;if(!t||typeof t!=`object`)return t;let n,r,i;for(r in n=Array.isArray(t)?[]:{},t)Object.prototype.hasOwnProperty.call(t,r)&&(i=t[r],n[r]=i&&typeof i==`object`?z_(i):i);return n}function B_(e){return e!==null}function V_(e){return e===null?void 0:e}var H_=`-apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif`;function U_(e,t,n){return t===void 0&&(t=H_),`${n=n===void 0?``:`${n} `}${e}px ${t}`}var W_=class{constructor(e){this.M={S:1,C:5,P:NaN,k:``,T:``,R:``,D:``,I:0,V:0,B:0,A:0,L:0},this.O=e}N(){let e=this.M,t=this.F(),n=this.W();return e.P===t&&e.T===n||(e.P=t,e.T=n,e.k=U_(t,n),e.A=2.5/12*t,e.I=e.A,e.V=t/12*e.C,e.B=t/12*e.C,e.L=0),e.R=this.H(),e.D=this.U(),this.M}H(){return this.O.N().layout.textColor}U(){return this.O.$()}F(){return this.O.N().layout.fontSize}W(){return this.O.N().layout.fontFamily}};function G_(e){return e<0?0:e>255?255:Math.round(e)||0}function K_(e){return .199*e[0]+.687*e[1]+.114*e[2]}var q_=class{constructor(e,t){this.j=new Map,this.q=e,t&&(this.j=t)}Y(e,t){if(e===`transparent`)return e;let n=this.K(e),r=n[3];return`rgba(${n[0]}, ${n[1]}, ${n[2]}, ${t*r})`}Z(e){let t=this.K(e);return{G:`rgb(${t[0]}, ${t[1]}, ${t[2]})`,X:K_(t)>160?`black`:`white`}}J(e){return K_(this.K(e))}tt(e,t,n){let[r,i,a,o]=this.K(e),[s,c,l,u]=this.K(t),d=[G_(r+n*(s-r)),G_(i+n*(c-i)),G_(a+n*(l-a)),(f=o+n*(u-o),f<=0||f>1?Math.min(Math.max(f,0),1):Math.round(1e4*f)/1e4)];var f;return`rgba(${d[0]}, ${d[1]}, ${d[2]}, ${d[3]})`}K(e){let t=this.j.get(e);if(t)return t;let n=function(e){let t=document.createElement(`div`);t.style.display=`none`,document.body.appendChild(t),t.style.color=e;let n=window.getComputedStyle(t).color;return document.body.removeChild(t),n}(e).match(/^rgba?\s*\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d+))?\)$/);if(!n){if(this.q.length)for(let t of this.q){let n=t(e);if(n)return this.j.set(e,n),n}throw Error(`Failed to parse color: ${e}`)}let r=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),n[4]?parseFloat(n[4]):1];return this.j.set(e,r),r}},J_=class{constructor(){this.it=[]}nt(e){this.it=e}st(e,t,n){this.it.forEach(r=>{r.st(e,t,n)})}},Y_=class{st(e,t,n){e.useBitmapCoordinateSpace(e=>this.et(e,t,n))}},X_=class extends Y_{constructor(){super(...arguments),this.rt=null}ht(e){this.rt=e}et({context:e,horizontalPixelRatio:t,verticalPixelRatio:n}){if(this.rt===null||this.rt.lt===null)return;let r=this.rt.lt,i=this.rt,a=Math.max(1,Math.floor(t))%2/2,o=o=>{e.beginPath();for(let s=r.to-1;s>=r.from;--s){let r=i.ot[s],c=Math.round(r._t*t)+a,l=r.ut*n,u=o*n+a;e.moveTo(c,l),e.arc(c,l,u,0,2*Math.PI)}e.fill()};i.ct>0&&(e.fillStyle=i.dt,o(i.ft+i.ct)),e.fillStyle=i.vt,o(i.ft)}};function Z_(){return{ot:[{_t:0,ut:0,wt:0,Mt:0}],vt:``,dt:``,ft:0,ct:0,lt:null}}var Q_={from:0,to:1},$_=class{constructor(e,t,n){this.gt=new J_,this.bt=[],this.St=[],this.xt=!0,this.O=e,this.Ct=t,this.yt=n,this.gt.nt(this.bt)}Pt(e){this.kt(),this.xt=!0}Tt(){return this.xt&&=(this.Rt(),!1),this.gt}kt(){let e=this.yt.Dt();e.length!==this.bt.length&&(this.St=e.map(Z_),this.bt=this.St.map(e=>{let t=new X_;return t.ht(e),t}),this.gt.nt(this.bt))}Rt(){let e=this.Ct.N().mode===2||!this.Ct.It(),t=this.yt.Vt(),n=this.Ct.Bt(),r=this.O.Et();this.kt(),t.forEach((t,i)=>{let a=this.St[i],o=t.At(n),s=t.Lt();!e&&o!==null&&t.It()&&s!==null?(a.vt=o.zt,a.ft=o.ft,a.ct=o.Ot,a.ot[0].Mt=o.Mt,a.ot[0].ut=t.Ft().Nt(o.Mt,s.Wt),a.dt=o.Ht??this.O.Ut(a.ot[0].ut/t.Ft().$t()),a.ot[0].wt=n,a.ot[0]._t=r.jt(n),a.lt=Q_):a.lt=null})}},e1=class extends Y_{constructor(e){super(),this.qt=e}et({context:e,bitmapSize:t,horizontalPixelRatio:n,verticalPixelRatio:r}){if(this.qt===null)return;let i=this.qt.Yt.It,a=this.qt.Kt.It;if(!i&&!a)return;let o=Math.round(this.qt._t*n),s=Math.round(this.qt.ut*r);e.lineCap=`butt`,i&&o>=0&&(e.lineWidth=Math.floor(this.qt.Yt.ct*n),e.strokeStyle=this.qt.Yt.R,e.fillStyle=this.qt.Yt.R,O_(e,this.qt.Yt.Zt),function(e,t,n,r){e.beginPath();let i=e.lineWidth%2?.5:0;e.moveTo(t+i,n),e.lineTo(t+i,r),e.stroke()}(e,o,0,t.height)),a&&s>=0&&(e.lineWidth=Math.floor(this.qt.Kt.ct*r),e.strokeStyle=this.qt.Kt.R,e.fillStyle=this.qt.Kt.R,O_(e,this.qt.Kt.Zt),k_(e,s,0,t.width))}},t1=class{constructor(e,t){this.xt=!0,this.Gt={Yt:{ct:1,Zt:0,R:``,It:!1},Kt:{ct:1,Zt:0,R:``,It:!1},_t:0,ut:0},this.Xt=new e1(this.Gt),this.Jt=e,this.yt=t}Pt(){this.xt=!0}Tt(e){return this.xt&&=(this.Rt(),!1),this.Xt}Rt(){let e=this.Jt.It(),t=this.yt.Qt().N().crosshair,n=this.Gt;if(t.mode===2)return n.Kt.It=!1,void(n.Yt.It=!1);n.Kt.It=e&&this.Jt.ti(this.yt),n.Yt.It=e&&this.Jt.ii(),n.Kt.ct=t.horzLine.width,n.Kt.Zt=t.horzLine.style,n.Kt.R=t.horzLine.color,n.Yt.ct=t.vertLine.width,n.Yt.Zt=t.vertLine.style,n.Yt.R=t.vertLine.color,n._t=this.Jt.ni(),n.ut=this.Jt.si()}};function n1(e,t,n,r,i,a){e.fillRect(t+a,n,r-2*a,a),e.fillRect(t+a,n+i-a,r-2*a,a),e.fillRect(t,n,a,i),e.fillRect(t+r-a,n,a,i)}function r1(e,t,n,r,i,a){e.save(),e.globalCompositeOperation=`copy`,e.fillStyle=a,e.fillRect(t,n,r,i),e.restore()}function i1(e,t,n,r,i,a){e.beginPath(),e.roundRect?e.roundRect(t,n,r,i,a):(e.lineTo(t+r-a[1],n),a[1]!==0&&e.arcTo(t+r,n,t+r,n+a[1],a[1]),e.lineTo(t+r,n+i-a[2]),a[2]!==0&&e.arcTo(t+r,n+i,t+r-a[2],n+i,a[2]),e.lineTo(t+a[3],n+i),a[3]!==0&&e.arcTo(t,n+i,t,n+i-a[3],a[3]),e.lineTo(t,n+a[0]),a[0]!==0&&e.arcTo(t,n,t+a[0],n,a[0]))}function a1(e,t,n,r,i,a,o=0,s=[0,0,0,0],c=``){if(e.save(),!o||!c||c===a)return i1(e,t,n,r,i,s),e.fillStyle=a,e.fill(),void e.restore();let l=o/2;var u;i1(e,t+l,n+l,r-o,i-o,(u=-l,s.map(e=>e===0?e:e+u))),a!==`transparent`&&(e.fillStyle=a,e.fill()),c!==`transparent`&&(e.lineWidth=o,e.strokeStyle=c,e.closePath(),e.stroke()),e.restore()}function o1(e,t,n,r,i,a,o){e.save(),e.globalCompositeOperation=`copy`;let s=e.createLinearGradient(0,0,0,i);s.addColorStop(0,a),s.addColorStop(1,o),e.fillStyle=s,e.fillRect(t,n,r,i),e.restore()}var s1=class{constructor(e,t){this.ht(e,t)}ht(e,t){this.qt=e,this.ei=t}$t(e,t){return this.qt.It?e.P+e.A+e.I:0}st(e,t,n,r){if(!this.qt.It||this.qt.ri.length===0)return;let i=this.qt.R,a=this.ei.G,o=e.useBitmapCoordinateSpace(e=>{let o=e.context;o.font=t.k;let s=this.hi(e,t,n,r),c=s.ai;return s.li?a1(o,c.oi,c._i,c.ui,c.ci,a,c.di,[c.ft,0,0,c.ft],a):a1(o,c.fi,c._i,c.ui,c.ci,a,c.di,[0,c.ft,c.ft,0],a),this.qt.pi&&(o.fillStyle=i,o.fillRect(c.fi,c.mi,c.wi-c.fi,c.Mi)),this.qt.gi&&(o.fillStyle=t.D,o.fillRect(s.li?c.bi-c.di:0,c._i,c.di,c.Si-c._i)),s});e.useMediaCoordinateSpace(({context:e})=>{let n=o.xi;e.font=t.k,e.textAlign=o.li?`right`:`left`,e.textBaseline=`middle`,e.fillStyle=i,e.fillText(this.qt.ri,n.Ci,(n._i+n.Si)/2+n.yi)})}hi(e,t,n,r){let{context:i,bitmapSize:a,mediaSize:o,horizontalPixelRatio:s,verticalPixelRatio:c}=e,l=this.qt.pi||!this.qt.Pi?t.C:0,u=this.qt.ki?t.S:0,d=t.A+this.ei.Ti,f=t.I+this.ei.Ri,p=t.V,m=t.B,h=this.qt.ri,g=t.P,_=n.Di(i,h),v=Math.ceil(n.Ii(i,h)),y=g+d+f,b=t.S+p+m+v+l,x=Math.max(1,Math.floor(c)),S=Math.round(y*c);S%2!=x%2&&(S+=1);let C=u>0?Math.max(1,Math.floor(u*s)):0,w=Math.round(b*s),T=Math.round(l*s),E=this.ei.Vi??this.ei.Bi??this.ei.Ei,D=Math.round(E*c)-Math.floor(.5*c),ee=Math.floor(D+x/2-S/2),te=ee+S,ne=r===`right`,O=ne?o.width-u:u,k=ne?a.width-C:C,re,A,j;return ne?(re=k-w,A=k-T,j=O-l-p-u):(re=k+w,A=k+T,j=O+l+p),{li:ne,ai:{_i:ee,mi:D,Si:te,ui:w,ci:S,ft:2*s,di:C,oi:re,fi:k,wi:A,Mi:x,bi:a.width},xi:{_i:ee/c,Si:te/c,Ci:j,yi:_}}}},c1=class{constructor(e){this.Ai={Ei:0,G:`#000`,Ri:0,Ti:0},this.Li={ri:``,It:!1,pi:!0,Pi:!1,Ht:``,R:`#FFF`,gi:!1,ki:!1},this.zi={ri:``,It:!1,pi:!1,Pi:!0,Ht:``,R:`#FFF`,gi:!0,ki:!0},this.xt=!0,this.Oi=new(e||s1)(this.Li,this.Ai),this.Ni=new(e||s1)(this.zi,this.Ai)}ri(){return this.Fi(),this.Li.ri}Ei(){return this.Fi(),this.Ai.Ei}Pt(){this.xt=!0}$t(e,t=!1){return Math.max(this.Oi.$t(e,t),this.Ni.$t(e,t))}Wi(){return this.Ai.Vi??null}Hi(){return this.Ai.Vi??this.Ai.Bi??this.Ei()}Ui(e){this.Ai.Bi=e??void 0}$i(){return this.Fi(),this.Li.It||this.zi.It}ji(){return this.Fi(),this.Li.It}Tt(e){return this.Fi(),this.Li.pi=this.Li.pi&&e.N().ticksVisible,this.zi.pi=this.zi.pi&&e.N().ticksVisible,this.Oi.ht(this.Li,this.Ai),this.Ni.ht(this.zi,this.Ai),this.Oi}qi(){return this.Fi(),this.Oi.ht(this.Li,this.Ai),this.Ni.ht(this.zi,this.Ai),this.Ni}Fi(){this.xt&&(this.Li.pi=!0,this.zi.pi=!1,this.Yi(this.Li,this.zi,this.Ai))}},l1=class extends c1{constructor(e,t,n){super(),this.Jt=e,this.Ki=t,this.Zi=n}Yi(e,t,n){if(e.It=!1,this.Jt.N().mode===2)return;let r=this.Jt.N().horzLine;if(!r.labelVisible)return;let i=this.Ki.Lt();if(!this.Jt.It()||this.Ki.Gi()||i===null)return;let a=this.Ki.Xi().Z(r.labelBackgroundColor);n.G=a.G,e.R=a.X;let o=2/12*this.Ki.P();n.Ti=o,n.Ri=o;let s=this.Zi(this.Ki);n.Ei=s.Ei,e.ri=this.Ki.Ji(s.Mt,i),e.It=!0}},u1=/[1-9]/g,d1=class{constructor(){this.qt=null}ht(e){this.qt=e}st(e,t){if(this.qt===null||!1===this.qt.It||this.qt.ri.length===0)return;let n=e.useMediaCoordinateSpace(({context:e})=>(e.font=t.k,Math.round(t.Qi.Ii(e,$(this.qt).ri,u1))));if(n<=0)return;let r=t.tn,i=n+2*r,a=i/2,o=this.qt.nn,s=this.qt.Ei,c=Math.floor(s-a)+.5;c<0?(s+=Math.abs(0-c),c=Math.floor(s-a)+.5):c+i>o&&(s-=Math.abs(o-(c+i)),c=Math.floor(s-a)+.5);let l=c+i,u=Math.ceil(0+t.S+t.C+t.A+t.P+t.I);e.useBitmapCoordinateSpace(({context:e,horizontalPixelRatio:n,verticalPixelRatio:r})=>{let i=$(this.qt);e.fillStyle=i.G;let a=Math.round(c*n),o=Math.round(0*r),s=Math.round(l*n),d=Math.round(u*r),f=Math.round(2*n);if(e.beginPath(),e.moveTo(a,o),e.lineTo(a,d-f),e.arcTo(a,d,a+f,d,f),e.lineTo(s-f,d),e.arcTo(s,d,s,d-f,f),e.lineTo(s,o),e.fill(),i.pi){let a=Math.round(i.Ei*n),s=o,c=Math.round((s+t.C)*r);e.fillStyle=i.R;let l=Math.max(1,Math.floor(n)),u=Math.floor(.5*n);e.fillRect(a-u,s,l,c-s)}}),e.useMediaCoordinateSpace(({context:e})=>{let n=$(this.qt),i=0+t.S+t.C+t.A+t.P/2;e.font=t.k,e.textAlign=`left`,e.textBaseline=`middle`,e.fillStyle=n.R;let a=t.Qi.Di(e,`Apr0`);e.translate(c+r,i+a),e.fillText(n.ri,0,0)})}},f1=class{constructor(e,t,n){this.xt=!0,this.Xt=new d1,this.Gt={It:!1,G:`#4c525e`,R:`white`,ri:``,nn:0,Ei:NaN,pi:!0},this.Ct=e,this.sn=t,this.Zi=n}Pt(){this.xt=!0}Tt(){return this.xt&&=(this.Rt(),!1),this.Xt.ht(this.Gt),this.Xt}Rt(){let e=this.Gt;if(e.It=!1,this.Ct.N().mode===2)return;let t=this.Ct.N().vertLine;if(!t.labelVisible)return;let n=this.sn.Et();if(n.Gi())return;e.nn=n.nn();let r=this.Zi();if(r===null)return;e.Ei=r.Ei;let i=n.en(this.Ct.Bt());e.ri=n.rn($(i)),e.It=!0;let a=this.sn.Xi().Z(t.labelBackgroundColor);e.G=a.G,e.R=a.X,e.pi=n.N().ticksVisible}},p1=class{constructor(){this.hn=null,this.an=0}ln(){return this.an}_n(e){this.an=e}Ft(){return this.hn}un(e){this.hn=e}cn(e){return[]}dn(){return[]}It(){return!0}},m1;(function(e){e[e.Normal=0]=`Normal`,e[e.Magnet=1]=`Magnet`,e[e.Hidden=2]=`Hidden`,e[e.MagnetOHLC=3]=`MagnetOHLC`})(m1||={});var h1=class extends p1{constructor(e,t){super(),this.yt=null,this.fn=NaN,this.pn=0,this.vn=!1,this.mn=new Map,this.wn=!1,this.Mn=new WeakMap,this.gn=new WeakMap,this.bn=NaN,this.Sn=NaN,this.xn=NaN,this.Cn=NaN,this.sn=e,this.yn=t,this.Pn=((e,t)=>n=>{let r=t(),i=e();if(n===$(this.yt).kn())return{Mt:i,Ei:r};{let e=$(n.Lt());return{Mt:n.Tn(r,e),Ei:r}}})(()=>this.fn,()=>this.Sn);let n=((e,t)=>()=>{let n=this.sn.Et().Rn(e()),r=t();return n&&Number.isFinite(r)?{wt:n,Ei:r}:null})(()=>this.pn,()=>this.ni());this.Dn=new f1(this,e,n)}N(){return this.yn}In(e,t){this.xn=e,this.Cn=t}Vn(){this.xn=NaN,this.Cn=NaN}Bn(){return this.xn}En(){return this.Cn}An(e,t,n){this.wn||=!0,this.vn=!0,this.Ln(e,t,n)}Bt(){return this.pn}ni(){return this.bn}si(){return this.Sn}It(){return this.vn}zn(){this.vn=!1,this.On(),this.fn=NaN,this.bn=NaN,this.Sn=NaN,this.yt=null,this.Vn(),this.Nn()}Fn(e){if(!this.yn.doNotSnapToHiddenSeriesIndices)return e;let t=this.sn,n=t.Et(),r=null,i=null;for(let n of t.Wn()){let t=n.Un().Hn(e,-1);if(t){if(t.$n===e)return e;(r===null||t.$n>r)&&(r=t.$n)}let a=n.Un().Hn(e,1);if(a){if(a.$n===e)return e;(i===null||a.$nMath.abs(o-n.jt(e)));return a[s.indexOf(Math.min(...s))]}jn(e){let t=this.Mn.get(e);t||(t=new t1(this,e),this.Mn.set(e,t));let n=this.gn.get(e);return n||(n=new $_(this.sn,this,e),this.gn.set(e,n)),[t,n]}ti(e){return e===this.yt&&this.yn.horzLine.visible}ii(){return this.yn.vertLine.visible}qn(e,t){this.vn&&this.yt===e||this.mn.clear();let n=[];return this.yt===e&&n.push(this.Yn(this.mn,t,this.Pn)),n}dn(){return this.vn?[this.Dn]:[]}Kn(){return this.yt}Nn(){this.sn.Zn().forEach(e=>{this.Mn.get(e)?.Pt(),this.gn.get(e)?.Pt()}),this.mn.forEach(e=>e.Pt()),this.Dn.Pt()}Gn(e){return e&&!e.kn().Gi()?e.kn():null}Ln(e,t,n){this.Xn(e,t,n)&&this.Nn()}Xn(e,t,n){let r=this.bn,i=this.Sn,a=this.fn,o=this.pn,s=this.yt,c=this.Gn(n);this.pn=e,this.bn=isNaN(e)?NaN:this.sn.Et().jt(e),this.yt=n;let l=c===null?null:c.Lt();return c!==null&&l!==null?(this.fn=t,this.Sn=c.Nt(t,l)):(this.fn=NaN,this.Sn=NaN),r!==this.bn||i!==this.Sn||o!==this.pn||a!==this.fn||s!==this.yt}On(){let e=this.sn.Jn().map(e=>e.Un().Qn()).filter(B_),t=e.length===0?null:Math.max(...e);this.pn=t===null?NaN:t}Yn(e,t,n){let r=e.get(t);return r===void 0&&(r=new l1(this,t,n),e.set(t,r)),r}};function g1(e){return e===`left`||e===`right`}var _1=class e{constructor(e){this.ts=new Map,this.ns=[],this.ss=e}es(e,t){let n=function(e,t){return e===void 0?t:{rs:Math.max(e.rs,t.rs),hs:e.hs||t.hs}}(this.ts.get(e),t);this.ts.set(e,n)}ls(){return this.ss}_s(e){let t=this.ts.get(e);return t===void 0?{rs:this.ss}:{rs:Math.max(this.ss,t.rs),hs:t.hs}}us(){this.cs(),this.ns=[{ds:0}]}fs(e){this.cs(),this.ns=[{ds:1,Wt:e}]}ps(e){this.vs(),this.ns.push({ds:5,Wt:e})}cs(){this.vs(),this.ns.push({ds:6})}ws(){this.cs(),this.ns=[{ds:4}]}Ms(e){this.cs(),this.ns.push({ds:2,Wt:e})}gs(e){this.cs(),this.ns.push({ds:3,Wt:e})}bs(){return this.ns}Ss(e){for(let t of e.ns)this.xs(t);this.ss=Math.max(this.ss,e.ss),e.ts.forEach((e,t)=>{this.es(t,e)})}static Cs(){return new e(2)}static ys(){return new e(3)}xs(e){switch(e.ds){case 0:this.us();break;case 1:this.fs(e.Wt);break;case 2:this.Ms(e.Wt);break;case 3:this.gs(e.Wt);break;case 4:this.ws();break;case 5:this.ps(e.Wt);break;case 6:this.vs()}}vs(){let e=this.ns.findIndex(e=>e.ds===5);e!==-1&&this.ns.splice(e,1)}},v1=class{formatTickmarks(e){return e.map(e=>this.format(e))}},y1=`.`;function b1(e,t){if(!F_(e))return`n/a`;if(!I_(t)||t<0||t>16)throw TypeError(`invalid length`);return t===0?e.toString():(`0000000000000000`+e.toString()).slice(-t)}var x1=class extends v1{constructor(e,t){if(super(),t||=1,F_(e)&&I_(e)||(e=100),e<0)throw TypeError(`invalid base`);this.Ki=e,this.Ps=t,this.ks()}format(e){let t=e<0?`−`:``;return e=Math.abs(e),t+this.Ts(e)}ks(){if(this.Rs=0,this.Ki>0&&this.Ps>0){let e=this.Ki;for(;e>1;)e/=10,this.Rs++}}Ts(e){let t=this.Ki/this.Ps,n=Math.floor(e),r=``,i=this.Rs===void 0?NaN:this.Rs;if(t>1){let a=+(Math.round(e*t)-n*t).toFixed(this.Rs);a>=t&&(a-=t,n+=1),r=y1+b1(+a.toFixed(this.Rs)*this.Ps,i)}else n=Math.round(e*t)/t,i>0&&(r=y1+b1(0,i));return n.toFixed(0)+r}},S1=class extends x1{constructor(e=100){super(e)}format(e){return`${super.format(e)}%`}},C1=class extends v1{constructor(e){super(),this.Ds=e}format(e){let t=``;return e<0&&(t=`-`,e=-e),e<995?t+this.Is(e):e<999995?t+this.Is(e/1e3)+`K`:e<999999995?(e=1e3*Math.round(e/1e3),t+this.Is(e/1e6)+`M`):(e=1e6*Math.round(e/1e6),t+this.Is(e/1e9)+`B`)}Is(e){let t,n=10**this.Ds;return t=(e=Math.round(e*n)/n)>=1e-15&&e<1?e.toFixed(this.Ds).replace(/\.?0+$/,``):String(e),t.replace(/(\.[1-9]*)0+$/,(e,t)=>t)}},w1=/[2-9]/g,T1=class{constructor(e=50){this.Vs=0,this.Bs=1,this.Es=1,this.As={},this.Ls=new Map,this.zs=e}Os(){this.Vs=0,this.Ls.clear(),this.Bs=1,this.Es=1,this.As={}}Ii(e,t,n){return this.Ns(e,t,n).width}Di(e,t,n){let r=this.Ns(e,t,n);return((r.actualBoundingBoxAscent||0)-(r.actualBoundingBoxDescent||0))/2}Ns(e,t,n){let r=n||w1,i=String(t).replace(r,`0`);if(this.Ls.has(i))return j_(this.Ls.get(i)).Fs;if(this.Vs===this.zs){let e=this.As[this.Es];delete this.As[this.Es],this.Ls.delete(e),this.Es++,this.Vs--}e.save(),e.textBaseline=`middle`;let a=e.measureText(i);return e.restore(),a.width===0&&t.length||(this.Ls.set(i,{Fs:a,Ws:this.Bs}),this.As[this.Bs]=i,this.Vs++,this.Bs++),a}},E1=class{constructor(e){this.Hs=null,this.M=null,this.Us=`right`,this.$s=e}js(e,t,n){this.Hs=e,this.M=t,this.Us=n}st(e){this.M!==null&&this.Hs!==null&&this.Hs.st(e,this.M,this.$s,this.Us)}},D1=class{constructor(e,t,n){this.qs=e,this.$s=new T1(50),this.Ys=t,this.O=n,this.F=-1,this.Xt=new E1(this.$s)}Tt(){let e=this.O.Ks(this.Ys);if(e===null)return null;let t=e.Zs(this.Ys)?e.Gs():this.Ys.Ft();if(t===null)return null;let n=e.Xs(t);if(n===`overlay`)return null;let r=this.O.Js();return r.P!==this.F&&(this.F=r.P,this.$s.Os()),this.Xt.js(this.qs.qi(),r,n),this.Xt}},O1=7,k1=class extends Y_{constructor(){super(...arguments),this.qt=null}ht(e){this.qt=e}Qs(e,t){if(!this.qt?.It)return null;let{ut:n,ct:r,te:i=O1,ie:a}=this.qt;return t>=n-r-i&&t<=n+r+i?{ne:this.qt,se:Math.abs(t-n),ee:2,re:`price-line`,ie:a}:null}et({context:e,bitmapSize:t,horizontalPixelRatio:n,verticalPixelRatio:r}){if(this.qt===null||!1===this.qt.It)return;let i=Math.round(this.qt.ut*r);i<0||i>t.height||(e.lineCap=`butt`,e.strokeStyle=this.qt.R,e.lineWidth=Math.floor(this.qt.ct*n),O_(e,this.qt.Zt),k_(e,i,0,t.width))}},A1=class{constructor(e){this.he={ut:0,R:`rgba(0, 0, 0, 0)`,ct:1,Zt:0,It:!1},this.ae=new k1,this.xt=!0,this.le=e,this.oe=e.Qt(),this.ae.ht(this.he)}Pt(){this.xt=!0}Tt(){return this.le.It()?(this.xt&&=(this._e(),!1),this.ae):null}},j1=class extends A1{constructor(e){super(e)}_e(){this.he.It=!1;let e=this.le.Ft(),t=e.ue().ue;if(t!==2&&t!==3)return;let n=this.le.N();if(!n.baseLineVisible||!this.le.It())return;let r=this.le.Lt();r!==null&&(this.he.It=!0,this.he.ut=e.Nt(r.Wt,r.Wt),this.he.R=n.baseLineColor,this.he.ct=n.baseLineWidth,this.he.Zt=n.baseLineStyle)}},M1=class extends Y_{constructor(){super(...arguments),this.qt=null}ht(e){this.qt=e}ce(){return this.qt}et({context:e,horizontalPixelRatio:t,verticalPixelRatio:n}){let r=this.qt;if(r===null)return;let i=Math.max(1,Math.floor(t)),a=i%2/2,o=Math.round(r.de.x*t)+a,s=r.de.y*n;e.fillStyle=r.fe,e.beginPath();let c=Math.max(2,1.5*r.pe)*t;e.arc(o,s,c,0,2*Math.PI,!1),e.fill(),e.fillStyle=r.ve,e.beginPath(),e.arc(o,s,r.ft*t,0,2*Math.PI,!1),e.fill(),e.lineWidth=i,e.strokeStyle=r.me,e.beginPath(),e.arc(o,s,r.ft*t+i/2,0,2*Math.PI,!1),e.stroke()}},N1=[{we:0,Me:.25,ge:4,be:10,Se:.25,xe:0,Ce:.4,ye:.8},{we:.25,Me:.525,ge:10,be:14,Se:0,xe:0,Ce:.8,ye:0},{we:.525,Me:1,ge:14,be:14,Se:0,xe:0,Ce:0,ye:0}],P1=class{constructor(e){this.Xt=new M1,this.xt=!0,this.Pe=!0,this.ke=performance.now(),this.Te=this.ke-1,this.Re=e}De(){this.Te=this.ke-1,this.Pt()}Ie(){if(this.Pt(),this.Re.N().lastPriceAnimation===2){let e=performance.now(),t=this.Te-e;if(t>0)return void(t<650&&(this.Te+=2600));this.ke=e,this.Te=e+2600}}Pt(){this.xt=!0}Ve(){this.Pe=!0}It(){return this.Re.N().lastPriceAnimation!==0}Be(){switch(this.Re.N().lastPriceAnimation){case 0:return!1;case 1:return!0;case 2:return performance.now()<=this.Te}}Tt(){return this.xt?(this.Rt(),this.xt=!1,this.Pe=!1):this.Pe&&=(this.Ee(),!1),this.Xt}Rt(){this.Xt.ht(null);let e=this.Re.Qt().Et(),t=e.Ae(),n=this.Re.Lt();if(t===null||n===null)return;let r=this.Re.Le(!0);if(r.ze||!t.Oe(r.$n))return;let i={x:e.jt(r.$n),y:this.Re.Ft().Nt(r.Mt,n.Wt)},a=r.R,o=this.Re.N().lineWidth,s=this.Ne(this.Fe(),a);this.Xt.ht({fe:a,pe:o,ve:s.ve,me:s.me,ft:s.ft,de:i})}Ee(){let e=this.Xt.ce();if(e!==null){let t=this.Ne(this.Fe(),e.fe);e.ve=t.ve,e.me=t.me,e.ft=t.ft}}Fe(){return this.Be()?performance.now()-this.ke:2599}We(e,t,n,r){let i=n+(r-n)*t;return this.Re.Qt().Xi().Y(e,i)}Ne(e,t){let n=e%2600/2600,r;for(let e of N1)if(n>=e.we&&n<=e.Me){r=e;break}A_(r!==void 0,`Last price animation internal logic error`);let i=(n-r.we)/(r.Me-r.we);return{ve:this.We(t,i,r.Se,r.xe),me:this.We(t,i,r.Ce,r.ye),ft:(a=i,o=r.ge,s=r.be,o+(s-o)*a)};var a,o,s}},F1=class extends A1{constructor(e){super(e)}_e(){let e=this.he;e.It=!1;let t=this.le.N();if(!t.priceLineVisible||!this.le.It())return;let n=this.le.Le(t.priceLineSource===0);n.ze||(e.It=!0,e.ut=n.Ei,e.R=this.le.He(n.R),e.ct=t.priceLineWidth,e.Zt=t.priceLineStyle)}},I1=class extends c1{constructor(e){super(),this.Jt=e}Yi(e,t,n){e.It=!1,t.It=!1;let r=this.Jt;if(!r.It())return;let i=r.N(),a=i.lastValueVisible,o=r.Ue()!==``,s=i.seriesLastValueMode===0,c=r.Le(!1);if(c.ze)return;a&&(e.ri=this.$e(c,a,s),e.It=e.ri.length!==0),(o||s)&&(t.ri=this.je(c,a,o,s),t.It=t.ri.length>0);let l=r.He(c.R),u=this.Jt.Qt().Xi().Z(l);n.G=u.G,n.Ei=c.Ei,t.Ht=r.Qt().Ut(c.Ei/r.Ft().$t()),e.Ht=l,e.R=u.X,t.R=u.X}je(e,t,n,r){let i=``,a=this.Jt.Ue();return n&&a.length!==0&&(i+=`${a} `),t&&r&&(i+=this.Jt.Ft().qe()?e.Ye:e.Ke),i.trim()}$e(e,t,n){return t?n?this.Jt.Ft().qe()?e.Ke:e.Ye:e.ri:``}};function L1(e,t,n,r){let i=Number.isFinite(t),a=Number.isFinite(n);return i&&a?e(t,n):i||a?i?t:n:r}var R1=class e{constructor(e,t){this.Ze=e,this.Ge=t}Xe(e){return e!==null&&this.Ze===e.Ze&&this.Ge===e.Ge}Je(){return new e(this.Ze,this.Ge)}Qe(){return this.Ze}tr(){return this.Ge}ir(){return this.Ge-this.Ze}Gi(){return this.Ge===this.Ze||Number.isNaN(this.Ge)||Number.isNaN(this.Ze)}Ss(t){return t===null?this:new e(L1(Math.min,this.Qe(),t.Qe(),-1/0),L1(Math.max,this.tr(),t.tr(),1/0))}nr(e){if(!F_(e)||this.Ge-this.Ze===0)return;let t=.5*(this.Ge+this.Ze),n=this.Ge-t,r=this.Ze-t;n*=e,r*=e,this.Ge=t+n,this.Ze=t+r}sr(e){F_(e)&&(this.Ge+=e,this.Ze+=e)}er(){return{minValue:this.Ze,maxValue:this.Ge}}static rr(t){return t===null?null:new e(t.minValue,t.maxValue)}},z1=class e{constructor(e,t){this.hr=e,this.ar=t||null}lr(){return this.hr}_r(){return this.ar}er(){return{priceRange:this.hr===null?null:this.hr.er(),margins:this.ar||void 0}}static rr(t){return t===null?null:new e(R1.rr(t.priceRange),t.margins)}},B1=[2,4,8,16,32,64,128,256,512],V1=`Custom series with conflation reducer must have a priceValueBuilder method`,H1=class extends A1{constructor(e,t){super(e),this.ur=t}_e(){let e=this.he;e.It=!1;let t=this.ur.N();if(!this.le.It()||!t.lineVisible)return;let n=this.ur.cr();n!==null&&(e.It=!0,e.ut=n,e.R=t.color,e.ct=t.lineWidth,e.Zt=t.lineStyle,e.te=t.hitTestTolerance,e.ie=this.ur.N().id)}},U1=class extends c1{constructor(e,t){super(),this.Re=e,this.ur=t}Yi(e,t,n){e.It=!1,t.It=!1;let r=this.ur.N(),i=r.axisLabelVisible,a=r.title!==``,o=this.Re;if(!i||!o.It())return;let s=this.ur.cr();if(s===null)return;a&&(t.ri=r.title,t.It=!0),t.Ht=o.Qt().Ut(s/o.Ft().$t()),e.ri=this.dr(r.price),e.It=!0;let c=this.Re.Qt().Xi().Z(r.axisLabelColor||r.color);n.G=c.G;let l=r.axisLabelTextColor||c.X;e.R=l,t.R=l,n.Ei=s}dr(e){let t=this.Re.Lt();return t===null?``:this.Re.Ft().Ji(e,t.Wt)}},W1=class{constructor(e,t){this.Re=e,this.yn=t,this.pr=new H1(e,this),this.qs=new U1(e,this),this.vr=new D1(this.qs,e,e.Qt())}mr(e){P_(this.yn,e),this.Pt(),this.Re.Qt().wr()}N(){return this.yn}Mr(){return this.pr}gr(){return this.vr}br(){return this.qs}Pt(){this.pr.Pt(),this.qs.Pt()}cr(){let e=this.Re,t=e.Ft();if(e.Qt().Et().Gi()||t.Gi())return null;let n=e.Lt();return n===null?null:t.Nt(this.yn.price,n.Wt)}},G1=class{constructor(){this.Sr=new WeakMap}Cr(e,t,n){let r=1/t*n;if(e>=r)return 1;let i=r/e;return Math.min(2**Math.floor(Math.log2(i)),512)}yr(e,t,n,r=!1,i){if(e.length===0||t<=1)return e;let a=this.Pr(t);if(a<=1)return e;let o=this.kr(e),s=o.Tr.get(a);return s!==void 0||(s=this.Rr(e,a,n,r,i,o.Tr),o.Tr.set(a,s)),s}Dr(e,t,n,r,i=!1,a){if(n<1||e.length===0)return e;let o=this.kr(e),s=o.Tr.get(n);if(!s)return this.yr(e,n,r,i,a);let c=this.Ir(e,t,n,s,i,r,a);return o.Tr.set(n,c),c}Pr(e){if(e<=2)return 2;for(let t of B1)if(e<=t)return t;return 512}Vr(e){if(e.length===0)return 0;let t=e[0],n=e[e.length-1];return 31*e.length+17*t.$n+13*n.$n}Rr(e,t,n,r=!1,i,a=new Map){if(t===2)return this.Br(e,2,n,r,i);let o=t/2,s=a.get(o);return s||(s=this.Rr(e,o,n,r,i,a),a.set(o,s)),this.Er(s,n,r,i)}Br(e,t,n,r=!1,i){let a=this.Ar(e,t,n,r,i);return this.Lr(a,r)}Er(e,t,n=!1,r){let i=this.Ar(e,2,t,n,r);return this.Lr(i,n)}Ar(e,t,n,r=!1,i){let a=[];for(let o=0;o=t){let t=this.zr(e[o],e[o+1],n,r,i);t.Or=!1,a.push(t)}else if(a.length===0)a.push(this.Nr(e[o],!0));else{let t=a[a.length-1];a[a.length-1]=this.Fr(t,e[o],n,r,i)}return a}Wr(e,t){return(e??1)+(t??1)}zr(e,t,n,r=!1,i){if(!r||!n||!i){let n=e.Wt[1]>t.Wt[1]?e.Wt[1]:t.Wt[1],r=e.Wt[2]t.Wt[1]?e.Yr:t.Wt[1],Kr:e.Krthis.ih(e,t))}Ir(e,t,n,r,i=!1,a,o){if(r.length===0)return r;let s=e.length-1,c=Math.floor(s/n)*n;if(Math.min(c+n,e.length)-cn){let r=e.slice();return r[r.length-1]=t,this.yr(r,n,a,i,o)}if(Math.floor((s-1)/n)===Math.floor(s/n)||r.length===1){let l=Math.min(c+n,e.length),u=l-c;if(u<=0)return r;let d=u===1?this.Nr(c===s?t:e[c],!0):this.Qr(e,c,l,s,t,a,i,o);return r[r.length-1]=this.ih(d,i),r}{let r=e.slice();return r[r.length-1]=t,this.yr(r,n,a,i,o)}}Nr(e,t=!1){return{Hr:e.$n,Ur:e.$n,$r:e.wt,jr:e.wt,qr:e.Wt[0],Yr:e.Wt[1],Kr:e.Wt[2],Zr:e.Wt[3],Gr:e.Gr??1,Xr:e.ce,Or:t}}kr(e){let t=this.nh(e),n=this.Vr(e);return t.sh!==n&&(t.Tr.clear(),t.sh=n),t}nh(e){let t=this.Sr.get(e);return t===void 0&&(t={sh:this.Vr(e),Tr:new Map},this.Sr.set(e,t)),t}},K1=class extends p1{constructor(e){super(),this.sn=e}Qt(){return this.sn}},q1={Bar:(e,t,n,r)=>{let i=t.upColor,a=t.downColor,o=$(e(n,r)),s=M_(o.Wt[0])<=M_(o.Wt[3]);return{eh:o.R??(s?i:a)}},Candlestick:(e,t,n,r)=>{let i=t.upColor,a=t.downColor,o=t.borderUpColor,s=t.borderDownColor,c=t.wickUpColor,l=t.wickDownColor,u=$(e(n,r)),d=M_(u.Wt[0])<=M_(u.Wt[3]);return{eh:u.R??(d?i:a),rh:u.Ht??(d?o:s),hh:u.ah??(d?c:l)}},Custom:(e,t,n,r)=>({eh:$(e(n,r)).R??t.color}),Area:(e,t,n,r)=>{let i=$(e(n,r));return{eh:i.vt??t.lineColor,vt:i.vt??t.lineColor,oh:i.oh??t.topColor,_h:i._h??t.bottomColor}},Baseline:(e,t,n,r)=>{let i=$(e(n,r));return{eh:i.Wt[3]>=t.baseValue.price?t.topLineColor:t.bottomLineColor,uh:i.uh??t.topLineColor,dh:i.dh??t.bottomLineColor,fh:i.fh??t.topFillColor1,ph:i.ph??t.topFillColor2,mh:i.mh??t.bottomFillColor1,wh:i.wh??t.bottomFillColor2}},Line:(e,t,n,r)=>{let i=$(e(n,r));return{eh:i.R??t.color,vt:i.R??t.color}},Histogram:(e,t,n,r)=>({eh:$(e(n,r)).R??t.color})},J1=class{constructor(e){this.Mh=(e,t)=>t===void 0?this.Re.Un().gh(e):t.Wt,this.Re=e,this.bh=q1[e.Sh()]}xh(e,t){return this.bh(this.Mh,this.Re.N(),e,t)}};function Y1(e,t,n,r,i=0,a=t.length){let o=a-i;for(;0>1,s=i+a;r(t[s],n)===e?(i=s+1,o-=a+1):o=a}return i}var X1=Y1.bind(null,!0),Z1=Y1.bind(null,!1),Q1;(function(e){e[e.NearestLeft=-1]=`NearestLeft`,e[e.None=0]=`None`,e[e.NearestRight=1]=`NearestRight`})(Q1||={});var $1=30,e0=class{constructor(){this.Ch=[],this.yh=new Map,this.Ph=new Map,this.kh=[]}Th(){return this.Rh()>0?this.Ch[this.Ch.length-1]:null}Dh(){return this.Rh()>0?this.Ih(0):null}Qn(){return this.Rh()>0?this.Ih(this.Ch.length-1):null}Rh(){return this.Ch.length}Gi(){return this.Rh()===0}Oe(e){return this.Vh(e,0)!==null}gh(e){return this.Hn(e)}Hn(e,t=0){let n=this.Vh(e,t);return n===null?null:{...this.Bh(n),$n:this.Ih(n)}}Eh(){return this.Ch}Ah(e,t,n){if(this.Gi())return null;let r=null;for(let i of n)r=t0(r,this.Lh(e,t,i));return r}ht(e){this.Ph.clear(),this.yh.clear(),this.Ch=e,this.kh=e.map(e=>e.$n)}zh(){return this.kh}Ih(e){return this.Ch[e].$n}Bh(e){return this.Ch[e]}Vh(e,t){let n=this.Oh(e);if(n===null&&t!==0)switch(t){case-1:return this.Nh(e);case 1:return this.Fh(e);default:throw TypeError(`Unknown search mode`)}return n}Nh(e){let t=this.Wh(e);return t>0&&--t,t!==this.Ch.length&&this.Ih(t)e.$ne.$n>t)}Uh(e,t,n){let r=null;for(let i=e;ir.jh&&(r.jh=e)))}return r}Lh(e,t,n){if(this.Gi())return null;let r=null,i=$(this.Dh()),a=$(this.Qn()),o=Math.max(e,i),s=Math.min(t,a),c=Math.ceil(o/$1)*$1,l=Math.max(c,Math.floor(s/$1)*$1);{let e=this.Wh(o),i=this.Hh(Math.min(s,c,t));r=t0(r,this.Uh(e,i,n))}let u=this.yh.get(n);u===void 0&&(u=new Map,this.yh.set(n,u));for(let e=Math.max(c+1,o);enew a0(e));return this.Jh={Zh:e,Gh:t},t}Qs(e,t){return this.Qh.hitTest?.(e,t)??null}},s0=class extends o0{cn(){return[]}},c0=class{constructor(e){this.qh=e}st(e,t,n){this.qh.draw(e,r0)}Yh(e,t,n){this.qh.drawBackground?.(e,r0)}},l0=class{constructor(e){this.Ls=null,this.Kh=e}Tt(){let e=this.Kh.renderer();if(e===null)return null;if(this.Ls?.Zh===e)return this.Ls.Gh;let t=new c0(e);return this.Ls={Zh:e,Gh:t},t}Xh(){return this.Kh.zOrder?.()??`normal`}};function u0(e){return{ri:e.text(),Ei:e.coordinate(),Vi:e.fixedCoordinate?.(),R:e.textColor(),G:e.backColor(),It:e.visible?.()??!0,pi:e.tickVisible?.()??!0}}var d0=class{constructor(e,t){this.Xt=new d1,this.ia=e,this.na=t}Tt(){return this.Xt.ht({nn:this.na.nn(),...u0(this.ia)}),this.Xt}},f0=class extends c1{constructor(e,t){super(),this.ia=e,this.Ki=t}Yi(e,t,n){let r=u0(this.ia);n.G=r.G,e.R=r.R;let i=2/12*this.Ki.P();n.Ti=i,n.Ri=i,n.Ei=r.Ei,n.Vi=r.Vi,e.ri=r.ri,e.It=r.It,e.pi=r.pi}},p0=class extends o0{constructor(e,t){super(e),this.sa=null,this.ea=null,this.ra=null,this.ha=null,this.Re=t}dn(){let e=this.Qh.timeAxisViews?.()??[];if(this.sa?.Zh===e)return this.sa.Gh;let t=this.Re.Qt().Et(),n=e.map(e=>new d0(e,t));return this.sa={Zh:e,Gh:n},n}qn(){let e=this.Qh.priceAxisViews?.()??[];if(this.ea?.Zh===e)return this.ea.Gh;let t=this.Re.Ft(),n=e.map(e=>new f0(e,t));return this.ea={Zh:e,Gh:n},n}aa(){let e=this.Qh.priceAxisPaneViews?.()??[];if(this.ra?.Zh===e)return this.ra.Gh;let t=e.map(e=>new l0(e));return this.ra={Zh:e,Gh:t},t}la(){let e=this.Qh.timeAxisPaneViews?.()??[];if(this.ha?.Zh===e)return this.ha.Gh;let t=e.map(e=>new l0(e));return this.ha={Zh:e,Gh:t},t}oa(e,t){return this.Qh.autoscaleInfo?.(e,t)??null}};function m0(e,t,n,r){e.forEach(e=>{t(e).forEach(e=>{e.Xh()===n&&r.push(e)})})}function h0(e){return e.jn()}function g0(e){return e.aa()}function _0(e){return e.la()}var v0=[`Area`,`Line`,`Baseline`],y0=class extends K1{constructor(e,t,n,r,i){super(e),this.qt=n0(),this.pr=new F1(this),this._a=[],this.ua=new j1(this),this.ca=null,this.da=null,this.fa=null,this.pa=[],this.va=new G1,this.ma=new Map,this.wa=null,this.yn=n,this.Ma=t;let a=new I1(this);if(this.mn=[a],this.vr=new D1(a,this,e),v0.includes(this.Ma)&&(this.ca=new P1(this)),this.ga(),this.Kh=r(this,this.Qt(),i),this.Ma===`Custom`){let e=this.Kh;e.ba&&this.Sa(e.ba)}}m(){this.fa!==null&&clearTimeout(this.fa)}He(e){return this.yn.priceLineColor||e}Le(e){let t={ze:!0},n=this.Ft();if(this.Qt().Et().Gi()||n.Gi()||this.qt.Gi())return t;let r=this.Qt().Et().Ae(),i=this.Lt();if(r===null||i===null)return t;let a,o;if(e){let e=this.qt.Th();if(e===null)return t;a=e,o=e.$n}else{let e=this.qt.Hn(r.bi(),-1);if(e===null||(a=this.qt.gh(e.$n),a===null))return t;o=e.$n}let s=a.Wt[3],c=this.xa().xh(o,{Wt:a}),l=n.Nt(s,i.Wt);return{ze:!1,Mt:s,ri:n.Ji(s,i.Wt),Ye:n.Ca(s),Ke:n.ya(s,i.Wt),R:c.eh,Ei:l,$n:o}}xa(){return this.da!==null||(this.da=new J1(this)),this.da}N(){return this.yn}mr(e){let t=this.Qt(),{priceScaleId:n,visible:r,priceFormat:i}=e;n!==void 0&&n!==this.yn.priceScaleId&&t.Pa(this,n),r!==void 0&&r!==this.yn.visible&&t.ka();let a=e.conflationThresholdFactor!==void 0;P_(this.yn,e),Object.prototype.hasOwnProperty.call(e,`autoscaleInfoProvider`)&&e.autoscaleInfoProvider===void 0&&(this.yn.autoscaleInfoProvider=void 0),a&&(this.ma.clear(),this.Qt().wr()),i!==void 0&&(this.ga(),t.Ta()),t.Ra(this),t.Da(),this.Kh.Pt(`options`)}ht(e,t){this.qt.ht(e),this.ma.clear();let n=this.Qt().Et().N();n.enableConflation&&n.precomputeConflationOnInit&&this.Ia(n.precomputeConflationPriority),this.Va(),this.ca!==null&&(t&&t.Ba?this.ca.Ie():e.length===0&&this.ca.De());let r=this.Qt().Ks(this);this.Qt().Ea(r),this.Qt().Ra(this),this.Qt().Da(),this.Qt().wr()}Va(){this.Kh.Pt(`data`)}Aa(e){let t=new W1(this,e);return this._a.push(t),this.Qt().Ra(this),t}La(e){let t=this._a.indexOf(e);t!==-1&&this._a.splice(t,1),this.Qt().Ra(this)}za(){return this._a}Sh(){return this.Ma}Lt(){let e=this.Oa();return e===null?null:{Wt:e.Wt[3],Na:e.wt}}Oa(){let e=this.Qt().Et().Ae();if(e===null)return null;let t=e.Fa();return this.qt.Hn(t,1)}Un(){return this.qt}Sa(e){this.wa=e,this.ma.clear()}Wa(){return!!this.Qt().Et().N().enableConflation&&this.Ha()>1}Dr(e){if(!this.Wa())return;let t=this.Ha();if(!this.ma.has(t))return;let n=this.Ma===`Custom`,r=n&&this.wa||void 0,i=n&&this.Kh.Ua?e=>{let t=e,n=this.Kh.Ua(t);return Array.isArray(n)?n:[typeof n==`number`?n:0]}:void 0,a=this.va.Dr(this.qt.Eh(),e,t,r,n,i),o=n0();o.ht(a),this.ma.set(t,o)}$a(){let e=this.Qt().Et().N().enableConflation;if(this.Ma===`Custom`&&this.wa===null||!e)return this.qt;let t=this.Ha();return this.ma.get(t)||(this.ja(t),this.ma.get(t)??this.qt)}qa(e){let t=this.qt.gh(e);return t===null?null:this.Ma===`Bar`||this.Ma===`Candlestick`||this.Ma===`Custom`?{qr:t.Wt[0],Yr:t.Wt[1],Kr:t.Wt[2],Zr:t.Wt[3]}:t.Wt[3]}Ya(e){let t=[];m0(this.pa,h0,`top`,t);let n=this.ca;return n!==null&&n.It()&&(this.fa===null&&n.Be()&&(this.fa=setTimeout(()=>{this.fa=null,this.Qt().Ka()},0)),n.Ve(),t.unshift(n)),t}jn(){let e=[];this.Za()||e.push(this.ua),e.push(this.Kh,this.pr);let t=this._a.map(e=>e.Mr());return e.push(...t),m0(this.pa,h0,`normal`,e),e}Ga(){let e=this.Kh.Ga?.()??null;if(e===null)return null;let t=[];this.Za()||t.push(this.ua),t.push(...e.Xa),m0(this.pa,h0,`normal`,t);let n=[];n.push(...e.Ya,this.pr);let r=this._a.map(e=>e.Mr());return n.push(...r),{Xa:t,Ya:n}}Ja(){return this.Qa(h0,`bottom`)}tl(e){return this.Qa(g0,e)}il(e){return this.Qa(_0,e)}nl(e,t){return this.pa.map(n=>n.Qs(e,t)).filter(e=>e!==null)}cn(){return[this.vr,...this._a.map(e=>e.gr())]}qn(e,t){if(t!==this.hn&&!this.Za())return[];let n=[...this.mn];for(let e of this._a)n.push(e.br());return this.pa.forEach(e=>{n.push(...e.qn())}),n}dn(){let e=[];return this.pa.forEach(t=>{e.push(...t.dn())}),e}oa(e,t){if(this.yn.autoscaleInfoProvider!=null){let n=this.yn.autoscaleInfoProvider(()=>{let n=this.sl(e,t);return n===null?null:n.er()});return z1.rr(n)}return this.sl(e,t)}Zh(){let e=this.yn.priceFormat;return e.base??1/e.minMove}el(){return this.rl}Nn(){this.Kh.Pt();for(let e of this.mn)e.Pt();for(let e of this._a)e.Pt();this.pr.Pt(),this.ua.Pt(),this.ca?.Pt(),this.pa.forEach(e=>e.Nn())}Ft(){return $(super.Ft())}At(e){if(this.Ma!==`Line`&&this.Ma!==`Area`&&this.Ma!==`Baseline`||!this.yn.crosshairMarkerVisible)return null;let t=this.qt.gh(e);return t===null?null:{Mt:t.Wt[3],ft:this.hl(),Ht:this.al(),Ot:this.ll(),zt:this.ol(e)}}Ue(){return this.yn.title}It(){return this.yn.visible}_l(e){this.pa.push(new p0(e,this))}ul(e){this.pa=this.pa.filter(t=>t.ta()!==e)}cl(){if(this.Ma===`Custom`)return e=>this.Kh.Ua(e)}dl(){if(this.Ma===`Custom`)return e=>this.Kh.fl(e)}pl(){return this.qt.zh()}Za(){return!g1(this.Ft().vl())}sl(e,t){if(!I_(e)||!I_(t)||this.qt.Gi())return null;let n=this.Ma===`Line`||this.Ma===`Area`||this.Ma===`Baseline`||this.Ma===`Histogram`?[3]:[2,1],r=this.qt.Ah(e,t,n),i=r===null?null:new R1(r.$h,r.jh),a=null;if(this.Sh()===`Histogram`){let e=this.yn.base,t=new R1(e,e);i=i===null?t:i.Ss(t)}return this.pa.forEach(n=>{let r=n.oa(e,t);if(r?.priceRange){let e=new R1(r.priceRange.minValue,r.priceRange.maxValue);i=i===null?e:i.Ss(e)}r?.margins&&(a=r.margins)}),new z1(i,a)}hl(){switch(this.Ma){case`Line`:case`Area`:case`Baseline`:return this.yn.crosshairMarkerRadius}return 0}al(){switch(this.Ma){case`Line`:case`Area`:case`Baseline`:{let e=this.yn.crosshairMarkerBorderColor;if(e.length!==0)return e}}return null}ll(){switch(this.Ma){case`Line`:case`Area`:case`Baseline`:return this.yn.crosshairMarkerBorderWidth}return 0}ol(e){switch(this.Ma){case`Line`:case`Area`:case`Baseline`:{let e=this.yn.crosshairMarkerBackgroundColor;if(e.length!==0)return e}}return this.xa().xh(e).eh}ga(){switch(this.yn.priceFormat.type){case`custom`:{let e=this.yn.priceFormat.formatter;this.rl={format:e,formatTickmarks:this.yn.priceFormat.tickmarksFormatter??(t=>t.map(e))};break}case`volume`:this.rl=new C1(this.yn.priceFormat.precision);break;case`percent`:this.rl=new S1(10**this.yn.priceFormat.precision);break;default:{let e=10**this.yn.priceFormat.precision;this.rl=new x1(e,this.yn.priceFormat.minMove*e)}}this.hn!==null&&this.hn.ml()}Qa(e,t){let n=[];return m0(this.pa,e,t,n),n}Ha(){let{wl:e,Ml:t,gl:n}=this.bl();return this.va.Cr(e,t,n)}bl(){let e=this.Qt().Et(),t=e.wl(),n=window.devicePixelRatio||1,r=e.N().conflationThresholdFactor;return{wl:t,Ml:n,gl:this.yn.conflationThresholdFactor??r??1}}Sl(e){let t=this.qt.Eh(),n;if(this.Ma===`Custom`&&this.wa!==null){let r=this.cl();if(!r)throw Error(V1);n=this.va.yr(t,e,this.wa,!0,e=>r(e))}else n=this.va.yr(t,e);let r=n0();return r.ht(n),r}ja(e){let t=this.Sl(e);this.ma.set(e,t)}Ia(e){if(this.Ma===`Custom`&&(this.wa===null||!this.cl()))return;this.ma.clear();let t=this.Qt().Et().xl();for(let n of t){let t=()=>{this.Cl(n)},r=typeof window==`object`&&window||typeof self==`object`&&self||void 0;r?.scheduler?.postTask?r.scheduler.postTask(()=>{t()},{priority:e}):Promise.resolve().then(()=>t())}}Cl(e){if(this.ma.has(e)||this.qt.Eh().length===0)return;let t=this.Sl(e);this.ma.set(e,t)}},b0=[3],x0=[0,1,2,3],S0=class{constructor(e){this.yn=e}yl(e,t,n){let r=e;if(this.yn.mode===0)return r;let i=n.kn(),a=i.Lt();if(a===null)return r;let o=i.Nt(e,a),s=n.Pl().filter(e=>e instanceof y0).reduce((e,r)=>{if(n.Zs(r)||!r.It())return e;let i=r.Ft(),a=r.Un();if(i.Gi()||!a.Oe(t))return e;let o=a.gh(t);if(o===null)return e;let s=M_(r.Lt()),c=this.yn.mode===3?x0:b0;return e.concat(c.map(e=>i.Nt(o.Wt[e],s.Wt)))},[]);if(s.length===0)return r;s.sort((e,t)=>Math.abs(e-o)-Math.abs(t-o));let c=s[0];return r=i.Tn(c,a),r}};function C0(e,t,n){return Math.min(Math.max(e,t),n)}function w0(e,t,n){return t-e<=n}function T0(e){let t=Math.ceil(e);return t%2==0?t-1:t}var E0=class extends Y_{constructor(){super(...arguments),this.qt=null}ht(e){this.qt=e}et({context:e,bitmapSize:t,horizontalPixelRatio:n,verticalPixelRatio:r}){if(this.qt===null)return;let i=Math.max(1,Math.floor(n));e.lineWidth=i,function(e,t){e.save(),e.lineWidth%2&&e.translate(.5,.5),t(),e.restore()}(e,()=>{let a=$(this.qt);if(a.kl){e.strokeStyle=a.Tl,O_(e,a.Rl),e.beginPath();for(let r of a.Dl){let a=Math.round(r.Il*n);e.moveTo(a,-i),e.lineTo(a,t.height+i)}e.stroke()}if(a.Vl){e.strokeStyle=a.Bl,O_(e,a.El),e.beginPath();for(let n of a.Al){let a=Math.round(n.Il*r);e.moveTo(-i,a),e.lineTo(t.width+i,a)}e.stroke()}})}},D0=class{constructor(e){this.Xt=new E0,this.xt=!0,this.yt=e}Pt(){this.xt=!0}Tt(){if(this.xt){let e=this.yt.Qt().N().grid,t={Vl:e.horzLines.visible,kl:e.vertLines.visible,Bl:e.horzLines.color,Tl:e.vertLines.color,El:e.horzLines.style,Rl:e.vertLines.style,Al:this.yt.kn().Ll(),Dl:(this.yt.Qt().Et().Ll()||[]).map(e=>({Il:e.coord}))};this.Xt.ht(t),this.xt=!1}return this.Xt}},O0=class{constructor(e){this.Kh=new D0(e)}Mr(){return this.Kh}},k0={zl:4,Ol:1e-4};function A0(e,t){let n=100*(e-t)/t;return t<0?-n:n}function j0(e,t){return new R1(A0(e.Qe(),t),A0(e.tr(),t))}function M0(e,t){let n=100*(e-t)/t+100;return t<0?-n:n}function N0(e,t){return new R1(M0(e.Qe(),t),M0(e.tr(),t))}function P0(e,t){let n=Math.abs(e);if(n<1e-15)return 0;let r=Math.log10(n+t.Ol)+t.zl;return e<0?-r:r}function F0(e,t){let n=Math.abs(e);if(n<1e-15)return 0;let r=10**(n-t.zl)-t.Ol;return e<0?-r:r}function I0(e,t){return e===null?null:new R1(P0(e.Qe(),t),P0(e.tr(),t))}function L0(e,t){return e===null?null:new R1(F0(e.Qe(),t),F0(e.tr(),t))}function R0(e){if(e===null)return k0;let t=Math.abs(e.tr()-e.Qe());if(t>=1||t<1e-15)return k0;let n=Math.ceil(Math.abs(Math.log10(t))),r=k0.zl+n;return{zl:r,Ol:1/10**r}}var z0=class{constructor(e,t){if(this.Nl=e,this.Fl=t,function(e){if(e<0)return!1;if(e>1e18)return!0;for(let t=e;t>1;t/=10)if(t%10!=0)return!1;return!0}(this.Nl))this.Wl=[2,2.5,2];else{this.Wl=[];for(let e=this.Nl;e!==1;){if(e%2==0)this.Wl.push(2),e/=2;else{if(e%5!=0)throw Error(`unexpected base`);this.Wl.push(2,2.5),e/=5}if(this.Wl.length>100)throw Error(`something wrong with base`)}}}Hl(e,t,n){let r=this.Nl===0?0:1/this.Nl,i=10**Math.max(0,Math.ceil(Math.log10(e-t))),a=0,o=this.Fl[0];for(;;){let e=w0(i,r,1e-14)&&i>r+1e-14,t=w0(i,n*o,1e-14),s=w0(i,1,1e-14);if(!(e&&t&&s))break;i/=o,o=this.Fl[++a%this.Fl.length]}if(i<=r+1e-14&&(i=r),i=Math.max(1,i),this.Wl.length>0&&(s=i,c=1,l=1e-14,Math.abs(s-c)r+1e-14;)i/=o,o=this.Wl[++a%this.Wl.length];var s,c,l;return i}},B0=class{constructor(e,t,n,r){this.Ul=[],this.Ki=e,this.Nl=t,this.$l=n,this.jl=r}Hl(e,t){if(ee.io),f=this.Ki.no(d);for(let e=0;e=r?1:-1,u=null,d=0;for(let f=n-c;f>r;f-=t){let n=this.jl(f,e,!0);u!==null&&Math.abs(n-u)a||(d0&&o[0].Il-s.Il0&&c.Il-o[o.length-1].Il$(e.ln())-$(t.ln()))}var H0;(function(e){e[e.Normal=0]=`Normal`,e[e.Logarithmic=1]=`Logarithmic`,e[e.Percentage=2]=`Percentage`,e[e.IndexedTo100=3]=`IndexedTo100`})(H0||={});var U0=new S1,W0=new x1(100,1);function G0(e){return{visible:!0,autoScale:!0,...z_(e)}}var K0=class{constructor(e,t,n,r,i){this.lo=0,this.oo=null,this.hr=null,this._o=null,this.uo={co:!1,do:null},this.fo=!1,this.po=0,this.vo=0,this.mo=new N_,this.wo=new N_,this.Mo=[],this.bo=null,this.So=null,this.xo=null,this.Co=null,this.yo=null,this.rl=W0,this.Po=R0(null),this.ko=e,this.yn=t,this.To=n,this.Ro=r,this.Do=i,this.Io=new B0(this,100,this.Vo.bind(this),this.Bo.bind(this))}vl(){return this.ko}N(){return this.yn}mr(e){if(P_(this.yn,e),this.ml(),e.mode!==void 0&&this.Eo({ue:e.mode}),e.scaleMargins!==void 0){let t=j_(e.scaleMargins.top),n=j_(e.scaleMargins.bottom);if(t<0||t>1)throw Error(`Invalid top margin - expect value between 0 and 1, given=${t}`);if(n<0||n>1)throw Error(`Invalid bottom margin - expect value between 0 and 1, given=${n}`);if(t+n>1)throw Error(`Invalid margins - sum of margins must be less than 1, given=${t+n}`);this.Ao(),this.xo=null}}Lo(){return this.yn.autoScale}zo(){return this.fo}ro(){return this.yn.mode===1}qe(){return this.yn.mode===2}Oo(){return this.yn.mode===3}ao(){return this.Po}ue(){return{hs:this.yn.autoScale,No:this.yn.invertScale,ue:this.yn.mode}}Eo(e){let t=this.ue(),n=null;e.hs!==void 0&&(this.yn.autoScale=e.hs),e.ue!==void 0&&(this.yn.mode=e.ue,e.ue!==2&&e.ue!==3||(this.yn.autoScale=!0),this.uo.co=!1),t.ue===1&&e.ue!==t.ue&&(function(e,t){if(e===null)return!1;let n=F0(e.Qe(),t),r=F0(e.tr(),t);return isFinite(n)&&isFinite(r)}(this.hr,this.Po)?(n=L0(this.hr,this.Po),n!==null&&this.Fo(n)):this.yn.autoScale=!0),e.ue===1&&e.ue!==t.ue&&(n=I0(this.hr,this.Po),n!==null&&this.Fo(n));let r=t.ue!==this.yn.mode;r&&(t.ue===2||this.qe())&&this.ml(),r&&(t.ue===3||this.Oo())&&this.ml(),e.No!==void 0&&t.No!==e.No&&(this.yn.invertScale=e.No,this.Wo()),this.wo.p(t,this.ue())}Ho(){return this.wo}P(){return this.To.fontSize}$t(){return this.lo}Uo(e){this.lo!==e&&(this.lo=e,this.Ao(),this.xo=null)}$o(){if(this.oo)return this.oo;let e=this.$t()-this.jo()-this.qo();return this.oo=e,e}lr(){return this.Yo(),this.hr}Fo(e,t){let n=this.hr;(t||n===null&&e!==null||n!==null&&!n.Xe(e))&&(this.xo=null,this.hr=e)}Ko(e){this.Fo(e),this.Zo(e!==null)}Gi(){return this.Yo(),this.lo===0||!this.hr||this.hr.Gi()}Go(e){return this.No()?e:this.$t()-1-e}Nt(e,t){return this.qe()?e=A0(e,t):this.Oo()&&(e=M0(e,t)),this.Bo(e,t)}Xo(e,t,n){this.Yo();let r=this.qo(),i=$(this.lr()),a=i.Qe(),o=i.tr(),s=this.$o()-1,c=this.No(),l=s/(o-a),u=n===void 0?0:n.from,d=n===void 0?e.length:n.to,f=this.Jo();for(let n=u;ne.Nn())}Gl(){return this.yn.ensureEdgeTickMarksVisible&&this.Lo()}Jl(){return this.P()/2}ml(){this.xo=null;let e=1/0;this.bo=null;for(let t of this.Mo)t.ln()P0(e,this.Po):null}x_(e,t,n){return t==null?(n===void 0&&(n=this.el()),n.format(e)):t(e)}C_(e,t,n){return t==null?(n===void 0&&(n=this.el()),n.formatTickmarks(e)):t(e)}dr(e,t){return this.x_(e,this.Ro.priceFormatter,t)}w_(e,t){let n=this.Ro.priceFormatter;return this.C_(e,this.Ro.tickmarksPriceFormatter??(n?e=>e.map(n):void 0),t)}v_(e,t){return this.x_(e,this.Ro.percentageFormatter,t)}m_(e,t){let n=this.Ro.percentageFormatter;return this.C_(e,this.Ro.tickmarksPercentageFormatter??(n?e=>e.map(n):void 0),t)}};function q0(e){return e instanceof y0}var J0=class{constructor(e,t){this.Mo=[],this.y_=new Map,this.lo=0,this.P_=0,this.k_=1,this.So=null,this.T_=null,this.R_=!1,this.D_=new N_,this.pa=[],this.na=e,this.sn=t,this.I_=new O0(this);let n=t.N();this.V_=this.B_(`left`,n.leftPriceScale),this.E_=this.B_(`right`,n.rightPriceScale),this.V_.Ho().i(this.A_.bind(this,this.V_),this),this.E_.Ho().i(this.A_.bind(this,this.E_),this),this.L_(n)}L_(e){if(e.leftPriceScale&&this.V_.mr(e.leftPriceScale),e.rightPriceScale&&this.E_.mr(e.rightPriceScale),e.localization&&(this.V_.ml(),this.E_.ml()),e.overlayPriceScales){let t=Array.from(this.y_.values());for(let n of t){let t=$(n[0].Ft());t.mr(e.overlayPriceScales),e.localization&&t.ml()}}}z_(e){switch(e){case`left`:return this.V_;case`right`:return this.E_}return this.y_.has(e)?j_(this.y_.get(e))[0].Ft():null}m(){this.Qt().O_().u(this),this.V_.Ho().u(this),this.E_.Ho().u(this),this.Mo.forEach(e=>{e.m&&e.m()}),this.pa=this.pa.filter(e=>{let t=e.ta();return t.detached&&t.detached(),!1}),this.D_.p()}N_(){return this.k_}F_(e){this.k_=e}Qt(){return this.sn}nn(){return this.P_}$t(){return this.lo}W_(e){this.P_=e,this.H_()}Uo(e){this.lo=e,this.V_.Uo(e),this.E_.Uo(e),this.Mo.forEach(t=>{if(this.Zs(t)){let n=t.Ft();n!==null&&n.Uo(e)}}),this.H_()}U_(e){this.R_=e}j_(){return this.R_}q_(){return this.Mo.filter(q0)}Pl(){return this.Mo}Zs(e){let t=e.Ft();return t===null||this.V_!==t&&this.E_!==t}r_(e,t,n){this.Y_(e,t,n?e.ln():this.Mo.length)}a_(e,t){let n=this.Mo.indexOf(e);A_(n!==-1,`removeDataSource: invalid data source`),this.Mo.splice(n,1),t||this.Mo.forEach((e,t)=>e._n(t));let r=$(e.Ft()).vl();if(this.y_.has(r)){let t=j_(this.y_.get(r)),n=t.indexOf(e);n!==-1&&(t.splice(n,1),t.length===0&&this.y_.delete(r))}let i=e.Ft();i&&i.Pl().indexOf(e)>=0&&(i.a_(e),this.K_(i)),this.Z_()}Xs(e){return e===this.V_?`left`:e===this.E_?`right`:`overlay`}G_(){return this.V_}X_(){return this.E_}J_(e,t){e.__(t)}Q_(e,t){e.u_(t),this.H_()}tu(e){e.c_()}iu(e,t){e.d_(t)}nu(e,t){e.f_(t),this.H_()}su(e){e.p_()}H_(){this.Mo.forEach(e=>{e.Nn()})}kn(){let[e,t]=this.eu(),n=null;return e.N().visible&&e.Pl().length!==0?n=e:t.N().visible&&t.Pl().length!==0?n=t:this.Mo.length!==0&&(n=this.Mo[0].Ft()),n===null&&(n=this.Gs()??e),n}Gs(){let[e,t]=this.eu();return e.N().visible?e:t.N().visible?t:null}K_(e){e!==null&&e.Lo()&&this.ru(e)}hu(e){let t=this.na.Ae();e.Eo({hs:!0}),t!==null&&e.g_(t),this.H_()}au(){this.ru(this.V_),this.ru(this.E_)}lu(){this.K_(this.V_),this.K_(this.E_),this.Mo.forEach(e=>{this.Zs(e)&&this.K_(e.Ft())}),this.H_(),this.sn.wr()}Dt(){return this.So===null&&(this.So=V0(this.Mo)),this.So}ou(){let e=this.Dt(),t=this.sn.uu()?._u,n=this.sn.N().hoveredSeriesOnTop,r=this.T_;if(r!==null&&r.Zh===e&&r.cu===t&&r.du===n)return r.fu;let i=function(e,t,n){if(!n)return e;let r=e.indexOf(t);if(r===-1||r===e.length-1)return e;let i=[];for(let t=0;te._n(t)),this.Z_();for(let e of[this.V_,this.E_])e.h_(),e.ml();this.sn.wr()}Vt(){return this.Dt().filter(q0)}vu(){return this.D_}mu(){return this.I_}_l(e){this.pa.push(new s0(e))}ul(e){this.pa=this.pa.filter(t=>t.ta()!==e),e.detached&&e.detached(),this.sn.wr()}wu(){return this.pa}nl(e,t){return this.pa.map(n=>n.Qs(e,t)).filter(e=>e!==null)}ru(e){let t=e.M_();if(t&&t.length>0&&!this.na.Gi()){let t=this.na.Ae();t!==null&&e.g_(t)}e.Nn()}Y_(e,t,n){let r=this.z_(t);if(r===null&&(r=this.B_(t,this.sn.N().overlayPriceScales)),this.Mo.splice(n,0,e),!g1(t)){let n=this.y_.get(t)||[];n.push(e),this.y_.set(t,n)}e._n(n),r.r_(e),e.un(r),this.K_(r),this.Z_()}Z_(){this.So=null,this.T_=null}eu(){return this.sn.N().defaultVisiblePriceScaleId===`left`?[this.V_,this.E_]:[this.E_,this.V_]}A_(e,t,n){t.ue!==n.ue&&this.ru(e)}B_(e,t){let n=new K0(e,G0(t),this.sn.N().layout,this.sn.N().localization,this.sn.Xi());return n.Uo(this.$t()),n}};function Y0(e,t){return t===null||e.ee===2&&t.ee!==2||(t.ee!==2||e.ee===2)&&e.se!==t.se&&e.se= left`),this.Tu=e,this.Ru=t}Fa(){return this.Tu}bi(){return this.Ru}Du(){return this.Ru-this.Tu+1}Oe(e){return this.Tu<=e&&e<=this.Ru}Xe(e){return this.Tu===e.Fa()&&this.Ru===e.bi()}};function av(e,t){return e===null||t===null?e===t:e.Xe(t)}var ov=class{constructor(){this.Iu=new Map,this.Ls=null,this.Vu=!1}Bu(e){this.Vu=e,this.Ls=null}Eu(e,t){this.Au(t),this.Ls=null;for(let n=t;n{e<=n[0].index?t.push(r):n.splice(X1(n,e,t=>t.index!t||n.has(e.index);for(let t of Array.from(this.Iu.keys()).sort((e,t)=>t-e)){if(!this.Iu.get(t))continue;let n=r;r=[];let a=n.length,o=0,s=j_(this.Iu.get(t)),c=s.length,l=1/0,u=-1/0;for(let t=0;t=e&&d-u>=e&&i(c))r.push(c),u=d;else if(this.Vu)return n}for(;ot.weight?e:t}var lv=class{constructor(e,t,n,r){this.P_=0,this.ju=null,this.qu=[],this.yo=null,this.Co=null,this.Yu=new ov,this.Ku=new Map,this.Zu=sv.$u(),this.Gu=!0,this.Xu=new N_,this.Ju=new N_,this.Qu=new N_,this.tc=null,this.nc=0,this.sc=null,this.ec=new Map,this.rc=-1,this.hc=[],this.ac=1,this.yn=t,this.Ro=n,this.lc=t.rightOffset,this.oc=t.barSpacing,this.sn=e,this._c(t),this.yu=r,this.uc(),this.Yu.Bu(t.uniformDistribution),this.cc(),this.dc()}N(){return this.yn}fc(e){P_(this.Ro,e),this.vc(),this.uc()}mr(e){P_(this.yn,e),this.yn.fixLeftEdge&&this.mc(),this.yn.fixRightEdge&&this.wc(),e.barSpacing!==void 0&&this.sn.Ms(e.barSpacing),e.rightOffset!==void 0&&this.sn.gs(e.rightOffset),this._c(e),e.minBarSpacing===void 0&&e.maxBarSpacing===void 0||this.sn.Ms(e.barSpacing??this.oc),e.ignoreWhitespaceIndices!==void 0&&e.ignoreWhitespaceIndices!==this.yn.ignoreWhitespaceIndices&&this.dc(),this.vc(),this.uc(),e.enableConflation===void 0&&e.conflationThresholdFactor===void 0||this.cc(),this.Qu.p()}Rn(e){return this.qu[e]?.time??null}en(e){return this.qu[e]??null}Mc(e,t){if(this.qu.length<1)return null;if(this.yu.key(e)>this.yu.key(this.qu[this.qu.length-1].time))return t?this.qu.length-1:null;let n=X1(this.qu,this.yu.key(e),(e,t)=>this.yu.key(e.time)0}Ae(){return this.bc(),this.Zu.Hu()}Sc(){return this.bc(),this.Zu.Uu()}xc(){let e=this.Ae();if(e===null)return null;let t={from:e.Fa(),to:e.bi()};return this.Cc(t)}Cc(e){let t=Math.round(e.from),n=Math.round(e.to),r=$(this.yc()),i=$(this.Pc());return{from:$(this.en(Math.max(r,t))),to:$(this.en(Math.min(i,n)))}}kc(e){return{from:$(this.Mc(e.from,!0)),to:$(this.Mc(e.to,!0))}}nn(){return this.P_}W_(e){if(!isFinite(e)||e<=0||this.P_===e)return;let t=this.Sc(),n=this.P_;if(this.P_=e,this.Gu=!0,this.yn.lockVisibleTimeRangeOnResize&&n!==0){let t=this.oc*e/n;this.oc=t}if(this.yn.fixLeftEdge&&t!==null&&t.Fa()<=0){let t=n-e;this.lc-=Math.round(t/this.oc)+1,this.Gu=!0}this.Tc(),this.Rc()}jt(e){if(this.Gi()||!I_(e))return 0;let t=this.Dc()+this.lc-e;return this.P_-(t+.5)*this.oc-1}Ic(e,t){let n=this.Dc(),r=t===void 0?0:t.from,i=t===void 0?e.length:t.to;for(let t=r;tt/2&&!l?n.needAlignCoordinate=!1:n.needAlignCoordinate=u&&e.index<=s||d&&e.index>=c,f++}return this.hc.length=f,this.sc=this.hc,this.hc}Uc(){let e;this.Gu=!0,this.Ms(this.yn.barSpacing),e=this.yn.rightOffsetPixels===void 0?this.yn.rightOffset:this.yn.rightOffsetPixels/this.wl(),this.gs(e)}$c(e){this.Gu=!0,this.ju=e,this.Rc(),this.mc()}jc(e,t){let n=this.Bc(e),r=this.wl(),i=r+r/10*t;this.Ms(i),this.yn.rightBarStaysOnScroll||this.gs(this.Oc()+(n-this.Bc(e)))}__(e){this.yo&&this.p_(),this.Co===null&&this.tc===null&&(this.Gi()||(this.Co=e,this.qc()))}u_(e){if(this.tc===null)return;let t=C0(this.P_-e,0,this.P_),n=C0(this.P_-$(this.Co),0,this.P_);t!==0&&n!==0&&this.Ms(this.tc.wl*t/n)}c_(){this.Co!==null&&(this.Co=null,this.Yc())}d_(e){this.yo===null&&this.tc===null&&(this.Gi()||(this.yo=e,this.qc()))}f_(e){if(this.yo===null)return;let t=(this.yo-e)/this.wl();this.lc=$(this.tc).Oc+t,this.Gu=!0,this.Rc()}p_(){this.yo!==null&&(this.yo=null,this.Yc())}Kc(){this.Zc(this.yn.rightOffset)}Zc(e,t=400){if(!isFinite(e))throw RangeError(`offset is required and must be finite number`);if(!isFinite(t)||t<=0)throw RangeError(`animationDuration (optional) must be finite positive number`);let n=this.lc,r=performance.now();this.sn.ps({Gc:e=>(e-r)/t>=1,Xc:i=>{let a=Math.max(0,(i-r)/t);return a>=1?e:n+(e-n)*a},sr:e=>{let i=(performance.now()-r)/t;i<1&&(n-=e/(1-i))}})}Pt(e,t){this.Gu=!0,this.qu=e,this.Yu.Eu(e,t),this.Rc()}Jc(){return this.Xu}Qc(){return this.Ju}td(){return this.Qu}Dc(){return this.ju||0}nd(e,t){let n=e.Du(),r=t&&this.yn.rightOffsetPixels||0;this.Fc((this.P_-r)/n),this.lc=e.bi()-this.Dc(),t&&(this.lc=r?r/this.wl():this.yn.rightOffset),this.Rc(),this.Gu=!0,this.sn.Lc(),this.sn.wr()}sd(){let e=this.yc(),t=this.Pc();if(e===null||t===null)return;let n=!this.yn.rightOffsetPixels&&this.yn.rightOffset||0;this.nd(new iv(e,t+n),!0)}ed(e){let t=new iv(e.from,e.to);this.nd(t)}rn(e){return this.Ro.timeFormatter==null?this.yu.formatHorzItem(e.time):this.Ro.timeFormatter(e.originalTime)}dc(){if(!this.yn.ignoreWhitespaceIndices)return;this.ec.clear();let e=this.sn.Jn();for(let t of e)for(let e of t.pl())this.ec.set(e,!0);this.rc++}rd(){return this.ac}xl(){let e=1/(window.devicePixelRatio||1),t=this.yn.minBarSpacing;if(t>=e)return[1];let n=[1],r=2;for(;r<=512;)t0?this.yn.maxBarSpacing:.5*this.P_}od(){return this.yn.fixLeftEdge&&this.yn.fixRightEdge&&this.qu.length!==0?this.P_/this.qu.length:this.yn.minBarSpacing}cc(){if(!this.yn.enableConflation)return void(this.ac=1);let e=1/(window.devicePixelRatio||1)*(this.yn.conflationThresholdFactor??1);if(this.oc>=e)return void(this.ac=1);let t=e/this.oc,n=2**Math.floor(Math.log2(t));this.ac=Math.min(n,512)}Rc(){let e=this.ud();e!==null&&this.lct&&(this.lc=t,this.Gu=!0)}ud(){let e=this.yc(),t=this.ju;return e===null||t===null?null:e-t-1+(this.yn.fixLeftEdge?this.P_/this.oc:Math.min(2,this.qu.length,this.P_/this.oc))}dd(){return this.yn.fixRightEdge?0:this.P_/this.oc-Math.min(2,this.qu.length,this.P_/this.oc)}qc(){this.tc={wl:this.wl(),Oc:this.Oc()}}Yc(){this.tc=null}Hc(e){let t=this.Ku.get(e.weight);return t===void 0&&(t=new rv(e=>this.fd(e),this.yu),this.Ku.set(e.weight,t)),t.Pu(e)}fd(e){return this.yu.formatTickmark(e,this.Ro)}ld(e){let t=this.Zu;this.Zu=e,av(t.Hu(),this.Zu.Hu())||this.Xu.p(),av(t.Uu(),this.Zu.Uu())||this.Ju.p(),this.ad()}ad(){this.sc=null}vc(){this.ad(),this.Ku.clear()}uc(){this.yu.updateFormatter(this.Ro)}mc(){if(!this.yn.fixLeftEdge)return;let e=this.yc();if(e===null)return;let t=this.Ae();if(t===null)return;let n=t.Fa()-e;if(n<0){let e=this.lc-n-1;this.gs(e)}this.Tc()}wc(){this.Rc(),this.Tc()}Ec(e){return!this.yn.ignoreWhitespaceIndices||this.ec.get(e)||!1}Ac(e){let t=function*(e){let t=Math.round(e),n=tn)break}return e}_c(e){if(e.rightOffsetPixels!==void 0){let t=e.rightOffsetPixels/(e.barSpacing||this.oc);this.sn.gs(t)}}},uv,dv,fv,pv,mv;(function(e){e[e.OnTouchEnd=0]=`OnTouchEnd`,e[e.OnNextTap=1]=`OnNextTap`})(uv||={});var hv=class{constructor(e,t,n){this.pd=null,this.vd=[],this.md=[],this.wd=null,this.P_=0,this.Md=null,this.gd=new N_,this.bd=new N_,this.Sd=null,this.xd=e,this.yn=t,this.yu=n,this.Do=new q_(this.yn.layout.colorParsers),this.Cd=new W_(this),this.na=new lv(this,t.timeScale,this.yn.localization,n),this.Ct=new h1(this,t.crosshair),this.yd=new S0(t.crosshair),t.addDefaultPane&&(this.Pd(0),this.vd[0].F_(2)),this.kd=this.Td(0),this.Rd=this.Td(1)}Ta(){this.Dd(_1.ys())}wr(){this.Dd(_1.Cs())}Ka(){this.Dd(new _1(1))}Ra(e){let t=this.Id(e);this.Dd(t)}uu(){return this.Md}Vd(e){if(this.Md?._u===e?._u&&this.Md?.gu?.ie===e?.gu?.ie&&this.Md?.gu?.ne===e?.gu?.ne&&this.Md?.Mu===e?.Mu&&this.Md?.re===e?.re)return;let t=this.Md;this.Md=e,t!==null&&this.Ra(t._u),e!==null&&e._u!==t?._u&&this.Ra(e._u)}N(){return this.yn}mr(e){P_(this.yn,e),this.vd.forEach(t=>t.L_(e)),e.timeScale!==void 0&&this.na.mr(e.timeScale),e.localization!==void 0&&this.na.fc(e.localization),(e.leftPriceScale||e.rightPriceScale)&&this.gd.p(),this.kd=this.Td(0),this.Rd=this.Td(1),this.Ta()}Bd(e,t,n=0){let r=this.vd[n];if(r===void 0)return;if(e===`left`)return P_(this.yn,{leftPriceScale:t}),r.L_({leftPriceScale:t}),this.gd.p(),void this.Ta();if(e===`right`)return P_(this.yn,{rightPriceScale:t}),r.L_({rightPriceScale:t}),this.gd.p(),void this.Ta();let i=this.Ed(e,n);i!==null&&(i.Ft.mr(t),this.gd.p())}Ed(e,t){let n=this.vd[t];if(n===void 0)return null;let r=n.z_(e);return r===null?null:{Kn:n,Ft:r}}Et(){return this.na}Zn(){return this.vd}Ad(){return this.Ct}Ld(){return this.bd}zd(e,t){e.Uo(t),this.Lc()}W_(e){this.P_=e,this.na.W_(this.P_),this.vd.forEach(t=>t.W_(e)),this.Lc()}Od(e){this.vd.length!==1&&(A_(e>=0&&e=0&&ee+t.N_(),0),i=this.vd.reduce((e,t)=>e+t.$t(),0),a=i-30*(this.vd.length-1);t=Math.min(a,Math.max(30,t));let o=r/i,s=n.$t();n.F_(t*o);let c=t-s,l=this.vd.length-1;for(let e of this.vd)if(e!==n){let t=Math.min(a,Math.max(30,e.$t()-c/l));c-=e.$t()-t,--l;let n=t*o;e.F_(n)}this.Ta()}Fd(e,t){A_(e>=0&&e=0&&t=0&&e=0&&te.It())),this.wd}ka(){this.wd=null}Xd(e,t,n,r,i){this.Ct.In(e,t);let a=NaN,o=this.na.Vc(e,!0),s=this.na.Ae();s!==null&&(o=Math.min(Math.max(s.Fa(),o),s.bi())),o=this.Ct.Fn(o);let c=r.kn(),l=c.Lt();if(l!==null&&(a=c.Tn(t,l)),a=this.yd.yl(a,o,r),this.Ct.An(o,a,r),this.Ka(),!i){let i=nv(r,e,t);this.Vd(i&&{_u:i._u,gu:i.gu,Mu:i.Mu||null,re:i.re}),this.bd.p(this.Ct.Bt(),{x:e,y:t},n)}}Jd(e,t,n){let r=n.kn(),i=r.Lt(),a=r.Nt(e,$(i)),o=this.na.Mc(t,!0),s=this.na.jt($(o));this.Xd(s,a,null,n,!0)}Qd(e){this.Ad().zn(),this.Ka(),e||this.bd.p(null,null,null)}Da(){let e=this.Ct.Kn();if(e!==null){let t=this.Ct.Bn(),n=this.Ct.En();this.Xd(t,n,null,e)}this.Ct.Nn()}tf(e,t,n){let r=this.na.Rn(0);t!==void 0&&n!==void 0&&this.na.Pt(t,n);let i=this.na.Rn(0),a=this.na.Dc(),o=this.na.Ae();if(o!==null&&r!==null&&i!==null){let t=o.Oe(a),s=this.yu.key(r)>this.yu.key(i),c=e!==null&&e>a&&!s,l=this.na.N().allowShiftVisibleRangeOnWhitespaceReplacement,u=t&&(n!==void 0||l)&&this.na.N().shiftVisibleRangeOnNewBar;if(c&&!u){let t=e-a;this.na.$c(e),this.na.zc(t),this.if(t);return}}this.na.$c(e)}Ea(e){e!==null&&e.lu()}Ks(e){if(function(e){return e instanceof J0}(e))return e;let t=this.vd.find(t=>t.Dt().includes(e));return t===void 0?null:t}Lc(){this.vd.forEach(e=>e.lu()),this.Da()}m(){this.vd.forEach(e=>e.m()),this.vd.length=0,this.yn.localization.priceFormatter=void 0,this.yn.localization.percentageFormatter=void 0,this.yn.localization.timeFormatter=void 0}nf(){return this.Cd}Js(){return this.Cd.N()}O_(){return this.gd}sf(e,t){let n=this.Pd(t);this.ef(e,n),this.md.push(e),this.ka(),this.md.length===1?this.Ta():this.wr()}rf(e){let t=this.Ks(e),n=this.md.indexOf(e);A_(n!==-1,`Series not found`);let r=$(t);this.md.splice(n,1),r.a_(e),e.m&&e.m(),this.ka(),this.na.dc(),this.hf(r)}Pa(e,t){let n=$(this.Ks(e));n.a_(e,!0),n.r_(e,t,!0)}sd(){let e=_1.Cs();e.us(),this.Dd(e)}af(e){let t=_1.Cs();t.fs(e),this.Dd(t)}ws(){let e=_1.Cs();e.ws(),this.Dd(e)}Ms(e){let t=_1.Cs();t.Ms(e),this.Dd(t)}gs(e){let t=_1.Cs();t.gs(e),this.Dd(t)}ps(e){this.pd=e;let t=_1.Cs();t.ps(e),this.Dd(t)}cs(){this.pd=null;let e=_1.Cs();e.cs(),this.Dd(e)}lf(){let e=this.yn.defaultVisiblePriceScaleId,t=this.yn.leftPriceScale.visible;return t===this.yn.rightPriceScale.visible?e:t?`left`:`right`}_f(e,t){if(A_(t>=0,`Index should be greater or equal to 0`),t===this.uf(e))return;let n=$(this.Ks(e));n.a_(e);let r=this.Pd(t);this.ef(e,r);let i=!1;n.Pl().length===0&&(i=this.hf(n)),i||this.Ta()}cf(){return this.Rd}$(){return this.kd}Ut(e){let t=this.Rd,n=this.kd;if(t===n)return t;if(e=Math.max(0,Math.min(100,Math.round(100*e))),this.Sd===null||this.Sd.oh!==n||this.Sd._h!==t)this.Sd={oh:n,_h:t,df:new Map};else{let t=this.Sd.df.get(e);if(t!==void 0)return t}let r=this.Do.tt(n,t,e/100);return this.Sd.df.set(e,r),r}ff(e){return this.vd.indexOf(e)}Xi(){return this.Do}pf(){return this.vf()}vf(e){let t=new J0(this.na,this);this.vd.push(t);let n=e??this.vd.length-1,r=_1.ys();return r.es(n,{rs:0,hs:!0}),this.Dd(r),t}Pd(e){return A_(e>=0,`Index should be greater or equal to 0`),(e=Math.min(this.vd.length,e))t.q_().includes(e))}Hd(e,t){let n=new _1(t);if(e!==null){let r=this.vd.indexOf(e);n.es(r,{rs:t})}return n}Id(e,t){return t===void 0&&(t=2),this.Hd(this.Ks(e),t)}Dd(e){this.xd&&this.xd(e),this.vd.forEach(e=>e.mu().Mr().Pt())}ef(e,t){let n=e.N().priceScaleId,r=n===void 0?this.lf():n;t.r_(e,r),g1(r)||e.mr(e.N())}Td(e){let t=this.yn.layout;return t.background.type===`gradient`?e===0?t.background.topColor:t.background.bottomColor:t.background.color}hf(e){return!e.j_()&&e.Pl().length===0&&this.vd.length>1&&(this.vd.splice(this.ff(e),1),this.Ta(),!0)}if(e){this.pd!==null&&this.pd.sr(e)}};function gv(e){if(e>=1)return 0;let t=0;for(;t<8;t++){if(Math.abs(Math.round(e)-e)<1e-8)return t;e*=10}return t}function _v(e){return!F_(e)&&!L_(e)}function vv(e){return F_(e)}(function(e){e[e.Disabled=0]=`Disabled`,e[e.Continuous=1]=`Continuous`,e[e.OnDataUpdate=2]=`OnDataUpdate`})(dv||={}),function(e){e[e.LastBar=0]=`LastBar`,e[e.LastVisible=1]=`LastVisible`}(fv||={}),function(e){e.Solid=`solid`,e.VerticalGradient=`gradient`}(pv||={}),function(e){e[e.Year=0]=`Year`,e[e.Month=1]=`Month`,e[e.DayOfMonth=2]=`DayOfMonth`,e[e.Time=3]=`Time`,e[e.TimeWithSeconds=4]=`TimeWithSeconds`}(mv||={});var yv=e=>e.getUTCFullYear();function bv(e,t,n){return t.replace(/yyyy/g,(e=>b1(yv(e),4))(e)).replace(/yy/g,(e=>b1(yv(e)%100,2))(e)).replace(/MMMM/g,((e,t)=>new Date(e.getUTCFullYear(),e.getUTCMonth(),1).toLocaleString(t,{month:`long`}))(e,n)).replace(/MMM/g,((e,t)=>new Date(e.getUTCFullYear(),e.getUTCMonth(),1).toLocaleString(t,{month:`short`}))(e,n)).replace(/MM/g,(e=>b1((e=>e.getUTCMonth()+1)(e),2))(e)).replace(/dd/g,(e=>b1((e=>e.getUTCDate())(e),2))(e))}var xv=class{constructor(e=`yyyy-MM-dd`,t=`default`){this.mf=e,this.wf=t}Pu(e){return bv(e,this.mf,this.wf)}},Sv=class{constructor(e){this.Mf=e||`%h:%m:%s`}Pu(e){return this.Mf.replace(`%h`,b1(e.getUTCHours(),2)).replace(`%m`,b1(e.getUTCMinutes(),2)).replace(`%s`,b1(e.getUTCSeconds(),2))}},Cv={gf:`yyyy-MM-dd`,bf:`%h:%m:%s`,Sf:` `,xf:`default`},wv=class{constructor(e={}){let t={...Cv,...e};this.Cf=new xv(t.gf,t.xf),this.yf=new Sv(t.bf),this.Pf=t.Sf}Pu(e){return`${this.Cf.Pu(e)}${this.Pf}${this.yf.Pu(e)}`}};function Tv(e){return 60*e*60*1e3}function Ev(e){return 60*e*1e3}var Dv=[{kf:(Ov=1,1e3*Ov),Tf:10},{kf:Ev(1),Tf:20},{kf:Ev(5),Tf:21},{kf:Ev(30),Tf:22},{kf:Tv(1),Tf:30},{kf:Tv(3),Tf:31},{kf:Tv(6),Tf:32},{kf:Tv(12),Tf:33}],Ov;function kv(e,t){if(e.getUTCFullYear()!==t.getUTCFullYear())return 70;if(e.getUTCMonth()!==t.getUTCMonth())return 60;if(e.getUTCDate()!==t.getUTCDate())return 50;for(let n=Dv.length-1;n>=0;--n)if(Math.floor(t.getTime()/Dv[n].kf)!==Math.floor(e.getTime()/Dv[n].kf))return Dv[n].Tf;return 0}function Av(e){return e}function jv(e){let t=e;if(L_(e)&&(t=Pv(e)),!_v(t))throw Error(`time must be of type BusinessDay`);let n=new Date(Date.UTC(t.year,t.month-1,t.day,0,0,0,0));return{Rf:Math.round(n.getTime()/1e3),Df:t}}function Mv(e){if(!vv(e))throw Error(`time must be of type isUTCTimestamp`);return{Rf:e}}var Nv=/^\d\d\d\d-\d\d-\d\d$/;function Pv(e){if(!Nv.test(e))throw Error(`Invalid date string=${e}, expected format=yyyy-mm-dd`);let t=new Date(e);if(isNaN(t.getTime()))throw Error(`Invalid date string=${e}, expected format=yyyy-mm-dd`);return{day:t.getUTCDate(),month:t.getUTCMonth()+1,year:t.getUTCFullYear()}}function Fv(e){L_(e.time)&&(e.time=Pv(e.time))}var Iv=class{options(){return this.yn}setOptions(e){this.yn=e,this.updateFormatter(e.localization)}preprocessData(e){Array.isArray(e)?function(e){e.forEach(Fv)}(e):Fv(e)}createConverterToInternalObj(e){return $(function(e){return e.length===0?null:_v(e[0].time)||L_(e[0].time)?jv:Mv}(e))}key(e){return typeof e==`object`&&`Rf`in e?e.Rf:this.key(this.convertHorzItemToInternal(e))}cacheKey(e){let t=e;return t.Df===void 0?new Date(1e3*t.Rf).getTime():new Date(Date.UTC(t.Df.year,t.Df.month-1,t.Df.day)).getTime()}convertHorzItemToInternal(e){return vv(t=e)?Mv(t):_v(t)?jv(t):jv(Pv(t));var t}updateFormatter(e){if(!this.yn)return;let t=e.dateFormat;this.If=this.yn.timeScale.timeVisible?new wv({gf:t,bf:this.yn.timeScale.secondsVisible?`%h:%m:%s`:`%h:%m`,Sf:` `,xf:e.locale}):new xv(t,e.locale)}formatHorzItem(e){let t=e;return this.If.Pu(new Date(1e3*t.Rf))}formatTickmark(e,t){let n=function(e,t,n){switch(e){case 0:case 10:return t?n?4:3:2;case 20:case 21:case 22:case 30:case 31:case 32:case 33:return t?3:2;case 50:return 2;case 60:return 1;case 70:return 0}}(e.weight,this.yn.timeScale.timeVisible,this.yn.timeScale.secondsVisible),r=this.yn.timeScale;if(r.tickMarkFormatter!==void 0){let i=r.tickMarkFormatter(e.originalTime,n,t.locale);if(i!==null)return i}return function(e,t,n){let r={timeZone:`UTC`};switch(t){case 0:r.year=`numeric`;break;case 1:r.month=`short`;break;case 2:r.day=`numeric`;break;case 3:r.hour12=!1,r.hour=`2-digit`,r.minute=`2-digit`;break;case 4:r.hour12=!1,r.hour=`2-digit`,r.minute=`2-digit`,r.second=`2-digit`}return(e.Df===void 0?new Date(1e3*e.Rf):new Date(Date.UTC(e.Df.year,e.Df.month-1,e.Df.day))).toLocaleString(n,r)}(e.time,n,t.locale)}maxTickMarkWeight(e){let t=e.reduce(cv,e[0]).weight;return t>30&&t<50&&(t=30),t}fillWeightsForPoints(e,t){(function(e,t=0){if(e.length===0)return;let n=t===0?null:e[t-1].time.Rf,r=n===null?null:new Date(1e3*n),i=0;for(let a=t;a1){let t=Math.ceil(i/(e.length-1)),n=new Date(1e3*(e[0].time.Rf-t));e[0].timeWeight=kv(new Date(1e3*e[0].time.Rf),n)}})(e,t)}static Vf(e){return P_({localization:{dateFormat:`dd MMM 'yy`}},e??{})}},Lv=typeof window<`u`;function Rv(){return!!Lv&&window.navigator.userAgent.toLowerCase().indexOf(`firefox`)>-1}function zv(){return!!Lv&&/iPhone|iPad|iPod/.test(window.navigator.platform)}function Bv(e,t){switch(e){case`custom`:return t===void 0?`series`:`custom-object`;case`price-line`:return`custom-price-line`;case`marker`:return`series-marker`;case`primitive`:return`primitive`;default:return`series`}}function Vv(e){return e+e%2}function Hv(e){Lv&&window.chrome!==void 0&&e.addEventListener(`mousedown`,e=>{if(e.button===1)return e.preventDefault(),!1})}var Uv=class{constructor(e,t,n){this.Bf=0,this.Ef=null,this.Af={_t:-1/0,ut:1/0},this.Lf=0,this.zf=null,this.Of={_t:-1/0,ut:1/0},this.Nf=null,this.Ff=!1,this.Wf=null,this.Hf=null,this.Uf=!1,this.$f=!1,this.jf=!1,this.qf=null,this.Yf=null,this.Kf=null,this.Zf=null,this.Gf=null,this.Xf=null,this.Jf=null,this.Qf=0,this.tp=!1,this.ip=!1,this.np=!1,this.sp=0,this.ep=null,this.rp=!zv(),this.hp=e=>{this.ap(e)},this.lp=e=>{if(this.op(e)){let t=this._p(e);if(++this.Lf,this.zf&&this.Lf>1){let{up:n}=this.cp(Kv(e),this.Of);n<30&&!this.jf&&this.dp(t,this.pp.fp),this.vp()}}else{let t=this._p(e);if(++this.Bf,this.Ef&&this.Bf>1){let{up:n}=this.cp(Kv(e),this.Af);n<5&&!this.$f&&this.mp(t,this.pp.wp),this.Mp()}}},this.gp=e,this.pp=t,this.yn=n,this.bp()}m(){this.qf!==null&&(this.qf(),this.qf=null),this.Yf!==null&&(this.Yf(),this.Yf=null),this.Zf!==null&&(this.Zf(),this.Zf=null),this.Gf!==null&&(this.Gf(),this.Gf=null),this.Xf!==null&&(this.Xf(),this.Xf=null),this.Kf!==null&&(this.Kf(),this.Kf=null),this.Sp(),this.Mp()}xp(e){this.Zf&&this.Zf();let t=this.Cp.bind(this);if(this.Zf=()=>{this.gp.removeEventListener(`mousemove`,t)},this.gp.addEventListener(`mousemove`,t),this.op(e))return;let n=this._p(e);this.mp(n,this.pp.yp),this.rp=!0}Mp(){this.Ef!==null&&clearTimeout(this.Ef),this.Bf=0,this.Ef=null,this.Af={_t:-1/0,ut:1/0}}vp(){this.zf!==null&&clearTimeout(this.zf),this.Lf=0,this.zf=null,this.Of={_t:-1/0,ut:1/0}}Cp(e){if(this.np||this.Hf!==null||this.op(e))return;let t=this._p(e);this.mp(t,this.pp.Pp),this.rp=!0}kp(e){let t=Jv(e.changedTouches,$(this.ep));if(t===null||(this.sp=qv(e),this.Jf!==null)||this.ip)return;this.tp=!0;let{Tp:n,Rp:r,up:i}=this.cp(Kv(t),$(this.Hf));if(this.Uf||!(i<5)){if(!this.Uf){let e=.5*n,t=r>=e&&!this.yn.Dp(),i=e>r&&!this.yn.Ip();t||i||(this.ip=!0),this.Uf=!0,this.jf=!0,this.Sp(),this.vp()}if(!this.ip){let n=this._p(e,t);this.dp(n,this.pp.Vp),Gv(e)}}}Bp(e){if(e.button!==0)return;let{up:t}=this.cp(Kv(e),$(this.Wf));if(t>=5&&(this.$f=!0,this.Mp()),this.$f){let t=this._p(e);this.mp(t,this.pp.Ep)}}cp(e,t){let n=Math.abs(t._t-e._t),r=Math.abs(t.ut-e.ut);return{Tp:n,Rp:r,up:n+r}}Ap(e){let t=Jv(e.changedTouches,$(this.ep));if(t===null&&e.touches.length===0&&(t=e.changedTouches[0]),t===null)return;this.ep=null,this.sp=qv(e),this.Sp(),this.Hf=null,this.Xf&&=(this.Xf(),null);let n=this._p(e,t);if(this.dp(n,this.pp.Lp),++this.Lf,this.zf&&this.Lf>1){let{up:e}=this.cp(Kv(t),this.Of);e<30&&!this.jf&&this.dp(n,this.pp.fp),this.vp()}else this.jf||(this.dp(n,this.pp.zp),this.pp.zp&&Gv(e));this.Lf===0&&Gv(e),e.touches.length===0&&this.Ff&&(this.Ff=!1,Gv(e))}ap(e){if(e.button!==0)return;let t=this._p(e);if(this.Wf=null,this.np=!1,this.Gf&&=(this.Gf(),null),Rv()&&this.gp.ownerDocument.documentElement.removeEventListener(`mouseleave`,this.hp),!this.op(e)){if(this.mp(t,this.pp.Op),++this.Bf,this.Ef&&this.Bf>1){let{up:n}=this.cp(Kv(e),this.Af);n<5&&!this.$f&&this.mp(t,this.pp.wp),this.Mp()}else this.$f||this.mp(t,this.pp.Np)}}Sp(){this.Nf!==null&&(clearTimeout(this.Nf),this.Nf=null)}Fp(e){if(this.ep!==null)return;let t=e.changedTouches[0];this.ep=t.identifier,this.sp=qv(e);let n=this.gp.ownerDocument.documentElement;this.jf=!1,this.Uf=!1,this.ip=!1,this.Hf=Kv(t),this.Xf&&=(this.Xf(),null);{let t=this.kp.bind(this),r=this.Ap.bind(this);this.Xf=()=>{n.removeEventListener(`touchmove`,t),n.removeEventListener(`touchend`,r)},n.addEventListener(`touchmove`,t,{passive:!1}),n.addEventListener(`touchend`,r,{passive:!1}),this.Sp(),this.Nf=setTimeout(this.Wp.bind(this,e),240)}let r=this._p(e,t);this.dp(r,this.pp.Hp),this.zf||(this.Lf=0,this.zf=setTimeout(this.vp.bind(this),500),this.Of=Kv(t))}Up(e){if(e.button!==0)return;let t=this.gp.ownerDocument.documentElement;Rv()&&t.addEventListener(`mouseleave`,this.hp),this.$f=!1,this.Wf=Kv(e),this.Gf&&=(this.Gf(),null);{let e=this.Bp.bind(this),n=this.ap.bind(this);this.Gf=()=>{t.removeEventListener(`mousemove`,e),t.removeEventListener(`mouseup`,n)},t.addEventListener(`mousemove`,e),t.addEventListener(`mouseup`,n)}if(this.np=!0,this.op(e))return;let n=this._p(e);this.mp(n,this.pp.$p),this.Ef||(this.Bf=0,this.Ef=setTimeout(this.Mp.bind(this),500),this.Af=Kv(e))}bp(){this.gp.addEventListener(`mouseenter`,this.xp.bind(this)),this.gp.addEventListener(`touchcancel`,this.Sp.bind(this));{let e=this.gp.ownerDocument,t=e=>{this.pp.jp&&(e.composed&&this.gp.contains(e.composedPath()[0])||e.target&&this.gp.contains(e.target)||this.pp.jp())};this.Yf=()=>{e.removeEventListener(`touchstart`,t)},this.qf=()=>{e.removeEventListener(`mousedown`,t)},e.addEventListener(`mousedown`,t),e.addEventListener(`touchstart`,t,{passive:!0})}zv()&&(this.Kf=()=>{this.gp.removeEventListener(`dblclick`,this.lp)},this.gp.addEventListener(`dblclick`,this.lp)),this.gp.addEventListener(`mouseleave`,this.qp.bind(this)),this.gp.addEventListener(`touchstart`,this.Fp.bind(this),{passive:!0}),Hv(this.gp),this.gp.addEventListener(`mousedown`,this.Up.bind(this)),this.Yp(),this.gp.addEventListener(`touchmove`,()=>{},{passive:!1})}Yp(){this.pp.Kp===void 0&&this.pp.Zp===void 0&&this.pp.Gp===void 0||(this.gp.addEventListener(`touchstart`,e=>this.Xp(e.touches),{passive:!0}),this.gp.addEventListener(`touchmove`,e=>{if(e.touches.length===2&&this.Jf!==null&&this.pp.Zp!==void 0){let t=Wv(e.touches[0],e.touches[1])/this.Qf;this.pp.Zp(this.Jf,t),Gv(e)}},{passive:!1}),this.gp.addEventListener(`touchend`,e=>{this.Xp(e.touches)}))}Xp(e){e.length===1&&(this.tp=!1),e.length!==2||this.tp||this.Ff?this.Jp():this.Qp(e)}Qp(e){let t=this.gp.getBoundingClientRect()||{left:0,top:0};this.Jf={_t:(e[0].clientX-t.left+(e[1].clientX-t.left))/2,ut:(e[0].clientY-t.top+(e[1].clientY-t.top))/2},this.Qf=Wv(e[0],e[1]),this.pp.Kp!==void 0&&this.pp.Kp(),this.Sp()}Jp(){this.Jf!==null&&(this.Jf=null,this.pp.Gp!==void 0&&this.pp.Gp())}qp(e){if(this.Zf&&this.Zf(),this.op(e)||!this.rp)return;let t=this._p(e);this.mp(t,this.pp.tv),this.rp=!zv()}Wp(e){let t=Jv(e.touches,$(this.ep));if(t===null)return;let n=this._p(e,t);this.dp(n,this.pp.iv),this.jf=!0,this.Ff=!0}op(e){return e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents!==void 0?e.sourceCapabilities.firesTouchEvents:qv(e){e.type!==`touchstart`&&Gv(e)}}}};function Wv(e,t){let n=e.clientX-t.clientX,r=e.clientY-t.clientY;return Math.sqrt(n*n+r*r)}function Gv(e){e.cancelable&&e.preventDefault()}function Kv(e){return{_t:e.pageX,ut:e.pageY}}function qv(e){return e.timeStamp||performance.now()}function Jv(e,t){for(let n=0;n!1,Ip:()=>!0}),this.hv={xv:n,Sv:e}}vv(){this.pv.style.backgroundColor=this._v.N().layout.panes.separatorColor}Cv(e){this.hv!==null&&(this.hv.xv.style.backgroundColor=this._v.N().layout.panes.separatorHoverColor)}yv(e){this.hv!==null&&this.ov===null&&(this.hv.xv.style.backgroundColor=``)}Pv(e){if(this.hv===null)return;let t=this.uv.Rv().N_()+this.dv.Rv().N_(),n=t/(this.uv.Mv().height+this.dv.Mv().height),r=30*n;t<=2*r||(this.ov={Dv:e.pageY,Iv:this.uv.Rv().N_(),Vv:t-r,Bv:t,Ev:n,Av:r},this.hv.Sv.style.display=`block`)}kv(e){let t=this.ov;if(t===null)return;let n=(e.pageY-t.Dv)*t.Ev,r=C0(t.Iv+n,t.Av,t.Vv);this.uv.Rv().F_(r),this.dv.Rv().F_(t.Bv-r),this._v.Qt().Ta()}Tv(e){this.ov!==null&&this.hv!==null&&(this.ov=null,this.hv.Sv.style.display=`none`)}};function Xv(e,t){return e.Lv-t.Lv}function Zv(e,t,n){let r=(e.Lv-t.Lv)/(e.wt-t.wt);return Math.sign(r)*Math.min(Math.abs(r),n)}var Qv=class{constructor(e,t,n,r){this.zv=null,this.Ov=null,this.Nv=null,this.Fv=null,this.Wv=null,this.Hv=0,this.Uv=0,this.$v=e,this.jv=t,this.qv=n,this.Ps=r}Yv(e,t){if(this.zv!==null){if(this.zv.wt===t)return void(this.zv.Lv=e);if(Math.abs(this.zv.Lv-e)50)return;let n=0,r=Zv(this.zv,this.Ov,this.jv),i=Xv(this.zv,this.Ov),a=[r],o=[i];if(n+=i,this.Nv!==null){let e=Zv(this.Ov,this.Nv,this.jv);if(Math.sign(e)===Math.sign(r)){let t=Xv(this.Ov,this.Nv);if(a.push(e),o.push(t),n+=t,this.Fv!==null){let e=Zv(this.Nv,this.Fv,this.jv);if(Math.sign(e)===Math.sign(r)){let t=Xv(this.Nv,this.Fv);a.push(e),o.push(t),n+=t}}}}let s=0;for(let e=0;e160?`dark`:`light`}sm(){return this.Qv.N().layout.attributionLogo}hm(){let e=new URL(location.href);return e.hostname?`&utm_source=`+e.hostname+e.pathname:``}tm(){this.nm()&&(this.im(),this.vn=this.sm(),this.vn&&(this.Xv=this.rm(),this.Gv=document.createElement(`style`),this.Gv.innerText=`a#tv-attr-logo{--fill:#131722;--stroke:#fff;position:absolute;left:10px;bottom:10px;height:19px;width:35px;margin:0;padding:0;border:0;z-index:3;}a#tv-attr-logo[data-dark]{--fill:#D1D4DC;--stroke:#131722;}`,this.Zv=document.createElement(`a`),this.Zv.href=`https://www.tradingview.com/?utm_medium=lwc-link&utm_campaign=lwc-chart${this.hm()}&utm_content=lwc-5.3.0`,this.Zv.title=`Charting by TradingView`,this.Zv.id=`tv-attr-logo`,this.Zv.target=`_blank`,this.Zv.innerHTML=``,this.Zv.toggleAttribute(`data-dark`,this.Xv===`dark`),this.Jv.appendChild(this.Gv),this.Jv.appendChild(this.Zv)))}};function ey(e,t){let n=$(e.ownerDocument).createElement(`canvas`);e.appendChild(n);let r=y_(n,{type:`device-pixel-content-box`,options:{allowResizeObserver:!0},transform:(e,t)=>({width:Math.max(e.width,t.width),height:Math.max(e.height,t.height)})});return r.resizeCanvasElement(t),r}function ty(e){e.width=1,e.height=1,e.getContext(`2d`)?.clearRect(0,0,1,1)}function ny(e,t,n,r){e.Yh&&e.Yh(t,n,r)}function ry(e,t,n,r){e.st(t,n,r)}function iy(e,t,n,r){ay(e(n,r),t,r)}function ay(e,t,n){for(let r of e){let e=r.Tt(n);e!==null&&t(e)}}function oy(e,t){return n=>function(e){return e.Ft!==void 0}(n)&&(n.Ft()?.vl()??``)===t?n.tl?.(e)??[]:[]}function sy(e,t,n,r){if(!e.length)return;let i=0,a=e[0].$t(r,!0),o=t===1?n/2-(e[0].Hi()-a/2):e[0].Hi()-a/2-n/2;o=Math.max(0,o);for(let a=1;ad-l:un)&&o>0){let r=t===1?-1-a:a-n,s=Math.min(r,o);for(let n=i;n{this.dm||this.yt.pm().Qt().wr()},this.vm=()=>{this.dm||this.yt.pm().Qt().wr()},this.yt=e,this.yn=t,this.To=t.layout,this.Cd=n,this.wm=r===`left`,this.Mm=oy(`normal`,r),this.gm=oy(`top`,r),this.bm=oy(`bottom`,r),this.pv=document.createElement(`div`),this.pv.style.height=`100%`,this.pv.style.overflow=`hidden`,this.pv.style.width=`25px`,this.pv.style.left=`0`,this.pv.style.position=`relative`,this.Sm=ey(this.pv,Q({width:16,height:16})),this.Sm.subscribeSuggestedBitmapSizeChanged(this.fm);let i=this.Sm.canvasElement;i.style.position=`absolute`,i.style.zIndex=`1`,i.style.left=`0`,i.style.top=`0`,this.xm=ey(this.pv,Q({width:16,height:16})),this.xm.subscribeSuggestedBitmapSizeChanged(this.vm);let a=this.xm.canvasElement;a.style.position=`absolute`,a.style.zIndex=`2`,a.style.left=`0`,a.style.top=`0`;let o={$p:this.Pv.bind(this),Hp:this.Pv.bind(this),Ep:this.kv.bind(this),Vp:this.kv.bind(this),jp:this.Cm.bind(this),Op:this.Tv.bind(this),Lp:this.Tv.bind(this),wp:this.ym.bind(this),fp:this.ym.bind(this),yp:this.Pm.bind(this),tv:this.yv.bind(this)};this.av=new Uv(this.xm.canvasElement,o,{Dp:()=>!this.yn.handleScroll.vertTouchDrag,Ip:()=>!0})}m(){this.av.m(),this.xm.unsubscribeSuggestedBitmapSizeChanged(this.vm),ty(this.xm.canvasElement),this.xm.dispose(),this.Sm.unsubscribeSuggestedBitmapSizeChanged(this.fm),ty(this.Sm.canvasElement),this.Sm.dispose(),this.Ki!==null&&this.Ki.o_().u(this),this.Ki=null}wv(){return this.pv}P(){return this.To.fontSize}km(){let e=this.Cd.N();return this._m!==e.k&&(this.om.Os(),this._m=e.k),e}Tm(){if(this.Ki===null)return 0;let e=0,t=this.km(),n=$(this.Sm.canvasElement.getContext(`2d`,{colorSpace:this.yt.pm().N().layout.colorSpace}));n.save();let r=this.Ki.Ll();n.font=this.Rm(),r.length>0&&(e=Math.max(this.om.Ii(n,r[0].so),this.om.Ii(n,r[r.length-1].so)));let i=this.Dm();for(let t=i.length;t--;){let r=this.om.Ii(n,i[t].ri());r>e&&(e=r)}let a=this.Ki.Lt();if(a!==null&&this.am!==null&&(o=this.yn.crosshair).mode!==2&&o.horzLine.visible&&o.horzLine.labelVisible){let t=this.Ki.Tn(1,a),r=this.Ki.Tn(this.am.height-2,a);e=Math.max(e,this.om.Ii(n,this.Ki.Ji(Math.floor(Math.min(t,r))+.11111111111111,a)),this.om.Ii(n,this.Ki.Ji(Math.ceil(Math.max(t,r))-.11111111111111,a)))}var o;n.restore();let s=e||34;return Vv(Math.ceil(t.S+t.C+t.V+t.B+5+s))}Im(e){this.am!==null&&h_(this.am,e)||(this.am=e,this.dm=!0,this.Sm.resizeCanvasElement(e),this.xm.resizeCanvasElement(e),this.dm=!1,this.pv.style.width=`${e.width}px`,this.pv.style.height=`${e.height}px`)}Vm(){return $(this.am).width}un(e){this.Ki!==e&&(this.Ki!==null&&this.Ki.o_().u(this),this.Ki=e,e.o_().i(this.mo.bind(this),this))}Ft(){return this.Ki}Os(){let e=this.yt.Rv();this.yt.pm().Qt().hu(e,$(this.Ft()))}Bm(e){if(this.am===null)return;let t={colorSpace:this.yt.pm().N().layout.colorSpace};if(e!==1){this.Em(),this.Sm.applySuggestedBitmapSize();let e=w_(this.Sm,t);e!==null&&(e.useBitmapCoordinateSpace(e=>{this.Am(e),this.Lm(e)}),this.yt.zm(e,this.bm),this.Om(e),this.yt.zm(e,this.Mm),this.Nm(e))}this.xm.applySuggestedBitmapSize();let n=w_(this.xm,t);n!==null&&(n.useBitmapCoordinateSpace(({context:e,bitmapSize:t})=>{e.clearRect(0,0,t.width,t.height)}),this.Fm(n),this.yt.zm(n,this.gm))}gv(){return this.Sm.bitmapSize}bv(e,t,n,r){let i=this.gv();if(i.width>0&&i.height>0&&(e.drawImage(this.Sm.canvasElement,t,n),r)){let r=this.xm.canvasElement;e.drawImage(r,t,n)}}Pt(){this.Ki?.Ll()}Pv(e){if(this.Ki===null||this.Ki.Gi()||!this.yn.handleScale.axisPressedMouseMove.price)return;let t=this.yt.pm().Qt(),n=this.yt.Rv();this.lm=!0,t.J_(n,this.Ki,e.localY)}kv(e){if(this.Ki===null||!this.yn.handleScale.axisPressedMouseMove.price)return;let t=this.yt.pm().Qt(),n=this.yt.Rv(),r=this.Ki;t.Q_(n,r,e.localY)}Cm(){if(this.Ki===null||!this.yn.handleScale.axisPressedMouseMove.price)return;let e=this.yt.pm().Qt(),t=this.yt.Rv(),n=this.Ki;this.lm&&(this.lm=!1,e.tu(t,n))}Tv(e){if(this.Ki===null||!this.yn.handleScale.axisPressedMouseMove.price)return;let t=this.yt.pm().Qt(),n=this.yt.Rv();this.lm=!1,t.tu(n,this.Ki)}ym(e){this.yn.handleScale.axisDoubleClickReset.price&&this.Os()}Pm(e){this.Ki!==null&&(!this.yt.pm().Qt().N().handleScale.axisPressedMouseMove.price||this.Ki.qe()||this.Ki.Oo()||this.Wm(1))}yv(e){this.Wm(0)}Dm(){let e=[],t=this.Ki===null?void 0:this.Ki;return(n=>{for(let r=0;r{e.fillStyle=n.borderColor;let s=Math.max(1,Math.floor(o)),c=Math.floor(.5*o),l=Math.round(r.C*a);e.beginPath();for(let n of t)e.rect(Math.floor(i*a),Math.round(n.Il*o)-c,l,s);e.fill()}),e.useMediaCoordinateSpace(({context:e})=>{e.font=this.Rm(),e.fillStyle=n.textColor??this.To.textColor,e.textAlign=this.wm?`right`:`left`,e.textBaseline=`middle`;let a=this.wm?Math.round(i-r.V):Math.round(i+r.C+r.V),o=t.map(t=>this.om.Di(e,t.so));for(let n=t.length;n--;){let r=t[n];e.fillText(r.so,a,r.Il+o[n])}})}Em(){if(this.am===null||this.Ki===null)return;let e=this.am.height/2,t=[],n=this.Ki.Dt().slice(),r=this.yt.Rv(),i=this.km();this.Ki===r.Gs()&&this.yt.Rv().Dt().forEach(e=>{r.Zs(e)&&n.push(e)});let a=this.Ki.Pl()[0],o=this.Ki;n.forEach(n=>{let i=n.qn(r,o);i.forEach(e=>{e.$i()&&e.Wi()===null&&(e.Ui(null),t.push(e))}),a===n&&i.length>0&&(e=i[0].Ei())}),this.Ki.N().alignLabels&&this.Hm(t,i,e)}Hm(e,t,n){if(this.am===null)return;let r=e.filter(e=>e.Ei()<=n),i=e.filter(e=>e.Ei()>n);r.sort((e,t)=>t.Ei()-e.Ei()),r.length&&i.length&&i.push(r[0]),i.sort((e,t)=>e.Ei()-t.Ei());for(let n of e){let e=Math.floor(n.$t(t)/2),r=n.Ei();r>-e&&rthis.am.height-e&&r{t.ji()&&t.Tt($(this.Ki)).st(e,n,this.om,r)})}Fm(e){if(this.am===null||this.Ki===null)return;let t=this.yt.pm().Qt(),n=[],r=this.yt.Rv(),i=t.Ad().qn(r,this.Ki);i.length&&n.push(i);let a=this.km(),o=this.wm?`right`:`left`;n.forEach(t=>{t.forEach(t=>{t.Tt($(this.Ki)).st(e,a,this.om,o)})})}Wm(e){this.pv.style.cursor=e===1?`ns-resize`:`default`}mo(){let e=this.Tm();this.um{this.dm||this.nw===null||this.sn().wr()},this.vm=()=>{this.dm||this.nw===null||this.sn().wr()},this.Qv=e,this.nw=t,this.nw.vu().i(this.sw.bind(this),this,!0),this.ew=document.createElement(`td`),this.ew.style.padding=`0`,this.ew.style.position=`relative`;let n=document.createElement(`div`);n.style.width=`100%`,n.style.height=`100%`,n.style.position=`relative`,n.style.overflow=`hidden`,this.rw=document.createElement(`td`),this.rw.style.padding=`0`,this.hw=document.createElement(`td`),this.hw.style.padding=`0`,this.ew.appendChild(n),this.Sm=ey(n,Q({width:16,height:16})),this.Sm.subscribeSuggestedBitmapSizeChanged(this.fm);let r=this.Sm.canvasElement;r.style.position=`absolute`,r.style.zIndex=`1`,r.style.left=`0`,r.style.top=`0`,this.xm=ey(n,Q({width:16,height:16})),this.xm.subscribeSuggestedBitmapSizeChanged(this.vm);let i=this.xm.canvasElement;i.style.position=`absolute`,i.style.zIndex=`2`,i.style.left=`0`,i.style.top=`0`,this.fv=document.createElement(`tr`),this.fv.appendChild(this.rw),this.fv.appendChild(this.ew),this.fv.appendChild(this.hw),this.aw(),this.av=new Uv(this.xm.canvasElement,this,{Dp:()=>this.Jm===null&&!this.Qv.N().handleScroll.vertTouchDrag,Ip:()=>this.Jm===null&&!this.Qv.N().handleScroll.horzTouchDrag})}m(){this.Um!==null&&this.Um.m(),this.$m!==null&&this.$m.m(),this.jm=null,this.xm.unsubscribeSuggestedBitmapSizeChanged(this.vm),ty(this.xm.canvasElement),this.xm.dispose(),this.Sm.unsubscribeSuggestedBitmapSizeChanged(this.fm),ty(this.Sm.canvasElement),this.Sm.dispose(),this.nw!==null&&(this.nw.vu().u(this),this.nw.m()),this.av.m()}Rv(){return $(this.nw)}lw(t){this.nw!==null&&this.nw.vu().u(this),this.nw=t,this.nw!==null&&this.nw.vu().i(e.prototype.sw.bind(this),this,!0),this.aw(),this.Qv.cv().indexOf(this)===this.Qv.cv().length-1?(this.jm=this.jm??new $v(this.ew,this.Qv),this.jm.Pt()):(this.jm?.im(),this.jm=null)}pm(){return this.Qv}wv(){return this.fv}aw(){if(this.nw!==null&&(this.ow(),this.sn().Jn().length!==0)){if(this.Um!==null){let e=this.nw.G_();this.Um.un($(e))}if(this.$m!==null){let e=this.nw.X_();this.$m.un($(e))}}}_w(){this.Um!==null&&this.Um.Pt(),this.$m!==null&&this.$m.Pt()}N_(){return this.nw===null?0:this.nw.N_()}F_(e){this.nw&&this.nw.F_(e)}yp(e){if(!this.nw)return;this.uw();let t=e.localX,n=e.localY;this.cw(t,n,e)}$p(e){this.uw(),this.dw(),this.cw(e.localX,e.localY,e)}Pp(e){if(!this.nw)return;this.uw();let t=e.localX,n=e.localY;this.cw(t,n,e)}Np(e){this.nw!==null&&(this.uw(),this.cw(e.localX,e.localY,e),this.fw(e))}wp(e){this.nw!==null&&this.pw(this.Zm,e)}fp(e){this.wp(e)}Ep(e){this.uw(),this.mw(e),this.cw(e.localX,e.localY,e)}Op(e){this.nw!==null&&(this.uw(),this.Xm=!1,this.ww(e))}zp(e){this.nw!==null&&this.fw(e)}iv(e){if(this.Xm=!0,this.Jm===null){let t={x:e.localX,y:e.localY};this.Mw(t,t,e)}}tv(e){this.nw!==null&&(this.uw(),this.nw.Qt().Vd(null),this.gw())}bw(){return this.Km}Sw(){return this.Zm}Kp(){this.Gm=1,this.sn().cs()}Zp(e,t){if(!this.Qv.N().handleScale.pinch)return;let n=5*(t-this.Gm);this.Gm=t,this.sn().$d(e._t,n)}Hp(e){this.Xm=!1,this.Qm=this.Jm!==null,this.dw();let t=this.sn().Ad();this.Jm!==null&&t.It()&&(this.tw={x:t.ni(),y:t.si()},this.Jm={x:e.localX,y:e.localY})}Vp(e){if(this.nw===null)return;let t=e.localX,n=e.localY;if(this.Jm!==null){this.Qm=!1;let r=$(this.tw),i=r.x+(t-this.Jm.x),a=r.y+(n-this.Jm.y);this.cw(i,a,e)}else this.mw(e)}Lp(e){this.pm().N().trackingMode.exitMode===0&&(this.Qm=!0),this.xw(),this.ww(e)}Qs(e,t){let n=this.nw;return n===null?null:nv(n,e,t)}Cw(e,t){$(t===`left`?this.Um:this.$m).Im(Q({width:e,height:this.am.height}))}Mv(){return this.am}Im(e){h_(this.am,e)||(this.am=e,this.dm=!0,this.Sm.resizeCanvasElement(e),this.xm.resizeCanvasElement(e),this.dm=!1,this.ew.style.width=e.width+`px`,this.ew.style.height=e.height+`px`)}yw(){let e=$(this.nw);e.K_(e.G_()),e.K_(e.X_());for(let t of e.Pl())if(e.Zs(t)){let n=t.Ft();n!==null&&e.K_(n),t.Nn()}for(let t of e.wu())t.Nn()}gv(){return this.Sm.bitmapSize}bv(e,t,n,r){let i=this.gv();if(i.width>0&&i.height>0&&(e.drawImage(this.Sm.canvasElement,t,n),r)){let r=this.xm.canvasElement;e!==null&&e.drawImage(r,t,n)}}Bm(e){if(e===0||this.nw===null)return;e>1&&this.yw(),this.Um!==null&&this.Um.Bm(e),this.$m!==null&&this.$m.Bm(e);let t={colorSpace:this.Qv.N().layout.colorSpace};if(e!==1){this.Sm.applySuggestedBitmapSize();let e=w_(this.Sm,t);e!==null&&(e.useBitmapCoordinateSpace(e=>{this.Am(e)}),this.nw&&(this.Pw(e,ly),this.kw(e),this.Pw(e,uy),this.Pw(e,dy)))}this.xm.applySuggestedBitmapSize();let n=w_(this.xm,t);n!==null&&(n.useBitmapCoordinateSpace(({context:e,bitmapSize:t})=>{e.clearRect(0,0,t.width,t.height)}),this.Tw(n),this.Pw(n,fy),this.Pw(n,dy))}Rw(){return this.Um}Dw(){return this.$m}zm(e,t){this.Pw(e,t)}sw(){this.nw!==null&&this.nw.vu().u(this),this.nw=null}fw(e){this.pw(this.Km,e)}pw(e,t){let n=t.localX,r=t.localY;e.v()&&e.p(this.sn().Et().Vc(n),{x:n,y:r},t)}Am({context:e,bitmapSize:t}){let{width:n,height:r}=t,i=this.sn(),a=i.$(),o=i.cf();a===o?r1(e,0,0,n,r,o):o1(e,0,0,n,r,a,o)}kw(e){let t=$(this.nw),n=t.mu().Mr().Tt(t);n!==null&&n.st(e,!1)}Tw(e){this.Iw(e,uy,ry,this.sn().Ad())}Pw(e,t){let n=$(this.nw),r=t===uy?this.Vw():null,i=r===null?null:this.Bw(r,n),a=n.wu();if(i===null||r===null){let r=n.ou();this.Ew(e,t,ny,a,r),this.Ew(e,t,ry,a,r);return}let o=n.Dt(),s=e=>e===r?i.Xa:void 0;this.Ew(e,t,ny,a,o,s),this.Ew(e,t,ry,a,o,s),this.Iw(e,t,ny,r,i.Ya),this.Iw(e,t,ry,r,i.Ya)}Ew(e,t,n,r,i,a){for(let i of r)this.Iw(e,t,n,i);if(a!==void 0)for(let r of i)this.Iw(e,t,n,r,a(r));else for(let r of i)this.Iw(e,t,n,r)}Vw(){let e=$(this.nw),t=e.Qt().uu()?._u;if(!e.Qt().N().hoveredSeriesOnTop||t===void 0)return null;for(let n of e.Dt())if(n===t)return n;return null}Bw(e,t){let n=e.Ga?.(t)??null;return n===null||n.Ya.length===0?null:n}Iw(e,t,n,r,i){let a=$(this.nw),o=a.Qt().uu(),s=o!==null&&o._u===r,c=o!==null&&s&&o.gu!==void 0?o.gu.ne:void 0,l=t=>n(t,e,s,c);i===void 0?iy(t,l,r,a):ay(i,l,a)}ow(){if(this.nw===null)return;let e=this.Qv,t=this.nw.G_().N().visible,n=this.nw.X_().N().visible;t||this.Um===null||(this.rw.removeChild(this.Um.wv()),this.Um.m(),this.Um=null),n||this.$m===null||(this.hw.removeChild(this.$m.wv()),this.$m.m(),this.$m=null);let r=e.Qt().nf();t&&this.Um===null&&(this.Um=new cy(this,e.N(),r,`left`),this.rw.appendChild(this.Um.wv())),n&&this.$m===null&&(this.$m=new cy(this,e.N(),r,`right`),this.hw.appendChild(this.$m.wv()))}Aw(e){return e.nv&&this.Xm||this.Jm!==null}cw(e,t,n){e=Math.max(0,Math.min(e,this.am.width-1)),t=Math.max(0,Math.min(t,this.am.height-1)),this.sn().Xd(e,t,n,$(this.nw))}gw(){this.sn().Qd()}xw(){this.Qm&&(this.Jm=null,this.gw())}Mw(e,t,n){this.Jm=e,this.Qm=!1,this.cw(t.x,t.y,n);let r=this.sn().Ad();this.tw={x:r.ni(),y:r.si()}}sn(){return this.Qv.Qt()}ww(e){if(!this.Ym)return;let t=this.sn(),n=this.Rv();if(t.su(n,n.kn()),this.qm=null,this.Ym=!1,t.Kd(),this.iw!==null){let e=performance.now(),n=t.Et();this.iw.we(n.Oc(),e),this.iw.Gc(e)||t.ps(this.iw)}}uw(){this.Jm=null}dw(){if(this.nw){if(this.sn().cs(),document.activeElement!==document.body&&document.activeElement!==document.documentElement)$(document.activeElement).blur();else{let e=document.getSelection();e!==null&&e.removeAllRanges()}!this.nw.kn().Gi()&&this.sn().Et().Gi()}}mw(e){if(this.nw===null)return;let t=this.sn(),n=t.Et();if(n.Gi())return;let r=this.Qv.N(),i=r.handleScroll,a=r.kineticScroll;if((!i.pressedMouseMove||e.nv)&&(!i.horzTouchDrag&&!i.vertTouchDrag||!e.nv))return;let o=this.nw.kn(),s=performance.now();if(this.qm!==null||this.Aw(e)||(this.qm={x:e.clientX,y:e.clientY,Rf:s,Lw:e.localX,zw:e.localY}),this.qm!==null&&!this.Ym&&(this.qm.x!==e.clientX||this.qm.y!==e.clientY)){if(e.nv&&a.touch||!e.nv&&a.mouse){let e=n.wl();this.iw=new Qv(.2/e,7/e,.997,15/e),this.iw.Yv(n.Nc(),this.qm.Rf)}else this.iw=null;o.Gi()||t.iu(this.nw,o,e.localY),t.qd(e.localX),this.Ym=!0}this.Ym&&(o.Gi()||t.nu(this.nw,o,e.localY),t.Yd(e.localX),this.iw!==null&&this.iw.Yv(n.Nc(),s))}},my=class{constructor(e,t,n,r,i){this.xt=!0,this.am=Q({width:0,height:0}),this.fm=()=>this.Bm(3),this.wm=e===`left`,this.Cd=n.nf,this.yn=t,this.Ow=r,this.Nw=i,this.pv=document.createElement(`div`),this.pv.style.width=`25px`,this.pv.style.height=`100%`,this.pv.style.overflow=`hidden`,this.Sm=ey(this.pv,Q({width:16,height:16})),this.Sm.subscribeSuggestedBitmapSizeChanged(this.fm)}m(){this.Sm.unsubscribeSuggestedBitmapSizeChanged(this.fm),ty(this.Sm.canvasElement),this.Sm.dispose()}wv(){return this.pv}Mv(){return this.am}Im(e){h_(this.am,e)||(this.am=e,this.Sm.resizeCanvasElement(e),this.pv.style.width=`${e.width}px`,this.pv.style.height=`${e.height}px`,this.xt=!0)}Bm(e){if(e<3&&!this.xt||this.am.width===0||this.am.height===0)return;this.xt=!1,this.Sm.applySuggestedBitmapSize();let t=w_(this.Sm,{colorSpace:this.yn.layout.colorSpace});t!==null&&t.useBitmapCoordinateSpace(e=>{this.Am(e),this.Lm(e)})}gv(){return this.Sm.bitmapSize}bv(e,t,n){let r=this.gv();r.width>0&&r.height>0&&e.drawImage(this.Sm.canvasElement,t,n)}Lm({context:e,bitmapSize:t,horizontalPixelRatio:n,verticalPixelRatio:r}){if(!this.Ow())return;e.fillStyle=this.yn.timeScale.borderColor;let i=Math.floor(this.Cd.N().S*n),a=Math.floor(this.Cd.N().S*r),o=this.wm?t.width-i:0;e.fillRect(o,0,i,a)}Am({context:e,bitmapSize:t}){r1(e,0,0,t.width,t.height,this.Nw())}};function hy(e){return t=>t.il?.(e)??[]}var gy=hy(`normal`),_y=hy(`top`),vy=hy(`bottom`),yy=class{constructor(e,t){this.Fw=null,this.Ww=null,this.M=null,this.Hw=!1,this.am=Q({width:0,height:0}),this.Uw=new N_,this.om=new T1(5),this.dm=!1,this.fm=()=>{this.dm||this.Qv.Qt().wr()},this.vm=()=>{this.dm||this.Qv.Qt().wr()},this.Qv=e,this.yu=t,this.yn=e.N().layout,this.Zv=document.createElement(`tr`),this.$w=document.createElement(`td`),this.$w.style.padding=`0`,this.jw=document.createElement(`td`),this.jw.style.padding=`0`,this.pv=document.createElement(`td`),this.pv.style.height=`25px`,this.pv.style.padding=`0`,this.qw=document.createElement(`div`),this.qw.style.width=`100%`,this.qw.style.height=`100%`,this.qw.style.position=`relative`,this.qw.style.overflow=`hidden`,this.pv.appendChild(this.qw),this.Sm=ey(this.qw,Q({width:16,height:16})),this.Sm.subscribeSuggestedBitmapSizeChanged(this.fm);let n=this.Sm.canvasElement;n.style.position=`absolute`,n.style.zIndex=`1`,n.style.left=`0`,n.style.top=`0`,this.xm=ey(this.qw,Q({width:16,height:16})),this.xm.subscribeSuggestedBitmapSizeChanged(this.vm);let r=this.xm.canvasElement;r.style.position=`absolute`,r.style.zIndex=`2`,r.style.left=`0`,r.style.top=`0`,this.Zv.appendChild(this.$w),this.Zv.appendChild(this.pv),this.Zv.appendChild(this.jw),this.Yw(),this.Qv.Qt().O_().i(this.Yw.bind(this),this),this.av=new Uv(this.xm.canvasElement,this,{Dp:()=>!0,Ip:()=>!this.Qv.N().handleScroll.horzTouchDrag})}m(){this.av.m(),this.Fw!==null&&this.Fw.m(),this.Ww!==null&&this.Ww.m(),this.xm.unsubscribeSuggestedBitmapSizeChanged(this.vm),ty(this.xm.canvasElement),this.xm.dispose(),this.Sm.unsubscribeSuggestedBitmapSizeChanged(this.fm),ty(this.Sm.canvasElement),this.Sm.dispose()}wv(){return this.Zv}Kw(){return this.Fw}Zw(){return this.Ww}$p(e){if(this.Hw)return;this.Hw=!0;let t=this.Qv.Qt();!t.Et().Gi()&&this.Qv.N().handleScale.axisPressedMouseMove.time&&t.Ud(e.localX)}Hp(e){this.$p(e)}jp(){let e=this.Qv.Qt();!e.Et().Gi()&&this.Hw&&(this.Hw=!1,this.Qv.N().handleScale.axisPressedMouseMove.time&&e.Gd())}Ep(e){let t=this.Qv.Qt();!t.Et().Gi()&&this.Qv.N().handleScale.axisPressedMouseMove.time&&t.Zd(e.localX)}Vp(e){this.Ep(e)}Op(){this.Hw=!1;let e=this.Qv.Qt();e.Et().Gi()&&!this.Qv.N().handleScale.axisPressedMouseMove.time||e.Gd()}Lp(){this.Op()}wp(){this.Qv.N().handleScale.axisDoubleClickReset.time&&this.Qv.Qt().ws()}fp(){this.wp()}yp(){this.Qv.Qt().N().handleScale.axisPressedMouseMove.time&&this.Wm(1)}tv(){this.Wm(0)}Mv(){return this.am}Gw(){return this.Uw}Xw(e,t,n){h_(this.am,e)||(this.am=e,this.dm=!0,this.Sm.resizeCanvasElement(e),this.xm.resizeCanvasElement(e),this.dm=!1,this.pv.style.width=`${e.width}px`,this.pv.style.height=`${e.height}px`,this.Uw.p(e)),this.Fw!==null&&this.Fw.Im(Q({width:t,height:e.height})),this.Ww!==null&&this.Ww.Im(Q({width:n,height:e.height}))}Jw(){let e=this.Qw();return Math.ceil(e.S+e.C+e.P+e.A+e.I+e.tM)}Pt(){this.Qv.Qt().Et().Ll()}gv(){return this.Sm.bitmapSize}bv(e,t,n,r){let i=this.gv();if(i.width>0&&i.height>0&&(e.drawImage(this.Sm.canvasElement,t,n),r)){let r=this.xm.canvasElement;e.drawImage(r,t,n)}}Bm(e){if(e===0)return;let t={colorSpace:this.yn.colorSpace};if(e!==1){this.Sm.applySuggestedBitmapSize();let n=w_(this.Sm,t);n!==null&&(n.useBitmapCoordinateSpace(e=>{this.Am(e),this.Lm(e),this.iM(n,vy)}),this.Om(n),this.iM(n,gy)),this.Fw!==null&&this.Fw.Bm(e),this.Ww!==null&&this.Ww.Bm(e)}this.xm.applySuggestedBitmapSize();let n=w_(this.xm,t);n!==null&&(n.useBitmapCoordinateSpace(({context:e,bitmapSize:t})=>{e.clearRect(0,0,t.width,t.height)}),this.nM([...this.Qv.Qt().Jn(),this.Qv.Qt().Ad()],n),this.iM(n,_y))}iM(e,t){let n=this.Qv.Qt().Jn();for(let r of n)iy(t,t=>ny(t,e,!1,void 0),r,void 0);for(let r of n)iy(t,t=>ry(t,e,!1,void 0),r,void 0)}Am({context:e,bitmapSize:t}){r1(e,0,0,t.width,t.height,this.Qv.Qt().cf())}Lm({context:e,bitmapSize:t,verticalPixelRatio:n}){if(this.Qv.N().timeScale.borderVisible){e.fillStyle=this.sM();let r=Math.max(1,Math.floor(this.Qw().S*n));e.fillRect(0,0,t.width,r)}}Om(e){let t=this.Qv.Qt().Et(),n=t.Ll();if(!n||n.length===0)return;let r=this.yu.maxTickMarkWeight(n),i=this.Qw(),a=t.N();a.borderVisible&&a.ticksVisible&&e.useBitmapCoordinateSpace(({context:e,horizontalPixelRatio:t,verticalPixelRatio:r})=>{e.strokeStyle=this.sM(),e.fillStyle=this.sM();let a=Math.max(1,Math.floor(t)),o=Math.floor(.5*t);e.beginPath();let s=Math.round(i.C*r);for(let r=n.length;r--;){let i=Math.round(n[r].coord*t);e.rect(i-o,0,a,s)}e.fill()}),e.useMediaCoordinateSpace(({context:e})=>{let t=i.S+i.C+i.A+i.P/2;e.textAlign=`center`,e.textBaseline=`middle`,e.fillStyle=this.H(),e.font=this.Rm();for(let i of n)if(i.weight=r){let n=i.needAlignCoordinate?this.eM(e,i.coord,i.label):i.coord;e.fillText(i.label,n,t)}})}eM(e,t,n){let r=this.om.Ii(e,n),i=r/2,a=Math.floor(t-i)+.5;return a<0?t+=Math.abs(0-a):a+r>this.am.width&&(t-=Math.abs(this.am.width-(a+r))),t}nM(e,t){let n=this.Qw();for(let r of e)for(let e of r.dn())e.Tt().st(t,n)}sM(){return this.Qv.N().timeScale.borderColor}H(){return this.yn.textColor}F(){return this.yn.fontSize}Rm(){return U_(this.F(),this.yn.fontFamily)}rM(){return U_(this.F(),this.yn.fontFamily,`bold`)}Qw(){this.M===null&&(this.M={S:1,L:NaN,A:NaN,I:NaN,tn:NaN,C:5,P:NaN,k:``,Qi:new T1,tM:0});let e=this.M,t=this.Rm();if(e.k!==t){let n=this.F();e.P=n,e.k=t,e.A=3*n/12,e.I=3*n/12,e.tn=9*n/12,e.L=0,e.tM=4*n/12,e.Qi.Os()}return this.M}Wm(e){this.pv.style.cursor=e===1?`ew-resize`:`default`}Yw(){let e=this.Qv.Qt(),t=e.N();t.leftPriceScale.visible||this.Fw===null||(this.$w.removeChild(this.Fw.wv()),this.Fw.m(),this.Fw=null),t.rightPriceScale.visible||this.Ww===null||(this.jw.removeChild(this.Ww.wv()),this.Ww.m(),this.Ww=null);let n={nf:this.Qv.Qt().nf()},r=()=>t.leftPriceScale.borderVisible&&e.Et().N().borderVisible,i=()=>e.cf();t.leftPriceScale.visible&&this.Fw===null&&(this.Fw=new my(`left`,t,n,r,i),this.$w.appendChild(this.Fw.wv())),t.rightPriceScale.visible&&this.Ww===null&&(this.Ww=new my(`right`,t,n,r,i),this.jw.appendChild(this.Ww.wv()))}},by=!!Lv&&!(!navigator.userAgentData||!Array.isArray(navigator.userAgentData.brands))&&navigator.userAgentData.brands.some(e=>e.brand.includes(`Chromium`))&&!!Lv&&(navigator?.userAgentData?.platform?navigator.userAgentData.platform===`Windows`:navigator.userAgent.toLowerCase().indexOf(`win`)>=0),xy=class{constructor(e,t,n){var r;this.hM=[],this.aM=[],this.lM=0,this.lo=0,this.P_=0,this.oM=0,this._M=0,this.uM=null,this.cM=!1,this.Km=new N_,this.Zm=new N_,this.bd=new N_,this.dM=null,this.fM=null,this.Jv=e,this.yn=t,this.yu=n,this.Zv=document.createElement(`div`),this.Zv.classList.add(`tv-lightweight-charts`),this.Zv.style.overflow=`hidden`,this.Zv.style.direction=`ltr`,this.Zv.style.width=`100%`,this.Zv.style.height=`100%`,(r=this.Zv).style.userSelect=`none`,r.style.webkitUserSelect=`none`,r.style.msUserSelect=`none`,r.style.MozUserSelect=`none`,r.style.webkitTapHighlightColor=`transparent`,this.pM=document.createElement(`table`),this.pM.setAttribute(`cellspacing`,`0`),this.Zv.appendChild(this.pM),this.vM=this.mM.bind(this),Sy(this.yn)&&this.wM(!0),this.sn=new hv(this.xd.bind(this),this.yn,n),this.Qt().Ld().i(this.MM.bind(this),this),this.gM=new yy(this,this.yu),this.pM.appendChild(this.gM.wv());let i=t.autoSize&&this.bM(),a=this.yn.width,o=this.yn.height;if(i||a===0||o===0){let t=e.getBoundingClientRect();a||=t.width,o||=t.height}this.SM(a,o),this.xM(),e.appendChild(this.Zv),this.CM(),this.sn.Et().td().i(this.sn.Ta.bind(this.sn),this),this.sn.O_().i(this.sn.Ta.bind(this.sn),this)}Qt(){return this.sn}N(){return this.yn}cv(){return this.hM}yM(){return this.gM}m(){this.wM(!1),this.lM!==0&&window.cancelAnimationFrame(this.lM),this.sn.Ld().u(this),this.sn.Et().td().u(this),this.sn.O_().u(this),this.sn.m();for(let e of this.hM)this.pM.removeChild(e.wv()),e.bw().u(this),e.Sw().u(this),e.m();this.hM=[];for(let e of this.aM)this.PM(e);this.aM=[],$(this.gM).m(),this.Zv.parentElement!==null&&this.Zv.parentElement.removeChild(this.Zv),this.bd.m(),this.Km.m(),this.Zm.m(),this.kM()}SM(e,t,n=!1){if(this.lo===t&&this.P_===e)return;let r=function(e){let t=Math.floor(e.width),n=Math.floor(e.height);return Q({width:t-t%2,height:n-n%2})}(Q({width:e,height:t}));this.lo=r.height,this.P_=r.width;let i=this.lo+`px`,a=this.P_+`px`;if(this.TM()||($(this.Zv).style.height=i,$(this.Zv).style.width=a),this.pM.style.height=i,this.pM.style.width=a,n){this.lM!==0&&(window.cancelAnimationFrame(this.lM),this.lM=0),this.cM=!1;let e=_1.ys();this.uM!==null&&(e.Ss(this.uM),this.uM=null),this.RM(e,performance.now())}else this.sn.Ta()}Bm(e){e===void 0&&(e=_1.ys());for(let t=0;t{e.Pt()})}IM(e){(e.autoSize!==void 0||!this.dM||e.width===void 0&&e.height===void 0)&&(e.autoSize&&!this.dM&&this.bM(),!1===e.autoSize&&this.dM!==null&&this.kM(),e.autoSize||e.width===void 0&&e.height===void 0||this.SM(e.width||this.P_,e.height||this.lo))}BM(e,t){let n=0,r=0,i=this.hM[0],a=(n,r)=>{let i=0;for(let a=0;a{$(t===`left`?this.gM.Kw():this.gM.Zw()).bv($(e),n,r)};if(this.yn.timeScale.visible){let n=this.gM.gv();if(e!==null){let a=0;this.AM()&&(o(`left`,a,r),a=$(i.Rw()).gv().width),this.gM.bv(e,a,r,t),a+=n.width,this.LM()&&o(`right`,a,r)}r+=n.height}return Q({width:n,height:r})}FM(){let e=0,t=0,n=0;for(let r of this.hM)this.AM()&&(t=Math.max(t,$(r.Rw()).Tm(),this.yn.leftPriceScale.minimumWidth)),this.LM()&&(n=Math.max(n,$(r.Dw()).Tm(),this.yn.rightPriceScale.minimumWidth)),e+=r.N_();t=Vv(t),n=Vv(n);let r=this.P_,i=this.lo,a=Math.max(r-t-n,0),o=+this.aM.length,s=this.yn.timeScale.visible,c=s?Math.max(this.gM.Jw(),this.yn.timeScale.minimumHeight):0;var l;c=(l=c)+l%2;let u=o+c,d=i{e._w()}),this.uM?.ls()===3&&(this.uM.Ss(e),this.HM(),this.UM(this.uM),this.$M(this.uM,t),e=this.uM,this.uM=null)),this.Bm(e)}$M(e,t){for(let n of e.bs())this.xs(n,t)}UM(e){let t=this.sn.Zn();for(let n=0;n{if(this.cM=!1,this.lM=0,this.uM!==null){let t=this.uM;this.uM=null,this.RM(t,e);for(let n of t.bs())if(n.ds===5&&!n.Wt.Gc(e)){this.Qt().ps(n.Wt);break}}}))}HM(){this.xM()}PM(e){this.pM.removeChild(e.wv()),e.m()}xM(){let e=this.sn.Zn(),t=e.length,n=this.hM.length;for(let e=t;e0){let e=new Yv(this,r-1,r);this.aM.push(e),this.pM.insertBefore(e.wv(),this.gM.wv())}this.pM.insertBefore(t.wv(),this.gM.wv())}for(let n=0;n{let n=t.Un().Hn(e);n!==null&&i.set(t,n)});let a;if(e!==null){let t=this.sn.Et().en(e)?.originalTime;t!==void 0&&(a=t)}let o=this.Qt().uu(),s=this.KM(r),c=function(e,t){let n=e!==null&&e._u instanceof y0?e._u:void 0,r=e?.gu?.ie,i=t!==void 0&&t!==-1?t:void 0;return e===null||e.re===void 0?{ZM:n,GM:r}:{ZM:n,GM:r,XM:{ds:e.re,JM:(a=e._u,o=e.re,a instanceof J0?`pane-primitive`:o===`marker`||o===`primitive`?`series-primitive`:`series`),QM:Bv(e.re,r),q_:n,tg:r,ig:i}};var a,o}(o,s);return{th:a,$n:e??void 0,ng:t??void 0,ig:s===-1?void 0:s,ZM:c.ZM,sg:i,GM:c.GM,XM:c.XM,eg:n??void 0}}KM(e){let t=-1;if(e)t=this.hM.indexOf(e);else{let e=this.Qt().Ad().Kn();e!==null&&(t=this.Qt().Zn().indexOf(e))}return t}jM(e,t,n,r){this.Km.p(()=>this.YM(t,n,r,e))}qM(e,t,n,r){this.Zm.p(()=>this.YM(t,n,r,e))}MM(e,t,n){this.zM(this.Qt().uu()?.Mu??null),this.bd.p(()=>this.YM(e,t,n))}CM(){let e=this.yn.timeScale.visible?``:`none`;this.gM.wv().style.display=e}AM(){return this.hM[0].Rv().G_().N().visible}LM(){return this.hM[0].Rv().X_().N().visible}bM(){return`ResizeObserver`in window&&(this.dM=new ResizeObserver(e=>{let t=e[e.length-1];if(!t)return;let n=t.contentRect.width,r=t.contentRect.height;this.SM(n,r,!0)}),this.dM.observe(this.Jv,{box:`border-box`}),!0)}kM(){this.dM!==null&&this.dM.disconnect(),this.dM=null}};function Sy(e){return!!(e.handleScroll.mouseWheel||e.handleScale.mouseWheel)}function Cy(e){return e.open===void 0&&e.value===void 0}function wy(e){return function(e){return e.open!==void 0}(e)||function(e){return e.value!==void 0}(e)}function Ty(e,t,n,r){let i=n.value,a={$n:t,wt:e,Wt:[i,i,i,i],th:r};return n.color!==void 0&&(a.R=n.color),a}function Ey(e,t,n,r){let i=n.value,a={$n:t,wt:e,Wt:[i,i,i,i],th:r};return n.lineColor!==void 0&&(a.vt=n.lineColor),n.topColor!==void 0&&(a.oh=n.topColor),n.bottomColor!==void 0&&(a._h=n.bottomColor),a}function Dy(e,t,n,r){let i=n.value,a={$n:t,wt:e,Wt:[i,i,i,i],th:r};return n.topLineColor!==void 0&&(a.uh=n.topLineColor),n.bottomLineColor!==void 0&&(a.dh=n.bottomLineColor),n.topFillColor1!==void 0&&(a.fh=n.topFillColor1),n.topFillColor2!==void 0&&(a.ph=n.topFillColor2),n.bottomFillColor1!==void 0&&(a.mh=n.bottomFillColor1),n.bottomFillColor2!==void 0&&(a.wh=n.bottomFillColor2),a}function Oy(e,t,n,r){let i={$n:t,wt:e,Wt:[n.open,n.high,n.low,n.close],th:r};return n.color!==void 0&&(i.R=n.color),i}function ky(e,t,n,r){let i={$n:t,wt:e,Wt:[n.open,n.high,n.low,n.close],th:r};return n.color!==void 0&&(i.R=n.color),n.borderColor!==void 0&&(i.Ht=n.borderColor),n.wickColor!==void 0&&(i.ah=n.wickColor),i}function Ay(e,t,n,r,i){let a=j_(i)(n),o=Math.max(...a),s=Math.min(...a),c=a[a.length-1],l=[c,o,s,c],{time:u,color:d,...f}=n;return{$n:t,wt:e,Wt:l,th:r,ce:f,R:d}}function jy(e){return e.Wt!==void 0}function My(e,t){return t.customValues!==void 0&&(e.rg=t.customValues),e}function Ny(e){return(t,n,r,i,a,o)=>function(e,t){return t?t(e):Cy(e)}(r,o)?My({wt:t,$n:n,th:i},r):My(e(t,n,r,i,a),r)}function Py(e){return{Candlestick:Ny(ky),Bar:Ny(Oy),Area:Ny(Ey),Baseline:Ny(Dy),Histogram:Ny(Ty),Line:Ny(Ty),Custom:Ny(Ay)}[e]}function Fy(e){return{$n:0,hg:new Map,Na:e}}function Iy(e,t){if(e!==void 0&&e.length!==0)return{ag:t.key(e[0].wt),lg:t.key(e[e.length-1].wt)}}function Ly(e){let t;return e.forEach(e=>{t===void 0&&(t=e.th)}),j_(t)}var Ry=class{constructor(e){this.og=new Map,this._g=new Map,this.ug=new Map,this.cg=[],this.yu=e}m(){this.og.clear(),this._g.clear(),this.ug.clear(),this.cg=[]}dg(e,t){let n=this.og.size!==0,r=!1,i=this._g.get(e);if(i!==void 0){if(this._g.size===1)n=!1,r=!0,this.og.clear();else for(let t of this.cg)t.pointData.hg.delete(e)&&(r=!0)}let a=[];if(t.length!==0){let n=t.map(e=>e.time),i=this.yu.createConverterToInternalObj(t),o=Py(e.Sh()),s=e.cl(),c=e.dl();a=t.map((t,a)=>{let l=i(t.time),u=this.yu.key(l),d=this.og.get(u);d===void 0&&(d=Fy(l),this.og.set(u,d),r=!0);let f=o(l,d.$n,t,n[a],s,c);return d.hg.set(e,f),f})}n&&this.fg(),this.pg(e,a);let o=-1;if(r){let e=[];this.og.forEach(t=>{e.push({timeWeight:0,time:t.Na,pointData:t,originalTime:Ly(t.hg)})}),e.sort((e,t)=>this.yu.key(e.time)-this.yu.key(t.time)),o=this.vg(e)}return this.mg(e,o,function(e,t,n){let r=Iy(e,n),i=Iy(t,n);if(r!==void 0&&i!==void 0)return{wg:!1,Ba:r.lg>=i.lg&&r.ag>=i.ag}}(this._g.get(e),i,this.yu))}rf(e){return this.dg(e,[])}Mg(e,t,n){if(n&&e.Wa())throw Error(`Historical updates are not supported when conflation is enabled. Conflation requires data to be processed in order.`);let r=t;(function(e){e.th===void 0&&(e.th=e.time)})(r),this.yu.preprocessData(t);let i=this.yu.createConverterToInternalObj([t])(t.time),a=this.ug.get(e);if(!n&&a!==void 0&&this.yu.key(i)this.yu.key(e.time)this.yu.key(r.wt)?jy(t)&&n.push(t):jy(t)?n[n.length-1]=t:n.splice(-1,1),this.ug.set(e,t.wt)}gg(e,t,n){let r=this._g.get(e);r===void 0&&(r=[],this._g.set(e,r));let i=X1(r,n,(e,t)=>e.$nthis.yu.key(o))&&this.ug.set(e,t.wt),jy(t)?a?r[i]=t:r.splice(i,0,t):a&&r.splice(i,1)}pg(e,t){t.length===0?(this._g.delete(e),this.ug.delete(e)):(this._g.set(e,t.filter(jy)),this.ug.set(e,t[t.length-1].wt))}fg(){for(let e of this.cg)e.pointData.hg.size===0&&this.og.delete(this.yu.key(e.time))}vg(e){let t=-1;for(let n=0;n{t.length!==0&&(e=Math.max(e,t[t.length-1].$n))}),e}mg(e,t,n){let r=this.xg();if(t!==-1)this._g.forEach((t,i)=>{r.q_.set(i,{ce:t,yg:i===e?n:void 0})}),this._g.has(e)||r.q_.set(e,{ce:[],yg:n}),r.Et.Pg=this.cg,r.Et.kg=t;else{let t=this._g.get(e);r.q_.set(e,{ce:t||[],yg:n})}return r}xg(){return{q_:new Map,Et:{Dc:this.Cg()}}}};function zy(e,t){e.$n=t,e.hg.forEach(e=>{e.$n=t})}function By(e,t){return e._t=t-r&&e<=n+r}function Ky(e,t,n,r,i,a){let o=i-n,s=a-r;if(o===0&&s===0)return Math.hypot(e-n,t-r);let c=((e-n)*o+(t-r)*s)/(o*o+s*s),l=Math.max(0,Math.min(1,c)),u=n+o*l,d=r+s*l;return Math.hypot(e-u,t-d)}var qy=[0,0];function Jy(e,t,n){return t===void 0||t.wt!==e.wt-1?e._t-n/2:(t._t+e._t)/2}function Yy(e,t,n){return t===void 0||t.wt!==e.wt+1?e._t+n/2:(e._t+t._t)/2}function Xy(e,t,n,r,i,a,o){if(t===null||t.from>=t.to||e.length===0)return null;let s=i/2+a,c=Hy(e,n-s,t.from,t.to),l=Uy(e,n+s,c,t.to);if(c>=l)return null;let u=1/0;for(let s=c;st.from?e[s-1]:void 0,d=sp)continue;o(c,qy);let m=qy[0],h=qy[1],g=Math.min(m,h),_=Math.max(m,h),v=g-a,y=_+a;if(r>=g&&r<=_)u=Math.min(u,0);else if(r>=v&&r<=y){let e=Math.min(Math.abs(r-g),Math.abs(_-r));u=Math.min(u,e)}}return Number.isFinite(u)?Wy(u,0,`series-range`):null}function Zy(e,t){return e.wt0&&a=r&&(s=a-1),o>0&&o({...e,...this.le.xa().xh(e.wt)}))}Ng(){this.Vg=null}Ag(){let e=this.oe.Et(),t=e.N().enableConflation?e.rd():0;t!==this.Bg&&(this.Rg=!0,this.Bg=t),this.Rg&&=(this.Fg(),!1),this.Dg&&=(this.Og(),!1),this.Tg&&=(this.Wg(),!1)}Wg(){let e=this.le.Ft(),t=this.oe.Et();if(this.Ng(),t.Gi()||e.Gi())return;let n=t.Ae();if(n===null||this.le.Un().Rh()===0)return;let r=this.le.Lt();r!==null&&(this.Vg=$y(this.Ig,n,this.Eg),this.Hg(e,t,r.Wt),this.Ug())}},t2=class{constructor(e,t){this.$g=e,this.Ki=t}st(e,t,n){this.$g.draw(e,this.Ki,t,n)}};function n2(e){switch(e){case`point`:return 2;case`range`:return 0;default:return 1}}var r2=class extends e2{constructor(e,t,n){super(e,t,!1),this.Kh=n,this.$g=this.Kh.renderer(),this.Lg=new t2(this.$g,e=>this.jg(e))}get ba(){return this.Kh.conflationReducer}Ua(e){return this.Kh.priceValueBuilder(e)}fl(e){return this.Kh.isWhitespace(e)}zg(e,t){let n=this.$g.hitTest?.(e,t,e=>this.jg(e));if(n!=null)return{se:(r=n).distance,ee:n2(r.type),re:`custom`,Mu:r.cursorStyle,ie:r.objectId,ne:r.hitTestData};var r;let i=Xy(this.Ig,this.Vg,e,t,this.oe.Et().wl(),this.le.N().hitTestTolerance,(e,t)=>{let n=e.qg,r=NaN,i=NaN;if(n!==void 0&&!this.Kh.isWhitespace(n))for(let e of this.Kh.priceValueBuilder(n)){let t=this.jg(e);t!==null&&(r=Number.isNaN(r)?t:Math.min(r,t),i=Number.isNaN(i)?t:Math.max(i,t))}t[0]=r,t[1]=i});return i===null?null:{...i,re:`custom`}}Fg(){let e=this.le.xa();this.Ig=this.le.$a().Eh().map(t=>({wt:t.$n,_t:NaN,...e.xh(t.$n),qg:t.ce}))}Hg(e,t){t.Ic(this.Ig,V_(this.Vg))}Ug(){this.Kh.update({bars:this.Ig.map(i2),barSpacing:this.oe.Et().wl(),visibleRange:this.Vg,conflationFactor:this.oe.Et().rd()},this.le.N())}jg(e){let t=this.le.Lt();return t===null?null:this.le.Ft().Nt(e,t.Wt)}};function i2(e){return{x:e._t,time:e.wt,originalData:e.qg,barColor:e.eh}}var a2={color:`#2196f3`},o2=(e,t,n)=>new r2(e,t,M_(n));function s2(e){let t={value:e.Wt[3],time:e.th};return e.rg!==void 0&&(t.customValues=e.rg),t}function c2(e){let t=s2(e);return e.R!==void 0&&(t.color=e.R),t}function l2(e){let t=s2(e);return e.vt!==void 0&&(t.lineColor=e.vt),e.oh!==void 0&&(t.topColor=e.oh),e._h!==void 0&&(t.bottomColor=e._h),t}function u2(e){let t=s2(e);return e.uh!==void 0&&(t.topLineColor=e.uh),e.dh!==void 0&&(t.bottomLineColor=e.dh),e.fh!==void 0&&(t.topFillColor1=e.fh),e.ph!==void 0&&(t.topFillColor2=e.ph),e.mh!==void 0&&(t.bottomFillColor1=e.mh),e.wh!==void 0&&(t.bottomFillColor2=e.wh),t}function d2(e){let t={open:e.Wt[0],high:e.Wt[1],low:e.Wt[2],close:e.Wt[3],time:e.th};return e.rg!==void 0&&(t.customValues=e.rg),t}function f2(e){let t=d2(e);return e.R!==void 0&&(t.color=e.R),t}function p2(e){let t=d2(e),{R:n,Ht:r,ah:i}=e;return n!==void 0&&(t.color=n),r!==void 0&&(t.borderColor=r),i!==void 0&&(t.wickColor=i),t}function m2(e){return{Area:l2,Line:c2,Baseline:u2,Histogram:c2,Bar:f2,Candlestick:p2,Custom:h2}[e]}function h2(e){let t=e.th;return{...e.ce,time:t}}var g2={vertLine:{color:`#9598A1`,width:1,style:3,visible:!0,labelVisible:!0,labelBackgroundColor:`#131722`},horzLine:{color:`#9598A1`,width:1,style:3,visible:!0,labelVisible:!0,labelBackgroundColor:`#131722`},mode:1,doNotSnapToHiddenSeriesIndices:!1},_2={vertLines:{color:`#D6DCDE`,style:0,visible:!0},horzLines:{color:`#D6DCDE`,style:0,visible:!0}},v2={background:{type:`solid`,color:`#FFFFFF`},textColor:`#191919`,fontSize:12,fontFamily:H_,panes:{enableResize:!0,separatorColor:`#E0E3EB`,separatorHoverColor:`rgba(178, 181, 189, 0.2)`},attributionLogo:!0,colorSpace:`srgb`,colorParsers:[]},y2={autoScale:!0,mode:0,invertScale:!1,alignLabels:!0,borderVisible:!0,borderColor:`#2B2B43`,entireTextOnly:!1,visible:!1,ticksVisible:!1,scaleMargins:{bottom:.1,top:.2},minimumWidth:0,ensureEdgeTickMarksVisible:!1,tickMarkDensity:2.5},b2={rightOffset:0,barSpacing:6,minBarSpacing:.5,maxBarSpacing:0,fixLeftEdge:!1,fixRightEdge:!1,lockVisibleTimeRangeOnResize:!1,rightBarStaysOnScroll:!1,borderVisible:!0,borderColor:`#2B2B43`,visible:!0,timeVisible:!1,secondsVisible:!0,shiftVisibleRangeOnNewBar:!0,allowShiftVisibleRangeOnWhitespaceReplacement:!1,ticksVisible:!1,uniformDistribution:!1,minimumHeight:0,allowBoldLabels:!0,ignoreWhitespaceIndices:!1,enableConflation:!1,conflationThresholdFactor:1,precomputeConflationOnInit:!1,precomputeConflationPriority:`background`};function x2(){return{addDefaultPane:!0,hoveredSeriesOnTop:!0,width:0,height:0,autoSize:!1,layout:v2,crosshair:g2,grid:_2,overlayPriceScales:{...y2},leftPriceScale:{...y2,visible:!1},rightPriceScale:{...y2,visible:!0},defaultVisiblePriceScaleId:`right`,timeScale:b2,localization:{locale:Lv?navigator.language:``,dateFormat:`dd MMM 'yy`},handleScroll:{mouseWheel:!0,pressedMouseMove:!0,horzTouchDrag:!0,vertTouchDrag:!0},handleScale:{axisPressedMouseMove:{time:!0,price:!0},axisDoubleClickReset:{time:!0,price:!0},mouseWheel:!0,pinch:!0},kineticScroll:{mouse:!1,touch:!0},trackingMode:{exitMode:1}}}var S2=class{constructor(e,t,n){this._v=e,this.Yg=t,this.Kg=n??0}applyOptions(e){this._v.Qt().Bd(this.Yg,e,this.Kg)}options(){let e=this._v.Qt(),t=e.Ed(this.Yg,this.Kg);return t==null?G0(e.N().overlayPriceScales):t.Ft.N()}width(){return g1(this.Yg)?this._v.EM(this.Yg):0}setVisibleRange(e){this.setAutoScale(!1),this.Ki().Ko(new R1(e.from,e.to))}getVisibleRange(){let e,t,n=this.Ki().lr();if(n===null)return null;if(this.Ki().ro()){let r=this.Ki().b_(),i=gv(r);n=L0(n,this.Ki().ao()),e=Number((Math.round(n.Qe()/r)*r).toFixed(i)),t=Number((Math.round(n.tr()/r)*r).toFixed(i))}else e=n.Qe(),t=n.tr();return{from:e,to:t}}setAutoScale(e){this.applyOptions({autoScale:e})}Ki(){return $(this._v.Qt().Ed(this.Yg,this.Kg)).Ft}},C2=class{constructor(e,t,n,r){this._v=e,this.yt=n,this.Zg=t,this.Gg=r}getHeight(){return this.yt.$t()}setHeight(e){let t=this._v.Qt(),n=t.ff(this.yt);t.Nd(n,e)}getStretchFactor(){return this.yt.N_()}setStretchFactor(e){this.yt.F_(e),this._v.Qt().Ta()}paneIndex(){return this._v.Qt().ff(this.yt)}moveTo(e){let t=this.paneIndex();t!==e&&(A_(e>=0&&ethis.Zg(e))??[]}getHTMLElement(){let e=this._v.cv();return e&&e.length!==0&&e[this.paneIndex()]?e[this.paneIndex()].wv():null}attachPrimitive(e){this.yt._l(e),e.attached&&e.attached({chart:this.Gg,requestUpdate:()=>this.yt.Qt().Ta()})}detachPrimitive(e){this.yt.ul(e)}priceScale(e){if(this.yt.z_(e)===null)throw Error(`Cannot find price scale with id: ${e}`);return new S2(this._v,e,this.paneIndex())}setPreserveEmptyPane(e){this.yt.U_(e)}preserveEmptyPane(){return this.yt.j_()}addCustomSeries(e,t={},n=0){return this.Gg.addCustomSeries(e,t,n)}addSeries(e,t={}){return this.Gg.addSeries(e,t,this.paneIndex())}},w2={color:`#FF0000`,price:0,lineStyle:2,lineWidth:1,hitTestTolerance:7,lineVisible:!0,axisLabelVisible:!0,title:``,axisLabelColor:``,axisLabelTextColor:``},T2=class{constructor(e){this.ur=e}applyOptions(e){this.ur.mr(e)}options(){return this.ur.N()}Xg(){return this.ur}},E2=class{constructor(e,t,n,r,i,a){this.Jg=new N_,this.le=e,this.Qg=t,this.tb=n,this.yu=i,this.Gg=r,this.ib=a}m(){this.Jg.m()}priceFormatter(){return this.le.el()}priceToCoordinate(e){let t=this.le.Lt();return t===null?null:this.le.Ft().Nt(e,t.Wt)}coordinateToPrice(e){let t=this.le.Lt();return t===null?null:this.le.Ft().Tn(e,t.Wt)}barsInLogicalRange(e){if(e===null)return null;let t=new sv(new iv(e.from,e.to)).Hu(),n=this.le.Un();if(n.Gi())return null;let r=n.Hn(t.Fa(),1),i=n.Hn(t.bi(),-1),a=$(n.Dh()),o=$(n.Qn());if(r!==null&&i!==null&&r.$n>i.$n)return{barsBefore:e.from-a,barsAfter:o-e.to};let s={barsBefore:r===null||r.$n===a?e.from-a:r.$n-a,barsAfter:i===null||i.$n===o?o-e.to:o-i.$n};return r!==null&&i!==null&&(s.from=r.th,s.to=i.th),s}setData(e){this.yu,this.le.Sh(),this.Qg.nb(this.le,e),this.sb(`full`)}update(e,t=!1){this.le.Sh(),this.Qg.eb(this.le,e,t),this.sb(`update`)}pop(e=1){let t=this.Qg.rb(this.le,e);t.length!==0&&this.sb(`update`);let n=m2(this.seriesType());return t.map(e=>n(e))}dataByIndex(e,t){let n=this.le.Un().Hn(e,t);return n===null?null:m2(this.seriesType())(n)}data(){let e=m2(this.seriesType());return this.le.Un().Eh().map(t=>e(t))}subscribeDataChanged(e){this.Jg.i(e)}unsubscribeDataChanged(e){this.Jg._(e)}applyOptions(e){this.le.mr(e)}options(){return z_(this.le.N())}priceScale(){return this.tb.priceScale(this.le.Ft().vl(),this.getPane().paneIndex())}createPriceLine(e){let t=P_(z_(w2),e);return new T2(this.le.Aa(t))}removePriceLine(e){this.le.La(e.Xg())}priceLines(){return this.le.za().map(e=>new T2(e))}seriesType(){return this.le.Sh()}lastValueData(e){let t=this.le.Le(e);return t.ze?{noData:!0}:{noData:!1,price:t.Mt,color:t.R}}attachPrimitive(e){this.le._l(e),e.attached&&e.attached({chart:this.Gg,series:this,requestUpdate:()=>this.le.Qt().Ta(),horzScaleBehavior:this.yu})}detachPrimitive(e){this.le.ul(e),e.detached&&e.detached(),this.le.Qt().Ta()}getPane(){let e=this.le,t=$(this.le.Qt().Ks(e));return this.ib(t)}moveToPane(e){this.le.Qt()._f(this.le,e)}seriesOrder(){let e=this.le.Qt().Ks(this.le);return e===null?-1:e.q_().indexOf(this.le)}setSeriesOrder(e){let t=this.le.Qt().Ks(this.le);t!==null&&t.pu(this.le,e)}sb(e){this.Jg.v()&&this.Jg.p(e)}},D2=class{constructor(e,t,n){this.hb=new N_,this.Ju=new N_,this.Uw=new N_,this.sn=e,this.na=e.Et(),this.gM=t,this.na.Jc().i(this.ab.bind(this)),this.na.Qc().i(this.lb.bind(this)),this.gM.Gw().i(this.ob.bind(this)),this.yu=n}m(){this.na.Jc().u(this),this.na.Qc().u(this),this.gM.Gw().u(this),this.hb.m(),this.Ju.m(),this.Uw.m()}scrollPosition(){return this.na.Oc()}scrollToPosition(e,t){t?this.na.Zc(e,1e3):this.sn.gs(e)}scrollToRealTime(){this.na.Kc()}getVisibleRange(){let e=this.na.xc();return e===null?null:{from:e.from.originalTime,to:e.to.originalTime}}setVisibleRange(e){let t={from:this.yu.convertHorzItemToInternal(e.from),to:this.yu.convertHorzItemToInternal(e.to)},n=this.na.kc(t);this.sn.af(n)}getVisibleLogicalRange(){let e=this.na.Sc();return e===null?null:{from:e.Fa(),to:e.bi()}}setVisibleLogicalRange(e){A_(e.from<=e.to,`The from index cannot be after the to index.`),this.sn.af(e)}resetTimeScale(){this.sn.ws()}fitContent(){this.sn.sd()}logicalToCoordinate(e){let t=this.sn.Et();return t.Gi()?null:t.jt(e)}coordinateToLogical(e){return this.na.Gi()?null:this.na.Vc(e)}timeToIndex(e,t){let n=this.yu.convertHorzItemToInternal(e);return this.na.Mc(n,t)}timeToCoordinate(e){let t=this.timeToIndex(e,!1);return t===null?null:this.na.jt(t)}coordinateToTime(e){let t=this.sn.Et(),n=t.Vc(e),r=t.en(n);return r===null?null:r.originalTime}width(){return this.gM.Mv().width}height(){return this.gM.Mv().height}subscribeVisibleTimeRangeChange(e){this.hb.i(e)}unsubscribeVisibleTimeRangeChange(e){this.hb._(e)}subscribeVisibleLogicalRangeChange(e){this.Ju.i(e)}unsubscribeVisibleLogicalRangeChange(e){this.Ju._(e)}subscribeSizeChange(e){this.Uw.i(e)}unsubscribeSizeChange(e){this.Uw._(e)}applyOptions(e){this.na.mr(e)}options(){return{...z_(this.na.N()),barSpacing:this.na.wl()}}ab(){this.hb.v()&&this.hb.p(this.getVisibleRange())}lb(){this.Ju.v()&&this.Ju.p(this.getVisibleLogicalRange())}ob(e){this.Uw.p(e.width,e.height)}};function O2(e){return function(e){if(R_(e.handleScale)){let t=e.handleScale;e.handleScale={axisDoubleClickReset:{time:t,price:t},axisPressedMouseMove:{time:t,price:t},mouseWheel:t,pinch:t}}else if(e.handleScale!==void 0){let{axisPressedMouseMove:t,axisDoubleClickReset:n}=e.handleScale;R_(t)&&(e.handleScale.axisPressedMouseMove={time:t,price:t}),R_(n)&&(e.handleScale.axisDoubleClickReset={time:n,price:n})}let t=e.handleScroll;R_(t)&&(e.handleScroll={horzTouchDrag:t,vertTouchDrag:t,mouseWheel:t,pressedMouseMove:t})}(e),e}var k2=class{constructor(e,t,n){this._b=new Map,this.ub=new Map,this.cb=new N_,this.fb=new N_,this.pb=new N_,this.vd=new WeakMap,this.mb=new Ry(t);let r=n===void 0?z_(x2()):P_(z_(x2()),O2(n));this.wb=t,this._v=new xy(e,r,t),this._v.bw().i(e=>{this.cb.v()&&this.cb.p(this.Mb(e()))},this),this._v.Sw().i(e=>{this.fb.v()&&this.fb.p(this.Mb(e()))},this),this._v.Ld().i(e=>{this.pb.v()&&this.pb.p(this.Mb(e()))},this);let i=this._v.Qt();this.gb=new D2(i,this._v.yM(),this.wb)}remove(){this._v.bw().u(this),this._v.Sw().u(this),this._v.Ld().u(this),this.gb.m(),this._v.m(),this._b.clear(),this.ub.clear(),this.cb.m(),this.fb.m(),this.pb.m(),this.mb.m()}resize(e,t,n){this.autoSizeActive()||this._v.SM(e,t,n)}addCustomSeries(e,t={},n=0){let r=(e=>({type:`Custom`,isBuiltIn:!1,defaultOptions:{...a2,...e.defaultOptions()},bb:o2,Sb:e}))(M_(e));return this.xb(r,t,n)}addSeries(e,t={},n=0){return this.xb(e,t,n)}removeSeries(e){let t=j_(this._b.get(e)),n=this.mb.rf(t);this._v.Qt().rf(t),this.Cb(n),this._b.delete(e),this.ub.delete(t)}nb(e,t){this.Cb(this.mb.dg(e,t))}eb(e,t,n){this.Cb(this.mb.Mg(e,t,n))}rb(e,t){let[n,r]=this.mb.Sg(e,t);return n.length!==0&&this.Cb(r),n}subscribeClick(e){this.cb.i(e)}unsubscribeClick(e){this.cb._(e)}subscribeCrosshairMove(e){this.pb.i(e)}unsubscribeCrosshairMove(e){this.pb._(e)}subscribeDblClick(e){this.fb.i(e)}unsubscribeDblClick(e){this.fb._(e)}priceScale(e,t=0){return new S2(this._v,e,t)}timeScale(){return this.gb}applyOptions(e){this._v.mr(O2(e))}options(){return this._v.N()}takeScreenshot(e=!1,t=!1){let n,r;try{t||(n=this._v.Qt().N().crosshair.mode,this._v.mr({crosshair:{mode:2}})),r=this._v.VM(e)}finally{t||n===void 0||this._v.Qt().mr({crosshair:{mode:n}})}return r}addPane(e=!1){let t=this._v.Qt().pf();return t.U_(e),this.yb(t)}removePane(e){this._v.Qt().Od(e)}swapPanes(e,t){this._v.Qt().Fd(e,t)}autoSizeActive(){return this._v.TM()}chartElement(){return this._v.xv()}panes(){return this._v.Qt().Zn().map(e=>this.yb(e))}paneSize(e=0){let t=this._v.NM(e);return{height:t.height,width:t.width}}setCrosshairPosition(e,t,n){let r=this._b.get(n);if(r===void 0)return;let i=this._v.Qt().Ks(r);i!==null&&this._v.Qt().Jd(e,t,i)}clearCrosshairPosition(){this._v.Qt().Qd(!0)}horzBehaviour(){return this.wb}xb(e,t={},n=0){A_(e.bb!==void 0),function(e){if(e===void 0||e.type===`custom`)return;let t=e;t.minMove!==void 0&&t.precision===void 0&&(t.precision=gv(t.minMove))}(t.priceFormat),e.type===`Candlestick`&&function(e){e.borderColor!==void 0&&(e.borderUpColor=e.borderColor,e.borderDownColor=e.borderColor),e.wickColor!==void 0&&(e.wickUpColor=e.wickColor,e.wickDownColor=e.wickColor)}(t);let r=P_(z_(T_),z_(e.defaultOptions),t),i=e.bb,a=new y0(this._v.Qt(),e.type,r,i,e.Sb);this._v.Qt().sf(a,n);let o=new E2(a,this,this,this,this.wb,e=>this.yb(e));return this._b.set(o,a),this.ub.set(a,o),o}Cb(e){let t=this._v.Qt();for(let t of e.q_.keys())t.Va();t.tf(e.Et.Dc,e.Et.Pg,e.Et.kg),e.q_.forEach((e,t)=>t.ht(e.ce,e.yg)),t.Et().dc(),t.Lc()}Pb(e){return j_(this.ub.get(e))}kb(e){return e!==void 0&&this.ub.has(e)?this.Pb(e):void 0}Mb(e){let t=new Map;e.sg.forEach((e,n)=>{let r=n.Sh(),i=m2(r)(e);if(r!==`Custom`)A_(wy(i));else{let e=n.dl();A_(!e||!1===e(i))}t.set(this.Pb(n),i)});let n=this.kb(e.ZM),r=e.XM===void 0?void 0:{type:e.XM.ds,sourceKind:e.XM.JM,objectKind:e.XM.QM,series:this.kb(e.XM.q_),objectId:e.XM.tg,paneIndex:e.XM.ig};return{time:e.th,logical:e.$n,point:e.ng,paneIndex:e.ig,hoveredInfo:r,hoveredSeries:n,hoveredObjectId:e.GM,seriesData:t,sourceEvent:e.eg}}yb(e){let t=this.vd.get(e);return t||(t=new C2(this._v,e=>this.Pb(e),e,this),this.vd.set(e,t)),t}};function A2(e){if(L_(e)){let t=document.getElementById(e);return A_(t!==null,`Cannot find element in DOM with id=${e}`),t}return e}function j2(e,t,n){let r=new k2(A2(e),t,n);return t.setOptions(r.options()),r}function M2(e,t){return j2(e,new Iv,Iv.Vf(t))}function N2(e,t,n,r){return Math.hypot(n-e,r-t)}function P2(e,t,n,r,i,a,o,s=0){if(t.length===0||r.from>=t.length||r.to<=0)return;let{context:c,horizontalPixelRatio:l,verticalPixelRatio:u}=e,d=t[r.from],f=a(e,d),p=d;if(r.to-r.from<2){let t=i/2;c.beginPath();let n={_t:d._t-t,ut:d.ut},r={_t:d._t+t,ut:d.ut};c.moveTo(n._t*l,n.ut*u),c.lineTo(r._t*l,r.ut*u),o(e,f,n,r)}else{let i=s>0,m=0,h=(t,n)=>{if(o(e,f,p,n),c.beginPath(),f=t,p=n,i){let e=m%s;c.lineDashOffset=e,m=e}},g=p;c.beginPath(),c.moveTo(d._t*l,d.ut*u);for(let o=r.from+1;o1?e[t-2]:null,s=te+t,0)}(l);i!==void 0&&P2(e,t,i,n,r,u,z2,d),s&&function(e,t,n,r,i){if(r.to-r.from<=0)return;let{horizontalPixelRatio:a,verticalPixelRatio:o,context:s}=e,c=null,l=Math.max(1,Math.floor(a))%2/2,u=n*o+l;for(let n=r.to-1;n>=r.from;--n){let r=t[n];if(r){let t=i(e,r);t!==c&&(c!==null&&s.fill(),s.beginPath(),s.fillStyle=t,c=t);let n=Math.round(r._t*a)+l,d=r.ut*o;s.moveTo(n,d),s.arc(n,d,u,0,2*Math.PI)}}s.fill()}(e,t,s,n,u)}},V2=class extends B2{Ib(e,t){return t.vt}};function H2(e,t,n,r,i){let a=1-i;return a*a*a*e+3*a*a*i*t+3*a*i*i*n+i*i*i*r}function U2(e,t,n,r,i,a,o,s){switch(i){case 1:{let i=Ky(e,t,n._t,n.ut,r._t,n.ut),a=Ky(e,t,r._t,n.ut,r._t,r.ut),o=Math.min(i,a);return o<=s?o:null}case 2:{let[i,c]=R2(a,o),l=function(e,t,n){let r=1/0,i=n[0];for(let a=1;a<=12;a++){let o=a/12,s={_t:H2(n[0]._t,n[1]._t,n[2]._t,n[3]._t,o),ut:H2(n[0].ut,n[1].ut,n[2].ut,n[3].ut,o)};r=Math.min(r,Ky(e,t,i._t,i.ut,s._t,s.ut)),i=s}return r}(e,t,[n,i,c,r]);return l<=s?l:null}default:{let i=Ky(e,t,n._t,n.ut,r._t,r.ut);return i<=s?i:null}}}var W2=class extends e2{constructor(e,t){super(e,t,!0)}Hg(e,t,n){t.Ic(this.Ig,V_(this.Vg)),e.Xo(this.Ig,n,V_(this.Vg))}Vb(e,t){return{wt:e,Mt:t,_t:NaN,ut:NaN}}Fg(){let e=this.le.xa();this.Ig=this.le.$a().Eh().map(t=>{let n;if((t.Gr??1)>1){let e=t.Wt[1],r=t.Wt[2],i=t.Wt[3];n=Math.abs(e-i)>Math.abs(r-i)?e:r}else n=t.Wt[3];return this.Bb(t.$n,n,e)})}},G2=class extends W2{zg(e,t){let n=this.le.N();return function(e,t,n,r,i,a,o,s=0,c=0){if(t===null||t.from>=t.to||e.length===0)return null;let l=Math.max(a/2,o??0)+c,u=1/0;if(o!==void 0){let i=o+c,a=Hy(e,n-i,t.from,t.to),s=Uy(e,n+i,a,t.to);for(let t=a;tnew K2(e,t)},J2=class extends e2{constructor(e,t){super(e,t,!1)}zg(e,t){return Xy(this.Ig,this.Vg,e,t,this.oe.Et().wl(),this.le.N().hitTestTolerance,(e,t)=>{t[0]=e.i_,t[1]=e.n_})}Hg(e,t,n){t.Ic(this.Ig,V_(this.Vg)),e.Qo(this.Ig,n,V_(this.Vg))}wS(e,t,n){return{wt:e,qr:t.Wt[0],Yr:t.Wt[1],Kr:t.Wt[2],Zr:t.Wt[3],_t:NaN,t_:NaN,i_:NaN,n_:NaN,s_:NaN}}Fg(){let e=this.le.xa();this.Ig=this.le.$a().Eh().map(t=>this.Bb(t.$n,t,e))}},Y2=class extends Y_{constructor(){super(...arguments),this.qt=null,this.dS=0}ht(e){this.qt=e}et(e){if(this.qt===null||this.qt.Un.length===0||this.qt.lt===null)return;let{horizontalPixelRatio:t}=e;this.dS=function(e,t){if(e>=2.5&&e<=4)return Math.floor(3*t);let n=1-.2*Math.atan(Math.max(4,e)-4)/(.5*Math.PI),r=Math.floor(e*n*t),i=Math.floor(e*t);return Math.max(Math.floor(t),Math.min(r,i))}(this.qt.wl,t),this.dS>=2&&Math.floor(t)%2!=this.dS%2&&this.dS--;let n=this.qt.Un;this.qt.MS&&this.gS(e,n,this.qt.lt),this.qt.gi&&this.Lm(e,n,this.qt.lt);let r=this.bS(t);(!this.qt.gi||this.dS>2*r)&&this.SS(e,n,this.qt.lt)}gS(e,t,n){if(this.qt===null)return;let{context:r,horizontalPixelRatio:i,verticalPixelRatio:a}=e,o=``,s=Math.min(Math.floor(i),Math.floor(this.qt.wl*i));s=Math.max(Math.floor(i),Math.min(s,this.dS));let c=Math.floor(.5*s),l=null;for(let e=n.from;e2*s)n1(r,l,d,u-l+1,f-d+1,s);else{let e=u-l+1;r.fillRect(l,d,e,f-d+1)}c=u}}SS(e,t,n){if(this.qt===null)return;let{context:r,horizontalPixelRatio:i,verticalPixelRatio:a}=e,o=``,s=this.bS(i);for(let e=n.from;el||r.fillRect(u,c,d-u+1,l-c+1)}}},X2=class extends J2{constructor(){super(...arguments),this.Lg=new Y2}Bb(e,t,n){return{...this.wS(e,t,n),...n.xh(e)}}Ug(){let e=this.le.N();this.Lg.ht({Un:this.Ig,wl:this.oe.Et().wl(),MS:e.wickVisible,gi:e.borderVisible,lt:this.Vg})}},Z2={type:`Candlestick`,isBuiltIn:!0,defaultOptions:{upColor:`#26a69a`,downColor:`#ef5350`,wickVisible:!0,borderVisible:!0,borderColor:`#378658`,borderUpColor:`#26a69a`,borderDownColor:`#ef5350`,wickColor:`#737375`,wickUpColor:`#26a69a`,wickDownColor:`#ef5350`},bb:(e,t)=>new X2(e,t)},Q2=class extends Y_{constructor(){super(...arguments),this.qt=null,this.xS=[]}ht(e){this.qt=e,this.xS=[]}et({context:e,horizontalPixelRatio:t,verticalPixelRatio:n}){if(this.qt===null||this.qt.ot.length===0||this.qt.lt===null)return;this.xS.length||this.CS(t);let r=Math.max(1,Math.floor(n)),i=Math.round(this.qt.yS*n)-Math.floor(r/2),a=i+r;for(let t=this.qt.lt.from;tr.de?r.bi=n.Fa-t-1:n.Fa=r.bi+t+1)}let r=Math.ceil(this.qt.wl*e);for(let e=this.qt.lt.from;e0&&r<4)for(let e=this.qt.lt.from;er&&(t.PS>t.de?--t.bi:t.Fa+=1)}}},$2=class extends W2{constructor(){super(...arguments),this.Lg=new Q2}zg(e,t){let n=this.le.Ft().Nt(this.le.N().base,$(this.le.Lt()).Wt);return n===null?null:Xy(this.Ig,this.Vg,e,t,this.oe.Et().wl(),this.le.N().hitTestTolerance,(e,t)=>{t[0]=e.ut,t[1]=n})}Bb(e,t,n){return{...this.Vb(e,t),...n.xh(e)}}Ug(){let e={ot:this.Ig,wl:this.oe.Et().wl(),lt:this.Vg,yS:this.le.Ft().Nt(this.le.N().base,$(this.le.Lt()).Wt)};this.Lg.ht(e)}},e4={type:`Histogram`,isBuiltIn:!0,defaultOptions:{color:`#26a69a`,base:0},bb:(e,t)=>new $2(e,t)},t4=class{constructor(e,t){this.le=e,this.Qh=t,this.TS()}detach(){this.le.detachPrimitive(this.Qh)}getSeries(){return this.le}applyOptions(e){this.Qh&&this.Qh.mr&&this.Qh.mr(e)}TS(){this.le.attachPrimitive(this.Qh)}},n4={autoScale:!0,zOrder:`normal`};function r4(e,t){return T0(Math.min(Math.max(e,12),30)*t)}function i4(e,t){return T0(Math.max(t,12)*(e===`circle`?.8:e===`square`?.7:1))}function a4(e){return function(e){let t=Math.ceil(e);return t%2==0?t:t-1}(r4(e,1))}function o4(e){return Math.max(r4(e,.1),3)}function s4(e,t,n){return t?e:n?Math.ceil(e/2):0}function c4(e,t,n,r){let i=(i4(`arrowUp`,r)-1)/2*n.XS,a=(T0(r/2)-1)/2*n.XS;t.beginPath(),e?(t.moveTo(n._t-i,n.ut),t.lineTo(n._t,n.ut-i),t.lineTo(n._t+i,n.ut),t.lineTo(n._t+a,n.ut),t.lineTo(n._t+a,n.ut+i),t.lineTo(n._t-a,n.ut+i),t.lineTo(n._t-a,n.ut)):(t.moveTo(n._t-i,n.ut),t.lineTo(n._t,n.ut+i),t.lineTo(n._t+i,n.ut),t.lineTo(n._t+a,n.ut),t.lineTo(n._t+a,n.ut-i),t.lineTo(n._t-a,n.ut-i),t.lineTo(n._t-a,n.ut)),t.fill()}function l4(e,t,n,r,i,a){let o=(i4(`arrowUp`,r)-1)/2,s=(T0(r/2)-1)/2;return i>=t-s-2&&i<=t+s+2&&a>=(e?n:n-o)-2&&a<=(e?n+o:n)+2||(()=>{if(it+o+3||a<(e?n-o-3:n)||a>(e?n:n+o+3))return!1;let r=Math.abs(i-t);return Math.abs(a-n)+3>=r/2})()}var u4=class{constructor(){this.qt=null,this.$s=new T1,this.F=-1,this.W=``,this._m=``,this.JS=`normal`}ht(e){this.qt=e}js(e,t,n){this.F===e&&this.W===t||(this.F=e,this.W=t,this._m=U_(e,t),this.$s.Os()),this.JS=n}Qs(e,t){if(this.qt===null||this.qt.lt===null)return null;for(let n=this.qt.lt.from;n{this.et(e)})}drawBackground(e){this.JS===`aboveSeries`&&e.useBitmapCoordinateSpace(e=>{this.et(e)})}et({context:e,horizontalPixelRatio:t,verticalPixelRatio:n}){if(this.qt!==null&&this.qt.lt!==null){e.textBaseline=`middle`,e.font=this._m;for(let r=this.qt.lt.from;r=e&&i<=e+n&&a>=t-o&&a<=t+o}(e.ri._t,e.ri.ut,e.ri.nn,e.ri.$t,t,n))||function(e,t,n){if(e.Rh===0)return!1;switch(e.tx){case`arrowDown`:return l4(!0,e._t,e.ut,e.Rh,t,n);case`arrowUp`:return l4(!1,e._t,e.ut,e.Rh,t,n);case`circle`:return function(e,t,n,r,i){let a=2+i4(`circle`,n)/2,o=e-r,s=t-i;return Math.sqrt(o*o+s*s)<=a}(e._t,e.ut,e.Rh,t,n);case`square`:return function(e,t,n,r,i){let a=i4(`square`,n),o=(a-1)/2,s=e-o,c=t-o;return r>=s&&r<=s+a&&i>=c&&i<=c+a}(e._t,e.ut,e.Rh,t,n)}}(e,t,n)}function p4(e){return e===`atPriceTop`||e===`atPriceBottom`||e===`atPriceMiddle`}function m4(e,t,n,r,i,a,o,s){let c=function(e,t,n){if(p4(t.position)&&t.price!==void 0)return t.price;if(`value`in(r=e)&&typeof r.value==`number`)return e.value;var r;if(function(e){return`open`in e&&`high`in e&&`low`in e&&`close`in e}(e)){if(t.position===`inBar`)return e.close;if(t.position===`aboveBar`)return n?e.low:e.high;if(t.position===`belowBar`)return n?e.high:e.low}}(n,t,o.priceScale().options().invertScale);if(c===void 0)return;let l=p4(t.position),u=s.timeScale(),d=F_(t.size)?Math.max(t.size,0):1,f=a4(u.options().barSpacing)*d,p=f/2;switch(e.Rh=f,t.position){case`inBar`:case`atPriceMiddle`:e.ut=$(o.priceToCoordinate(c)),e.ri!==void 0&&(e.ri.ut=e.ut+p+a+.6*i);return;case`aboveBar`:case`atPriceTop`:{let t=l?0:r.ix;e.ut=$(o.priceToCoordinate(c))-p-t,e.ri!==void 0&&(e.ri.ut=e.ut-p-.6*i,r.ix+=1.2*i),l||(r.ix+=f+a);return}case`belowBar`:case`atPriceBottom`:{let t=l?0:r.nx;e.ut=$(o.priceToCoordinate(c))+p+t,e.ri!==void 0&&(e.ri.ut=e.ut+p+a+.6*i,r.nx+=1.2*i),l||(r.nx+=f+a);return}}}var h4=class{constructor(e,t,n){this.sx=[],this.xt=!0,this.hx=!0,this.Xt=new u4,this.Re=e,this.Qv=t,this.qt={ot:[],lt:null},this.yn=n}renderer(){if(!this.Re.options().visible)return null;this.xt&&this.Ag();let e=this.Qv.options().layout;return this.Xt.js(e.fontSize,e.fontFamily,this.yn.zOrder),this.Xt.ht(this.qt),this.Xt}lx(e){this.sx=e,this.Pt(`data`)}Pt(e){this.xt=!0,e===`data`&&(this.hx=!0)}ox(e){this.xt=!0,this.yn=e}zOrder(){return this.yn.zOrder===`aboveSeries`?`top`:this.yn.zOrder}Ag(){let e=this.Qv.timeScale(),t=this.sx;this.hx&&=(this.qt.ot=t.map(e=>({wt:e.time,_t:0,ut:0,Rh:0,tx:e.shape,R:e.color,ie:e.id,_x:e._x,ri:void 0})),!1);let n=this.Qv.options().layout;this.qt.lt=null;let r=e.getVisibleLogicalRange();if(r===null)return;let i=new iv(Math.floor(r.from),Math.ceil(r.to));if(this.Re.dataByIndex(0,1)===null||this.qt.ot.length===0)return;let a=NaN,o=o4(e.options().barSpacing),s={ix:o,nx:o};this.qt.lt=$y(this.qt.ot,i,!0);for(let r=this.qt.lt.from;r0&&(c.ri={QS:i.text,_t:0,ut:0,nn:0,$t:0});let l=this.Re.dataByIndex(i.time,0);l!==null&&m4(c,i,l,s,n.fontSize,o,this.Re,this.Qv)}this.xt=!1}};function g4(e){return{...n4,...e}}var _4=class{constructor(e){this.Kh=null,this.sx=[],this.ux=[],this.vx=null,this.Re=null,this.Qv=null,this.mx=!0,this.wx=null,this.Mx=null,this.gx=null,this.bx=!0,this.yn=g4(e)}attached(e){this.Sx(),this.Qv=e.chart,this.Re=e.series,this.Kh=new h4(this.Re,$(this.Qv),this.yn),this.ZS=e.requestUpdate,this.Re.subscribeDataChanged(e=>this.sb(e)),this.bx=!0,this.ES()}ES(){this.ZS&&this.ZS()}detached(){this.Re&&this.vx&&this.Re.unsubscribeDataChanged(this.vx),this.Qv=null,this.Re=null,this.Kh=null,this.vx=null}lx(e){this.bx=!0,this.sx=e,this.Sx(),this.mx=!0,this.Mx=null,this.ES()}xx(){return this.sx}paneViews(){return this.Kh?[this.Kh]:[]}updateAllViews(){this.Cx()}hitTest(e,t){return this.Kh?this.Kh.renderer()?.Qs(e,t)??null:null}autoscaleInfo(e,t){if(this.yn.autoScale&&this.Kh){let e=this.yx();if(e)return{priceRange:null,margins:e}}return null}mr(e){this.yn=g4({...this.yn,...e}),this.ES&&this.ES()}yx(){let e=$(this.Qv).timeScale().options().barSpacing;if(this.mx||e!==this.gx){if(this.gx=e,this.sx.length>0){let t=o4(e),n=1.5*a4(e)+2*t,r=this.Px();this.wx={above:s4(n,r.aboveBar,r.inBar),below:s4(n,r.belowBar,r.inBar)}}else this.wx=null;this.mx=!1}return this.wx}Px(){return this.Mx===null&&(this.Mx=this.sx.reduce((e,t)=>(e[t.position]||(e[t.position]=!0),e),{inBar:!1,aboveBar:!1,belowBar:!1,atPriceTop:!1,atPriceBottom:!1,atPriceMiddle:!1})),this.Mx}Sx(){if(!this.bx||!this.Qv||!this.Re)return;let e=this.Qv.timeScale(),t=this.Re?.data();if(e.getVisibleLogicalRange()==null||!this.Re||t.length===0)return void(this.ux=[]);let n=e.timeToIndex($(t[0].time),!0);this.ux=this.sx.map((t,r)=>{let i=e.timeToIndex(t.time,!0),a=iS4+e*86400;return(0,v.useEffect)(()=>{let e=o.current;if(!e)return;let t=M2(e,{layout:{background:{type:pv.Solid,color:`#FFFFFF`},textColor:`#8A93A3`,fontFamily:`"PingFang SC", "Microsoft YaHei UI", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif`,fontSize:11,attributionLogo:!1},grid:{vertLines:{color:`#F4F5F8`},horzLines:{color:`#F4F5F8`}},crosshair:{mode:m1.Normal,vertLine:{color:`#9AA4B2`,width:1,style:2,labelBackgroundColor:`#2B323B`},horzLine:{color:`#9AA4B2`,width:1,style:2,labelBackgroundColor:`#2B323B`}},rightPriceScale:{borderColor:`#EDEFF3`,scaleMargins:{top:.1,bottom:.24}},timeScale:{borderColor:`#EDEFF3`,rightOffset:5,barSpacing:8,minBarSpacing:3,fixLeftEdge:!1,tickMarkFormatter:e=>p.current[e]??``},localization:{timeFormatter:e=>p.current[e]??``},handleScroll:{mouseWheel:!0,pressedMouseMove:!0,horzTouchDrag:!0,vertTouchDrag:!1},handleScale:{axisPressedMouseMove:!0,mouseWheel:!0,pinch:!0},autoSize:!0});s.current=t;let n=t.addSeries(Z2,{upColor:b4,downColor:x4,borderUpColor:b4,borderDownColor:x4,wickUpColor:b4,wickDownColor:x4,priceLineVisible:!1,lastValueVisible:!0});c.current=n;let r=t.addSeries(q2,{color:`#3D5FE8`,lineWidth:2,priceLineVisible:!1,lastValueVisible:!1,crosshairMarkerVisible:!1});l.current=r;let i=t.addSeries(e4,{priceFormat:{type:`volume`},priceScaleId:`vol`,priceLineVisible:!1,lastValueVisible:!1});return u.current=i,t.priceScale(`vol`).applyOptions({scaleMargins:{top:.84,bottom:0},borderVisible:!1,visible:!1}),d.current=y4(n,[]),t.subscribeClick(e=>{if(!a||!e.time)return;let t=e.time,n=Math.round((t-S4)/86400);Number.isFinite(n)&&a(n)}),()=>{f.current=[],t.remove(),s.current=null}},[]),(0,v.useEffect)(()=>{let t=c.current,n=l.current,i=u.current;if(!t||!n||!i)return;let a={},o=e.map((e,t)=>{let n=Number.isFinite(e.t)?e.t:t,r=m(n);return a[r]=e.label,{time:r,open:e.o,high:e.h,low:e.l,close:e.c}});p.current=a,t.setData(o),n.setData(e.map((e,t)=>({time:m(Number.isFinite(e.t)?e.t:t),value:e.ema??NaN})).filter(e=>Number.isFinite(e.value))),i.setData(e.map((e,t)=>({time:m(Number.isFinite(e.t)?e.t:t),value:e.v??0,color:e.c>=e.o?`rgba(224,62,62,0.28)`:`rgba(15,160,112,0.28)`}))),r||s.current?.timeScale().fitContent()},[e,r]),(0,v.useEffect)(()=>{let t=s.current;if(!t)return;for(let e of f.current)try{t.removeSeries(e)}catch{}f.current=[];let r=e.length?Math.max(...e.map((e,t)=>Number.isFinite(e.t)?e.t:t)):74;for(let e of n){if(!e.points||e.points.length<2)continue;let n=[...e.points].map(e=>({barIndex:Math.max(0,Math.min(r,e.barIndex)),price:e.price})).sort((e,t)=>e.barIndex-t.barIndex);if(n[0].barIndex===n[n.length-1].barIndex)continue;let i=t.addSeries(q2,{color:e.color||`#2C48CE`,lineWidth:e.width||2,lineStyle:e.style===`dashed`?D_.Dashed:D_.Solid,priceLineVisible:!1,lastValueVisible:!0,title:e.label||``,crosshairMarkerVisible:!1}),a=n[0],o=n[n.length-1],s=Math.max(1,o.barIndex-a.barIndex),c=[];for(let e=a.barIndex;e<=o.barIndex;e++){let t=(e-a.barIndex)/s;c.push({time:m(e),value:a.price+(o.price-a.price)*t})}i.setData(c),f.current.push(i)}},[n,e]),(0,v.useEffect)(()=>{let e=s.current;e&&(r&&r.length===2?e.timeScale().setVisibleLogicalRange({from:r[0],to:r[1]+2}):e.timeScale().fitContent())},[r]),(0,v.useEffect)(()=>{if(!d.current)return;let e={confirm:`arrowUp`,invalidate:`arrowDown`,setup:`circle`,player:`circle`,ai:`square`},n={confirm:`#2C48CE`,invalidate:`#D9383A`,setup:`#B08125`,player:`#2C48CE`,ai:`#1E2430`},r=[...t].sort((e,t)=>e.barIndex-t.barIndex).map(t=>{let r=t.kind||`setup`;return{time:m(t.barIndex),position:t.pos||(r===`invalidate`||r===`ai`?`aboveBar`:`belowBar`),shape:t.shape||e[r]||`circle`,color:t.color||n[r]||`#2C48CE`,text:t.title}});d.current.setMarkers(r)},[t]),(0,K.jsx)(`div`,{ref:o,style:{height:i},className:`w-full`})}function w4({days:e=15,playerMap:t,aiMap:n,activeDay:r=null,onSelectDay:i}){return(0,K.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between text-2xs text-ink-400`,children:[(0,K.jsx)(`span`,{className:`font-medium text-ink-600`,children:`逐日仓位同屏对照(T0 ~ T+14)`}),(0,K.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,K.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-brand-700`,children:[(0,K.jsx)(`span`,{className:`h-2 w-2 rounded-sm bg-brand-600`}),`你的仓位`]}),(0,K.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-ink-700`,children:[(0,K.jsx)(`span`,{className:`h-2 w-2 rounded-sm bg-amber-500`}),`AI 仓位`]})]})]}),(0,K.jsx)(`div`,{className:`grid gap-1`,style:{gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`},children:Array.from({length:e}).map((e,a)=>{let o=t[a]!==void 0,s=Math.round((t[a]??0)*100),c=Math.round((n[a]??0)*100),l=a===0?`T0`:`+${a}`,u=r===a;return(0,K.jsxs)(`button`,{type:`button`,disabled:!o||!i,onClick:()=>i?.(a),title:o?`${a===0?`T0`:`T+${a}`}:你 ${s}% vs AI ${c}%`:`${l} 未走完`,className:Z(`flex flex-col items-center rounded-md border px-1 py-1 transition-all`,u?`border-brand-400 bg-brand-50/70 ring-1 ring-brand-300`:o?`border-line bg-white hover:border-brand-200`:`border-line/50 bg-slate-soft/40 opacity-55`,!i&&`cursor-default`),children:[(0,K.jsxs)(`div`,{className:`flex h-7 w-full items-end justify-center gap-[3px]`,children:[(0,K.jsx)(`div`,{className:`relative h-full w-2 rounded-sm bg-slate-100`,children:o?(0,K.jsx)(`div`,{style:{height:`${Math.max(s,s>0?12:3)}%`},className:Z(`absolute bottom-0 inset-x-0 rounded-sm transition-all duration-300`,s>0?`bg-brand-600`:`bg-ink-200`)}):null}),(0,K.jsx)(`div`,{className:`relative h-full w-2 rounded-sm bg-slate-100`,children:o?(0,K.jsx)(`div`,{style:{height:`${Math.max(c,c>0?12:3)}%`},className:Z(`absolute bottom-0 inset-x-0 rounded-sm transition-all duration-300`,c>0?`bg-amber-500`:`bg-ink-200`)}):null})]}),(0,K.jsx)(`span`,{className:`tnum mt-1 text-[10px] leading-none text-ink-500`,children:l}),o?(0,K.jsxs)(`span`,{className:`tnum mt-0.5 text-[9px] leading-none text-ink-400`,children:[s,`/`,c]}):null]},a)})})]})}function T4({player:e,ai:t,height:n=120}){let r=(0,v.useRef)(null),i=(0,v.useRef)(null);return(0,v.useEffect)(()=>{let e=r.current;if(!e)return;let t=M2(e,{layout:{background:{type:pv.Solid,color:`#FFFFFF`},textColor:`#8A93A3`,fontSize:10,attributionLogo:!1},grid:{vertLines:{visible:!1},horzLines:{color:`#F4F5F8`}},rightPriceScale:{borderVisible:!1,scaleMargins:{top:.14,bottom:.14}},timeScale:{visible:!1,borderVisible:!1},crosshair:{mode:m1.Normal,horzLine:{visible:!1}},handleScroll:!1,handleScale:!1,autoSize:!0});return i.current=t,t.__series={p:t.addSeries(q2,{color:`#2C48CE`,lineWidth:2,priceLineVisible:!1,lastValueVisible:!0}),a:t.addSeries(q2,{color:`#D97706`,lineWidth:2,lineStyle:2,priceLineVisible:!1,lastValueVisible:!0})},()=>{t.remove(),i.current=null}},[]),(0,v.useEffect)(()=>{let n=i.current;if(!n?.__series)return;let r=e=>e.map((e,t)=>({time:S4+t*86400,value:e.equity}));n.__series.p.setData(r(e)),n.__series.a.setData(r(t)),n.timeScale().fitContent()},[e,t]),(0,K.jsx)(`div`,{ref:r,style:{height:n},className:`w-full`})}function E4({bars:e,width:t=220,height:n=64}){let{rects:r}=(0,v.useMemo)(()=>{if(!e.length)return{rects:[]};let r=1/0,i=-1/0;for(let t of e)r=Math.min(r,t.l),i=Math.max(i,t.h);i===r&&(i=r+1);let a=(i-r)*.08;r-=a,i+=a;let o=t/Math.max(e.length,1),s=Math.max(1.2,o*.62),c=e=>n-(e-r)/(i-r)*n;return{rects:e.map((e,t)=>{let n=t*o+o/2,r=e.c>=e.o,i=c(Math.max(e.o,e.c)),a=c(Math.min(e.o,e.c));return{x:n,w:s,wickTop:c(e.h),wickBottom:c(e.l),y:i,h:Math.max(1,a-i),color:r?b4:x4}})}},[e,t,n]);return(0,K.jsx)(`svg`,{width:t,height:n,className:`overflow-visible`,role:`img`,"aria-label":`关卡形态缩略图`,children:r.map((e,t)=>(0,K.jsxs)(`g`,{children:[(0,K.jsx)(`line`,{x1:e.x,x2:e.x,y1:e.wickTop,y2:e.wickBottom,stroke:e.color,strokeWidth:1,opacity:.85}),(0,K.jsx)(`rect`,{x:e.x-e.w/2,y:e.y,width:e.w,height:e.h,fill:e.color,rx:.5,opacity:.92})]},t))})}function D4({motifs:e,initialMotif:t=`all`,onStart:n,toast:r}){let[i,a]=(0,v.useState)(t),[o,s]=(0,v.useState)([]),[c,l]=(0,v.useState)(!0),[u,d]=(0,v.useState)(``),[f,p]=(0,v.useState)(``),[m,h]=(0,v.useState)(!1),[g,_]=(0,v.useState)(null);(0,v.useEffect)(()=>{a(t)},[t]);let y=async e=>{l(!0);try{let t=await _p.library(e===`all`?void 0:e);s(t.cards)}catch(e){r(e.message,`err`)}finally{l(!1)}};(0,v.useEffect)(()=>{y(i)},[i]);let b=(0,v.useMemo)(()=>{let e=new Map;for(let t of o)e.has(t.motif_cn)||e.set(t.motif_cn,[]),e.get(t.motif_cn).push(t);return[...e.entries()]},[o]),x=async()=>{if(!u.trim())r(`请输入股票代码,如 002415.SZ 或 600519`,`err`);else{h(!0),_(null);try{let e=await _p.fetchCustom(u.trim(),f.trim()||void 0);_(`${e.name}(${e.code}):${e.range[0]} ~ ${e.range[1]},生成 ${e.levels} 个价格行为关卡`),r(`动态关卡已生成并加入题库`),await y(i)}catch(e){r(e.message,`err`)}finally{h(!1)}}};return(0,K.jsx)(`div`,{className:`flex h-full min-h-0 flex-col gap-3 overflow-y-auto p-4`,children:(0,K.jsxs)(`div`,{className:`grid grid-cols-[minmax(0,1fr)_360px] gap-3`,children:[(0,K.jsxs)(e_,{children:[(0,K.jsx)(t_,{title:`专项课题练习库(24 个真实历史名场面)`,desc:`每类课题均由 3 个正例 + 3 个反例混排组成;通关前不剧透股票名称与真假结局`,right:(0,K.jsx)(i_,{size:`sm`,value:i,onChange:e=>a(e),options:[{value:`all`,label:`全部课题`},...e.map(e=>({value:e.key,label:e.short_cn||e.cn.split(`·`)[0].trim()}))]})}),(0,K.jsx)(`div`,{className:`p-4`,children:c?(0,K.jsxs)(`div`,{className:`flex items-center justify-center gap-2 py-16 text-xs text-ink-400`,children:[(0,K.jsx)(zf,{size:14,className:`animate-spin`}),` 正在加载关卡…`]}):o.length===0?(0,K.jsx)(a_,{title:`该课题下暂无关卡`,desc:`可切换其他课题,或使用右侧同花顺 iFinD 动态生成。`}):(0,K.jsx)(`div`,{className:`space-y-6`,children:b.map(([e,t])=>(0,K.jsxs)(`section`,{children:[(0,K.jsxs)(`div`,{className:`mb-2.5 flex items-center gap-2`,children:[(0,K.jsx)(`h3`,{className:`text-xs font-semibold text-ink-900`,children:e}),(0,K.jsxs)(n_,{tone:`neutral`,children:[t.length,` 关(正反各半)`]})]}),(0,K.jsx)(`div`,{className:`grid grid-cols-3 gap-3`,children:t.map(e=>(0,K.jsxs)(Nd.button,{layout:!0,whileHover:{y:-3},transition:{duration:.18},type:`button`,onClick:()=>n(e.id),className:`card group overflow-hidden text-left transition-shadow hover:shadow-lift`,children:[(0,K.jsx)(`div`,{className:`border-b border-line bg-slate-soft/40 px-3 py-2`,children:(0,K.jsx)(E4,{bars:e.bars,width:280,height:72})}),(0,K.jsxs)(`div`,{className:`space-y-2 px-3 py-2.5`,children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,K.jsx)(`span`,{className:`chip`,children:e.key}),e.custom?(0,K.jsx)(n_,{tone:`gold`,children:`iFinD 动态`}):e.segment===`样本外测试段`?(0,K.jsx)(n_,{tone:`brand`,children:`样本外名局`}):(0,K.jsx)(n_,{tone:`neutral`,children:`历史经典局`})]}),(0,K.jsx)(`div`,{className:`flex items-center gap-1.5 text-2xs text-ink-500`,children:e.initialPosition===`legacy70`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(lp,{size:11,className:`text-amber-600`}),(0,K.jsx)(`span`,{children:`开局持有 70% 获利老仓`})]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)($f,{size:11,className:`text-brand-500`}),(0,K.jsx)(`span`,{children:`开局 0% 空仓自主建仓`})]})}),(0,K.jsxs)(`div`,{className:`flex items-center justify-between border-t border-line pt-2 text-2xs`,children:[(0,K.jsx)(`span`,{className:`text-ink-400`,children:e.best?`最佳战绩`:`待挑战`}),(0,K.jsx)(`span`,{className:Z(`tnum font-semibold`,e.best?e.best.return>=0?`text-up`:`text-down`:`text-ink-300`),children:e.best?u_(e.best.return):`开始实战 →`})]})]})]},e.id))})]},e))})})]}),(0,K.jsx)(`div`,{className:`space-y-3`,children:(0,K.jsxs)(e_,{children:[(0,K.jsx)(t_,{title:`任意 A 股动态出题`,desc:`调用站内同花顺 iFinD 拉取前复权日线,自动生成带画线带教的新关卡`}),(0,K.jsxs)(`div`,{className:`space-y-3 p-4`,children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg bg-slate-soft px-3 py-2 text-2xs leading-relaxed text-ink-500`,children:[(0,K.jsx)(yf,{size:13,className:`shrink-0 text-brand-500`}),`动态生成关卡同样配备完整的 PA-LightGBM 逐日评分与赛后 4 帧画线讲稿。`]}),(0,K.jsxs)(`label`,{className:`block`,children:[(0,K.jsx)(`span`,{className:`text-2xs font-medium text-ink-500`,children:`股票代码`}),(0,K.jsxs)(`div`,{className:`relative mt-1`,children:[(0,K.jsx)(Yf,{size:13,className:`absolute left-2.5 top-1/2 -translate-y-1/2 text-ink-300`}),(0,K.jsx)(`input`,{value:u,onChange:e=>d(e.target.value),onKeyDown:e=>{e.key===`Enter`&&x()},placeholder:`如 002415.SZ 或 600036`,className:`tnum h-9 w-full rounded-lg border border-line bg-white pl-8 pr-2.5 text-xs text-ink-800 outline-none focus:border-brand-300 focus:ring-2 focus:ring-brand-100`})]})]}),(0,K.jsxs)(`label`,{className:`block`,children:[(0,K.jsx)(`span`,{className:`text-2xs font-medium text-ink-500`,children:`股票名称(可选)`}),(0,K.jsx)(`input`,{value:f,onChange:e=>p(e.target.value),placeholder:`如 海康威视`,className:`mt-1 h-9 w-full rounded-lg border border-line bg-white px-2.5 text-xs text-ink-800 outline-none focus:border-brand-300 focus:ring-2 focus:ring-brand-100`})]}),(0,K.jsx)($g,{variant:`primary`,className:`w-full`,disabled:m,onClick:x,icon:m?(0,K.jsx)(zf,{size:13,className:`animate-spin`}):(0,K.jsx)(xf,{size:13}),children:m?`正在拉取并生成…`:`拉取前复权数据并出题`}),g?(0,K.jsx)(`p`,{className:`rounded-lg bg-down-soft px-2.5 py-2 text-2xs leading-relaxed text-down-deep`,children:g}):null]})]})})]})})}var O4=[{key:`cycle`,badge:`第 1 层框架 · 战场定性`,title:`市场四周期与「80% 区间突破失败铁律」`,subtitle:`脱离市场周期谈单根蜡烛线毫无意义——同一根大阳线,在通道里是印钞机,在箱体上沿却是绞肉机。`,practiceMotif:`breakout_follow`,practiceLabel:`去练「箱体突破真伪」课题`,coreIdea:`Al Brooks 价格行为学第一公理:市场任何时刻只处于「强突破脉冲(Spike)」「趋势通道(Channel)」「交易区间(Trading Range)」「高潮衰竭(Climax)」四种状态之一。读图第一步永远是看前 20~40 根 K 线定周期,而不是盯最后一根红绿柱。`,points:[{title:`趋势通道(Channel):20EMA 稳步倾斜,顺势找回踩`,detail:`高低点依次抬高、蓝色 20EMA 保持斜率向上。此时空头每次打压都是纸老虎,最佳策略绝不是去摸顶,而是耐心等价格回落触碰 20EMA 时顺势上车。`},{title:`交易区间(Trading Range):阴阳重叠拉锯,牢记 80% 失败法则`,detail:`当 K 线反复横向重叠、上下影线密集、20EMA 走平时,市场处于多空均衡箱体。Al Brooks 统计指出:交易区间内 80% 的突破尝试都会失败跌回箱体!因此在箱体上沿看到大阳线绝不可盲目满仓追涨。`},{title:`抢购 / 抛售高潮(Climax & Wedge):连续三推后的动能枯竭`,detail:`当价格连续三波同向推进且斜率逐波放缓(三推楔形 Wedge),或短期暴涨暴跌极度远离 20EMA 时,顺势资金已透支殆尽,随时引发猛烈的反向获利回吐。`}]},{key:`bars`,badge:`第 2 层框架 · 微观力学`,title:`读懂单根蜡烛:趋势棒、十字星与二次信号(H2)`,subtitle:`每一根 K 线都是当天真金白银多空公投的结果——重点看「收盘落在全天什么位置」和「影线拒绝了谁」。`,practiceMotif:`ema20_pullback`,practiceLabel:`去练「趋势回踩 20EMA」课题`,coreIdea:`不要死背几十个花哨的蜡烛图古怪名词。Al Brooks 将所有 K 线高度抽象为两类:一方坚决控盘的「趋势棒(Trend Bar)」与多空犹豫拉锯的「交易区间棒 / 十字星(Doji)」。`,points:[{title:`收盘位置强度(Close Position):谁掌控了收盘最后半小时?`,detail:`实体大于 0.6 倍 ATR 且收盘在全天最高点前 20% 的阳棒,说明买盘迫不及待扫货,不愿等回调;反之冲高留长上影收在最低点附近(流星拒绝棒),说明上方遭遇机构密集派发。`},{title:`单根十字星 = 微型交易区间,绝非好信号棒`,detail:`实体极小、上下带影线的十字星(Doji)或内包棒(Inside Bar)代表买卖双方势均力敌,单凭一根十字星开重仓等于抛硬币。`},{title:`王牌顺势买点:High 2(二次入场信号棒)`,detail:`上升趋势回踩 20EMA 时,空头通常会尝试往下打两小波(Leg 1 → 反弹失败 → Leg 2)。当股价第二次向上突破前一根 K 线高点(High 2)时,空头两度努力彻底耗尽被套,是胜率最高的顺势加仓点!`}]},{key:`follow`,badge:`第 3 层框架 · 动态求证`,title:`T0 只是假设,T+1/T+2 的「跟随与证伪」才是审判官`,subtitle:`看书总觉得形态百发百中,实盘总被骗炮,根源在于把「信号棒(假设)」当成了「100% 确定结局」。`,practiceMotif:`wedge_climax_low`,practiceLabel:`去练「急跌楔形反转」课题`,coreIdea:`在真实交易中,T0 出现漂亮形态只意味着“有了一个值得试探的交易前提(Premise)”。真正拉开高手与散户差距的,是在 T+1~T+3 紧盯市场给出了「跟随确认(Follow-through)」还是「前提证伪(Invalidation)」。`,points:[{title:`有效跟随确认(Strong Follow-through):从试探仓推向重仓`,detail:`T0 突破棒或反转棒之后,次日及第三日守住关键支撑位并继续收出同向阳棒创新高,说明主力资金持续进场——此时客观胜率大幅抬升,应果断顺势加仓拿住波段。`},{title:`前提证伪(Premise Changed):双棒反转与跌回箱体`,detail:`如果 T0 大阳突破箱体,T+1 立刻收出大实体阴棒重新跌回箱体红线下方;或者抄底反转棒次日直接跌穿 T0 最低点——说明你的买入理由已经不存在了!立刻砍仓只伤皮毛,死扛幻想必受重伤。`},{title:`区分「良性洗盘」与「真破位派发」`,detail:`高位大涨后出现单日震荡并不可怕:只要未跌破分歧棒最低点且缩量窄幅横住,往往是强势旗形空中加油;一旦放量阴线击穿分歧棒低点,则是派发实锤。`}]},{key:`equation`,badge:`第 4 层框架 · 量化闭环`,title:`交易员方程 & PA-LightGBM 的胜率是怎么算出来的?`,subtitle:`把模型黑箱彻底拆开:它不是算命水晶球,而是用 14,119 根真实 A 股 K 线训练出来的「价格行为统计标尺」。`,practiceMotif:`climax_wedge_top`,practiceLabel:`去练「高位高潮逃顶」课题`,coreIdea:`人类读图最大的弱点是情绪化(看到一根大阳线就脑补 90% 必涨)。我们用 MiniMax M3.1 将上述三层价格行为学拆解为 20 个零未来泄漏的数学特征,在近 5 年 12 只龙头全历史序列上训练出 PA-LightGBM 模型。`,points:[{title:`47.0% 历史基准胜率 ± TreeSHAP 特征实时加减分`,detail:`在 A 股全样本中,任意交易日未来 8 天多头占优的基础概率为 47.0%。每走出一根新 K 线,模型实时读取「收盘位置、上下影线、3日跟随度、5日重叠率、20EMA斜率与偏离、三推衰减、大盘顺逆风」20 维特征,用 TreeSHAP 算出每项特征推高或压低了多少胜算。`},{title:`0~100 看多温度(历史百分位校准)与 65 分风控分水岭`,detail:`因为单日股票噪声大,原始客观胜率集中在 39%~54% 之间。模型将原始得分校准为历史分布百分位(0~100 看多温度):低于 65 分代表历史期望不占优,机器严格空仓(0%);65~100 分按 10% 阶梯映射到 10%~100% 目标仓位,并遵守与你完全相同的 T+1 与手续费。`},{title:`人机如何互补?何时你能反杀机器?`,detail:`机器优势是铁血无情——一旦跌破结构导致跟随分跳水,当场清仓绝不恋战;而人类优势是宏观大结构视野(如识别高位缩量窄旗形不被单根阴线震下车)。赛后第 3 帧对账正是帮你吸收机器的纪律、打磨自己的结构眼力!`}]}];function k4({initialLesson:e=`cycle`,onPracticeMotif:t}){let[n,r]=(0,v.useState)(e),i=O4.find(e=>e.key===n)||O4[0];return(0,K.jsx)(`div`,{className:`flex h-full min-h-0 flex-col gap-4 overflow-y-auto p-5`,children:(0,K.jsxs)(`div`,{className:`grid min-h-0 flex-1 grid-cols-[290px_minmax(0,1fr)] gap-4`,children:[(0,K.jsxs)(`div`,{className:`space-y-2.5`,children:[(0,K.jsxs)(`div`,{className:`rounded-2xl border border-line bg-paper px-4 py-3.5`,children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-1.5 text-2xs font-semibold text-brand-600`,children:[(0,K.jsx)(_f,{size:13}),`体系化学习模块(玩与学分离)`]}),(0,K.jsx)(`h2`,{className:`mt-1 text-sm font-semibold text-ink-900`,children:`Al Brooks 价格行为四层框架`}),(0,K.jsx)(`p`,{className:`mt-1 text-2xs leading-relaxed text-ink-500`,children:`先建立统一的分析坐标系,再去裸 K 考场与机器实战过招,赛后用同一套语言逐帧复盘。`})]}),O4.map((e,t)=>{let i=e.key===n,a=[(0,K.jsx)(Lf,{size:14},`1`),(0,K.jsx)(Df,{size:14},`2`),(0,K.jsx)(jf,{size:14},`3`),(0,K.jsx)(sf,{size:14},`4`)];return(0,K.jsxs)(`button`,{type:`button`,onClick:()=>r(e.key),className:Z(`w-full rounded-2xl border p-3.5 text-left transition-all duration-200`,i?`border-brand-400 bg-white shadow-card ring-1 ring-brand-200`:`border-line bg-paper/70 hover:border-brand-200 hover:bg-white`),children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,K.jsxs)(`span`,{className:Z(`inline-flex items-center gap-1.5 text-2xs font-semibold`,i?`text-brand-600`:`text-ink-400`),children:[a[t],e.badge]}),(0,K.jsxs)(`span`,{className:`tnum text-2xs text-ink-300`,children:[`0`,t+1]})]}),(0,K.jsx)(`div`,{className:`mt-1.5 text-xs font-semibold leading-snug text-ink-900`,children:e.title})]},e.key)})]}),(0,K.jsx)(Nd.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.2},className:`flex flex-col gap-4`,children:(0,K.jsxs)(e_,{className:`p-6`,children:[(0,K.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(n_,{tone:`brand`,children:i.badge}),(0,K.jsx)(`h1`,{className:`mt-2 text-xl font-semibold text-ink-900`,children:i.title}),(0,K.jsx)(`p`,{className:`mt-1.5 text-xs leading-relaxed text-ink-500`,children:i.subtitle})]}),(0,K.jsx)($g,{variant:`primary`,onClick:()=>t(i.practiceMotif),icon:(0,K.jsx)(Xd,{size:14}),children:i.practiceLabel})]}),(0,K.jsx)(`div`,{className:`mt-5 rounded-2xl border border-line bg-slate-soft/45 p-4`,children:(0,K.jsx)(A4,{kind:i.key})}),(0,K.jsxs)(`div`,{className:`mt-5 rounded-xl border border-brand-100 bg-brand-50/50 px-4 py-3 text-xs leading-relaxed text-ink-700`,children:[(0,K.jsx)(`span`,{className:`font-semibold text-brand-700`,children:`核心原理:`}),i.coreIdea]}),(0,K.jsx)(`div`,{className:`mt-5 grid grid-cols-3 gap-3.5`,children:i.points.map((e,t)=>(0,K.jsxs)(`div`,{className:`rounded-xl border border-line bg-white p-4`,children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,K.jsx)(`span`,{className:`tnum grid h-5 w-5 shrink-0 place-items-center rounded-md bg-ink-900 text-[11px] font-semibold text-white`,children:t+1}),(0,K.jsx)(`h3`,{className:`text-xs font-semibold text-ink-900`,children:e.title})]}),(0,K.jsx)(`p`,{className:`mt-2 text-2xs leading-relaxed text-ink-600`,children:e.detail})]},e.title))})]})},i.key)]})})}function A4({kind:e}){return e===`cycle`?(0,K.jsxs)(`div`,{className:`grid grid-cols-3 gap-4 text-center`,children:[(0,K.jsxs)(`div`,{className:`rounded-xl bg-white p-3 border border-line`,children:[(0,K.jsx)(`div`,{className:`text-2xs font-semibold text-ink-800`,children:`① 上升趋势通道(顺势回踩买)`}),(0,K.jsxs)(`svg`,{viewBox:`0 0 220 90`,className:`mx-auto mt-2 h-20 w-full`,children:[(0,K.jsx)(`path`,{d:`M 15 72 Q 80 55, 205 22`,fill:`none`,stroke:`#3D5FE8`,strokeWidth:`2`}),(0,K.jsx)(`polyline`,{points:`15,68 45,42 72,56 112,26 140,41 188,12`,fill:`none`,stroke:`#E03E3E`,strokeWidth:`2.2`}),(0,K.jsx)(`circle`,{cx:`72`,cy:`56`,r:`4`,fill:`#2C48CE`}),(0,K.jsx)(`circle`,{cx:`140`,cy:`41`,r:`4`,fill:`#2C48CE`}),(0,K.jsx)(`text`,{x:`142`,y:`56`,fontSize:`9`,fill:`#2C48CE`,children:`回踩20EMA(H2)`})]})]}),(0,K.jsxs)(`div`,{className:`rounded-xl bg-white p-3 border border-line`,children:[(0,K.jsx)(`div`,{className:`text-2xs font-semibold text-ink-800`,children:`② 交易区间(80% 突破易败)`}),(0,K.jsxs)(`svg`,{viewBox:`0 0 220 90`,className:`mx-auto mt-2 h-20 w-full`,children:[(0,K.jsx)(`line`,{x1:`12`,y1:`24`,x2:`208`,y2:`24`,stroke:`#D9383A`,strokeDasharray:`4 3`,strokeWidth:`1.5`}),(0,K.jsx)(`line`,{x1:`12`,y1:`68`,x2:`208`,y2:`68`,stroke:`#0FA070`,strokeDasharray:`4 3`,strokeWidth:`1.5`}),(0,K.jsx)(`polyline`,{points:`18,62 45,26 75,64 108,25 136,55 162,12 184,48 202,65`,fill:`none`,stroke:`#475569`,strokeWidth:`2`}),(0,K.jsx)(`circle`,{cx:`162`,cy:`12`,r:`4`,fill:`#D9383A`}),(0,K.jsx)(`text`,{x:`128`,y:`11`,fontSize:`9`,fill:`#D9383A`,children:`诱多假突破`})]})]}),(0,K.jsxs)(`div`,{className:`rounded-xl bg-white p-3 border border-line`,children:[(0,K.jsx)(`div`,{className:`text-2xs font-semibold text-ink-800`,children:`③ 三推楔形 / 高潮衰竭(防反转)`}),(0,K.jsxs)(`svg`,{viewBox:`0 0 220 90`,className:`mx-auto mt-2 h-20 w-full`,children:[(0,K.jsx)(`line`,{x1:`25`,y1:`45`,x2:`185`,y2:`14`,stroke:`#D9383A`,strokeDasharray:`4 3`,strokeWidth:`1.5`}),(0,K.jsx)(`polyline`,{points:`15,76 52,44 74,58 118,26 138,42 172,16 198,58`,fill:`none`,stroke:`#0FA070`,strokeWidth:`2`}),(0,K.jsx)(`text`,{x:`45`,y:`40`,fontSize:`8.5`,fill:`#64748B`,children:`1推`}),(0,K.jsx)(`text`,{x:`110`,y:`22`,fontSize:`8.5`,fill:`#64748B`,children:`2推`}),(0,K.jsx)(`text`,{x:`164`,y:`13`,fontSize:`8.5`,fill:`#D9383A`,children:`3推竭尽`})]})]})]}):e===`bars`?(0,K.jsxs)(`div`,{className:`grid grid-cols-3 gap-4 text-center`,children:[(0,K.jsxs)(`div`,{className:`rounded-xl bg-white p-3 border border-line`,children:[(0,K.jsx)(`div`,{className:`text-2xs font-semibold text-up-deep`,children:`强多头趋势棒(买盘控盘)`}),(0,K.jsxs)(`svg`,{viewBox:`0 0 180 80`,className:`mx-auto mt-2 h-16 w-full`,children:[(0,K.jsx)(`line`,{x1:`90`,y1:`10`,x2:`90`,y2:`70`,stroke:`#E03E3E`,strokeWidth:`2`}),(0,K.jsx)(`rect`,{x:`78`,y:`14`,width:`24`,height:`50`,fill:`#E03E3E`,rx:`2`}),(0,K.jsx)(`text`,{x:`110`,y:`24`,fontSize:`9`,fill:`#E03E3E`,children:`收在最高点附近`}),(0,K.jsx)(`text`,{x:`110`,y:`42`,fontSize:`8.5`,fill:`#64748B`,children:`实体饱满无上影`})]})]}),(0,K.jsxs)(`div`,{className:`rounded-xl bg-white p-3 border border-line`,children:[(0,K.jsx)(`div`,{className:`text-2xs font-semibold text-ink-600`,children:`十字星 Doji(单棒震荡犹豫)`}),(0,K.jsxs)(`svg`,{viewBox:`0 0 180 80`,className:`mx-auto mt-2 h-16 w-full`,children:[(0,K.jsx)(`line`,{x1:`90`,y1:`12`,x2:`90`,y2:`68`,stroke:`#64748B`,strokeWidth:`2`}),(0,K.jsx)(`rect`,{x:`78`,y:`37`,width:`24`,height:`6`,fill:`#64748B`,rx:`1`}),(0,K.jsx)(`text`,{x:`110`,y:`35`,fontSize:`9`,fill:`#475569`,children:`上下长影小实体`}),(0,K.jsx)(`text`,{x:`110`,y:`50`,fontSize:`8.5`,fill:`#94A3B8`,children:`多空互不相让`})]})]}),(0,K.jsxs)(`div`,{className:`rounded-xl bg-white p-3 border border-line`,children:[(0,K.jsx)(`div`,{className:`text-2xs font-semibold text-down-deep`,children:`长上影流星棒(上方强力拒绝)`}),(0,K.jsxs)(`svg`,{viewBox:`0 0 180 80`,className:`mx-auto mt-2 h-16 w-full`,children:[(0,K.jsx)(`line`,{x1:`90`,y1:`10`,x2:`90`,y2:`68`,stroke:`#0FA070`,strokeWidth:`2`}),(0,K.jsx)(`rect`,{x:`78`,y:`50`,width:`24`,height:`15`,fill:`#0FA070`,rx:`2`}),(0,K.jsx)(`text`,{x:`110`,y:`25`,fontSize:`9`,fill:`#0FA070`,children:`冲高被空头砸回`}),(0,K.jsx)(`text`,{x:`110`,y:`58`,fontSize:`8.5`,fill:`#64748B`,children:`收盘压在最低端`})]})]})]}):e===`follow`?(0,K.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,K.jsxs)(`div`,{className:`rounded-xl bg-white p-3.5 border border-line`,children:[(0,K.jsx)(`div`,{className:`text-xs font-semibold text-up-deep`,children:`✅ 真突破:T0 突破棒 + T+1 跟随阳棒确认`}),(0,K.jsxs)(`svg`,{viewBox:`0 0 280 86`,className:`mt-2 h-20 w-full`,children:[(0,K.jsx)(`line`,{x1:`10`,y1:`50`,x2:`265`,y2:`50`,stroke:`#D9383A`,strokeDasharray:`4 3`,strokeWidth:`1.5`}),(0,K.jsx)(`rect`,{x:`40`,y:`54`,width:`14`,height:`16`,fill:`#0FA070`}),(0,K.jsx)(`rect`,{x:`75`,y:`52`,width:`14`,height:`14`,fill:`#E03E3E`}),(0,K.jsx)(`rect`,{x:`115`,y:`32`,width:`18`,height:`32`,fill:`#E03E3E`}),(0,K.jsx)(`rect`,{x:`155`,y:`18`,width:`18`,height:`22`,fill:`#E03E3E`}),(0,K.jsx)(`rect`,{x:`195`,y:`10`,width:`18`,height:`18`,fill:`#E03E3E`}),(0,K.jsx)(`text`,{x:`108`,y:`78`,fontSize:`9`,fill:`#B08125`,children:`T0 试探30%`}),(0,K.jsx)(`text`,{x:`150`,y:`56`,fontSize:`9`,fill:`#2C48CE`,children:`T+1 跟随→加满80%`})]})]}),(0,K.jsxs)(`div`,{className:`rounded-xl bg-white p-3.5 border border-line`,children:[(0,K.jsx)(`div`,{className:`text-xs font-semibold text-down-deep`,children:`❌ 假突破陷阱:T0 大阳诱多 + T+1 反包跌回箱体`}),(0,K.jsxs)(`svg`,{viewBox:`0 0 280 86`,className:`mt-2 h-20 w-full`,children:[(0,K.jsx)(`line`,{x1:`10`,y1:`42`,x2:`265`,y2:`42`,stroke:`#D9383A`,strokeDasharray:`4 3`,strokeWidth:`1.5`}),(0,K.jsx)(`rect`,{x:`40`,y:`46`,width:`14`,height:`16`,fill:`#E03E3E`}),(0,K.jsx)(`rect`,{x:`75`,y:`48`,width:`14`,height:`14`,fill:`#0FA070`}),(0,K.jsx)(`rect`,{x:`115`,y:`22`,width:`18`,height:`30`,fill:`#E03E3E`}),(0,K.jsx)(`rect`,{x:`155`,y:`24`,width:`18`,height:`38`,fill:`#0FA070`}),(0,K.jsx)(`rect`,{x:`195`,y:`55`,width:`18`,height:`24`,fill:`#0FA070`}),(0,K.jsx)(`text`,{x:`110`,y:`17`,fontSize:`9`,fill:`#B08125`,children:`T0 突破尝试`}),(0,K.jsx)(`text`,{x:`150`,y:`76`,fontSize:`9`,fill:`#D9383A`,children:`T+1 跌回箱体→秒砍0%`})]})]})]}):(0,K.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-xl bg-white p-4 border border-line text-xs`,children:[(0,K.jsxs)(`div`,{className:`flex-1 rounded-lg bg-slate-soft p-3`,children:[(0,K.jsx)(`div`,{className:`font-semibold text-ink-800`,children:`① 提取 20 维价格行为特征`}),(0,K.jsx)(`div`,{className:`mt-1 text-2xs text-ink-500`,children:`收盘位置 · 上下影线 · 3日跟随 · 5日重叠率 · 20EMA斜率与偏离 · 三推衰竭 · 大盘顺逆风`})]}),(0,K.jsx)(Xd,{size:16,className:`shrink-0 text-ink-300`}),(0,K.jsxs)(`div`,{className:`flex-1 rounded-lg bg-brand-50/60 p-3`,children:[(0,K.jsx)(`div`,{className:`font-semibold text-brand-800`,children:`② TreeSHAP 实时加减分计算`}),(0,K.jsx)(`div`,{className:`mt-1 text-2xs text-ink-600`,children:`基于 14,119 根真实 K 线统计:从 47% 基础胜率出发,逐项累加当日多空证据`})]}),(0,K.jsx)(Xd,{size:16,className:`shrink-0 text-ink-300`}),(0,K.jsxs)(`div`,{className:`flex-1 rounded-lg bg-amber-50/70 p-3`,children:[(0,K.jsx)(`div`,{className:`font-semibold text-amber-900`,children:`③ 校准为 0–100 温度与目标仓位`}),(0,K.jsx)(`div`,{className:`mt-1 text-2xs text-ink-600`,children:`<65 分无正期望严格空仓 0%;65~100 分按 10% 步进映射 10%~100% 实盘同规则对决`})]})]})}function j4({motifs:e,onPracticeMotif:t,onStartLevel:n,toast:r}){let[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(!0),c=async()=>{s(!0);try{let e=await _p.stats();a(e)}catch(e){r(e.message,`err`)}finally{s(!1)}};if((0,v.useEffect)(()=>{c()},[]),o)return(0,K.jsxs)(`div`,{className:`flex h-full items-center justify-center gap-2 text-xs text-ink-400`,children:[(0,K.jsx)(zf,{size:14,className:`animate-spin`}),` 正在载入成长档案…`]});if(!i)return null;let{profile:l,matches:u,wrongBook:d}=i,f=l.totals,p=l.skills||[];return(0,K.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col gap-3 overflow-y-auto p-4`,children:[(0,K.jsxs)(`div`,{className:`grid grid-cols-4 gap-3`,children:[(0,K.jsx)(e_,{className:`card-pad`,children:(0,K.jsx)(r_,{label:`累计训练关卡`,value:`${f.played} 关`,sub:`盈利胜率 ${f.winRate===null?`—`:l_(f.winRate,0)}`})}),(0,K.jsx)(e_,{className:`card-pad`,children:(0,K.jsx)(r_,{label:`累计净盈亏`,value:c_(f.pnl),sub:`模拟总权益 ${s_(1e5+f.pnl)}`,tone:f.pnl>=0?`up`:`down`})}),(0,K.jsx)(e_,{className:`card-pad`,children:(0,K.jsx)(r_,{label:`击败 PA-LightGBM`,value:f.played?l_(f.beatAiRate??0,0):`—`,sub:`机器同期 ${c_(f.aiPnl)}`,tone:(f.beatAiRate??0)>=.5?`up`:`down`})}),(0,K.jsx)(e_,{className:`card-pad`,children:(0,K.jsx)(r_,{label:`盘前课题辨识率`,value:f.quizTotal?l_(f.quizRight/f.quizTotal,0):`—`,sub:`${f.quizRight}/${f.quizTotal} 次识别正确`,tone:`brand`})})]}),(0,K.jsxs)(`div`,{className:`grid grid-cols-[minmax(0,1fr)_400px] gap-3`,children:[(0,K.jsxs)(`div`,{className:`space-y-3`,children:[(0,K.jsxs)(e_,{children:[(0,K.jsx)(t_,{title:`Al Brooks 四维价格行为基本功画像`,desc:`不止看输赢金额,精准定位你在「周期辨识 / 右侧跟随 / 证伪止损 / 高潮锁利」哪一层存在短板`,right:l.weakestSkill?(0,K.jsxs)(n_,{tone:`gold`,children:[(0,K.jsx)(rp,{size:11}),`优先突破:`,l.weakestSkill.cn]}):null}),(0,K.jsxs)(`div`,{className:`grid grid-cols-[230px_minmax(0,1fr)] items-center gap-4 p-4`,children:[(0,K.jsx)(M4,{skills:p}),(0,K.jsx)(`div`,{className:`space-y-3`,children:p.map(e=>(0,K.jsxs)(`div`,{className:`rounded-xl border border-line bg-white px-3.5 py-2.5`,children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`span`,{className:`text-xs font-semibold text-ink-900`,children:e.cn}),(0,K.jsxs)(`span`,{className:`ml-2 text-2xs text-ink-400`,children:[`(`,e.samples,` 关样本)`]})]}),(0,K.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,K.jsx)(`span`,{className:`tnum text-xs font-bold text-ink-900`,children:e.score===null?`待测评`:`${e.score} 分`}),t?(0,K.jsxs)(`button`,{type:`button`,onClick:()=>t(e.targetMotif),className:`inline-flex items-center gap-0.5 text-2xs font-medium text-brand-600 hover:underline`,children:[`专项特训 `,(0,K.jsx)(Xd,{size:11})]}):null]})]}),(0,K.jsx)(`p`,{className:`mt-0.5 text-2xs text-ink-500`,children:e.desc}),(0,K.jsx)(`div`,{className:`mt-1.5 h-1.5 w-full overflow-hidden rounded-full bg-slate-100`,children:(0,K.jsx)(`div`,{style:{width:`${e.score??0}%`},className:Z(`h-full rounded-full transition-all`,(e.score??0)>=75?`bg-brand-600`:(e.score??0)>=55?`bg-amber-500`:`bg-up`)})})]},e.key))})]})]}),(0,K.jsxs)(e_,{children:[(0,K.jsx)(t_,{title:`4 大实战课题分项战绩`}),(0,K.jsx)(`div`,{className:`overflow-x-auto p-4`,children:f.played===0?(0,K.jsx)(a_,{title:`尚无课题战绩`,desc:`完成任意一关实战后自动生成分项统计。`}):(0,K.jsxs)(`table`,{className:`w-full text-xs`,children:[(0,K.jsx)(`thead`,{children:(0,K.jsxs)(`tr`,{className:`border-b border-line text-2xs text-ink-400`,children:[(0,K.jsx)(`th`,{className:`py-2 text-left font-medium`,children:`实战课题`}),(0,K.jsx)(`th`,{className:`py-2 text-right font-medium`,children:`场次`}),(0,K.jsx)(`th`,{className:`py-2 text-right font-medium`,children:`平均收益`}),(0,K.jsx)(`th`,{className:`py-2 text-right font-medium`,children:`机器同期`}),(0,K.jsx)(`th`,{className:`py-2 text-right font-medium`,children:`击败机器`})]})}),(0,K.jsx)(`tbody`,{children:e.map(e=>{let t=l.byMotif[e.key];return t?(0,K.jsxs)(`tr`,{className:`border-b border-line/60 last:border-0`,children:[(0,K.jsx)(`td`,{className:`py-2.5 font-medium text-ink-800`,children:e.cn}),(0,K.jsx)(`td`,{className:`tnum py-2.5 text-right text-ink-600`,children:t.played}),(0,K.jsx)(`td`,{className:Z(`tnum py-2.5 text-right font-semibold`,(t.avgReturn??0)>=0?`text-up`:`text-down`),children:t.avgReturn===null?`—`:u_(t.avgReturn)}),(0,K.jsx)(`td`,{className:`tnum py-2.5 text-right text-ink-500`,children:t.avgAiReturn===null?`—`:u_(t.avgAiReturn)}),(0,K.jsx)(`td`,{className:`tnum py-2.5 text-right font-medium text-ink-700`,children:t.beatAiRate===null?`—`:l_(t.beatAiRate,0)})]},e.key):(0,K.jsxs)(`tr`,{className:`border-b border-line/60 text-ink-300`,children:[(0,K.jsx)(`td`,{className:`py-2.5`,children:e.cn}),(0,K.jsx)(`td`,{colSpan:4,className:`py-2.5 text-right text-2xs`,children:`未练习`})]},e.key)})})]})})]})]}),(0,K.jsxs)(`div`,{className:`space-y-3`,children:[(0,K.jsxs)(e_,{children:[(0,K.jsx)(t_,{title:`价格行为错题本`,desc:`亏损或误判课题的关卡自动收录,支持一键重练`,right:d.length?(0,K.jsx)($g,{size:`sm`,variant:`ghost`,onClick:async()=>{r(`已清空 ${(await _p.clearWrongBook()).removed} 条错题`),c()},icon:(0,K.jsx)(ap,{size:12}),children:`清空`}):null}),(0,K.jsx)(`div`,{className:`max-h-[340px] space-y-2 overflow-y-auto p-3`,children:d.length===0?(0,K.jsx)(a_,{title:`错题本为空`,desc:`出现死扛证伪棒或识别失误时会自动归档于此。`}):d.map(e=>(0,K.jsxs)(`div`,{className:`rounded-xl border border-line bg-white px-3 py-2.5`,children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,K.jsxs)(`span`,{className:`text-xs font-semibold text-ink-900`,children:[e.name,` · `,e.date]}),n?(0,K.jsx)($g,{size:`sm`,variant:`secondary`,onClick:()=>n(e.levelId),icon:(0,K.jsx)(Gf,{size:11}),children:`重练本关`}):null]}),(0,K.jsxs)(`div`,{className:`mt-1 flex items-center gap-2 text-2xs text-ink-500`,children:[(0,K.jsx)(n_,{tone:`neutral`,children:e.motifCn}),(0,K.jsx)(`span`,{children:e.outcomeCn})]}),(0,K.jsxs)(`div`,{className:`tnum mt-1.5 text-2xs`,children:[`上次:`,(0,K.jsx)(`span`,{className:`font-semibold text-down`,children:c_(e.playerPnl)}),(0,K.jsx)(`span`,{className:`mx-1.5 text-ink-300`,children:`|`}),`机器:`,(0,K.jsx)(`span`,{className:`text-ink-600`,children:c_(e.aiPnl)})]})]},e.levelId))})]}),(0,K.jsxs)(e_,{children:[(0,K.jsx)(t_,{title:`闯关荣誉记录`}),(0,K.jsx)(`div`,{className:`max-h-[220px] space-y-2 overflow-y-auto p-3`,children:u.length===0?(0,K.jsx)(a_,{title:`暂无整轮闯关记录`}):u.map(e=>(0,K.jsxs)(`div`,{className:`flex items-center justify-between rounded-lg border border-line bg-white px-3 py-2`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,K.jsx)(Qd,{size:12,className:`text-amber-500`}),(0,K.jsx)(`span`,{className:`text-xs font-semibold text-ink-800`,children:e.rank})]}),(0,K.jsxs)(`div`,{className:`tnum mt-0.5 text-2xs text-ink-400`,children:[e.levels,` 关 · `,f_(e.at)]})]}),(0,K.jsxs)(`div`,{className:`tnum text-right`,children:[(0,K.jsx)(`div`,{className:Z(`text-xs font-semibold`,e.playerPnl>=0?`text-up`:`text-down`),children:c_(e.playerPnl)}),(0,K.jsxs)(`div`,{className:`text-2xs text-ink-400`,children:[`AI `,c_(e.aiPnl)]})]})]},e.id))})]})]})]})]})}function M4({skills:e}){let t=[0,1,2,3].map(t=>{let n=e[t]?.score;return n==null?.5:Math.max(15,n)/100}),n=[[0,-1],[1,0],[0,1],[-1,0]],r=t.map((e,t)=>`${105+n[t][0]*68*e},${105+n[t][1]*68*e}`).join(` `);return(0,K.jsxs)(`svg`,{viewBox:`0 0 210 210`,className:`mx-auto h-52 w-52`,children:[[.33,.66,1].map(e=>(0,K.jsx)(`polygon`,{points:n.map(t=>`${105+t[0]*68*e},${105+t[1]*68*e}`).join(` `),fill:`none`,stroke:`#E2E8F0`,strokeWidth:`1`},e)),n.map((e,t)=>(0,K.jsx)(`line`,{x1:105,y1:105,x2:105+e[0]*68,y2:105+e[1]*68,stroke:`#E2E8F0`,strokeWidth:`1`},t)),(0,K.jsx)(`polygon`,{points:r,fill:`rgba(44, 72, 206, 0.18)`,stroke:`#2C48CE`,strokeWidth:`2`}),t.map((e,t)=>(0,K.jsx)(`circle`,{cx:105+n[t][0]*68*e,cy:105+n[t][1]*68*e,r:`3.5`,fill:`#2C48CE`},t)),(0,K.jsx)(`text`,{x:105,y:22,textAnchor:`middle`,fontSize:`10`,fontWeight:`600`,fill:`#334155`,children:`周期辨识`}),(0,K.jsx)(`text`,{x:198,y:108,textAnchor:`end`,fontSize:`10`,fontWeight:`600`,fill:`#334155`,children:`右侧跟随`}),(0,K.jsx)(`text`,{x:105,y:196,textAnchor:`middle`,fontSize:`10`,fontWeight:`600`,fill:`#334155`,children:`证伪止损`}),(0,K.jsx)(`text`,{x:12,y:108,textAnchor:`start`,fontSize:`10`,fontWeight:`600`,fill:`#334155`,children:`高潮锁利`})]})}var N4=Array.from({length:11},(e,t)=>t*10);function P4({value:e,onChange:t,disabled:n,equity:r,sellableValue:i,price:a,pendingWeight:o}){let s=(0,v.useCallback)(e=>{n||t(Math.min(1,Math.max(0,e/100)))},[n,t]);(0,v.useEffect)(()=>{let t=t=>{if(n)return;let r=t.target?.tagName;r!==`INPUT`&&r!==`TEXTAREA`&&(t.key===`ArrowRight`||t.key===`ArrowUp`?(t.preventDefault(),s(Math.round(e*100)+10)):t.key===`ArrowLeft`||t.key===`ArrowDown`?(t.preventDefault(),s(Math.round(e*100)-10)):/^[0-9]$/.test(t.key)&&s(Number(t.key)*10))};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e,s,n]);let c=Math.round(e*100),l=r*e,u=Math.round((l-r*0)/Math.max(a,1e-9));return(0,K.jsxs)(`div`,{className:`space-y-2.5`,children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,K.jsxs)(`div`,{className:`flex items-baseline gap-2`,children:[(0,K.jsx)(`span`,{className:`text-2xs font-medium uppercase tracking-wide text-ink-400`,children:`今日目标仓位`}),(0,K.jsxs)(`span`,{className:`tnum text-[22px] font-semibold leading-none text-ink-900`,children:[c,`%`]}),o!==void 0&&o!==c?(0,K.jsxs)(`span`,{className:`tnum text-2xs text-ink-400`,children:[`待确认 `,o,`%`]}):null]}),(0,K.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,K.jsx)($g,{size:`sm`,variant:`secondary`,disabled:n||c<=0,onClick:()=>s(c-10),icon:(0,K.jsx)(Uf,{size:12}),"aria-label":`减仓 10%`,children:`10%`}),(0,K.jsx)($g,{size:`sm`,variant:`secondary`,disabled:n||c>=100,onClick:()=>s(c+10),icon:(0,K.jsx)(qf,{size:12}),"aria-label":`加仓 10%`,children:`10%`})]})]}),(0,K.jsx)(`div`,{role:`slider`,"aria-label":`目标仓位`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c,tabIndex:0,className:`flex items-stretch gap-[3px] rounded-xl border border-line bg-white p-1.5`,children:N4.map(e=>{let t=e===c,r=e<=c;return(0,K.jsx)(`button`,{type:`button`,disabled:n,onClick:()=>s(e),title:`${e}%`,className:Z(`tnum relative flex-1 rounded-md py-1.5 text-2xs font-medium transition-all duration-200 ease-smooth`,t?`bg-brand-600 text-white shadow-sm`:r?`bg-brand-50 text-brand-700 hover:bg-brand-100`:`text-ink-400 hover:bg-slate-soft hover:text-ink-700`,n&&`cursor-not-allowed opacity-50`),children:e},e)})}),(0,K.jsxs)(`div`,{className:`grid grid-cols-3 gap-2 rounded-xl bg-slate-soft/70 px-3 py-2`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`div`,{className:`text-2xs text-ink-400`,children:`目标市值`}),(0,K.jsx)(`div`,{className:`tnum text-xs font-semibold text-ink-800`,children:s_(l)})]}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`div`,{className:`text-2xs text-ink-400`,children:`当日可卖上限`}),(0,K.jsx)(`div`,{className:`tnum text-xs font-semibold text-ink-800`,children:s_(i)})]}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`div`,{className:`text-2xs text-ink-400`,children:`约当股数`}),(0,K.jsx)(`div`,{className:`tnum text-xs font-semibold text-ink-800`,children:s_(u)})]})]}),(0,K.jsxs)(`p`,{className:`text-2xs leading-relaxed text-ink-400`,children:[`最小调仓单位 10%,可 0%~100% 自由调整。当日新买份额受 T+1 锁定,次日才可卖出;老仓当日即可自由减仓。 目标市值 ≈ `,l_(e),` × 当前权益。`]})]})}function F4({reveal:e,curDay:t,revealedDay:n,dayResult:r,prevScore:i}){if(!e||!r)return(0,K.jsxs)(`div`,{className:`dark-card relative overflow-hidden rounded-2xl border border-ink-700/40 p-4`,children:[(0,K.jsx)(`div`,{className:`absolute -right-8 -top-10 h-28 w-28 rounded-full bg-brand-500/10 blur-2xl`}),(0,K.jsxs)(`div`,{className:`relative flex items-center justify-between gap-3`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-1.5 text-2xs font-medium tracking-wider text-white/50`,children:[(0,K.jsx)(Cf,{size:12}),`对手盘 · PA-LightGBM`]}),(0,K.jsxs)(`div`,{className:`mt-1.5 text-base font-semibold text-white`,children:[t,` 已暗牌落子`]}),(0,K.jsx)(`p`,{className:`mt-1 text-2xs leading-relaxed text-white/45`,children:`先按你读到的裸 K 结构确定今日仓位,点确认瞬间同拍亮出机器动作。`})]}),(0,K.jsxs)(`div`,{className:`relative flex h-10 w-10 shrink-0 items-center justify-center`,children:[(0,K.jsx)(`span`,{className:`absolute inset-0 animate-pulseRing rounded-full bg-amber-400/25`}),(0,K.jsx)(`span`,{className:`relative grid h-10 w-10 place-items-center rounded-full border border-white/15 bg-white/5`,children:(0,K.jsx)(af,{size:16,className:`text-amber-300`})})]})]})]});let a=i==null?null:r.score-i,o=(a??0)>=0,s=Math.round(r.weight*100),c=r.weightBefore===void 0?null:Math.round(r.weightBefore*100),l=r.action===`buy`||r.action===`sell`;return(0,K.jsxs)(Nd.div,{initial:{opacity:.4,scale:.98},animate:{opacity:1,scale:1},transition:{duration:.25},className:`dark-card-soft overflow-hidden rounded-2xl border border-ink-700/40`,children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between px-4 pt-3.5 pb-2.5`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-1.5 text-2xs font-medium tracking-wider text-amber-300/90`,children:[(0,K.jsx)(Tf,{size:12}),`PA-LightGBM · `,n||t,` 亮牌`]}),(0,K.jsxs)(`div`,{className:`mt-1 flex items-baseline gap-2`,children:[(0,K.jsx)(`span`,{className:`tnum text-[28px] font-semibold leading-none text-white`,children:r.score}),(0,K.jsx)(`span`,{className:`text-2xs text-white/50`,children:`看多温度 (0-100)`}),a!==null&&a!==0?(0,K.jsxs)(`span`,{className:Z(`tnum inline-flex items-center gap-0.5 rounded px-1.5 py-0.5 text-2xs font-semibold`,o?`bg-up/25 text-red-300`:`bg-down/25 text-emerald-300`),children:[o?(0,K.jsx)(lp,{size:11}):(0,K.jsx)(sp,{size:11}),a>0?`+${a}`:a]}):null]})]}),(0,K.jsxs)(`div`,{className:Z(`rounded-xl px-3 py-1.5 text-right`,r.action===`buy`?`bg-up/25 text-red-200 ring-1 ring-red-400/40`:r.action===`sell`?`bg-down/25 text-emerald-200 ring-1 ring-emerald-400/40`:`bg-white/10 text-white/80`),children:[(0,K.jsx)(`div`,{className:`text-[10px] opacity-75`,children:`机器动作`}),(0,K.jsx)(`div`,{className:`tnum text-sm font-bold`,children:l&&c!==null?`${d_(r.action)} ${c}%→${s}%`:`持有 ${s}%`})]})]}),(0,K.jsxs)(`div`,{className:`px-4 pb-3`,children:[(0,K.jsxs)(`div`,{className:`relative h-2 w-full overflow-hidden rounded-full bg-white/10`,children:[(0,K.jsx)(`div`,{style:{width:`${Math.max(3,Math.min(100,r.score))}%`},className:Z(`h-full rounded-full transition-all duration-300`,r.score>=65?`bg-gradient-to-r from-amber-400 to-red-400`:`bg-emerald-400/75`)}),(0,K.jsx)(`div`,{style:{left:`65%`},title:`65分风控开仓线`,className:`absolute inset-y-0 w-[2px] bg-white/70`})]}),(0,K.jsxs)(`div`,{className:`mt-1.5 flex items-center justify-between text-[11px] text-white/55`,children:[(0,K.jsx)(`span`,{children:r.reason}),(0,K.jsx)(`span`,{className:`tnum shrink-0 text-white/40`,children:`65分风控线`})]})]})]},`${n}-${s}-${r.score}`)}var I4=Object.defineProperty,L4=(e,t)=>I4(e,`name`,{value:t,configurable:!0}),R4=0,z4=null;function B4(e){return V4(),e.children}L4(B4,`FocusGuards`);function V4(){v.useEffect(()=>{z4||={start:H4(),end:H4()};let{start:e,end:t}=z4;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),R4++,()=>{R4===1&&(z4?.start.remove(),z4?.end.remove(),z4=null),R4=Math.max(0,R4-1)}},[])}L4(V4,`useFocusGuards`);function H4(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}L4(H4,`createFocusGuard`);var U4=function(){return U4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n`u`)return g3;var t=v3(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},b3=h3(),x3=`data-scroll-locked`,S3=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` + .${J4} { + overflow: hidden ${r}; + padding-right: ${s}px ${r}; + } + body[${x3}] { + overflow: hidden ${r}; + overscroll-behavior: contain; + ${[t&&`position: relative ${r};`,n===`margin`&&` + padding-left: ${i}px; + padding-top: ${a}px; + padding-right: ${o}px; + margin-left:0; + margin-top:0; + margin-right: ${s}px ${r}; + `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} + } + + .${K4} { + right: ${s}px ${r}; + } + + .${q4} { + margin-right: ${s}px ${r}; + } + + .${K4} .${K4} { + right: 0 ${r}; + } + + .${q4} .${q4} { + margin-right: 0 ${r}; + } + + body[${x3}] { + ${Y4}: ${s}px; + } +`},C3=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},w3=function(){v.useEffect(function(){return document.body.setAttribute(x3,(C3()+1).toString()),function(){var e=C3()-1;e<=0?document.body.removeAttribute(x3):document.body.setAttribute(x3,e.toString())}},[])},T3=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;w3();var a=v.useMemo(function(){return y3(i)},[i]);return v.createElement(b3,{styles:S3(a,!t,i,n?``:`!important`)})},E3=!1;if(typeof window<`u`)try{var D3=Object.defineProperty({},"passive",{get:function(){return E3=!0,!0}});window.addEventListener(`test`,D3,D3),window.removeEventListener(`test`,D3,D3)}catch{E3=!1}var O3=E3?{passive:!1}:!1,k3=function(e){return e.tagName===`TEXTAREA`},A3=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!k3(e)&&n[t]===`visible`)},j3=function(e){return A3(e,`overflowY`)},M3=function(e){return A3(e,`overflowX`)},N3=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),I3(e,r)){var i=L3(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},P3=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},F3=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},I3=function(e,t){return e===`v`?j3(t):M3(t)},L3=function(e,t){return e===`v`?P3(t):F3(t)},R3=function(e,t){return e===`h`&&t===`rtl`?-1:1},z3=function(e,t,n,r,i){var a=R3(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=L3(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&I3(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},B3=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},V3=function(e){return[e.deltaX,e.deltaY]},H3=function(e){return e&&`current`in e?e.current:e},U3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},W3=function(e){return` + .block-interactivity-${e} {pointer-events: none;} + .allow-interactivity-${e} {pointer-events: all;} +`},G3=0,K3=[];function q3(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),i=v.useState(G3++)[0],a=v.useState(h3)[0],o=v.useRef(e);v.useEffect(function(){o.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=G4([e.lockRef.current],(e.shards||[]).map(H3),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=B3(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=N3(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=N3(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return z3(h,t,e,h===`h`?s:c,!0)},[]),c=v.useCallback(function(e){var n=e;if(K3.length&&K3[K3.length-1]===a){var r=`deltaY`in n?V3(n):B3(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&U3(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(H3).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=v.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:J3(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=v.useCallback(function(e){n.current=B3(e),r.current=void 0},[]),d=v.useCallback(function(t){l(t.type,V3(t),t.target,s(t,e.lockRef.current))},[]),f=v.useCallback(function(t){l(t.type,B3(t),t.target,s(t,e.lockRef.current))},[]);v.useEffect(function(){return K3.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,O3),document.addEventListener(`touchmove`,c,O3),document.addEventListener(`touchstart`,u,O3),function(){K3=K3.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,O3),document.removeEventListener(`touchmove`,c,O3),document.removeEventListener(`touchstart`,u,O3)}},[]);var p=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(a,{styles:W3(i)}):null,p?v.createElement(T3,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function J3(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Y3=a3(o3,q3),X3=v.forwardRef(function(e,t){return v.createElement(c3,U4({},e,{ref:t,sideCar:Y3}))});X3.classNames=c3.classNames;var Z3=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Q3=new WeakMap,$3=new WeakMap,e6={},t6=0,n6=function(e){return e&&(e.host||n6(e.parentNode))},r6=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=n6(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},i6=function(e,t,n,r){var i=r6(t,Array.isArray(e)?e:[e]);e6[n]||(e6[n]=new WeakMap);var a=e6[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Q3.get(e)||0)+1,l=(a.get(e)||0)+1;Q3.set(e,c),a.set(e,l),o.push(e),c===1&&i&&$3.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),t6++,function(){o.forEach(function(e){var t=Q3.get(e)-1,i=a.get(e)-1;Q3.set(e,t),a.set(e,i),t||($3.has(e)||e.removeAttribute(r),$3.delete(e)),i||e.removeAttribute(n)}),t6--,t6||(Q3=new WeakMap,Q3=new WeakMap,$3=new WeakMap,e6={})}},a6=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Z3(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),i6(r,i,n,`aria-hidden`)):function(){return null}},o6=Object.defineProperty,s6=(e,t)=>o6(e,`name`,{value:t,configurable:!0}),c6=`Dialog`,[l6,u6]=fh(c6),[d6,f6]=l6(c6),p6=s6(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=v.useRef(null),c=v.useRef(null),{nodes:l,registry:u}=lg(),[d,f]=Kg({prop:r,defaultProp:i??!1,onChange:a,caller:c6}),[p,m]=v.useState(0),[h,g]=v.useState(0);return(0,K.jsx)(d6,{scope:t,triggerRef:s,contentRef:c,contentId:Eg(),titleId:Eg(),descriptionId:Eg(),titlePresent:p>0,descriptionPresent:h>0,setTitleCount:m,setDescriptionCount:g,open:d,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(e=>!e),[f]),modal:o,branchNodes:l,branchRegistry:u,children:n})},`Dialog`),m6=`DialogPortal`,[h6,g6]=l6(m6,{forceMount:void 0}),_6=s6(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=f6(m6,t);return(0,K.jsx)(h6,{scope:t,forceMount:n,children:v.Children.map(r,e=>(0,K.jsx)(Mg,{present:n||a.open,children:(0,K.jsx)(Og,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),v6=`DialogOverlay`,y6=v.forwardRef(s6(function(e,t){let n=g6(v6,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=f6(v6,e.__scopeDialog);return a.modal?(0,K.jsx)(Mg,{present:r||a.open,children:(0,K.jsx)(x6,{...i,ref:t})}):null},`DialogOverlay`)),b6=_h(`DialogOverlay.RemoveScroll`),x6=v.forwardRef(s6(function(e,t){let{__scopeDialog:n,...r}=e,i=f6(v6,n),a=ch(t,Yh());return(0,K.jsx)(X3,{as:b6,allowPinchZoom:!0,shards:v.useMemo(()=>[i.contentRef,...i.branchNodes.map(e=>({current:e}))],[i.contentRef,i.branchNodes]),children:(0,K.jsx)(Ph.div,{"data-state":k6(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),S6=`DialogContent`,C6=v.forwardRef(s6(function(e,t){let n=g6(S6,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=f6(S6,e.__scopeDialog);return(0,K.jsx)(Mg,{present:r||a.open,children:a.modal?(0,K.jsx)(w6,{...i,ref:t}):(0,K.jsx)(T6,{...i,ref:t})})},`DialogContent`)),w6=v.forwardRef(s6(function(e,t){let n=f6(S6,e.__scopeDialog),r=v.useRef(null),i=ch(t,n.contentRef,r);return v.useEffect(()=>{let e=r.current;if(e)return a6(e)},[]),(0,K.jsx)(E6,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:$m(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:$m(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:$m(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),T6=v.forwardRef(s6(function(e,t){let n=f6(S6,e.__scopeDialog),r=v.useRef(!1),i=v.useRef(!1);return(0,K.jsx)(E6,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),E6=v.forwardRef(s6(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":o,children:s,...c}=e,l=f6(S6,n);return V4(),(0,K.jsx)(cg,{registry:l.branchRegistry,children:(0,K.jsx)(og,{asChild:!0,loop:!0,trapped:r,branches:l.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,K.jsx)(Jh,{role:`dialog`,id:l.contentId,"aria-labelledby":l.titlePresent?l.titleId:void 0,"aria-describedby":l.descriptionPresent?O6(o,l.descriptionId):o,"data-state":k6(l.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1),children:s})})})},`DialogContentImpl`)),D6=v.forwardRef(s6(function(e,t){let{__scopeDialog:n,...r}=e,i=f6(`DialogTitle`,n),{setTitleCount:a}=i;return Ih(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,K.jsx)(Ph.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`));function O6(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}s6(O6,`concatAriaDescribedby`);function k6(e){return e?`open`:`closed`}s6(k6,`getState`);function A6(e,t){let n=[],r=e=>`${e>=0?`+`:`−`}${Math.round(Math.abs(e)).toLocaleString(`zh-CN`)} 元`,i=e=>`${(e*100).toFixed(1)}%`,a=e=>`${e>0?`+`:e<0?`−`:``}${(Math.abs(e)*100).toFixed(1)}%`;n.push(`【K线价格行为实战台 · 单关深度复盘】`),n.push(``),n.push(`我是用真实前复权历史行情做价格行为训练的玩家。请以 Al Brooks 价格行为学(Price Action)与蜡烛线微观结构为理论框架,帮我做一次赛后复盘。`),n.push(``),n.push(`■ 本关真相`),n.push(` - 标的:${e.name}(${e.code}),历史区间 ${e.date} 起 15 个交易日(数据段:${e.segment})`),n.push(` - 价格行为母题:${e.motif_cn}`),n.push(` - 形态结局:${e.outcome_cn}`),n.push(` - 我的交易假设:${e.thesis}`),n.push(` - T0 ATR:${e.atr},T0 收盘:${e.close0}`),n.push(``),n.push(`■ 盘前形态识别`),t.quiz?(n.push(` - 我盘前判断:${t.quiz.motifCn}`),n.push(` - 实际形态:${e.motif_cn} → ${t.quizCorrect?`✅ 识别正确`:`❌ 识别错误`}`)):n.push(` - 本关未做形态识别打卡`),n.push(``),n.push(`■ 价格行为关键棒演变`),n.push(` - 起手结构:${e.setup.text}`),n.push(` - 确认规则(Follow-through):${e.setup.confirm_rule}`),n.push(` - 证伪规则(形态失效/假突破):${e.setup.invalidate_rule}`);for(let t of e.key_bars.pivots)n.push(` - ${t.day}(${t.date})${t.verdict}:${t.candle}|信号:${t.signal}|相对 T0 收盘 ${a(t.change_from_t0_pct)}|当日胜算分 ${t.bullish_edge_score}、建议仓位 ${t.ai_position_pct}%`);n.push(` - 整段演化:${e.key_bars.summary}`),n.push(` - 教学点睛:${e.teaching_note}`),n.push(``),n.push(`■ 我的逐日操作路径(与机器决策对照)`);let o=new Map(t.aiCurve.map(e=>[e.day,e]));for(let r of t.playerCurve){let t=o.get(r.day),i=e.daily[r.day],a=r.day<0?`T-1(开局)`:`T+${r.day}`;n.push(` - ${a}:玩家仓位 ${Math.round(r.weight*100)}%|机器胜算分 ${i?.bullish_edge_score??`—`}、目标仓位 ${i?.ai_position_pct??`—`}%、实际仓位 ${t?`${Math.round(t.weight*100)}%`:`—`}`)}if(n.push(``),n.push(`■ 结果`),n.push(` - 玩家:${r(t.playerPnl)}(${i(t.playerReturn)}),AI:${r(t.aiPnl)}(${i(t.aiReturn)})→ ${t.playerPnl>t.aiPnl?`玩家跑赢机器`:`机器跑赢玩家`}`),t.divergence){n.push(` - 人机最大分歧在 T+${t.divergence.dayIndex}:玩家仓位 ${i(t.divergence.playerWeight)} vs 机器仓位 ${i(t.divergence.aiWeight)},差 ${i(t.divergence.diff)};当日机器胜算分 ${t.divergence.score}`);for(let e of t.divergence.top3||[])n.push(` · ${e.name_cn}(${e.feature})SHAP ${e.shap} → ${e.push?`推高`:`压低`}胜算:${e.text}`)}return n.push(``),n.push(`■ 请你回答(结合价格行为学,不要泛泛而谈)`),n.push(` 1. 起手出现了什么形态?我的盘前形态判断是否正确?如果错了,错在没看出哪一个价格行为细节?`),n.push(` 2. 后续 15 天里,原形态是被跟随确认成真了,还是无跟随/跌破结构导致形态失效(假突破陷阱)?关键棒是哪一根?`),n.push(` 3. 结合我的逐日仓位路径做操作诊断:我是否在证伪棒出现后未能识别失效而死扛亏损?是否被正常缩量回调吓跑卖飞?是否在确认棒果断顺势加仓?`),n.push(` 4. 用价格行为学给我一句可执行的下次改进原则(针对这个母题)。`),n.join(` +`)}var j6={cycle_read:`周期与位置辨识`,follow_add:`右侧跟随执行`,invalid_cut:`前提证伪止损`,climax_protect:`高潮派发锁利`};function M6({open:e,onOpenChange:t,truth:n,result:r,bars:i,onAskAgent:a,onOpenAcademy:o,askState:s,onNext:c,nextLabel:l}){let[u,d]=(0,v.useState)(1),f=(0,v.useMemo)(()=>r.divergence?r.divergence.dayIndex:n.walkthrough?.frame2?.key_day_index??1,[r.divergence,n.walkthrough]),[p,m]=(0,v.useState)(f),h=(0,v.useMemo)(()=>{let e=i.slice(0,60).map((e,t)=>({...e,t}));if(u===1)return e;let t=[...e];for(let e=0;e<15;e++){let r=n.daily[e+1];if(!r)break;t.push({t:60+e,o:r.open,h:r.high,l:r.low,c:r.close,v:r.volume,ema:r.ema20,label:`T+${e+1}`})}return t},[i,n.daily,u]),g=(0,v.useMemo)(()=>{let e=n.drawings?.lines||[],t=u===1?1:2;return e.filter(e=>(e.step||1)<=t)},[n.drawings,u]),_=(0,v.useMemo)(()=>{let e=[],t=n.drawings?.markers||[],i=u===1?1:2;for(let n of t)(n.step||1)<=i&&e.push({barIndex:n.barIndex,pos:n.pos,color:n.color,shape:n.shape,title:n.text});if(u>=3){for(let t of r.playerTrades||[])t.day>=0&&t.day<=14&&e.push({barIndex:59+t.day,pos:`belowBar`,shape:t.side===`buy`?`arrowUp`:`arrowDown`,color:`#2C48CE`,title:`你${t.side===`buy`?`买`:`卖`}→${Math.round(t.weightAfter*100)}%`});for(let t of r.aiTrades||[])t.day>=0&&t.day<=14&&e.push({barIndex:59+t.day,pos:`aboveBar`,shape:t.side===`buy`?`arrowUp`:`arrowDown`,color:`#D97706`,title:`AI${t.side===`buy`?`加`:`减`}→${Math.round(t.weightAfter*100)}%`})}return e},[n.drawings,u,r.playerTrades,r.aiTrades]),y=(0,v.useMemo)(()=>u===1?n.walkthrough?.frame1?.focus_range||[16,59]:u===2?n.walkthrough?.frame2?.focus_range||[36,74]:[32,74],[u,n.walkthrough]),b=(0,v.useMemo)(()=>{let e={};for(let t of r.playerCurve)t.day>=0&&(e[t.day]=t.weight);return e},[r.playerCurve]),x=(0,v.useMemo)(()=>{let e={};for(let t of r.aiCurve)t.day>=0&&(e[t.day]=t.weight);return e},[r.aiCurve]),S=(0,v.useMemo)(()=>N6(n,r),[n,r]),C=n.daily[p]||n.daily[0],w=n.walkthrough;return(0,K.jsx)(p6,{open:e,onOpenChange:t,children:(0,K.jsxs)(_6,{children:[(0,K.jsx)(y6,{className:`fixed inset-0 z-40 bg-ink-900/40 backdrop-blur-[2px]`}),(0,K.jsxs)(C6,{className:`fixed inset-3 z-50 flex flex-col overflow-hidden rounded-2xl border border-line bg-canvas shadow-pop`,"aria-describedby":void 0,children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between gap-4 border-b border-line bg-paper px-5 py-3`,children:[(0,K.jsx)(`div`,{className:`min-w-0`,children:(0,K.jsxs)(D6,{className:`flex flex-wrap items-center gap-2 text-base font-semibold text-ink-900`,children:[(0,K.jsx)(`span`,{children:n.name}),(0,K.jsx)(`span`,{className:`tnum text-xs font-medium text-ink-400`,children:n.code}),(0,K.jsxs)(`span`,{className:`tnum rounded bg-slate-soft px-2 py-0.5 text-xs font-medium text-ink-600`,children:[`起点 `,n.date,`(后推15交易日)`]}),(0,K.jsx)(n_,{tone:`brand`,children:n.motif_cn}),(0,K.jsx)(n_,{tone:n.motif!==`climax_wedge_top`&&n.outcome===`success`||n.motif===`climax_wedge_top`&&n.outcome===`failure`?`up`:`down`,children:n.outcome_cn})]})}),(0,K.jsxs)(`div`,{className:`flex shrink-0 items-center gap-4`,children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-3 rounded-xl border border-line bg-white px-3.5 py-1.5 text-xs`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`span`,{className:`text-ink-400`,children:`你的战绩 `}),(0,K.jsxs)(`span`,{className:Z(`tnum font-bold`,r.playerPnl>=0?`text-up`:`text-down`),children:[c_(r.playerPnl),` (`,u_(r.playerReturn),`)`]})]}),(0,K.jsx)(`span`,{className:`text-ink-200`,children:`|`}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`span`,{className:`text-ink-400`,children:`PA-LightGBM `}),(0,K.jsxs)(`span`,{className:Z(`tnum font-semibold`,r.aiPnl>=0?`text-up`:`text-down`),children:[c_(r.aiPnl),` (`,u_(r.aiReturn),`)`]})]})]}),c?(0,K.jsx)($g,{variant:`primary`,onClick:c,icon:(0,K.jsx)(Xd,{size:14}),children:l||`继续下一关`}):null]})]}),(0,K.jsx)(`div`,{className:`grid grid-cols-4 gap-2 border-b border-line bg-white px-5 py-2.5`,children:[{id:1,label:`① 认周期与位置`,short:`战场定性`},{id:2,label:`② 抓生死关键棒`,short:`跟随与证伪`},{id:3,label:`③ 拆机器概率与对账`,short:`量化归因`},{id:4,label:`④ 实战准则与归档`,short:`能力沉淀`}].map(e=>{let t=u===e.id,n=u>e.id;return(0,K.jsxs)(`button`,{type:`button`,onClick:()=>d(e.id),className:Z(`flex items-center justify-between rounded-xl border px-3.5 py-2 text-left transition-all`,t?`border-brand-500 bg-brand-50/80 text-brand-800 shadow-sm`:n?`border-brand-200 bg-white text-ink-700 hover:bg-brand-50/30`:`border-line bg-slate-soft/40 text-ink-500 hover:bg-white`),children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`div`,{className:`text-xs font-semibold`,children:e.label}),(0,K.jsx)(`div`,{className:`text-[11px] opacity-75`,children:e.short})]}),n?(0,K.jsx)(pf,{size:14,className:`text-brand-600`}):null]},e.id)})}),(0,K.jsxs)(`div`,{className:`grid min-h-0 flex-1 grid-cols-[minmax(540px,1.15fr)_minmax(420px,0.85fr)] gap-4 overflow-hidden p-4`,children:[(0,K.jsxs)(`div`,{className:`card flex min-h-0 flex-col overflow-hidden`,children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between border-b border-line px-4 py-2.5`,children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,K.jsx)(Lf,{size:14,className:`text-brand-600`}),(0,K.jsx)(`span`,{className:`text-xs font-semibold text-ink-900`,children:u===1?`第 1 帧视图:还原开局前 60 根市场周期与关键磁力线`:u===2?`第 2 帧视图:展开后续 15 日走势与生死确认/证伪棒`:`第 3–4 帧视图:叠加你与 PA-LightGBM 全程调仓轨迹`})]}),(0,K.jsx)(`span`,{className:`text-2xs text-ink-400`,children:`支持滚轮缩放 · 点击 K 线切换右侧日度归因`})]}),(0,K.jsx)(`div`,{className:`min-h-0 flex-1 px-2 pt-2`,children:(0,K.jsx)(C4,{bars:h,overlayLines:g,markers:_,focusRange:y,height:u>=3?290:360,onSelectBar:e=>{e>=59&&e<=73&&(m(e-59),u<3&&d(3))}})}),u>=3?(0,K.jsx)(`div`,{className:`border-t border-line bg-slate-soft/30 px-4 py-2.5`,children:(0,K.jsx)(w4,{days:15,playerMap:b,aiMap:x,activeDay:p,onSelectDay:e=>m(e)})}):(0,K.jsxs)(`div`,{className:`flex items-center justify-between border-t border-line bg-slate-soft/30 px-4 py-2.5 text-2xs text-ink-500`,children:[(0,K.jsx)(`span`,{children:`图例:蓝实线 = 20EMA 均线 | 虚线/折线 = 当前帧自动绘制的价格行为结构辅助线`}),(0,K.jsx)(`span`,{className:`font-medium text-brand-700`,children:`点右侧「下一帧」逐步揭开后续演化 →`})]})]}),(0,K.jsxs)(`div`,{className:`card flex min-h-0 flex-col overflow-hidden`,children:[(0,K.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-5`,children:(0,K.jsx)(xu,{mode:`wait`,children:(0,K.jsxs)(Nd.div,{initial:{opacity:0,x:10},animate:{opacity:1,x:0},exit:{opacity:0,x:-8},transition:{duration:.2},className:`space-y-4`,children:[u===1?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,K.jsxs)(n_,{tone:`brand`,children:[(0,K.jsx)(_f,{size:11}),`Al Brooks 第一层:市场周期与位置`]}),w?.cycle_tag?(0,K.jsx)(n_,{tone:`neutral`,children:w.cycle_tag}):null]}),(0,K.jsx)(`h3`,{className:`text-base font-semibold leading-snug text-ink-900`,children:w?.frame1?.title||n.key_bars.setup.hypothesis}),(0,K.jsx)(`p`,{className:`text-xs leading-relaxed text-ink-600`,children:w?.frame1?.body||n.setup.text}),(0,K.jsxs)(`div`,{className:`rounded-xl border border-line bg-slate-soft/50 p-3.5 text-xs`,children:[(0,K.jsx)(`div`,{className:`font-semibold text-ink-800`,children:`T0 信号棒客观解剖`}),(0,K.jsx)(`div`,{className:`mt-1 text-2xs leading-relaxed text-ink-600`,children:n.setup.text}),(0,K.jsxs)(`div`,{className:`mt-2.5 border-t border-line pt-2.5 text-2xs`,children:[`你的盘前课题辨识:`,(0,K.jsx)(`span`,{className:`ml-1 font-semibold text-ink-800`,children:r.quiz?r.quiz.motifCn:`未做盘前打卡`}),r.quizCorrect===!0?(0,K.jsx)(`span`,{className:`ml-2 font-semibold text-down-deep`,children:`✅ 一眼认准结构`}):r.quizCorrect===!1?(0,K.jsxs)(`span`,{className:`ml-2 font-semibold text-up-deep`,children:[`❌ 误判(真实结构:`,n.motif_cn,`)`]}):null]})]})]}):null,u===2?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(n_,{tone:`brand`,children:[(0,K.jsx)(Df,{size:11}),`Al Brooks 第二/三层:跟随确认 vs 前提证伪`]}),(0,K.jsx)(`h3`,{className:`text-base font-semibold leading-snug text-ink-900`,children:w?.frame2?.title||n.outcome_cn}),(0,K.jsx)(`p`,{className:`text-xs leading-relaxed text-ink-600`,children:w?.frame2?.body||n.key_bars.summary}),(0,K.jsxs)(`div`,{className:`space-y-2 rounded-xl border border-line bg-white p-3.5 text-2xs`,children:[(0,K.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,K.jsx)(`span`,{className:`shrink-0 rounded bg-brand-50 px-1.5 py-0.5 font-semibold text-brand-700`,children:`确认条件`}),(0,K.jsx)(`span`,{className:`leading-relaxed text-ink-600`,children:n.setup.confirm_rule})]}),(0,K.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,K.jsx)(`span`,{className:`shrink-0 rounded bg-up-soft px-1.5 py-0.5 font-semibold text-up-deep`,children:`证伪红线`}),(0,K.jsx)(`span`,{className:`leading-relaxed text-ink-600`,children:n.setup.invalidate_rule})]})]}),(0,K.jsxs)(`div`,{className:`rounded-xl border border-amber-200 bg-amber-50/60 p-3.5 text-2xs leading-relaxed text-amber-950`,children:[(0,K.jsx)(`div`,{className:`font-semibold`,children:`本关 15 日真实结局振幅`}),(0,K.jsx)(`div`,{className:`mt-1`,children:n.key_bars.summary})]})]}):null,u===3?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,K.jsxs)(n_,{tone:`brand`,children:[(0,K.jsx)(sf,{size:11}),`PA-LightGBM 概率拆解 & 知行合一诊断`]}),(0,K.jsx)(`span`,{className:`text-2xs text-ink-400`,children:`可点左下方日期格切换查看任意一天`})]}),(0,K.jsxs)(`div`,{className:`rounded-xl border border-line bg-white p-3.5`,children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between border-b border-line pb-2.5`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(`span`,{className:`text-xs font-semibold text-ink-900`,children:[C.day,`(`,C.date,`)机器读盘拆解`]}),(0,K.jsx)(`div`,{className:`mt-0.5 text-2xs text-ink-500`,children:C.candle})]}),(0,K.jsxs)(`div`,{className:`text-right`,children:[(0,K.jsxs)(`div`,{className:`tnum text-sm font-bold text-ink-900`,children:[`看多温度 `,C.bullish_edge_score,` / 100`]}),(0,K.jsxs)(`div`,{className:`tnum text-2xs text-ink-400`,children:[`你 `,Math.round((b[p]??0)*100),`% vs AI`,` `,Math.round((x[p]??0)*100),`%`]})]})]}),(0,K.jsxs)(`div`,{className:`mt-2.5 text-2xs text-ink-500`,children:[`模型从全样本 `,(0,K.jsx)(`strong`,{className:`text-ink-800`,children:`47.0% 历史基础多头胜率`}),` 出发,根据当日价格行为特征加减权重:`]}),(0,K.jsx)(`div`,{className:`mt-2 space-y-1.5`,children:C.top3_shap.map(e=>(0,K.jsxs)(`div`,{className:Z(`flex items-center justify-between gap-2 rounded-lg px-2.5 py-1.5 text-2xs`,e.push?`bg-up-soft/55 text-ink-800`:`bg-down-soft/55 text-ink-800`),children:[(0,K.jsxs)(`div`,{className:`min-w-0`,children:[(0,K.jsxs)(`span`,{className:`font-semibold`,children:[e.name_cn,`:`]}),(0,K.jsx)(`span`,{className:`text-ink-600`,children:e.text})]}),(0,K.jsx)(`span`,{className:Z(`tnum shrink-0 rounded px-1.5 py-0.5 font-semibold`,e.push?`bg-up/15 text-up-deep`:`bg-down/15 text-down-deep`),children:e.push?`看多加分`:`风险减分`})]},e.feature))})]}),(0,K.jsxs)(`div`,{className:`space-y-2`,children:[(0,K.jsx)(`div`,{className:`text-xs font-semibold text-ink-900`,children:`你的操作对账诊断`}),S.map(e=>(0,K.jsxs)(`div`,{className:Z(`rounded-xl border p-3 text-2xs leading-relaxed`,e.tone===`bad`?`border-up/25 bg-up-soft/40`:e.tone===`warn`?`border-amber-200 bg-amber-50/50`:`border-down/25 bg-down-soft/40`),children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-1.5 font-semibold text-ink-900`,children:[e.tone===`bad`?(0,K.jsx)(hf,{size:13,className:`text-up-deep`}):e.tone===`warn`?(0,K.jsx)(dp,{size:13,className:`text-amber-600`}):(0,K.jsx)(pf,{size:13,className:`text-down-deep`}),e.title]}),(0,K.jsx)(`p`,{className:`mt-1 text-ink-600`,children:e.detail})]},e.title))]})]}):null,u===4?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(n_,{tone:`brand`,children:[(0,K.jsx)(rp,{size:11}),`能力沉淀与实战纪律归档`]}),(0,K.jsx)(`h3`,{className:`text-base font-semibold text-ink-900`,children:`本关核心行动准则`}),(0,K.jsx)(`div`,{className:`rounded-2xl border border-brand-200 bg-brand-50/60 p-4 text-xs leading-relaxed text-ink-800`,children:w?.frame4?.takeaway||n.teaching_note}),r.skillEval?.scores?(0,K.jsxs)(`div`,{className:`rounded-xl border border-line bg-white p-4`,children:[(0,K.jsx)(`div`,{className:`text-xs font-semibold text-ink-900`,children:`本关计入「四维基本功档案」评分`}),(0,K.jsx)(`div`,{className:`mt-3 space-y-2.5`,children:Object.entries(r.skillEval.scores).map(([e,t])=>(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between text-2xs`,children:[(0,K.jsx)(`span`,{className:`font-medium text-ink-700`,children:j6[e]||e}),(0,K.jsxs)(`span`,{className:`tnum font-bold text-ink-900`,children:[t,` / 100`]})]}),(0,K.jsx)(`div`,{className:`mt-1 h-2 w-full overflow-hidden rounded-full bg-slate-100`,children:(0,K.jsx)(`div`,{style:{width:`${t}%`},className:Z(`h-full rounded-full`,t>=75?`bg-brand-600`:t>=55?`bg-amber-500`:`bg-up`)})})]},e))})]}):null,o?(0,K.jsxs)(`button`,{type:`button`,onClick:()=>o(w?.frame1?.theory_key||`cycle`),className:`flex w-full items-center justify-between rounded-xl border border-line bg-paper px-4 py-3 text-left text-xs transition-colors hover:border-brand-300 hover:bg-white`,children:[(0,K.jsxs)(`span`,{className:`inline-flex items-center gap-2 font-medium text-ink-800`,children:[(0,K.jsx)(nf,{size:14,className:`text-brand-600`}),`打开「价格行为学堂」精读本课题底层理论图解`]}),(0,K.jsx)(Xd,{size:14,className:`text-ink-400`})]}):null]}):null]},u)})}),(0,K.jsxs)(`div`,{className:`flex items-center justify-between gap-2 border-t border-line bg-paper px-4 py-3`,children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,K.jsx)($g,{size:`sm`,variant:`secondary`,disabled:u<=1,onClick:()=>d(e=>Math.max(1,e-1)),icon:(0,K.jsx)(Jd,{size:13}),children:`上一帧`}),u<4?(0,K.jsxs)($g,{size:`sm`,variant:`primary`,onClick:()=>d(e=>Math.min(4,e+1)),icon:(0,K.jsx)(Xd,{size:13}),children:[`下一帧 (`,u,`/4)`]}):c?(0,K.jsx)($g,{size:`sm`,variant:`primary`,onClick:c,icon:(0,K.jsx)($f,{size:13}),children:l||`继续`}):null]}),(0,K.jsxs)(`div`,{className:`flex items-center gap-2`,children:[s?(0,K.jsx)(`span`,{className:Z(`text-2xs`,s.tone===`ok`?`text-down-deep`:`text-up-deep`),children:s.text}):null,(0,K.jsx)($g,{size:`sm`,variant:`secondary`,icon:(0,K.jsx)(Vf,{size:13}),onClick:()=>a(A6(n,r)),children:`问 Agent 深拆本局`})]})]})]})]})]})]})})}function N6(e,t){let n=[],r=e.walkthrough?.frame2?.key_day_index??2,i=t.playerCurve.filter(e=>e.day>=0),a=e=>i.find(t=>t.day===e)?.weight??0,o=Math.min(a(r),a(Math.min(14,r+1))),s=e.motif,c=e.outcome;if(s!==`climax_wedge_top`&&c===`failure`)o>.3?n.push({title:`T+${r} 出现证伪棒后仍重仓死扛(持仓 ${Math.round(o*100)}%)`,detail:`当价格跌回箱体内部或跌穿 T0 生死防守低点时,原看多前提已彻底失效。继续重仓等待“回本”是本关亏损的核心根源。`,tone:`bad`}):n.push({title:`T+${r} 证伪信号出现后及时控仓避险(仓位 ${Math.round(o*100)}%)`,detail:`识别出形态无跟随/破位后迅速收缩风险敞口,成功躲过后续主跌段!`,tone:`good`});else if(s!==`climax_wedge_top`&&c===`success`){let e=i.filter(e=>e.day>=r).reduce((e,t)=>e+t.weight,0)/Math.max(1,i.filter(e=>e.day>=r).length);e<.35?n.push({title:`T+${r} 走出有效跟随确认棒,但后续平均仓位仅 ${Math.round(e*100)}%`,detail:`方向看对了但仓位过轻或过早卖飞——右侧确认棒出现后顺势推高仓位,才能在交易员方程里赚足盈亏比。`,tone:`warn`}):n.push({title:`右侧确认后顺势重仓跟随(平均持仓 ${Math.round(e*100)}%)`,detail:`准确把握住确认棒后的主升惯性,知行合一吃到了波段核心利润。`,tone:`good`})}else s===`climax_wedge_top`&&(c===`success`?o>.35?n.push({title:`高位破位派发确认后未及时撤退(仍持仓 ${Math.round(o*100)}%)`,detail:`T+${r} 跌破高潮分歧棒低点后应果断清掉老仓锁利,恋战导致前期浮盈大幅回吐。`,tone:`bad`}):n.push({title:`精准逃顶锁住老仓胜利果实`,detail:`在高潮棒分歧破位时将 70% 老仓果断降至 ${Math.round(o*100)}%,完美避开瀑布回撤。`,tone:`good`}):i.filter(e=>e.day>=r).reduce((e,t)=>e+t.weight,0)/Math.max(1,i.filter(e=>e.day>=r).length)<.3?n.push({title:`被高位强势洗盘震下车,过早清光老仓踏空二波主升`,detail:`T0 虽有分歧但未有效跌破防守底,且 T+${r} 反包突破前高——面对强势窄旗形不宜一把清光不回头。`,tone:`warn`}):n.push({title:`看穿强势旗形换手,稳稳拿住二波主升浪`,detail:`没有被单日高位震荡吓跑,守住防守底吃满后续加速段。`,tone:`good`}));return n}var P6=`modulepreload`,F6=function(e,t){return new URL(e,t).href},I6={},L6={},R6=function(e){return e.pathname.endsWith(`.css`)},z6=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw delete e[t],n});return e[t]=i,i},B6=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=F6(t,n);let r=s(t),i=R6(r);return z6(I6,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}let t=i?e.styles:e.all,n=i?L6[r.href]:void 0;if(!n&&t.has(r.href))return;let o=document.createElement(`link`);if(o.rel=i?`stylesheet`:P6,i||(o.as=`script`),o.crossOrigin=``,o.href=r.href,a&&o.setAttribute(`nonce`,a),n&&delete L6[r.href],n?.isConnected?n.replaceWith(o):document.head.appendChild(o),i)return new Promise((e,t)=>{let n=i=>{o.removeEventListener(`load`,n),o.removeEventListener(`error`,n),i.type===`error`?(L6[r.href]=o,t(Error(`Unable to preload CSS for ${r}`))):e(i)};o.addEventListener(`load`,n),o.addEventListener(`error`,n)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},V6=15;function H6(e,t){let n=new Map;for(let t of e)n.set(t.t,t);for(let e of t)n.set(e.t,e);return[...n.values()].sort((e,t)=>e.t-t.t)}function U6({session:e,motifs:t,onExit:n,onOpenAcademy:r,toast:i}){let[a,o]=(0,v.useState)(e.index),[s,c]=(0,v.useState)(e.level),[l,u]=(0,v.useState)(e.level.bars),[d,f]=(0,v.useState)(0),[p,m]=(0,v.useState)(e.state?.player?.weight??0),[h,g]=(0,v.useState)(null),[_,y]=(0,v.useState)(!0),[b,x]=(0,v.useState)(null),[S,C]=(0,v.useState)([]),[w,T]=(0,v.useState)({}),[E,D]=(0,v.useState)({}),[ee,te]=(0,v.useState)([]),[ne,O]=(0,v.useState)({levels:[],player:[],ai:[]}),[k,re]=(0,v.useState)(e.state),[A,j]=(0,v.useState)(!1),[M,ie]=(0,v.useState)(null),[ae,N]=(0,v.useState)(!1),[oe,se]=(0,v.useState)(null),[P,ce]=(0,v.useState)(null),[le,ue]=(0,v.useState)(null),de=(0,v.useRef)(null),fe=(0,v.useCallback)((e,t,n)=>{de.current&&window.clearTimeout(de.current),o(t),c(e),u(e.bars),f(0),m(n?.player?.weight??e.initialPosition.weight??0),g(null),x(null),C([]),T({}),D({}),te([]),O({levels:[],player:[],ai:[]}),re(n),ie(null),N(!1),se(null),ue(null)},[]);(0,v.useEffect)(()=>()=>{de.current&&window.clearTimeout(de.current)},[]);let pe=l[l.length-1],me=d>=V6&&!h,he=(0,v.useCallback)(()=>{de.current&&=(window.clearTimeout(de.current),null),g(e=>(e&&(u(t=>H6(t,[e])),x(null)),null))},[]),ge=(0,v.useCallback)(async t=>{if(!ae){ie(t);try{await _p.quiz(e.matchId,t),N(!0),i(`已锁定盘前课题判断,赛后揭晓对错`)}catch(e){i(e.message,`err`)}}},[ae,e.matchId,i]),_e=(0,v.useCallback)(async()=>{if(!A){if(h)he();else if(!(d>=V6)){j(!0);try{let t=await _p.decide(e.matchId,p),n=t.result.dayIndex,r=59+n,i=t.result.player.trade,a=t.result.ai.trade,o=[];(i.side===`buy`||i.side===`sell`)&&o.push({barIndex:r,pos:`belowBar`,shape:i.side===`buy`?`arrowUp`:`arrowDown`,color:`#2C48CE`,title:`你${i.side===`buy`?`买`:`卖`}→${Math.round(t.result.player.weight*100)}%`}),(a.side===`buy`||a.side===`sell`)&&o.push({barIndex:r,pos:`aboveBar`,shape:a.side===`buy`?`arrowUp`:`arrowDown`,color:`#D97706`,title:`AI${a.side===`buy`?`买`:`卖`}→${Math.round(t.result.ai.weight*100)}%`}),o.length&&C(e=>[...e,...o]),T(e=>({...e,[n]:t.result.player.weight})),D(e=>({...e,[n]:t.result.ai.weight})),x({day:t.result.day,ai:{...t.result.ai,weightBefore:a.weightBefore}}),te(e=>[{day:t.result.day,score:t.result.ai.score,reason:t.result.ai.reason,pPct:Math.round(t.result.player.weight*100),aPct:Math.round(t.result.ai.weight*100)},...e]),O(t.result.curve),re(t.state),f(t.dayIndex),m(t.result.player.weight),t.nextBar?(g(t.nextBar),_&&(de.current=window.setTimeout(()=>{u(e=>H6(e,[t.nextBar])),g(null),x(null),de.current=null},850))):g(null)}catch(e){i(e.message,`err`)}finally{j(!1)}}}},[A,h,he,d,e.matchId,p,_,i]),ve=(0,v.useCallback)(async t=>{if(A)return;de.current&&=(window.clearTimeout(de.current),null);let n=null;if(g(e=>(n=e,null)),n&&u(e=>H6(e,[n])),!(d>=V6)){j(!0);try{let n=await _p.advance(e.matchId,t),r=[],i={},a={};for(let e of n.steps)i[e.dayIndex]=e.player.weight,a[e.dayIndex]=e.ai.weight,(e.ai.action===`buy`||e.ai.action===`sell`)&&r.push({barIndex:59+e.dayIndex,pos:`aboveBar`,shape:e.ai.action===`buy`?`arrowUp`:`arrowDown`,color:`#D97706`,title:`AI${e.ai.action===`buy`?`买`:`卖`}→${Math.round(e.ai.weight*100)}%`});r.length&&C(e=>[...e,...r]),T(e=>({...e,...i})),D(e=>({...e,...a})),te(e=>[...[...n.steps].reverse().map(e=>({day:e.day,score:e.ai.score,reason:e.ai.reason,pPct:Math.round(e.player.weight*100),aPct:Math.round(e.ai.weight*100)})),...e]),re(n.state),f(n.dayIndex);let o=[...n.revealedBars||[],...n.nextBar?[n.nextBar]:[]];o.length&&u(e=>H6(e,o)),m(n.state?.player?.weight??0);let s=n.steps[n.steps.length-1];x(s?{day:s.day,ai:s.ai}:null)}catch(e){i(e.message,`err`)}finally{j(!1)}}},[A,d,e.matchId,i]);(0,v.useEffect)(()=>{let e=e=>{if(oe||P)return;let t=e.target?.tagName;t!==`INPUT`&&t!==`TEXTAREA`&&e.code===`Space`&&(e.preventDefault(),me?ye():_e())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[oe,P,me,_e]);let ye=(0,v.useCallback)(async()=>{if(!A){j(!0);try{let t=await _p.settle(e.matchId);se({truth:t.truth,result:t.result,finished:t.finished,nextLevel:t.nextLevel,nextIndex:t.index,nextState:t.state,summary:t.summary})}catch(e){i(e.message,`err`)}finally{j(!1)}}},[A,e.matchId,i]),be=(0,v.useMemo)(()=>[{barIndex:59,pos:`belowBar`,shape:`circle`,color:`#B08125`,title:`T0 起点`},...S],[S]),xe=k?.player,F=k?.ai,Se=xe&&F?xe.equity-F.equity:0;return(0,K.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col gap-3 p-4`,children:[(0,K.jsxs)(e_,{className:`flex shrink-0 items-center gap-5 px-4 py-2.5`,children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,K.jsx)(n_,{tone:`brand`,children:e.mode===`challenge`?`闯关对决 · 第 ${a+1} / ${e.total} 关`:`专项课题实战`}),(0,K.jsx)(n_,{tone:s.initialPosition.type===`legacy`?`gold`:`neutral`,children:s.initialPosition.type===`legacy`?`开局持 70% 老仓`:`开局 0% 空仓`})]}),(0,K.jsx)(`div`,{className:`h-5 w-px bg-line`}),(0,K.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,K.jsx)(`span`,{className:`text-2xs text-ink-400`,children:`推演进度`}),(0,K.jsx)(`div`,{className:`flex items-center gap-1`,children:Array.from({length:V6}).map((e,t)=>(0,K.jsx)(`span`,{className:Z(`h-1.5 w-3.5 rounded-full transition-colors duration-200`,t=0?`brand`:`neutral`,className:`text-right`}),(0,K.jsx)(`div`,{className:`h-7 w-px bg-line`}),(0,K.jsx)(r_,{label:`PA-LightGBM 净值`,value:s_(F?.equity),sub:`机器持仓 ${Math.round((F?.weight||0)*100)}%`,className:`text-right`}),(0,K.jsx)(`div`,{className:`h-7 w-px bg-line`}),(0,K.jsx)(r_,{label:`同场超额差距`,value:c_(Se),sub:Se>=0?`你暂时领先`:`机器暂时领先`,tone:Se>=0?`up`:`down`,className:`text-right`})]})]}),(0,K.jsxs)(`div`,{className:`grid min-h-0 flex-1 grid-cols-[248px_minmax(540px,1fr)_346px] gap-3`,children:[(0,K.jsxs)(`div`,{className:`flex min-h-0 flex-col gap-3 overflow-y-auto`,children:[(0,K.jsxs)(e_,{children:[(0,K.jsx)(t_,{title:`盘前眼力打卡(可选)`,desc:`先凭裸 K 认出当前属于哪类实战课题`}),(0,K.jsx)(`div`,{className:`space-y-1.5 p-2.5`,children:t.map(e=>{let t=M===e.key;return(0,K.jsxs)(`button`,{type:`button`,disabled:ae,onClick:()=>void ge(e.key),className:Z(`flex w-full items-center justify-between rounded-lg border px-2.5 py-2 text-left text-2xs transition-all`,t?`border-brand-400 bg-brand-50 font-semibold text-brand-800`:`border-line bg-white text-ink-700 hover:border-brand-200 hover:bg-brand-50/40`,ae&&!t&&`opacity-45`),children:[(0,K.jsx)(`span`,{children:e.short_cn||e.cn}),t&&ae?(0,K.jsx)(ef,{size:13,className:`text-brand-600`}):null]},e.key)})})]}),(0,K.jsxs)(e_,{className:`flex min-h-0 flex-1 flex-col overflow-hidden`,children:[(0,K.jsx)(t_,{title:`人机实时交手日志`,desc:`逐根记录你与机器的仓位博弈`}),(0,K.jsx)(`div`,{className:`min-h-0 flex-1 space-y-1.5 overflow-y-auto p-2.5`,children:ee.length===0?(0,K.jsx)(`p`,{className:`py-8 text-center text-2xs text-ink-400`,children:`确认 T0 首笔仓位后,这里实时滚动双方动作`}):ee.map((e,t)=>(0,K.jsxs)(`div`,{className:`rounded-lg border border-line bg-white px-2.5 py-1.5 text-2xs`,children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between font-semibold text-ink-800`,children:[(0,K.jsx)(`span`,{className:`tnum`,children:e.day}),(0,K.jsxs)(`span`,{className:`tnum text-ink-500`,children:[`你 `,(0,K.jsxs)(`strong`,{className:`text-brand-700`,children:[e.pPct,`%`]}),` vs AI`,` `,(0,K.jsxs)(`strong`,{className:`text-amber-600`,children:[e.aPct,`%`]})]})]}),(0,K.jsx)(`div`,{className:`mt-0.5 text-[11px] text-ink-400`,children:e.reason})]},`${e.day}-${t}`))})]})]}),(0,K.jsxs)(`div`,{className:`flex min-h-0 flex-col gap-3`,children:[(0,K.jsxs)(e_,{className:`flex min-h-0 flex-1 flex-col overflow-hidden`,children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between border-b border-line px-4 py-2`,children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,K.jsx)(`h2`,{className:`section-title`,children:`实盘盲测主图`}),(0,K.jsx)(`span`,{className:`chip`,children:`20 EMA 均线`}),(0,K.jsx)(`span`,{className:`chip`,children:`真实前复权日 K`})]}),(0,K.jsxs)(`div`,{className:`tnum flex items-center gap-3.5 text-2xs text-ink-500`,children:[(0,K.jsxs)(`span`,{children:[`开 `,s_(pe?.o,2)]}),(0,K.jsxs)(`span`,{children:[`高 `,s_(pe?.h,2)]}),(0,K.jsxs)(`span`,{children:[`低 `,s_(pe?.l,2)]}),(0,K.jsxs)(`span`,{className:`font-semibold text-ink-900`,children:[`收 `,s_(pe?.c,2)]})]})]}),(0,K.jsx)(`div`,{className:`min-h-0 flex-1 px-1`,children:(0,K.jsx)(C4,{bars:l,markers:be,height:300})}),(0,K.jsx)(`div`,{className:`border-t border-line bg-slate-soft/35 px-3.5 py-2`,children:(0,K.jsx)(w4,{days:V6,playerMap:w,aiMap:E})})]}),(0,K.jsxs)(e_,{className:`shrink-0`,children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between border-b border-line px-4 py-1.5`,children:[(0,K.jsx)(`span`,{className:`text-xs font-semibold text-ink-800`,children:`本关实时资金曲线`}),(0,K.jsxs)(`div`,{className:`flex items-center gap-3 text-2xs`,children:[(0,K.jsxs)(`span`,{className:`inline-flex items-center gap-1 font-medium text-brand-700`,children:[(0,K.jsx)(`span`,{className:`h-0.5 w-3.5 bg-brand-600`}),`你的净值`]}),(0,K.jsxs)(`span`,{className:`inline-flex items-center gap-1 font-medium text-amber-700`,children:[(0,K.jsx)(`span`,{className:`h-0.5 w-3.5 bg-amber-500`}),`PA-LightGBM`]})]})]}),(0,K.jsx)(`div`,{className:`px-2 py-1`,children:(0,K.jsx)(T4,{player:ne.player,ai:ne.ai,height:96})})]})]}),(0,K.jsxs)(`div`,{className:`flex min-h-0 flex-col gap-3 overflow-y-auto`,children:[(0,K.jsx)(F4,{reveal:!!b,curDay:pe?.label||`T0`,revealedDay:b?.day,dayResult:b?.ai,prevScore:ee.length>1?ee[1].score:null}),(0,K.jsxs)(e_,{children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between border-b border-line px-4 py-2.5`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`div`,{className:`text-xs font-semibold text-ink-900`,children:`10% 颗粒度自由调仓台`}),(0,K.jsx)(`div`,{className:`text-2xs text-ink-400`,children:`方向键 ←→ 调仓 · 空格键确认推进`})]}),(0,K.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-1.5 text-2xs text-ink-500`,children:[(0,K.jsx)(`input`,{type:`checkbox`,checked:_,onChange:e=>y(e.target.checked),className:`rounded border-line text-brand-600`}),`亮牌后自动下一根`]})]}),(0,K.jsxs)(`div`,{className:`space-y-3 p-3.5`,children:[(0,K.jsx)(P4,{value:p,onChange:m,disabled:A||me||!!h,equity:xe?.equity||1e5,sellableValue:(k?.player?.sellable||0)*(pe?.c||0),price:pe?.c||1}),me?(0,K.jsx)($g,{variant:`primary`,size:`lg`,className:`w-full`,disabled:A,onClick:ye,icon:(0,K.jsx)($f,{size:15}),children:`揭晓真实股票 · 进入 4 帧画线带教 (Space)`}):h?(0,K.jsxs)($g,{variant:`primary`,size:`lg`,className:`w-full`,onClick:he,icon:(0,K.jsx)(df,{size:15}),children:[`已看清机器动作 · 推进下一根 `,h.label,` (Space)`]}):(0,K.jsx)($g,{variant:`primary`,size:`lg`,className:`w-full`,disabled:A,onClick:_e,icon:A?(0,K.jsx)(kf,{size:15,className:`animate-spin`}):(0,K.jsx)(Gf,{size:15}),children:A?`撮合中…`:`确认 ${pe?.label||`T0`} 仓位 ${Math.round(p*100)}% · 同拍亮牌`}),(0,K.jsxs)(`div`,{className:`grid grid-cols-2 gap-2 pt-1`,children:[(0,K.jsx)($g,{variant:`secondary`,size:`sm`,disabled:A||me,onClick:()=>ve(3),icon:(0,K.jsx)(Zf,{size:13}),children:`维持仓位 · 快进 3 日`}),(0,K.jsxs)($g,{variant:`secondary`,size:`sm`,disabled:A||!me,onClick:ye,icon:(0,K.jsx)(Lf,{size:13}),children:[`结算并复盘 (`,Math.min(d,V6),`/15)`]})]})]})]}),(0,K.jsxs)(`div`,{className:`rounded-xl border border-line bg-paper px-3.5 py-2.5 text-2xs leading-relaxed text-ink-500`,children:[(0,K.jsx)(`span`,{className:`font-semibold text-ink-700`,children:`实战考场规则:`}),s.initialPosition.note,`。双方均遵守 A 股 T+1 次日可卖与单边 0.075% 成本。`]})]})]}),(0,K.jsx)(xu,{children:oe?(0,K.jsx)(M6,{open:!0,onOpenChange:()=>{},truth:oe.truth,result:oe.result,bars:l,askState:le,onOpenAcademy:e=>{r&&r(e)},onAskAgent:async e=>{let{sendToAgent:t}=await B6(async()=>{let{sendToAgent:e}=await import(`./bridge-41eqXDBk.js`);return{sendToAgent:e}},[],import.meta.url),n=await t(e);ue({tone:n.ok?`ok`:`err`,text:n.message}),n.ok||window.prompt(`复制下面的复盘提问,粘贴到 MiniMax Code 对话框:`,e)},onNext:()=>{!oe.finished&&oe.nextLevel?fe(oe.nextLevel,oe.nextIndex??a+1,oe.nextState):e.mode===`challenge`&&oe.summary?(ce(oe.summary),se(null)):n()},nextLabel:!oe.finished&&oe.nextLevel?`进入第 ${(oe.nextIndex??a+1)+1}/${e.total} 关 →`:e.mode===`challenge`?`查看 4 关闯关总战报`:`返回题库继续选关`}):null}),P?(0,K.jsx)(`div`,{className:`fixed inset-0 z-50 grid place-items-center bg-ink-900/45 p-6 backdrop-blur-[2px]`,children:(0,K.jsxs)(e_,{className:`w-full max-w-2xl overflow-hidden p-6 shadow-pop`,children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between border-b border-line pb-4`,children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,K.jsx)(`span`,{className:`grid h-11 w-11 place-items-center rounded-2xl bg-brand-600 text-white`,children:(0,K.jsx)(pp,{size:20})}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(n_,{tone:`brand`,children:`4 大课题盲判连战完成`}),(0,K.jsxs)(`h2`,{className:`mt-1 text-xl font-semibold text-ink-900`,children:[`本轮评定称号:`,P.rank]})]})]}),(0,K.jsx)(n_,{tone:P.beatAi?`up`:`down`,children:P.beatAi?`🏆 总收益击败 PA-LightGBM`:`🤖 本轮机器总收益占优`})]}),(0,K.jsxs)(`div`,{className:`mt-4 grid grid-cols-3 gap-3`,children:[(0,K.jsxs)(`div`,{className:`rounded-xl border border-line bg-slate-soft/50 p-3.5`,children:[(0,K.jsx)(`div`,{className:`text-2xs text-ink-400`,children:`你的最终滚存净值`}),(0,K.jsx)(`div`,{className:`tnum mt-1 text-lg font-bold text-ink-900`,children:s_(P.playerEquity)}),(0,K.jsxs)(`div`,{className:Z(`tnum text-xs font-semibold`,P.playerPnl>=0?`text-up`:`text-down`),children:[c_(P.playerPnl),` (`,u_(P.playerReturn),`)`]})]}),(0,K.jsxs)(`div`,{className:`rounded-xl border border-line bg-slate-soft/50 p-3.5`,children:[(0,K.jsx)(`div`,{className:`text-2xs text-ink-400`,children:`PA-LightGBM 终值`}),(0,K.jsx)(`div`,{className:`tnum mt-1 text-lg font-bold text-ink-900`,children:s_(P.aiEquity)}),(0,K.jsxs)(`div`,{className:Z(`tnum text-xs font-semibold`,P.aiPnl>=0?`text-up`:`text-down`),children:[c_(P.aiPnl),` (`,u_(P.aiReturn),`)`]})]}),(0,K.jsxs)(`div`,{className:`rounded-xl border border-line bg-slate-soft/50 p-3.5`,children:[(0,K.jsx)(`div`,{className:`text-2xs text-ink-400`,children:`盘前课题辨识率`}),(0,K.jsxs)(`div`,{className:`tnum mt-1 text-lg font-bold text-brand-700`,children:[P.quizRight,` / `,P.quizTotal||P.levels]}),(0,K.jsx)(`div`,{className:`text-2xs text-ink-400`,children:`战绩已永久写入成长档案`})]})]}),(0,K.jsx)(`div`,{className:`mt-5 flex justify-end gap-2.5`,children:(0,K.jsx)($g,{variant:`secondary`,onClick:n,icon:(0,K.jsx)(Qd,{size:14}),children:`去成长档案查看四维雷达`})})]})}):null]})}var W6=[{key:`home`,label:`首页`,icon:(0,K.jsx)(Ff,{size:14})},{key:`academy`,label:`价格行为学堂`,icon:(0,K.jsx)(Nf,{size:14})},{key:`practice`,label:`课题练习库`,icon:(0,K.jsx)(nf,{size:14})},{key:`profile`,label:`四维能力档案`,icon:(0,K.jsx)(rp,{size:14})}];function G6(){let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(`home`),[i,a]=(0,v.useState)(`all`),[o,s]=(0,v.useState)(`cycle`),[c,l]=(0,v.useState)(null),[u,d]=(0,v.useState)(!1),f=o_();(0,v.useEffect)(()=>{_p.bootstrap().then(t).catch(e=>f.push(e.message,`err`))},[]);let p=(0,v.useCallback)(async()=>{d(!0);try{let e=await _p.startChallenge();l({matchId:e.matchId,mode:`challenge`,level:e.level,state:e.state,index:e.index,total:e.total}),r(`game`)}catch(e){f.push(e.message,`err`)}finally{d(!1)}},[f]),m=(0,v.useCallback)(async e=>{d(!0);try{let t=await _p.startPractice(e);l({matchId:t.matchId,mode:`practice`,level:t.level,state:t.state,index:t.index,total:t.total}),r(`game`)}catch(e){f.push(e.message,`err`)}finally{d(!1)}},[f]),h=(0,v.useCallback)(e=>{a(e),l(null),r(`practice`)},[]),g=(0,v.useCallback)(()=>{let e=c?.mode;l(null),r(e===`practice`?`practice`:`profile`)},[c]);if(!e)return(0,K.jsxs)(`div`,{className:`flex h-full items-center justify-center gap-2 text-xs text-ink-400`,children:[(0,K.jsx)(zf,{size:14,className:`animate-spin`}),` 正在载入价格行为实战台…`]});let _=e.meta.motifs||[];return(0,K.jsxs)(`div`,{className:`flex h-full min-h-0 min-w-[1160px] flex-col bg-canvas`,children:[(0,K.jsxs)(`header`,{className:`flex shrink-0 items-center gap-4 border-b border-line bg-paper px-5 py-2.5`,children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,K.jsx)(`span`,{className:`grid h-7 w-7 place-items-center rounded-lg bg-ink-900 text-white`,children:(0,K.jsx)(lf,{size:14})}),(0,K.jsxs)(`div`,{className:`leading-tight`,children:[(0,K.jsx)(`div`,{className:`text-[13px] font-semibold tracking-tight text-ink-900`,children:`K线价格行为实战台`}),(0,K.jsx)(`div`,{className:`text-2xs text-ink-400`,children:`玩学分离 · Al Brooks 价格行为学 × PA-LightGBM`})]})]}),(0,K.jsxs)(`nav`,{className:`ml-4 flex items-center gap-1`,children:[W6.map(e=>(0,K.jsxs)(`button`,{type:`button`,onClick:()=>{e.key===`practice`&&a(`all`),r(e.key)},className:Z(`inline-flex items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-xs font-medium transition-all duration-200`,n===e.key?`bg-ink-900 text-white`:`text-ink-500 hover:bg-slate-soft hover:text-ink-800`),children:[e.icon,e.label]},e.key)),c?(0,K.jsxs)(`button`,{type:`button`,onClick:()=>r(`game`),className:Z(`inline-flex items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-xs font-medium transition-all duration-200`,n===`game`?`bg-brand-600 text-white`:`bg-brand-50 text-brand-700 hover:bg-brand-100`),children:[(0,K.jsx)(tp,{size:13}),`返回当前对局`]}):null]}),(0,K.jsxs)(`div`,{className:`ml-auto flex items-center gap-2.5`,children:[n===`game`?null:(0,K.jsx)($g,{size:`sm`,variant:`primary`,onClick:p,icon:(0,K.jsx)(tp,{size:12}),children:`开启 4 关闯关`}),(0,K.jsxs)(n_,{tone:`neutral`,children:[`名场面题库 `,e.library.builtin,` 关`,e.library.custom?` + 动态 ${e.library.custom}`:``]})]})]}),(0,K.jsx)(`main`,{className:`min-h-0 flex-1`,children:(0,K.jsx)(xu,{mode:`wait`,children:(0,K.jsxs)(Nd.div,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.16},className:`h-full min-h-0`,children:[n===`home`?(0,K.jsx)(p_,{boot:e,onChallenge:p,onPractice:()=>{a(`all`),r(`practice`)},onAcademy:()=>r(`academy`),onProfile:()=>r(`profile`),toast:f.push}):null,n===`academy`?(0,K.jsx)(k4,{initialLesson:o,onPracticeMotif:h}):null,n===`practice`?(0,K.jsx)(D4,{motifs:_,initialMotif:i,onStart:m,toast:f.push}):null,n===`profile`?(0,K.jsx)(j4,{motifs:_,onPracticeMotif:h,onStartLevel:m,toast:f.push}):null,n===`game`&&c?(0,K.jsx)(U6,{session:c,motifs:_,onExit:g,onOpenAcademy:e=>{s(e),r(`academy`)},toast:f.push},c.matchId):null]},n)})}),u?(0,K.jsx)(`div`,{className:`fixed inset-0 z-50 grid place-items-center bg-ink-900/20 backdrop-blur-[1px]`,children:(0,K.jsxs)(`div`,{className:`flex items-center gap-2 rounded-xl border border-line bg-paper px-4 py-3 text-xs text-ink-600 shadow-pop`,children:[(0,K.jsx)(zf,{size:14,className:`animate-spin text-brand-500`}),`正在载入实盘盲测考场…`]})}):null,(0,K.jsx)(`footer`,{className:`flex shrink-0 items-center justify-center border-t border-line bg-paper px-4 py-1.5 text-2xs text-ink-400`,children:`历史行情价格行为复盘训练工具,不构成任何投资建议。`}),f.node]})}var K6=document.getElementById(`root`);K6&&mp.createRoot(K6).render((0,K.jsx)(v.StrictMode,{children:(0,K.jsx)(G6,{})})); \ No newline at end of file diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/client/assets/index-D4hbCUEK.css b/plugins/alphamao1/kline-intuition-lab/miniapp/client/assets/index-D4hbCUEK.css new file mode 100644 index 00000000..506c1a82 --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/client/assets/index-D4hbCUEK.css @@ -0,0 +1 @@ +*,:before,:after,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}:before,:after{--tw-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:PingFang SC,Hiragino Sans GB,Microsoft YaHei UI,Microsoft YaHei,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,system-ui,sans-serif;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:SF Mono,JetBrains Mono,Roboto Mono,Menlo,Consolas,Liberation Mono,ui-monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder{opacity:1;color:#9ca3af}textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}html,body,#root{height:100%}body{color:#0e1319;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;background:#f4f6f9;margin:0;font-family:PingFang SC,Hiragino Sans GB,Microsoft YaHei UI,Microsoft YaHei,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,system-ui,sans-serif;font-size:13px;line-height:1.55}.tnum{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;letter-spacing:-.01em;font-family:SF Mono,JetBrains Mono,Roboto Mono,Menlo,Consolas,Liberation Mono,ui-monospace,monospace}button{font-family:inherit}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background:#d5dae2 padding-box content-box;border:2px solid #0000;border-radius:999px}::-webkit-scrollbar-thumb:hover{background:#bcc3ce padding-box content-box}::-webkit-scrollbar-track{background:0 0}.card{--tw-border-opacity:1;border-width:1px;border-color:rgb(232 235 240/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));--tw-shadow:0 1px 2px #1018280a, 0 1px 3px #1018280f;--tw-shadow-colored:0 1px 2px var(--tw-shadow-color), 0 1px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow);border-radius:1rem}.card-pad{padding:1rem}.section-title{letter-spacing:-.025em;--tw-text-opacity:1;color:rgb(29 36 45/var(--tw-text-opacity,1));font-size:13px;font-weight:600}.chip{--tw-border-opacity:1;border-width:1px;border-color:rgb(232 235 240/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(241 243 246/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(74 84 98/var(--tw-text-opacity,1));border-radius:.375rem;align-items:center;gap:.25rem;padding:.125rem .375rem;font-size:10px;font-weight:500;line-height:14px;display:inline-flex}.grid-noise{background-image:radial-gradient(circle at 1px 1px,#1018280b 1px,#0000 0);background-size:22px 22px}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-3{inset:.75rem}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-right-24{right:-6rem}.-right-8{right:-2rem}.-top-10{top:-2.5rem}.-top-28{top:-7rem}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.left-1\/2{left:50%}.left-2\.5{left:.625rem}.top-1\/2{top:50%}.z-40{z-index:40}.z-50{z-index:50}.z-\[80\]{z-index:80}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-2\.5{margin-bottom:.625rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-0\.5{height:.125rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-28{height:7rem}.h-5{height:1.25rem}.h-52{height:13rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-72{height:18rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.h-px{height:1px}.max-h-\[220px\]{max-height:220px}.max-h-\[340px\]{max-height:340px}.min-h-0{min-height:0}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-2{width:.5rem}.w-28{width:7rem}.w-3\.5{width:.875rem}.w-5{width:1.25rem}.w-52{width:13rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-9{width:2.25rem}.w-\[2px\]{width:2px}.w-\[330px\]{width:330px}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\[1160px\]{min-width:1160px}.max-w-2xl{max-width:42rem}.max-w-\[280px\]{max-width:280px}.max-w-sm{max-width:24rem}.flex-1{flex:1}.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulseRing{0%{opacity:.7;transform:scale(.9)}70%{opacity:0;transform:scale(1.25)}to{opacity:0;transform:scale(1.25)}}.animate-pulseRing{animation:2s cubic-bezier(.22,.61,.36,1) infinite pulseRing}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:1s linear infinite spin}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\[230px_minmax\(0\,1fr\)\]{grid-template-columns:230px minmax(0,1fr)}.grid-cols-\[248px_minmax\(540px\,1fr\)_346px\]{grid-template-columns:248px minmax(540px,1fr) 346px}.grid-cols-\[290px_minmax\(0\,1fr\)\]{grid-template-columns:290px minmax(0,1fr)}.grid-cols-\[minmax\(0\,1fr\)_360px\]{grid-template-columns:minmax(0,1fr) 360px}.grid-cols-\[minmax\(0\,1fr\)_400px\]{grid-template-columns:minmax(0,1fr) 400px}.grid-cols-\[minmax\(540px\,1\.15fr\)_minmax\(420px\,0\.85fr\)\]{grid-template-columns:minmax(540px,1.15fr) minmax(420px,.85fr)}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-3\.5{gap:.875rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-8{gap:2rem}.gap-\[3px\]{gap:3px}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-amber-200{--tw-border-opacity:1;border-color:rgb(253 230 138/var(--tw-border-opacity,1))}.border-brand-100{--tw-border-opacity:1;border-color:rgb(222 230 255/var(--tw-border-opacity,1))}.border-brand-200{--tw-border-opacity:1;border-color:rgb(192 206 255/var(--tw-border-opacity,1))}.border-brand-400{--tw-border-opacity:1;border-color:rgb(98 131 244/var(--tw-border-opacity,1))}.border-brand-500{--tw-border-opacity:1;border-color:rgb(61 95 232/var(--tw-border-opacity,1))}.border-down\/25{border-color:#0fa07040}.border-ink-700\/40{border-color:#333c4866}.border-line{--tw-border-opacity:1;border-color:rgb(232 235 240/var(--tw-border-opacity,1))}.border-line\/50{border-color:#e8ebf080}.border-line\/60{border-color:#e8ebf099}.border-transparent{border-color:#0000}.border-up\/25{border-color:#e03e3e40}.border-white\/15{border-color:#ffffff26}.bg-amber-400{--tw-bg-opacity:1;background-color:rgb(251 191 36/var(--tw-bg-opacity,1))}.bg-amber-400\/25{background-color:#fbbf2440}.bg-amber-50\/50{background-color:#fffbeb80}.bg-amber-50\/60{background-color:#fffbeb99}.bg-amber-50\/70{background-color:#fffbebb3}.bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity,1))}.bg-brand-50{--tw-bg-opacity:1;background-color:rgb(239 243 255/var(--tw-bg-opacity,1))}.bg-brand-50\/50{background-color:#eff3ff80}.bg-brand-50\/60{background-color:#eff3ff99}.bg-brand-50\/70{background-color:#eff3ffb3}.bg-brand-50\/80{background-color:#eff3ffcc}.bg-brand-500\/10{background-color:#3d5fe81a}.bg-brand-500\/\[0\.07\]{background-color:#3d5fe812}.bg-brand-600{--tw-bg-opacity:1;background-color:rgb(44 72 206/var(--tw-bg-opacity,1))}.bg-canvas{--tw-bg-opacity:1;background-color:rgb(244 246 249/var(--tw-bg-opacity,1))}.bg-down-soft{--tw-bg-opacity:1;background-color:rgb(230 246 240/var(--tw-bg-opacity,1))}.bg-down-soft\/40{background-color:#e6f6f066}.bg-down-soft\/55{background-color:#e6f6f08c}.bg-down\/15{background-color:#0fa07026}.bg-down\/25{background-color:#0fa07040}.bg-emerald-400\/75{background-color:#34d399bf}.bg-gold-soft{--tw-bg-opacity:1;background-color:rgb(251 243 224/var(--tw-bg-opacity,1))}.bg-ink-800{--tw-bg-opacity:1;background-color:rgb(29 36 45/var(--tw-bg-opacity,1))}.bg-ink-900{--tw-bg-opacity:1;background-color:rgb(14 19 25/var(--tw-bg-opacity,1))}.bg-ink-900\/20{background-color:#0e131933}.bg-ink-900\/40{background-color:#0e131966}.bg-ink-900\/45{background-color:#0e131973}.bg-line{--tw-bg-opacity:1;background-color:rgb(232 235 240/var(--tw-bg-opacity,1))}.bg-paper{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-paper\/70{background-color:#ffffffb3}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.bg-slate-soft{--tw-bg-opacity:1;background-color:rgb(241 243 246/var(--tw-bg-opacity,1))}.bg-slate-soft\/30{background-color:#f1f3f64d}.bg-slate-soft\/35{background-color:#f1f3f659}.bg-slate-soft\/40{background-color:#f1f3f666}.bg-slate-soft\/45{background-color:#f1f3f673}.bg-slate-soft\/50{background-color:#f1f3f680}.bg-slate-soft\/70{background-color:#f1f3f6b3}.bg-up{--tw-bg-opacity:1;background-color:rgb(224 62 62/var(--tw-bg-opacity,1))}.bg-up-soft{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.bg-up-soft\/40{background-color:#fdeded66}.bg-up-soft\/55{background-color:#fdeded8c}.bg-up-soft\/95{background-color:#fdededf2}.bg-up\/15{background-color:#e03e3e26}.bg-up\/25{background-color:#e03e3e40}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\/10{background-color:#ffffff1a}.bg-white\/5{background-color:#ffffff0d}.bg-white\/70{background-color:#ffffffb3}.bg-white\/95{background-color:#fffffff2}.bg-gradient-to-r{background-image:linear-gradient(to right, var(--tw-gradient-stops))}.from-amber-400{--tw-gradient-from:#fbbf24 var(--tw-gradient-from-position);--tw-gradient-to:#fbbf2400 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.to-red-400{--tw-gradient-to:#f87171 var(--tw-gradient-to-position)}.fill-ink-900{fill:#0e1319}.p-0\.5{padding:.125rem}.p-1\.5{padding:.375rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2\.5{padding-bottom:.625rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-8{padding-left:2rem}.pr-2\.5{padding-right:.625rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-2\.5{padding-top:.625rem}.pt-3{padding-top:.75rem}.pt-3\.5{padding-top:.875rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-2xs{font-size:10px;line-height:14px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[22px\]{font-size:22px}.text-\[26px\]{font-size:26px}.text-\[28px\]{font-size:28px}.text-\[9px\]{font-size:9px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-amber-300{--tw-text-opacity:1;color:rgb(252 211 77/var(--tw-text-opacity,1))}.text-amber-300\/90{color:#fcd34de6}.text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity,1))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity,1))}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity,1))}.text-amber-900{--tw-text-opacity:1;color:rgb(120 53 15/var(--tw-text-opacity,1))}.text-amber-950{--tw-text-opacity:1;color:rgb(69 26 3/var(--tw-text-opacity,1))}.text-brand-500{--tw-text-opacity:1;color:rgb(61 95 232/var(--tw-text-opacity,1))}.text-brand-600{--tw-text-opacity:1;color:rgb(44 72 206/var(--tw-text-opacity,1))}.text-brand-700{--tw-text-opacity:1;color:rgb(35 57 165/var(--tw-text-opacity,1))}.text-down{--tw-text-opacity:1;color:rgb(15 160 112/var(--tw-text-opacity,1))}.text-down-deep{--tw-text-opacity:1;color:rgb(10 122 85/var(--tw-text-opacity,1))}.text-emerald-200{--tw-text-opacity:1;color:rgb(167 243 208/var(--tw-text-opacity,1))}.text-emerald-300{--tw-text-opacity:1;color:rgb(110 231 183/var(--tw-text-opacity,1))}.text-gold{--tw-text-opacity:1;color:rgb(176 129 37/var(--tw-text-opacity,1))}.text-ink-300{--tw-text-opacity:1;color:rgb(194 200 209/var(--tw-text-opacity,1))}.text-ink-400{--tw-text-opacity:1;color:rgb(148 156 168/var(--tw-text-opacity,1))}.text-ink-500{--tw-text-opacity:1;color:rgb(107 116 128/var(--tw-text-opacity,1))}.text-ink-600{--tw-text-opacity:1;color:rgb(74 84 98/var(--tw-text-opacity,1))}.text-ink-700{--tw-text-opacity:1;color:rgb(51 60 72/var(--tw-text-opacity,1))}.text-ink-800{--tw-text-opacity:1;color:rgb(29 36 45/var(--tw-text-opacity,1))}.text-ink-900{--tw-text-opacity:1;color:rgb(14 19 25/var(--tw-text-opacity,1))}.text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity,1))}.text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.text-up{--tw-text-opacity:1;color:rgb(224 62 62/var(--tw-text-opacity,1))}.text-up-deep{--tw-text-opacity:1;color:rgb(181 38 38/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-white\/40{color:#fff6}.text-white\/45{color:#ffffff73}.text-white\/50{color:#ffffff80}.text-white\/55{color:#ffffff8c}.text-white\/80{color:#fffc}.opacity-45{opacity:.45}.opacity-50{opacity:.5}.opacity-55{opacity:.55}.opacity-75{opacity:.75}.shadow-card{--tw-shadow:0 1px 2px #1018280a, 0 1px 3px #1018280f;--tw-shadow-colored:0 1px 2px var(--tw-shadow-color), 0 1px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.shadow-pop{--tw-shadow:0 8px 24px #1018281f, 0 24px 48px #1018281a;--tw-shadow-colored:0 8px 24px var(--tw-shadow-color), 0 24px 48px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.outline-none{outline-offset:2px;outline:2px solid #0000}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow,0 0 #0000)}.ring-brand-200{--tw-ring-opacity:1;--tw-ring-color:rgb(192 206 255/var(--tw-ring-opacity,1))}.ring-brand-300{--tw-ring-opacity:1;--tw-ring-color:rgb(147 172 251/var(--tw-ring-opacity,1))}.ring-emerald-400\/40{--tw-ring-color:#34d39966}.ring-red-400\/40{--tw-ring-color:#f8717166}.blur-2xl{--tw-blur:blur(40px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-3xl{--tw-blur:blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-\[1px\]{--tw-backdrop-blur:blur(1px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-\[2px\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-shadow{transition-property:box-shadow;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-smooth{transition-timing-function:cubic-bezier(.22,.61,.36,1)}.dark-card{color:#e8edf5;background:linear-gradient(160deg,#1b2431 0%,#131a25 100%)}.dark-card-soft{background:linear-gradient(160deg,#202b3a 0%,#16202d 100%)}.last\:border-0:last-child{border-width:0}.hover\:border-brand-200:hover{--tw-border-opacity:1;border-color:rgb(192 206 255/var(--tw-border-opacity,1))}.hover\:border-brand-300:hover{--tw-border-opacity:1;border-color:rgb(147 172 251/var(--tw-border-opacity,1))}.hover\:bg-brand-100:hover{--tw-bg-opacity:1;background-color:rgb(222 230 255/var(--tw-bg-opacity,1))}.hover\:bg-brand-50\/30:hover{background-color:#eff3ff4d}.hover\:bg-brand-50\/40:hover{background-color:#eff3ff66}.hover\:bg-brand-50\/60:hover{background-color:#eff3ff99}.hover\:bg-brand-700:hover{--tw-bg-opacity:1;background-color:rgb(35 57 165/var(--tw-bg-opacity,1))}.hover\:bg-ink-900:hover{--tw-bg-opacity:1;background-color:rgb(14 19 25/var(--tw-bg-opacity,1))}.hover\:bg-slate-soft:hover{--tw-bg-opacity:1;background-color:rgb(241 243 246/var(--tw-bg-opacity,1))}.hover\:bg-up\/15:hover{background-color:#e03e3e26}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.hover\:text-brand-700:hover{--tw-text-opacity:1;color:rgb(35 57 165/var(--tw-text-opacity,1))}.hover\:text-ink-700:hover{--tw-text-opacity:1;color:rgb(51 60 72/var(--tw-text-opacity,1))}.hover\:text-ink-800:hover{--tw-text-opacity:1;color:rgb(29 36 45/var(--tw-text-opacity,1))}.hover\:text-ink-900:hover{--tw-text-opacity:1;color:rgb(14 19 25/var(--tw-text-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-lift:hover{--tw-shadow:0 4px 12px #10182814, 0 12px 28px #10182814;--tw-shadow-colored:0 4px 12px var(--tw-shadow-color), 0 12px 28px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.focus\:border-brand-300:focus{--tw-border-opacity:1;border-color:rgb(147 172 251/var(--tw-border-opacity,1))}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow,0 0 #0000)}.focus\:ring-brand-100:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(222 230 255/var(--tw-ring-opacity,1))}.focus-visible\:outline-none:focus-visible{outline-offset:2px;outline:2px solid #0000}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-brand-400\/60:focus-visible{--tw-ring-color:#6283f499}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px}.active\:bg-brand-700:active{--tw-bg-opacity:1;background-color:rgb(35 57 165/var(--tw-bg-opacity,1))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-brand-200:disabled{--tw-bg-opacity:1;background-color:rgb(192 206 255/var(--tw-bg-opacity,1))}.disabled\:bg-ink-300:disabled{--tw-bg-opacity:1;background-color:rgb(194 200 209/var(--tw-bg-opacity,1))}.disabled\:text-ink-300:disabled{--tw-text-opacity:1;color:rgb(194 200 209/var(--tw-text-opacity,1))}.disabled\:text-white\/70:disabled{color:#ffffffb3}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:shadow-none:disabled{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.disabled\:hover\:border-line:hover:disabled{--tw-border-opacity:1;border-color:rgb(232 235 240/var(--tw-border-opacity,1))}@media (width>=1024px){.lg\:grid{display:grid}} diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/client/index.html b/plugins/alphamao1/kline-intuition-lab/miniapp/client/index.html new file mode 100644 index 00000000..be84d0d2 --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/client/index.html @@ -0,0 +1,14 @@ + + + + + + + K线价格行为实战台 + + + + +
+ + diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/miniapp.json b/plugins/alphamao1/kline-intuition-lab/miniapp/miniapp.json new file mode 100644 index 00000000..4ad47e4c --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/miniapp.json @@ -0,0 +1,32 @@ +{ + "schemaVersion": 1, + "artifacts": { + "client": [ + "./miniapp/client" + ], + "node": [ + "./miniapp/node" + ] + }, + "runtime": { + "kind": "process", + "entry": "./miniapp/node/server.mjs", + "lifecycle": "on-demand" + }, + "surface": { + "path": "/dashboard", + "window": { + "width": 1440, + "height": 940, + "minWidth": 1080, + "minHeight": 700, + "resizable": true + } + }, + "mcpEndpoints": [], + "hostConnectorAccess": { + "providers": [ + "thsifind" + ] + } +} diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/node/custom/host-connector-value.mjs b/plugins/alphamao1/kline-intuition-lab/miniapp/node/custom/host-connector-value.mjs new file mode 100644 index 00000000..6e1c9efb --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/node/custom/host-connector-value.mjs @@ -0,0 +1,53 @@ +const MAX_JSON_STRING_LAYERS = 4; + +/** + * Decode the raw `HostConnectorCallResult.value` root without changing provider-owned fields. + * + * A probe may observe exactly one text-block array as a provider transport shape. Only when that + * exact shape appears, remove it once and decode JSON-looking strings from its `text`. Every other + * JSON value passes through unchanged and provider-owned fields are never traversed or rewritten. + * + * @param {unknown} value + * @returns {unknown} + */ +export function decodeHostConnectorValue(value) { + if (!isExactSingleTextBlockEnvelope(value)) return value; + let current = value[0].text; + + for (let layer = 0; typeof current === 'string' && looksLikeEncodedJson(current); layer += 1) { + if (layer === MAX_JSON_STRING_LAYERS) { + fail( + 'HOST_CONNECTOR_VALUE_NESTING_EXCEEDED', + `Host Connector value exceeded ${MAX_JSON_STRING_LAYERS} JSON string layers`, + ); + } + try { + current = JSON.parse(current); + } catch { + fail('HOST_CONNECTOR_VALUE_MALFORMED_JSON', 'Host Connector value is not valid JSON'); + } + } + + return current; +} + +function isExactSingleTextBlockEnvelope(value) { + if (!Array.isArray(value) || value.length !== 1 || !isRecord(value[0])) return false; + const block = value[0]; + return Object.keys(block).length === 2 && block.type === 'text' && typeof block.text === 'string'; +} + +function looksLikeEncodedJson(value) { + const first = value.trimStart()[0]; + return first === '"' || first === '{' || first === '['; +} + +function isRecord(value) { + return typeof value === 'object' && value !== null && !Array.isArray(value); +} + +function fail(code, message) { + const error = new Error(message); + error.code = code; + throw error; +} diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/node/custom/ifind.mjs b/plugins/alphamao1/kline-intuition-lab/miniapp/node/custom/ifind.mjs new file mode 100644 index 00000000..09006eac --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/node/custom/ifind.mjs @@ -0,0 +1,345 @@ +/** + * 任意新 A 股代码接入: + * 1) 通过宿主 Host Connector 调用同花顺 iFinD,按 90 自然日分片拉取前复权日 K; + * 2) 每个分片过闸门(日期全覆盖 + 前复权口径 + OHLC 合法 + 涨跌幅自洽)才落盘; + * 3) 交给随包的 Python 助手跑形态扫描 + 三重障碍标签 + LightGBM 推理与 TreeSHAP 解释; + * 4) 生成的新关卡并入本地关卡池,随包持久化在 dataDir。 + */ +import { spawn } from 'node:child_process'; +import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs'; +import { dirname, join } from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { decodeHostConnectorValue } from './host-connector-value.mjs'; + +const HERE = dirname(fileURLToPath(import.meta.url)); +const NODE_DIR = join(HERE, '..'); +const PY_DIR = join(NODE_DIR, 'py'); +const DATA_DIR = join(NODE_DIR, 'data'); + +const START = '2021-11-01'; +const END = '2026-11-26'; +const CHUNK_DAYS = 90; +const MAX_ATTEMPT = 3; + +const WORDINGS = [ + '{name}({code}) 前复权日K线与复权因子,{s}至{e},指标:开盘价、最高价、最低价、收盘价、成交量、涨跌幅、成交额、复权因子', + '{name}({code}) 前复权的日K线,指标:开盘价、最高价、最低价、收盘价、成交量、涨跌幅、成交额、复权因子,{s}至{e}', + '{code} 日K线(前复权),{s}至{e},指标:开盘价、最高价、最低价、收盘价、成交量、涨跌幅、成交额、复权因子', +]; + +const CANON = { + 日期: 'date', 开盘价: 'open', 最高价: 'high', 最低价: 'low', 收盘价: 'close', + 成交量: 'volume', 涨跌幅: 'pct', 成交额: 'amount', 成交金额: 'amount', + 复权因子: 'factor', 证券代码: 'code', 证券简称: 'name', +}; + +// ------------------------------------------------------------------ 工具 +function normalizeCode(raw) { + const s = String(raw || '').trim().toUpperCase().replace(/\s+/g, ''); + if (!s) throw new Error('请填写股票代码'); + if (/^\d{6}\.(SH|SZ|BJ)$/.test(s)) return s; + if (/^\d{6}$/.test(s)) { + const head = s[0]; + if (head === '6') return `${s}.SH`; + if (head === '0' || head === '3') return `${s}.SZ`; + if (head === '8' || head === '4' || head === '9') return `${s}.BJ`; + throw new Error(`无法识别交易所前缀:${s}`); + } + if (/^(SH|SZ|BJ)\d{6}$/.test(s)) { + const ex = s.slice(0, 2); + return `${s.slice(2)}.${ex}`; + } + throw new Error(`股票代码格式无法识别:${raw}(请使用如 002415.SZ 或 600519 的写法)`); +} + +function splitHeader(h) { + const name = String(h).split('(')[0].split('(')[0].trim(); + const m = /单位[::]\s*([^))]*)/.exec(String(h)); + return { name, unit: m ? m[1].trim() : null }; +} + +function normCell(v) { + if (v === null || v === undefined) return null; + const s = String(v).trim().replace(/\t/g, '').replace(/\u00a0/g, ''); + return s === '' || ['-', '--', 'None', 'null', 'N/A'].includes(s) ? null : s; +} + +function parseAnswer(answer) { + const blocks = []; + let cur = []; + for (const ln of String(answer || '').split('\n')) { + if (ln.startsWith('|')) cur.push(ln); + else if (cur.length) { blocks.push(cur); cur = []; } + } + if (cur.length) blocks.push(cur); + let kb = null; + for (const b of blocks) { + if (b[0] && b[0].includes('日期') && b[0].includes('收盘价')) { kb = b; break; } + } + if (!kb) return { rows: [], units: {} }; + const hdr = kb[0].replace(/^\||\|$/g, '').split('|').map(normCell); + const fields = []; + const units = {}; + for (const h of hdr) { + const { name, unit } = splitHeader(h || ''); + const f = CANON[name]; + fields.push(f); + if (f && unit) units[f] = unit; + } + const rows = []; + for (const ln of kb.slice(2)) { + const cells = ln.replace(/^\||\|$/g, '').split('|').map(normCell); + if (cells.length !== hdr.length) continue; + const r = {}; + for (let i = 0; i < cells.length; i++) { + const f = fields[i]; + if (f) r[f] = cells[i]; + } + if (r.date && /^\d{8}$/.test(r.date)) { + r.date = `${r.date.slice(0, 4)}-${r.date.slice(4, 6)}-${r.date.slice(6, 8)}`; + rows.push(r); + } + } + return { rows, units }; +} + +function fnum(x) { + if (x === null || x === undefined || x === '') return null; + const v = Number(String(x).replace(/,/g, '')); + return Number.isFinite(v) ? v : null; +} + +/** 分片闸门:日期全覆盖 + 前复权口径 + OHLC 合法 + 涨跌幅自洽。 */ +function gate(inner, expectDates, wantCode) { + const data = (inner && inner.data) || {}; + const { rows, units } = parseAnswer(data.answer || ''); + if (!rows.length) return { ok: false, reason: '未返回行情表' }; + if (wantCode) { + const codes = new Set(rows.map((r) => r.code).filter(Boolean)); + if (codes.size && (codes.size !== 1 || !codes.has(wantCode))) { + return { ok: false, reason: `证券代码不匹配:${[...codes].join('/')}` }; + } + } + const got = new Set(rows.map((r) => r.date)); + const missing = [...expectDates].filter((d) => !got.has(d)); + if (missing.length) return { ok: false, reason: `日期覆盖不全,缺 ${missing.length} 天` }; + + const params = data.indicators_params || {}; + for (const k of ['开盘价', '最高价', '最低价', '收盘价', '涨跌幅']) { + const adj = params[k] && params[k]['复权方式']; + if (!adj || !String(adj).startsWith('前复权')) { + return { ok: false, reason: `${k} 口径为 ${adj || '未知'},不是前复权` }; + } + } + const need = ['date', 'open', 'high', 'low', 'close', 'volume', 'pct']; + const have = Object.keys(rows[0]); + for (const k of need) if (!have.includes(k)) return { ok: false, reason: `缺少字段 ${k}` }; + + let prevClose = null; + for (const r of rows.slice().sort((a, b) => (a.date < b.date ? -1 : 1))) { + const o = fnum(r.open); const h = fnum(r.high); const l = fnum(r.low); + const c = fnum(r.close); const pc = fnum(r.pct); const v = fnum(r.volume); + if ([o, h, l, c].some((x) => x === null)) continue; + if (Math.min(o, h, l, c) <= 0 || h < Math.max(o, c) || l > Math.min(o, c) || h < l) { + return { ok: false, reason: `OHLC 非法 @${r.date}` }; + } + if (prevClose !== null && pc !== null) { + const dev = Math.abs(pc - (c / prevClose - 1) * 100); + if (dev > 0.8) return { ok: false, reason: `涨跌幅不自洽 @${r.date}` }; + } + prevClose = c; + r._v = v; + r._o = o; r._h = h; r._l = l; r._c = c; r._pc = pc; + } + const volUnit = units.volume || ''; + return { ok: true, rows, units: { volume: volUnit } }; +} + +/** 从宿主返回的原始值里取出 provider 的内层 JSON。 */ +function extractInner(value) { + let v = value; + if (typeof v === 'string') { + try { v = JSON.parse(v); } catch { return null; } + } + if (!v || typeof v !== 'object') return null; + if (v.data && v.data.answer) return v; + const containers = [v.content, v.blocks, v.result, v.output]; + for (const c of containers) { + if (typeof c === 'string') { + try { const j = JSON.parse(c); if (j && j.data && j.data.answer) return j; } catch { /* ignore */ } + continue; + } + if (!Array.isArray(c)) continue; + for (const b of c) { + if (b && typeof b.text === 'string') { + try { const j = JSON.parse(b.text); if (j && j.data && j.data.answer) return j; } catch { /* ignore */ } + } + } + } + return null; +} + +function dateRange(start, end) { + const out = []; + const d = new Date(`${start}T00:00:00Z`); + const last = new Date(`${end}T00:00:00Z`); + while (d <= last) { + out.push(d.toISOString().slice(0, 10)); + d.setUTCDate(d.getUTCDate() + 1); + } + return out; +} + +function shiftDays(dateStr, days) { + const d = new Date(`${dateStr}T00:00:00Z`); + d.setUTCDate(d.getUTCDate() + days); + return d.toISOString().slice(0, 10); +} + +function buildCsv(rows) { + const head = '日期,开盘价,最高价,最低价,收盘价,成交量(股),涨跌幅(%),成交额(元),复权因子'; + const lines = [head]; + for (const r of rows) { + lines.push([ + r.date, r._o, r._h, r._l, r._c, + r._v === null || r._v === undefined ? '' : Math.round(r._v), + r._pc === null || r._pc === undefined ? '' : Number(r._pc.toFixed(4)), + '', '', + ].join(',')); + } + return lines.join('\n') + '\n'; +} + +function runPython(args, cwd) { + return new Promise((resolve, reject) => { + const py = process.env.MINIAPP_PYTHON || (process.platform === 'win32' ? 'python' : 'python3'); + const child = spawn(py, args, { cwd, windowsHide: true }); + let out = ''; + let err = ''; + child.stdout.on('data', (d) => { out += d.toString(); }); + child.stderr.on('data', (d) => { err += d.toString(); }); + child.on('error', (e) => reject(new Error(`无法启动 Python 助手:${e.message}`))); + child.on('close', (code) => { + if (code === 0) resolve({ out, err }); + else reject(new Error((err || out || `Python 助手退出码 ${code}`).trim().slice(-500))); + }); + }); +} + +/** + * 拉取任意新 A 股并生成关卡。 + * @param {object} context Mini App 运行时上下文 + * @param {import('../store.mjs').Store} store + * @param {{code:string,name?:string}} body + */ +export async function fetchCustomLevels(context, store, body) { + const code = normalizeCode(body.code); + const name = String(body.name || '').trim() || code; + + if (!context.hostConnector) { + throw new Error('当前宿主未启用 iFinD 连接器(hostConnectorAccess 未授权或宿主版本不支持),无法拉取新标的。'); + } + const inv = await context.hostConnector.list(); + const tool = (inv.tools || []).find( + (t) => t.provider === 'thsifind' && t.name === 'get_security_indicators', + ) || (inv.tools || []).find((t) => t.provider === 'thsifind'); + if (!tool) { + const names = (inv.tools || []).map((t) => `${t.provider}/${t.name}`).join(', ') || '(空)'; + throw new Error(`未找到同花顺 iFinD 的行情工具,可用工具:${names}`); + } + + const allDates = dateRange(START, END); + const shards = []; + for (let i = 0; i < allDates.length; i += CHUNK_DAYS) { + shards.push(allDates.slice(i, i + CHUNK_DAYS)); + } + + const rows = []; + const failures = []; + for (let si = 0; si < shards.length; si++) { + const shard = shards[si]; + const s = shard[0]; + const e = shard[shard.length - 1]; + const expect = new Set(shard); + let done = false; + let lastReason = ''; + for (let attempt = 0; attempt < MAX_ATTEMPT && !done; attempt++) { + const wording = WORDINGS[attempt % WORDINGS.length]; + const query = wording.replace(/\{name\}/g, name).replace(/\{code\}/g, code) + .replace(/\{s\}/g, s).replace(/\{e\}/g, e); + let inner = null; + try { + const res = await context.hostConnector.call(tool.toolRef, { market: 'A股', query }, { signal: context.signal }); + inner = extractInner(decodeHostConnectorValue(res.value)); + } catch (e) { + lastReason = `调用失败:${(e && e.code) || e && e.message || '未知错误'}`; + await new Promise((r) => setTimeout(r, 1200)); + continue; + } + if (!inner) { lastReason = '返回结果无法解析为行情表'; await new Promise((r) => setTimeout(r, 800)); continue; } + if (inner.code !== undefined && Number(inner.code) !== 1) { + lastReason = `接口返回 code=${inner.code}:${String(inner.msg || '').slice(0, 120)}`; + await new Promise((r) => setTimeout(r, 1200)); + continue; + } + const g = gate(inner, expect, code); + if (!g.ok) { + lastReason = g.reason; + await new Promise((r) => setTimeout(r, 900)); + continue; + } + rows.push(...g.rows); + done = true; + } + if (!done) failures.push(`${s}~${e}: ${lastReason}`); + if (context.signal && context.signal.aborted) throw new Error('已取消'); + } + + if (failures.length) { + const preview = failures.slice(0, 3).join(';'); + throw new Error(`行情分片未通过校验(${failures.length}/${shards.length} 片):${preview}${failures.length > 3 ? ' …' : ''}`); + } + + // 合并去重 + 排序 + const byDate = new Map(); + for (const r of rows) byDate.set(r.date, r); + const merged = [...byDate.values()].sort((a, b) => (a.date < b.date ? -1 : 1)); + if (merged.length < 200) throw new Error(`有效交易日只有 ${merged.length} 天,不足以计算指标`); + + const workDir = join(context.dataDir, 'custom'); + if (!existsSync(workDir)) mkdirSync(workDir, { recursive: true }); + const csvPath = join(workDir, `${code}.csv`); + const outPath = join(workDir, `${code}.levels.json`); + writeFileSync(csvPath, buildCsv(merged), 'utf8'); + + await runPython([ + join(HERE, 'levels_helper.py'), + '--csv', csvPath, + '--index-csv', join(DATA_DIR, 'hs300.csv'), + '--code', code, + '--name', name, + '--out', outPath, + '--py-dir', PY_DIR, + '--library', join(DATA_DIR, 'curated_levels.json'), + ], PY_DIR); + + if (!existsSync(outPath)) throw new Error('Python 助手未产出关卡文件'); + const newLevels = JSON.parse(readFileSync(outPath, 'utf8')); + if (!Array.isArray(newLevels) || !newLevels.length) throw new Error('该标的没有生成任何关卡'); + + // 并入本地自定义关卡池(同代码则整体替换) + const custom = store.readCustomLevels().filter((l) => l.code !== code); + const merged2 = custom.concat(newLevels); + store.writeCustomLevels(merged2); + + const byPattern = {}; + for (const l of newLevels) byPattern[l.pattern] = (byPattern[l.pattern] || 0) + 1; + return { + code, + name, + levels: newLevels.length, + byPattern, + rows: merged.length, + range: [merged[0].date, merged[merged.length - 1].date], + }; +} diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/node/custom/levels_helper.py b/plugins/alphamao1/kline-intuition-lab/miniapp/node/custom/levels_helper.py new file mode 100644 index 00000000..de9f1464 --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/node/custom/levels_helper.py @@ -0,0 +1,127 @@ +# -*- coding: utf-8 -*- +"""Mini App 自定义标的关卡助手:转发到 pa_scan.py 生成价格行为关卡。 + +用法(旧版命令行参数名保持不变,Node 侧无需改动): + python levels_helper.py --csv <新标的CSV> --index-csv <沪深300CSV> \ + --code 002415.SZ --name 海康威视 --out <输出JSON> --py-dir \ + [--library <内置关卡 json 路径>] [--max-levels 12] + +行为: + - 调用 pa_scan.py(同一 py 目录)完成扫描与关卡装配,输出为「关卡数组」; + - --library 仅用于去重参考:若内置关卡库里已有同 id(代码|日期|母题)的关卡, + 则从本次结果中剔除,避免 Node 侧关卡池出现重复条目; + - pa_scan.py 失败时,把可读报错写到 stderr 并以非 0 退出码结束。 +""" +from __future__ import annotations + +import argparse +import json +import os +import subprocess +import sys + + +def _load_library_ids(path: str) -> set: + """读取内置关卡库里的关卡 id(兼容 {levels:[...]} 与裸数组两种结构)。""" + if not path or not os.path.exists(path): + return set() + try: + with open(path, encoding="utf-8") as f: + data = json.load(f) + except Exception: + return set() + if isinstance(data, dict): + items = data.get("levels", []) + elif isinstance(data, list): + items = data + else: + items = [] + return {x.get("id") for x in items if isinstance(x, dict) and x.get("id")} + + +def main() -> int: + ap = argparse.ArgumentParser(description="自定义标的关卡助手(转发 pa_scan.py)") + ap.add_argument("--csv", required=True) + ap.add_argument("--index-csv", required=False, default="") + ap.add_argument("--code", required=True) + ap.add_argument("--name", required=True) + ap.add_argument("--out", required=True) + ap.add_argument("--py-dir", required=True) + ap.add_argument("--library", default="") + ap.add_argument("--max-levels", type=int, default=12) + # 旧版遗留参数:pa_scan 的前置/推演 K 线根数固定为 60/15,此处仅兼容接收 + ap.add_argument("--past-bars", type=int, default=60) + ap.add_argument("--future-bars", type=int, default=15) + args = ap.parse_args() + + py_dir = os.path.abspath(args.py_dir) + scan_py = os.path.join(py_dir, "pa_scan.py") + if not os.path.exists(scan_py): + print(f"[levels_helper] 找不到 pa_scan.py:{scan_py}", file=sys.stderr) + return 2 + + cmd = [ + sys.executable, scan_py, + "--csv", args.csv, + "--code", args.code, + "--name", args.name, + "--out", args.out, + "--max-levels", str(args.max_levels), + ] + if args.index_csv: + cmd += ["--index-csv", args.index_csv] + + try: + proc = subprocess.run(cmd, capture_output=True, text=True, + encoding="utf-8", errors="replace") + except Exception as exc: # 启动失败 + print(f"[levels_helper] 调用 pa_scan.py 失败:{exc}", file=sys.stderr) + return 3 + + if proc.stdout: + print(proc.stdout.rstrip()) + if proc.returncode != 0: + err = (proc.stderr or "").strip() + print(f"[levels_helper] pa_scan.py 退出码 {proc.returncode}", file=sys.stderr) + if err: + print(err, file=sys.stderr) + return proc.returncode or 4 + + # 读取结果并按内置关卡库去重(--library 仅作去重参考) + try: + with open(args.out, encoding="utf-8") as f: + levels = json.load(f) + except Exception as exc: + print(f"[levels_helper] 读取输出关卡失败:{exc}", file=sys.stderr) + return 5 + if not isinstance(levels, list): + print("[levels_helper] 输出格式错误:应为关卡数组", file=sys.stderr) + return 5 + + dropped = 0 + lib_ids = _load_library_ids(args.library) + if lib_ids: + kept = [] + for lv in levels: + if isinstance(lv, dict) and lv.get("id") in lib_ids: + dropped += 1 + continue + kept.append(lv) + if dropped: + with open(args.out, "w", encoding="utf-8") as f: + json.dump(kept, f, ensure_ascii=False, separators=(",", ":")) + levels = kept + + by_motif = {} + for lv in levels: + key = lv.get("motif", "?") + by_motif[key] = by_motif.get(key, 0) + 1 + print(json.dumps({ + "code": args.code, "name": args.name, "levels": len(levels), + "byMotif": by_motif, "deduped": dropped, + }, ensure_ascii=False)) + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/node/data/curated_levels.json b/plugins/alphamao1/kline-intuition-lab/miniapp/node/data/curated_levels.json new file mode 100644 index 00000000..8a7159bc --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/node/data/curated_levels.json @@ -0,0 +1,33985 @@ +{ + "meta": { + "version": "pa-v2-clean24", + "total": 24, + "past_bars": 60, + "future_bars": 15, + "motifs": [ + { + "key": "breakout_follow", + "cn": "箱体突破 · 真主升 vs 假突破陷阱", + "short_cn": "箱体突破真伪", + "cycle": "交易区间突破尝试", + "skill": "invalid_cut", + "bullets": [ + "突破首日仅作假设,次日跟随定真伪", + "跌回箱体上沿即触发 80% 区间陷阱法则" + ] + }, + { + "key": "ema20_pullback", + "cn": "强趋势通道 · 回踩 20EMA vs 破位转势", + "short_cn": "趋势回踩 20EMA", + "cycle": "上升趋势通道", + "skill": "follow_add", + "bullets": [ + "上升通道不追高,等回踩 20EMA 二次入场(H2)", + "放量阴线击穿均线且反抽受阻则通道终结" + ] + }, + { + "key": "wedge_climax_low", + "cn": "急跌衰竭 · 楔形底反转 vs 抄底接飞刀", + "short_cn": "急跌楔形反转", + "cycle": "抛售高潮 / 三推楔形底", + "skill": "cycle_read", + "bullets": [ + "三推斜率衰减或长下影承接仅可轻仓试探", + "跌穿 T0 反转棒最低点说明是下跌中继" + ] + }, + { + "key": "climax_wedge_top", + "cn": "高位加速 · 抢购高潮逃顶 vs 旗形洗盘", + "short_cn": "高位高潮逃顶", + "cycle": "抢购高潮 / 高位分歧", + "skill": "climax_protect", + "bullets": [ + "开局持 70% 获利老仓,练高位分批锁利", + "区分放量破低派发与缩量窄旗形空中加油" + ] + } + ], + "stocks": [ + { + "code": "600519.SH", + "name": "贵州茅台" + }, + { + "code": "600887.SH", + "name": "伊利股份" + }, + { + "code": "300750.SZ", + "name": "宁德时代" + }, + { + "code": "002594.SZ", + "name": "比亚迪" + }, + { + "code": "600036.SH", + "name": "招商银行" + }, + { + "code": "601318.SH", + "name": "中国平安" + }, + { + "code": "600900.SH", + "name": "长江电力" + }, + { + "code": "300308.SZ", + "name": "中际旭创" + }, + { + "code": "002475.SZ", + "name": "立讯精密" + }, + { + "code": "688981.SH", + "name": "中芯国际" + }, + { + "code": "300760.SZ", + "name": "迈瑞医疗" + }, + { + "code": "601899.SH", + "name": "紫金矿业" + } + ], + "model": { + "features": [ + "pa_close_pos", + "pa_body_atr", + "pa_upper_shadow", + "pa_lower_shadow", + "pa_inside_bar", + "pa_outside_engulf", + "pa_ft2_bull", + "pa_ft3_bull", + "pa_overlap5", + "pa_bull_bar_count5", + "pa_ema20_dev_atr", + "pa_ema20_slope_atr", + "pa_box_break_state", + "pa_break_fade", + "pa_wave_slope_decay", + "pa_three_push_wedge", + "pa_climax_exhaustion", + "pa_vol_ratio20", + "pa_vol_body_align", + "pa_mkt_ema20_state" + ], + "base_rate": 0.47, + "conviction_threshold": 65, + "train_range": "2021-11-01 ~ 2025-02-28", + "test_range": "2025-03-01 ~ 2026-11-26", + "oos_auc": 0.5256, + "oof_auc": 0.5254, + "ladder": [ + { + "score": 0, + "hist_win_rate": 0.3924, + "target_position_pct": 0 + }, + { + "score": 10, + "hist_win_rate": 0.4356, + "target_position_pct": 0 + }, + { + "score": 20, + "hist_win_rate": 0.4446, + "target_position_pct": 0 + }, + { + "score": 30, + "hist_win_rate": 0.4538, + "target_position_pct": 0 + }, + { + "score": 40, + "hist_win_rate": 0.4676, + "target_position_pct": 0 + }, + { + "score": 50, + "hist_win_rate": 0.4676, + "target_position_pct": 0 + }, + { + "score": 60, + "hist_win_rate": 0.4676, + "target_position_pct": 0 + }, + { + "score": 70, + "hist_win_rate": 0.4758, + "target_position_pct": 10 + }, + { + "score": 80, + "hist_win_rate": 0.4874, + "target_position_pct": 40 + }, + { + "score": 90, + "hist_win_rate": 0.5088, + "target_position_pct": 70 + }, + { + "score": 100, + "hist_win_rate": 0.515, + "target_position_pct": 100 + } + ] + } + }, + "levels": [ + { + "id": "688981.SH|2026-05-25|breakout_follow", + "code": "688981.SH", + "name": "中芯国际", + "date": "2026-05-25", + "year": 2026, + "segment": "样本外测试段", + "motif": "breakout_follow", + "motif_cn": "箱体突破 · 真主升 vs 假突破陷阱", + "outcome": "failure", + "outcome_cn": "假突破陷阱:无跟随大阴跌回箱体", + "thesis": "识破区间突破无跟随的多头陷阱,跌回箱体果断清仓躲大跌。", + "initial_position_pct": 0, + "initial_position_note": "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例", + "teaching_note": "专治假突破被套:永远不要在突破首日满仓赌命;一旦次日或第三日实体阴线收回到箱体上沿下方,证明看多前提彻底破灭,当天立刻清仓保命。", + "atr": 7.833, + "close0": 156.0, + "levels": { + "box_high": 137.63, + "box_low": 104.61, + "ema20_t0": 123.073, + "support_20d": 104.61, + "resistance_20d": 157.6, + "support_60d": 91.2, + "resistance_60d": 157.6 + }, + "forward": { + "close0": 156.0, + "atr": 7.833334614553506, + "ret15": -0.16333333333333322, + "max_up_pct": 0.019551282051282204, + "max_dn_pct": -0.23076923076923073, + "max_up_atr": 0.389, + "max_dn_atr": 4.596, + "fwd_range_atr": 4.985, + "fwd_range_pct": 0.2503, + "close_chg_15d": -0.1633, + "max_high": 159.05, + "min_low": 120.0 + }, + "quality": { + "score": 1.0, + "structure_score": 1.0, + "range_atr": 4.985, + "range_pct": 0.2503 + }, + "setup": { + "text": "前 22 日在 104.61~137.63 区间横盘,T0 放量 2.7 倍突破上沿 137.63,表面气势极强。", + "confirm_rule": "突破后站稳箱体上沿 137.63 且继续收阳创新高", + "invalidate_rule": "收盘跌回箱体上沿 137.63 内部(确认假突破多头陷阱)" + }, + "drawings": { + "lines": [ + { + "id": "box_top", + "label": "箱体上沿阻力 137.63", + "color": "#D9383A", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 37, + "price": 137.63 + }, + { + "barIndex": 74, + "price": 137.63 + } + ] + }, + { + "id": "box_bot", + "label": "箱体下沿支撑 104.61", + "color": "#0FA070", + "style": "dashed", + "width": 1, + "step": 1, + "points": [ + { + "barIndex": 37, + "price": 104.61 + }, + { + "barIndex": 74, + "price": 104.61 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "belowBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 突破尝试", + "step": 1 + }, + { + "barIndex": 64, + "pos": "aboveBar", + "color": "#D9383A", + "shape": "arrowDown", + "text": "② T+5 跌回箱体·证伪", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "交易区间突破尝试", + "skill_key": "invalid_cut", + "frame1": { + "title": "战场定性:宽幅交易区间上沿 · 警惕 80% 突破失败法则", + "body": "裸看 T0 那根放量 2.7 倍的大阳线极易让人热血上头满仓追涨;但拉宽视角看前 60 根结构,股价一直困在 104.61~137.63 的震荡箱体里。Al Brooks 反复强调【交易区间 80% 突破失败法则】:主力常在区间上沿拉大阳诱多,没有次日跟随棒验证前,这根阳线随时可能变成多头坟墓。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "cycle" + }, + "frame2": { + "title": "胜负手定格:T+5 阴棒跌回箱体红线下方,杀猪盘实锤", + "body": "生死转折就在 T+5:市场完全没有给出多头跟随,反而收出 大阴趋势棒(实体 0.9×ATR,收在最低点附近),收盘价一举砸穿箱体上沿 137.63 重新跌回箱体内部!在价格行为学里这叫【突破失败(Failed Breakout)】——T0 追进去的多头全线被套,其止损盘随后引发连环下跌(15 日累计杀跌 -16.3%)。T+5 收盘必须无条件砍仓离场!", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 5, + "key_bar_index": 64, + "confirm_rule": "突破后站稳箱体上沿 137.63 且继续收阳创新高", + "invalidate_rule": "收盘跌回箱体上沿 137.63 内部(确认假突破多头陷阱)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "invalid_cut", + "takeaway": "专治假突破被套:永远不要在突破首日满仓赌命;一旦次日或第三日实体阴线收回到箱体上沿下方,证明看多前提彻底破灭,当天立刻清仓保命。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2026-02-25", + "2026-02-26", + "2026-02-27", + "2026-03-02", + "2026-03-03", + "2026-03-04", + "2026-03-05", + "2026-03-06", + "2026-03-09", + "2026-03-10", + "2026-03-11", + "2026-03-12", + "2026-03-13", + "2026-03-16", + "2026-03-17", + "2026-03-18", + "2026-03-19", + "2026-03-20", + "2026-03-23", + "2026-03-24", + "2026-03-25", + "2026-03-26", + "2026-03-27", + "2026-03-30", + "2026-03-31", + "2026-04-01", + "2026-04-02", + "2026-04-03", + "2026-04-07", + "2026-04-08", + "2026-04-09", + "2026-04-10", + "2026-04-13", + "2026-04-14", + "2026-04-15", + "2026-04-16", + "2026-04-17", + "2026-04-20", + "2026-04-21", + "2026-04-22", + "2026-04-23", + "2026-04-24", + "2026-04-27", + "2026-04-28", + "2026-04-29", + "2026-04-30", + "2026-05-06", + "2026-05-07", + "2026-05-08", + "2026-05-11", + "2026-05-12", + "2026-05-13", + "2026-05-14", + "2026-05-15", + "2026-05-18", + "2026-05-19", + "2026-05-20", + "2026-05-21", + "2026-05-22", + "2026-05-25" + ], + "o": [ + 117.0, + 116.13, + 115.03, + 112.88, + 113.23, + 107.32, + 108.6, + 107.0, + 103.97, + 106.9, + 107.23, + 107.0, + 105.02, + 106.31, + 108.54, + 105.78, + 105.01, + 105.2, + 100.01, + 98.9, + 99.67, + 99.55, + 96.0, + 95.8, + 95.8, + 96.4, + 95.5, + 93.41, + 91.5, + 99.02, + 99.4, + 101.0, + 99.85, + 102.1, + 102.05, + 103.5, + 103.82, + 105.93, + 107.33, + 106.8, + 108.88, + 105.58, + 113.25, + 115.24, + 113.35, + 113.31, + 122.0, + 125.11, + 122.9, + 122.99, + 124.44, + 119.0, + 121.92, + 121.0, + 117.4, + 116.16, + 118.0, + 134.0, + 129.33, + 136.0 + ], + "h": [ + 117.5, + 117.23, + 115.87, + 114.2, + 114.75, + 109.7, + 109.26, + 108.34, + 105.79, + 107.75, + 108.8, + 108.55, + 107.83, + 110.32, + 108.58, + 106.88, + 107.69, + 105.72, + 101.99, + 99.37, + 100.94, + 99.7, + 98.39, + 96.19, + 97.4, + 96.7, + 95.79, + 93.94, + 96.99, + 101.54, + 101.2, + 102.79, + 102.8, + 102.28, + 106.1, + 105.0, + 107.3, + 108.6, + 108.15, + 108.08, + 109.12, + 113.25, + 117.69, + 117.64, + 113.82, + 119.88, + 128.12, + 127.48, + 123.19, + 124.57, + 125.44, + 122.5, + 124.04, + 125.0, + 120.34, + 118.88, + 136.63, + 137.63, + 132.18, + 157.6 + ], + "l": [ + 115.85, + 114.29, + 114.32, + 112.3, + 107.69, + 106.12, + 106.09, + 106.17, + 101.63, + 105.7, + 107.0, + 104.95, + 104.5, + 105.5, + 105.99, + 105.25, + 104.51, + 102.18, + 97.4, + 97.25, + 99.28, + 96.55, + 95.87, + 94.0, + 94.0, + 94.81, + 92.51, + 91.76, + 91.2, + 99.02, + 99.2, + 100.68, + 99.72, + 100.38, + 101.8, + 103.0, + 103.27, + 105.01, + 105.68, + 106.5, + 105.2, + 104.61, + 112.6, + 113.02, + 109.78, + 113.3, + 121.74, + 122.22, + 120.05, + 121.9, + 120.0, + 116.04, + 117.0, + 118.48, + 115.6, + 112.68, + 117.5, + 127.1, + 126.5, + 136.0 + ], + "c": [ + 116.13, + 116.65, + 115.0, + 112.53, + 108.31, + 106.69, + 106.9, + 106.5, + 105.14, + 107.28, + 107.1, + 106.01, + 107.06, + 108.6, + 106.02, + 106.6, + 105.96, + 102.18, + 98.04, + 99.25, + 99.99, + 96.88, + 97.5, + 95.83, + 94.05, + 96.33, + 93.2, + 91.78, + 95.62, + 101.18, + 99.72, + 101.01, + 100.64, + 101.52, + 103.91, + 104.18, + 105.23, + 107.96, + 107.46, + 107.87, + 105.98, + 110.96, + 116.58, + 114.0, + 112.47, + 118.73, + 123.1, + 125.34, + 120.31, + 122.52, + 121.98, + 121.86, + 117.9, + 119.02, + 117.62, + 118.82, + 133.81, + 127.22, + 131.33, + 156.0 + ], + "v": [ + 27552856, + 32702183, + 27930878, + 34978475, + 54098700, + 32274958, + 35353181, + 34048616, + 39355967, + 31832190, + 27998297, + 28881977, + 34163326, + 42255497, + 29571804, + 26334592, + 37865595, + 38129475, + 50667126, + 33680326, + 32130643, + 31319889, + 28087527, + 32887003, + 29383903, + 32564808, + 29382832, + 21646163, + 45824231, + 54469712, + 31070000, + 40630000, + 35190000, + 37090000, + 70480000, + 39370000, + 50380000, + 54770000, + 37260000, + 37520000, + 44150000, + 91070000, + 97030000, + 62500000, + 51490000, + 101840000, + 129290000, + 84280000, + 70860000, + 81490000, + 81770000, + 95500000, + 79070000, + 132810000, + 74900000, + 84030000, + 224880000, + 154680000, + 119950000, + 252180000 + ], + "ema20": [ + 118.182, + 118.036, + 117.747, + 117.25, + 116.399, + 115.474, + 114.657, + 113.88, + 113.048, + 112.499, + 111.985, + 111.416, + 111.001, + 110.772, + 110.32, + 109.965, + 109.584, + 108.879, + 107.846, + 107.028, + 106.357, + 105.455, + 104.697, + 103.853, + 102.919, + 102.292, + 101.426, + 100.507, + 100.042, + 100.15, + 100.109, + 100.195, + 100.237, + 100.359, + 100.698, + 101.029, + 101.429, + 102.051, + 102.566, + 103.072, + 103.349, + 104.073, + 105.265, + 106.096, + 106.703, + 107.849, + 109.301, + 110.829, + 111.732, + 112.759, + 113.637, + 114.421, + 114.752, + 115.158, + 115.393, + 115.719, + 117.442, + 118.373, + 119.607, + 123.073 + ] + }, + "future": { + "dates": [ + "2026-05-26", + "2026-05-27", + "2026-05-28", + "2026-05-29", + "2026-06-01", + "2026-06-02", + "2026-06-03", + "2026-06-04", + "2026-06-05", + "2026-06-08", + "2026-06-09", + "2026-06-10", + "2026-06-11", + "2026-06-12", + "2026-06-15" + ], + "o": [ + 150.73, + 150.0, + 146.0, + 150.92, + 139.76, + 132.98, + 132.0, + 131.0, + 131.0, + 120.0, + 123.5, + 125.0, + 124.0, + 131.64, + 128.59 + ], + "h": [ + 154.44, + 153.52, + 159.05, + 152.38, + 140.8, + 135.5, + 138.75, + 137.57, + 134.75, + 124.28, + 128.03, + 131.18, + 129.08, + 134.87, + 131.0 + ], + "l": [ + 145.5, + 145.0, + 146.0, + 138.49, + 132.04, + 129.3, + 131.85, + 130.0, + 126.7, + 120.0, + 120.89, + 124.5, + 123.01, + 124.37, + 124.89 + ], + "c": [ + 149.18, + 146.22, + 153.7, + 139.91, + 132.44, + 132.48, + 134.0, + 134.88, + 127.4, + 121.92, + 127.3, + 125.34, + 127.4, + 124.88, + 130.52 + ], + "v": [ + 179920000, + 123500000, + 160820000, + 153680000, + 100880000, + 92370000, + 99210000, + 77850000, + 93460000, + 78120000, + 76970000, + 66910000, + 62630000, + 81740000, + 72860000 + ], + "ema20": [ + 125.56, + 127.527, + 130.02, + 130.962, + 131.103, + 131.234, + 131.497, + 131.819, + 131.399, + 130.496, + 130.191, + 129.729, + 129.508, + 129.067, + 129.205 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2026-05-25", + "open": 136.0, + "high": 157.6, + "low": 136.0, + "close": 156.0, + "volume": 252180000, + "ema20": 123.073, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 97, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "大阳趋势棒(实体 2.6×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.243, + "push": true, + "impact_pts": 11, + "text": "量价实体匹配 +1.66(放量上涨,量价配合)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0554, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +1.43 倍 ATR(有跟随)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.039, + "push": true, + "impact_pts": 2, + "text": "近 5 日 K 线重叠率 25%(重叠低,通道顺畅)" + } + ] + }, + { + "day": "T+1", + "date": "2026-05-26", + "open": 150.73, + "high": 154.44, + "low": 145.5, + "close": 149.18, + "volume": 179920000, + "ema20": 125.56, + "change_from_t0_pct": -0.0437, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "小阴十字星(实体 0.2×ATR,收在下半区,上影 41%、下影 41%)", + "top3_shap": [ + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0399, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +1.18 倍 ATR(有跟随)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0369, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0269, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+2", + "date": "2026-05-27", + "open": 150.0, + "high": 153.52, + "low": 145.0, + "close": 146.22, + "volume": 123500000, + "ema20": 127.527, + "change_from_t0_pct": -0.0627, + "bullish_edge_score": 77, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "中阴棒(实体 0.5×ATR,收在最低点附近,上影 41%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0427, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.76 倍 ATR(大盘顺风)" + }, + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.0325, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 +0.08(无明显高潮)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0233, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 -0.10(量价背离度低)" + } + ] + }, + { + "day": "T+3", + "date": "2026-05-28", + "open": 146.0, + "high": 159.05, + "low": 146.0, + "close": 153.7, + "volume": 160820000, + "ema20": 130.02, + "change_from_t0_pct": -0.0147, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "大阳趋势棒(实体 1.0×ATR,收在上半区,上影 41%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.063, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +0.76 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0433, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0293, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 -0.040 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+4", + "date": "2026-05-29", + "open": 150.92, + "high": 152.38, + "low": 138.49, + "close": 139.91, + "volume": 153680000, + "ema20": 130.962, + "change_from_t0_pct": -0.1031, + "bullish_edge_score": 86, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "大阴趋势棒(实体 1.4×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.056, + "push": true, + "impact_pts": 3, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0556, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +0.41 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0215, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+5", + "date": "2026-06-01", + "open": 139.76, + "high": 140.8, + "low": 132.04, + "close": 132.44, + "volume": 100880000, + "ema20": 131.103, + "change_from_t0_pct": -0.151, + "bullish_edge_score": 62, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阴趋势棒(实体 0.9×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0272, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 12%(上方压力有限)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.024, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.22 倍 ATR(大盘逆风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0226, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+6", + "date": "2026-06-02", + "open": 132.98, + "high": 135.5, + "low": 129.3, + "close": 132.48, + "volume": 92370000, + "ema20": 131.234, + "change_from_t0_pct": -0.1508, + "bullish_edge_score": 54, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.1×ATR,收在中位犹豫,上影 41%、下影 51%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0724, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +0.65 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0191, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0175, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 +0.26(量价背离度低)" + } + ] + }, + { + "day": "T+7", + "date": "2026-06-03", + "open": 132.0, + "high": 138.75, + "low": 131.85, + "close": 134.0, + "volume": 99210000, + "ema20": 131.497, + "change_from_t0_pct": -0.141, + "bullish_edge_score": 71, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 20, + "candle": "长上影拒绝棒(流星线)(实体 0.3×ATR,收在下半区,上影 69%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0448, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.87 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0228, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0215, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 2%(下方承接一般)" + } + ] + }, + { + "day": "T+8", + "date": "2026-06-04", + "open": 131.0, + "high": 137.57, + "low": 130.0, + "close": 134.88, + "volume": 77850000, + "ema20": 131.819, + "change_from_t0_pct": -0.1354, + "bullish_edge_score": 54, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阳棒(实体 0.5×ATR,收在上半区,上影 36%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0858, + "push": false, + "impact_pts": -4, + "text": "沪深300 相对 20EMA +0.39 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0347, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 36%(上方被明显拒绝,抛压重)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0239, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 -0.36(放量下跌,派发嫌疑)" + } + ] + }, + { + "day": "T+9", + "date": "2026-06-05", + "open": 131.0, + "high": 134.75, + "low": 126.7, + "close": 127.4, + "volume": 93460000, + "ema20": 131.399, + "change_from_t0_pct": -0.1833, + "bullish_edge_score": 59, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.5×ATR,收在最低点附近,上影 47%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.034, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.68 倍 ATR(大盘逆风)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0205, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 +0.23(量价背离度低)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0203, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.579 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+10", + "date": "2026-06-08", + "open": 120.0, + "high": 124.28, + "low": 120.0, + "close": 121.92, + "volume": 78120000, + "ema20": 130.496, + "change_from_t0_pct": -0.2185, + "bullish_edge_score": 65, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在中位犹豫,上影 55%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0153, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 -0.37(放量下跌,派发嫌疑)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0139, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 1 根(买盘一般)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0134, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.584 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+11", + "date": "2026-06-09", + "open": 123.5, + "high": 128.03, + "low": 120.89, + "close": 127.3, + "volume": 76970000, + "ema20": 130.191, + "change_from_t0_pct": -0.184, + "bullish_edge_score": 74, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "中阳棒(实体 0.5×ATR,收在最高点附近,下影 37%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0491, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0256, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.591 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0223, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+12", + "date": "2026-06-10", + "open": 125.0, + "high": 131.18, + "low": 124.5, + "close": 125.34, + "volume": 66910000, + "ema20": 129.729, + "change_from_t0_pct": -0.1965, + "bullish_edge_score": 74, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "长上影拒绝棒(流星线)(实体 0.0×ATR,收在最低点附近,上影 87%)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0397, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.599 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0239, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -0.54 倍 ATR(跌破 20EMA,空头结构)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0234, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + } + ] + }, + { + "day": "T+13", + "date": "2026-06-11", + "open": 124.0, + "high": 129.08, + "low": 123.01, + "close": 127.4, + "volume": 62630000, + "ema20": 129.508, + "change_from_t0_pct": -0.1833, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "中阳棒(实体 0.4×ATR,收在上半区)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0456, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0218, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 -0.130 ATR/日(推动力衰减,楔形/衰竭前兆)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0161, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -0.26 倍 ATR(跌破 20EMA,空头结构)" + } + ] + }, + { + "day": "T+14", + "date": "2026-06-12", + "open": 131.64, + "high": 134.87, + "low": 124.37, + "close": 124.88, + "volume": 81740000, + "ema20": 129.067, + "change_from_t0_pct": -0.1995, + "bullish_edge_score": 79, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "大阴趋势棒(实体 0.9×ATR,收在最低点附近,上影 31%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0276, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.57 倍 ATR(大盘逆风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0244, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.023, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 +0.32(放量上涨,量价配合)" + } + ] + }, + { + "day": "T+15", + "date": "2026-06-15", + "open": 128.59, + "high": 131.0, + "low": 124.89, + "close": 130.52, + "volume": 72860000, + "ema20": 129.205, + "change_from_t0_pct": -0.1633, + "bullish_edge_score": 53, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在最高点附近,下影 61%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0689, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +0.72 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0352, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 8%(上方压力有限)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": -0.0262, + "push": false, + "impact_pts": -2, + "text": "收盘位置强度 92%(收在当日最高附近,多方掌握收盘权)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2026-05-25", + "candle": "大阳趋势棒(实体 2.6×ATR,收在最高点附近)", + "signal": "前 22 日在 104.61~137.63 区间横盘,T0 放量 2.7 倍突破上沿 137.63,表面气势极强。", + "hypothesis": "战场定性:宽幅交易区间上沿 · 警惕 80% 突破失败法则", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 97, + "ai_position_pct": 90 + }, + "pivots": [ + { + "day": "T+5", + "date": "2026-06-01", + "candle": "大阴趋势棒(实体 0.9×ATR,收在最低点附近)", + "signal": "胜负手定格:T+5 阴棒跌回箱体红线下方,杀猪盘实锤", + "verdict": "原假设被证伪失效", + "change_from_t0_pct": -0.151, + "bullish_edge_score": 62, + "ai_position_pct": 0 + } + ], + "summary": "15 个交易日收盘累计 -16.3%(期间最高 +2.0% / 最低 -23.1%)。", + "confirm_rule": "突破后站稳箱体上沿 137.63 且继续收阳创新高", + "invalidate_rule": "收盘跌回箱体上沿 137.63 内部(确认假突破多头陷阱)" + } + }, + { + "id": "601899.SH|2022-04-13|breakout_follow", + "code": "601899.SH", + "name": "紫金矿业", + "date": "2022-04-13", + "year": 2022, + "segment": "训练段", + "motif": "breakout_follow", + "motif_cn": "箱体突破 · 真主升 vs 假突破陷阱", + "outcome": "failure", + "outcome_cn": "假突破陷阱:无跟随大阴跌回箱体", + "thesis": "识破区间突破无跟随的多头陷阱,跌回箱体果断清仓躲大跌。", + "initial_position_pct": 0, + "initial_position_note": "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例", + "teaching_note": "专治假突破被套:永远不要在突破首日满仓赌命;一旦次日或第三日实体阴线收回到箱体上沿下方,证明看多前提彻底破灭,当天立刻清仓保命。", + "atr": 0.426, + "close0": 11.248, + "levels": { + "box_high": 10.817, + "box_low": 8.366, + "ema20_t0": 10.325, + "support_20d": 8.366, + "resistance_20d": 11.436, + "support_60d": 8.366, + "resistance_60d": 11.436 + }, + "forward": { + "close0": 11.2478, + "atr": 0.42626232008063286, + "ret15": -0.21787371752698304, + "max_up_pct": 0.03032593040416809, + "max_dn_pct": -0.22904923629509766, + "max_up_atr": 0.8, + "max_dn_atr": 6.044, + "fwd_range_atr": 6.844, + "fwd_range_pct": 0.2594, + "close_chg_15d": -0.2179, + "max_high": 11.589, + "min_low": 8.671 + }, + "quality": { + "score": 0.9963, + "structure_score": 0.9963, + "range_atr": 6.844, + "range_pct": 0.2594 + }, + "setup": { + "text": "前 22 日在 8.37~10.82 区间横盘,T0 放量 2.0 倍突破上沿 10.82,表面气势极强。", + "confirm_rule": "突破后站稳箱体上沿 10.82 且继续收阳创新高", + "invalidate_rule": "收盘跌回箱体上沿 10.82 内部(确认假突破多头陷阱)" + }, + "drawings": { + "lines": [ + { + "id": "box_top", + "label": "箱体上沿阻力 10.82", + "color": "#D9383A", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 37, + "price": 10.817 + }, + { + "barIndex": 74, + "price": 10.817 + } + ] + }, + { + "id": "box_bot", + "label": "箱体下沿支撑 8.37", + "color": "#0FA070", + "style": "dashed", + "width": 1, + "step": 1, + "points": [ + { + "barIndex": 37, + "price": 8.366 + }, + { + "barIndex": 74, + "price": 8.366 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "belowBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 突破尝试", + "step": 1 + }, + { + "barIndex": 62, + "pos": "aboveBar", + "color": "#D9383A", + "shape": "arrowDown", + "text": "② T+3 跌回箱体·证伪", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "交易区间突破尝试", + "skill_key": "invalid_cut", + "frame1": { + "title": "战场定性:宽幅交易区间上沿 · 警惕 80% 突破失败法则", + "body": "裸看 T0 那根放量 2.0 倍的大阳线极易让人热血上头满仓追涨;但拉宽视角看前 60 根结构,股价一直困在 8.37~10.82 的震荡箱体里。Al Brooks 反复强调【交易区间 80% 突破失败法则】:主力常在区间上沿拉大阳诱多,没有次日跟随棒验证前,这根阳线随时可能变成多头坟墓。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "cycle" + }, + "frame2": { + "title": "胜负手定格:T+3 阴棒跌回箱体红线下方,杀猪盘实锤", + "body": "生死转折就在 T+3:市场完全没有给出多头跟随,反而收出 长下影承接棒(Pin Bar)(实体 0.2×ATR,收在中位犹豫,上影 31%、下影 44%),收盘价一举砸穿箱体上沿 10.82 重新跌回箱体内部!在价格行为学里这叫【突破失败(Failed Breakout)】——T0 追进去的多头全线被套,其止损盘随后引发连环下跌(15 日累计杀跌 -21.8%)。T+3 收盘必须无条件砍仓离场!", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 3, + "key_bar_index": 62, + "confirm_rule": "突破后站稳箱体上沿 10.82 且继续收阳创新高", + "invalidate_rule": "收盘跌回箱体上沿 10.82 内部(确认假突破多头陷阱)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "invalid_cut", + "takeaway": "专治假突破被套:永远不要在突破首日满仓赌命;一旦次日或第三日实体阴线收回到箱体上沿下方,证明看多前提彻底破灭,当天立刻清仓保命。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2022-01-11", + "2022-01-12", + "2022-01-13", + "2022-01-14", + "2022-01-17", + "2022-01-18", + "2022-01-19", + "2022-01-20", + "2022-01-21", + "2022-01-24", + "2022-01-25", + "2022-01-26", + "2022-01-27", + "2022-01-28", + "2022-02-07", + "2022-02-08", + "2022-02-09", + "2022-02-10", + "2022-02-11", + "2022-02-14", + "2022-02-15", + "2022-02-16", + "2022-02-17", + "2022-02-18", + "2022-02-21", + "2022-02-22", + "2022-02-23", + "2022-02-24", + "2022-02-25", + "2022-02-28", + "2022-03-01", + "2022-03-02", + "2022-03-03", + "2022-03-04", + "2022-03-07", + "2022-03-08", + "2022-03-09", + "2022-03-10", + "2022-03-11", + "2022-03-14", + "2022-03-15", + "2022-03-16", + "2022-03-17", + "2022-03-18", + "2022-03-21", + "2022-03-22", + "2022-03-23", + "2022-03-24", + "2022-03-25", + "2022-03-28", + "2022-03-29", + "2022-03-30", + "2022-03-31", + "2022-04-01", + "2022-04-06", + "2022-04-07", + "2022-04-08", + "2022-04-11", + "2022-04-12", + "2022-04-13" + ], + "o": [ + 8.456, + 8.519, + 9.183, + 8.977, + 8.842, + 8.752, + 8.932, + 9.049, + 9.093, + 9.093, + 9.147, + 9.156, + 9.156, + 8.869, + 9.004, + 9.228, + 9.345, + 9.892, + 10.117, + 9.928, + 9.991, + 9.722, + 9.82, + 10.18, + 10.0, + 10.027, + 9.973, + 9.767, + 9.776, + 9.874, + 10.081, + 10.198, + 10.341, + 10.601, + 10.781, + 10.269, + 10.305, + 9.883, + 9.776, + 9.65, + 9.04, + 8.707, + 9.246, + 9.3, + 9.713, + 9.82, + 10.233, + 10.26, + 10.458, + 10.269, + 10.323, + 10.395, + 10.35, + 10.207, + 10.341, + 10.278, + 10.413, + 10.772, + 10.503, + 10.575 + ], + "h": [ + 8.519, + 9.057, + 9.39, + 8.986, + 8.851, + 9.057, + 8.986, + 9.165, + 9.291, + 9.246, + 9.381, + 9.219, + 9.156, + 8.968, + 9.228, + 9.291, + 9.776, + 10.242, + 10.431, + 10.09, + 10.009, + 9.901, + 10.162, + 10.18, + 10.216, + 10.108, + 10.0, + 10.135, + 10.027, + 10.126, + 10.108, + 10.341, + 10.853, + 10.745, + 10.925, + 10.584, + 10.413, + 10.0, + 9.856, + 9.74, + 9.102, + 9.111, + 9.417, + 9.596, + 9.928, + 10.225, + 10.233, + 10.62, + 10.601, + 10.494, + 10.53, + 10.395, + 10.494, + 10.404, + 10.575, + 10.485, + 10.817, + 10.79, + 10.584, + 11.436 + ], + "l": [ + 8.42, + 8.519, + 9.022, + 8.779, + 8.6, + 8.681, + 8.824, + 9.022, + 8.95, + 9.075, + 9.066, + 8.959, + 8.887, + 8.627, + 8.995, + 9.093, + 9.309, + 9.892, + 9.919, + 9.848, + 9.659, + 9.668, + 9.803, + 9.946, + 9.91, + 9.838, + 9.722, + 9.731, + 9.56, + 9.74, + 9.848, + 10.153, + 10.341, + 10.341, + 10.53, + 9.964, + 9.713, + 9.668, + 9.56, + 9.372, + 8.546, + 8.366, + 9.111, + 9.192, + 9.47, + 9.785, + 10.036, + 10.251, + 10.305, + 10.099, + 10.296, + 10.189, + 10.099, + 10.054, + 10.233, + 10.216, + 10.404, + 10.305, + 10.26, + 10.53 + ], + "c": [ + 8.465, + 8.986, + 9.031, + 8.815, + 8.69, + 8.923, + 8.878, + 9.084, + 9.219, + 9.237, + 9.075, + 9.138, + 8.896, + 8.761, + 9.201, + 9.291, + 9.677, + 10.063, + 9.928, + 9.928, + 9.785, + 9.812, + 10.117, + 10.081, + 9.982, + 10.054, + 9.803, + 9.874, + 9.829, + 10.072, + 10.009, + 10.233, + 10.655, + 10.395, + 10.62, + 10.242, + 10.117, + 9.856, + 9.856, + 9.381, + 8.573, + 9.084, + 9.246, + 9.542, + 9.874, + 10.144, + 10.18, + 10.512, + 10.341, + 10.377, + 10.404, + 10.287, + 10.18, + 10.278, + 10.413, + 10.35, + 10.727, + 10.485, + 10.485, + 11.248 + ], + "v": [ + 107030000, + 438180000, + 389070000, + 195310000, + 197780000, + 247710000, + 159290000, + 278930000, + 293430000, + 179100000, + 228660000, + 140690000, + 177750000, + 148020000, + 242640000, + 190470000, + 393840000, + 526340000, + 353530000, + 236090000, + 214790000, + 162690000, + 277800000, + 183980000, + 154310000, + 191080000, + 260730000, + 437360000, + 284300000, + 305740000, + 202570000, + 320060000, + 455230000, + 295240000, + 417810000, + 411160000, + 307830000, + 289720000, + 198190000, + 216690000, + 378220000, + 293760000, + 213100000, + 196940000, + 235030000, + 254420000, + 170920000, + 267410000, + 201680000, + 192200000, + 139370000, + 179690000, + 148370000, + 131870000, + 137550000, + 123730000, + 323990000, + 245760000, + 170560000, + 415820000 + ], + "ema20": [ + 8.763, + 8.784, + 8.808, + 8.808, + 8.797, + 8.809, + 8.816, + 8.841, + 8.877, + 8.911, + 8.927, + 8.947, + 8.942, + 8.925, + 8.951, + 8.984, + 9.05, + 9.146, + 9.221, + 9.288, + 9.335, + 9.381, + 9.451, + 9.511, + 9.556, + 9.603, + 9.622, + 9.646, + 9.664, + 9.703, + 9.732, + 9.779, + 9.863, + 9.914, + 9.981, + 10.006, + 10.016, + 10.001, + 9.987, + 9.93, + 9.8, + 9.732, + 9.686, + 9.672, + 9.691, + 9.734, + 9.777, + 9.847, + 9.894, + 9.94, + 9.984, + 10.013, + 10.029, + 10.053, + 10.087, + 10.112, + 10.171, + 10.201, + 10.228, + 10.325 + ] + }, + "future": { + "dates": [ + "2022-04-14", + "2022-04-15", + "2022-04-18", + "2022-04-19", + "2022-04-20", + "2022-04-21", + "2022-04-22", + "2022-04-25", + "2022-04-26", + "2022-04-27", + "2022-04-28", + "2022-04-29", + "2022-05-05", + "2022-05-06", + "2022-05-09" + ], + "o": [ + 11.32, + 11.158, + 10.862, + 10.952, + 10.611, + 10.198, + 9.785, + 9.767, + 9.533, + 9.138, + 9.785, + 9.722, + 9.803, + 9.327, + 8.95 + ], + "h": [ + 11.589, + 11.544, + 10.952, + 11.095, + 10.772, + 10.305, + 10.278, + 9.964, + 9.569, + 9.874, + 9.794, + 9.946, + 9.82, + 9.354, + 8.968 + ], + "l": [ + 11.149, + 10.844, + 10.664, + 10.691, + 10.233, + 9.794, + 9.614, + 9.453, + 9.057, + 9.12, + 9.497, + 9.587, + 9.506, + 8.977, + 8.671 + ], + "c": [ + 11.436, + 10.889, + 10.79, + 10.772, + 10.269, + 9.883, + 10.171, + 9.533, + 9.192, + 9.776, + 9.695, + 9.937, + 9.731, + 9.04, + 8.797 + ], + "v": [ + 258290000, + 351870000, + 167340000, + 225670000, + 232400000, + 188970000, + 193630000, + 249780000, + 234310000, + 292470000, + 158310000, + 229880000, + 247030000, + 338450000, + 297420000 + ], + "ema20": [ + 10.431, + 10.474, + 10.504, + 10.53, + 10.505, + 10.446, + 10.42, + 10.335, + 10.226, + 10.183, + 10.137, + 10.118, + 10.081, + 9.982, + 9.869 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2022-04-13", + "open": 10.575, + "high": 11.436, + "low": 10.53, + "close": 11.248, + "volume": 415820000, + "ema20": 10.325, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 66, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阳趋势棒(实体 1.6×ATR,收在上半区)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.0522, + "push": false, + "impact_pts": -2, + "text": "三推向下楔形" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0514, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.97(放量上涨,量价配合)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0313, + "push": true, + "impact_pts": 2, + "text": "距 20EMA +2.17 倍 ATR(站在 20EMA 之上,多头结构)" + } + ] + }, + { + "day": "T+1", + "date": "2022-04-14", + "open": 11.32, + "high": 11.589, + "low": 11.149, + "close": 11.436, + "volume": 258290000, + "ema20": 10.431, + "change_from_t0_pct": 0.0168, + "bullish_edge_score": 25, + "hist_win_rate": 0.4446, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "小阳十字星(实体 0.3×ATR,收在上半区,上影 35%、下影 39%)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.2264, + "push": false, + "impact_pts": -10, + "text": "三推向下楔形" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0858, + "push": false, + "impact_pts": -4, + "text": "20EMA 斜率 +0.75 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0616, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA -0.42 倍 ATR(大盘逆风)" + } + ] + }, + { + "day": "T+2", + "date": "2022-04-15", + "open": 11.158, + "high": 11.544, + "low": 10.844, + "close": 10.889, + "volume": 351870000, + "ema20": 10.474, + "change_from_t0_pct": -0.0319, + "bullish_edge_score": 22, + "hist_win_rate": 0.4446, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阴棒(实体 0.6×ATR,收在最低点附近,上影 55%)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.1711, + "push": false, + "impact_pts": -8, + "text": "三推向下楔形" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0838, + "push": false, + "impact_pts": -4, + "text": "20EMA 斜率 +0.68 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0609, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA -0.42 倍 ATR(大盘逆风)" + } + ] + }, + { + "day": "T+3", + "date": "2022-04-18", + "open": 10.862, + "high": 10.952, + "low": 10.664, + "close": 10.79, + "volume": 167340000, + "ema20": 10.504, + "change_from_t0_pct": -0.0407, + "bullish_edge_score": 10, + "hist_win_rate": 0.4356, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在中位犹豫,上影 31%、下影 44%)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.2231, + "push": false, + "impact_pts": -10, + "text": "三推向下楔形" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0707, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA -0.63 倍 ATR(大盘逆风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.045, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +0.70 倍 ATR/5日(中期趋势向上)" + } + ] + }, + { + "day": "T+4", + "date": "2022-04-19", + "open": 10.952, + "high": 11.095, + "low": 10.691, + "close": 10.772, + "volume": 225670000, + "ema20": 10.53, + "change_from_t0_pct": -0.0423, + "bullish_edge_score": 40, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阴棒(实体 0.4×ATR,收在下半区,上影 36%)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.1412, + "push": false, + "impact_pts": -6, + "text": "三推向下楔形" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0347, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +0.70 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.0284, + "push": true, + "impact_pts": 2, + "text": "近 3 日净多头实体 -0.39 倍 ATR(空头主导)" + } + ] + }, + { + "day": "T+5", + "date": "2022-04-20", + "open": 10.611, + "high": 10.772, + "low": 10.233, + "close": 10.269, + "volume": 232400000, + "ema20": 10.505, + "change_from_t0_pct": -0.087, + "bullish_edge_score": 67, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "中阴棒(实体 0.8×ATR,收在最低点附近,上影 30%)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.0351, + "push": false, + "impact_pts": -2, + "text": "三推向下楔形" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": -0.0275, + "push": false, + "impact_pts": -2, + "text": "近 5 日 K 线重叠率 34%(重叠低,通道顺畅)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": 0.0124, + "push": true, + "impact_pts": 2, + "text": "量能为前 20 日均量 1.07 倍(量能平稳)" + } + ] + }, + { + "day": "T+6", + "date": "2022-04-21", + "open": 10.198, + "high": 10.305, + "low": 9.794, + "close": 9.883, + "volume": 188970000, + "ema20": 10.446, + "change_from_t0_pct": -0.1213, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "中阴棒(实体 0.7×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.2007, + "push": true, + "impact_pts": 9, + "text": "沪深300 相对 20EMA -2.17 倍 ATR(大盘逆风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.0499, + "push": false, + "impact_pts": -2, + "text": "三推向下楔形" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": -0.0285, + "push": false, + "impact_pts": -2, + "text": "收盘位置强度 18%(收在当日最低附近,空方掌握收盘权)" + } + ] + }, + { + "day": "T+7", + "date": "2022-04-22", + "open": 9.785, + "high": 10.278, + "low": 9.614, + "close": 10.171, + "volume": 193630000, + "ema20": 10.42, + "change_from_t0_pct": -0.0958, + "bullish_edge_score": 55, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阳趋势棒(实体 0.9×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0225, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 16%(上方压力有限)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0212, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.78 倍 ATR(大盘逆风)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": -0.0138, + "push": false, + "impact_pts": -2, + "text": "收盘位置强度 84%(收在当日最高附近,多方掌握收盘权)" + } + ] + }, + { + "day": "T+8", + "date": "2022-04-25", + "open": 9.767, + "high": 9.964, + "low": 9.453, + "close": 9.533, + "volume": 249780000, + "ema20": 10.335, + "change_from_t0_pct": -0.1524, + "bullish_edge_score": 86, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "中阴棒(实体 0.5×ATR,收在最低点附近,上影 39%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1389, + "push": true, + "impact_pts": 6, + "text": "沪深300 相对 20EMA -3.42 倍 ATR(大盘逆风)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": -0.0294, + "push": false, + "impact_pts": -2, + "text": "收盘位置强度 16%(收在当日最低附近,空方掌握收盘权)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": -0.0186, + "push": false, + "impact_pts": -2, + "text": "下影线占振幅 16%(下方承接一般)" + } + ] + }, + { + "day": "T+9", + "date": "2022-04-26", + "open": 9.533, + "high": 9.569, + "low": 9.057, + "close": 9.192, + "volume": 234310000, + "ema20": 10.226, + "change_from_t0_pct": -0.1828, + "bullish_edge_score": 91, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "中阴棒(实体 0.8×ATR,收在下半区)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1611, + "push": true, + "impact_pts": 7, + "text": "沪深300 相对 20EMA -3.38 倍 ATR(大盘逆风)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0388, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.259 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.021, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -2.15 倍 ATR(跌破 20EMA,空头结构)" + } + ] + }, + { + "day": "T+10", + "date": "2022-04-27", + "open": 9.138, + "high": 9.874, + "low": 9.12, + "close": 9.776, + "volume": 292470000, + "ema20": 10.183, + "change_from_t0_pct": -0.1309, + "bullish_edge_score": 81, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "大阳趋势棒(实体 1.5×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0574, + "push": true, + "impact_pts": 3, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0224, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.90 倍 ATR(大盘逆风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0215, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 13%(上方压力有限)" + } + ] + }, + { + "day": "T+11", + "date": "2022-04-28", + "open": 9.785, + "high": 9.794, + "low": 9.497, + "close": 9.695, + "volume": 158310000, + "ema20": 10.137, + "change_from_t0_pct": -0.1381, + "bullish_edge_score": 81, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在上半区,下影 67%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0488, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0354, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -0.63 倍 ATR/5日(中期趋势走弱)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0286, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.50 倍 ATR(大盘逆风)" + } + ] + }, + { + "day": "T+12", + "date": "2022-04-29", + "open": 9.722, + "high": 9.946, + "low": 9.587, + "close": 9.937, + "volume": 229880000, + "ema20": 10.118, + "change_from_t0_pct": -0.1165, + "bullish_edge_score": 82, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "中阳棒(实体 0.5×ATR,收在最高点附近,下影 38%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0612, + "push": true, + "impact_pts": 3, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0449, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -0.63 倍 ATR/5日(中期趋势走弱)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0402, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.203 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+13", + "date": "2022-05-05", + "open": 9.803, + "high": 9.82, + "low": 9.506, + "close": 9.731, + "volume": 247030000, + "ema20": 10.081, + "change_from_t0_pct": -0.1349, + "bullish_edge_score": 71, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 20, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在上半区,下影 71%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.053, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0398, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.205 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0189, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 6%(上方压力有限)" + } + ] + }, + { + "day": "T+14", + "date": "2022-05-06", + "open": 9.327, + "high": 9.354, + "low": 8.977, + "close": 9.04, + "volume": 338450000, + "ema20": 9.982, + "change_from_t0_pct": -0.1963, + "bullish_edge_score": 74, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "中阴棒(实体 0.7×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.049, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0434, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.197 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0169, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -0.49 倍 ATR/5日(中期趋势走弱)" + } + ] + }, + { + "day": "T+15", + "date": "2022-05-09", + "open": 8.95, + "high": 8.968, + "low": 8.671, + "close": 8.797, + "volume": 297420000, + "ema20": 9.869, + "change_from_t0_pct": -0.2179, + "bullish_edge_score": 64, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.4×ATR,收在中位犹豫,下影 42%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0328, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.61 倍 ATR(大盘逆风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0271, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 6%(上方压力有限)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.025, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 -0.042 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2022-04-13", + "candle": "大阳趋势棒(实体 1.6×ATR,收在上半区)", + "signal": "前 22 日在 8.37~10.82 区间横盘,T0 放量 2.0 倍突破上沿 10.82,表面气势极强。", + "hypothesis": "战场定性:宽幅交易区间上沿 · 警惕 80% 突破失败法则", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 66, + "ai_position_pct": 0 + }, + "pivots": [ + { + "day": "T+3", + "date": "2022-04-18", + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在中位犹豫,上影 31%、下影 44%)", + "signal": "胜负手定格:T+3 阴棒跌回箱体红线下方,杀猪盘实锤", + "verdict": "原假设被证伪失效", + "change_from_t0_pct": -0.0407, + "bullish_edge_score": 10, + "ai_position_pct": 0 + } + ], + "summary": "15 个交易日收盘累计 -21.8%(期间最高 +3.0% / 最低 -22.9%)。", + "confirm_rule": "突破后站稳箱体上沿 10.82 且继续收阳创新高", + "invalidate_rule": "收盘跌回箱体上沿 10.82 内部(确认假突破多头陷阱)" + } + }, + { + "id": "601318.SH|2025-03-14|breakout_follow", + "code": "601318.SH", + "name": "中国平安", + "date": "2025-03-14", + "year": 2025, + "segment": "样本外测试段", + "motif": "breakout_follow", + "motif_cn": "箱体突破 · 真主升 vs 假突破陷阱", + "outcome": "failure", + "outcome_cn": "假突破陷阱:无跟随大阴跌回箱体", + "thesis": "识破区间突破无跟随的多头陷阱,跌回箱体果断清仓躲大跌。", + "initial_position_pct": 0, + "initial_position_note": "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例", + "teaching_note": "专治假突破被套:永远不要在突破首日满仓赌命;一旦次日或第三日实体阴线收回到箱体上沿下方,证明看多前提彻底破灭,当天立刻清仓保命。", + "atr": 0.929, + "close0": 48.607, + "levels": { + "box_high": 47.707, + "box_low": 45.453, + "ema20_t0": 46.637, + "support_20d": 45.453, + "resistance_20d": 48.989, + "support_60d": 43.725, + "resistance_60d": 50.77 + }, + "forward": { + "close0": 48.6069, + "atr": 0.929486966302563, + "ret15": -0.09182646908155012, + "max_up_pct": 0.015522487548064179, + "max_dn_pct": -0.12100133931602308, + "max_up_atr": 0.812, + "max_dn_atr": 6.328, + "fwd_range_atr": 7.139, + "fwd_range_pct": 0.1365, + "close_chg_15d": -0.0918, + "max_high": 49.361, + "min_low": 42.725 + }, + "quality": { + "score": 0.8837, + "structure_score": 0.8837, + "range_atr": 7.139, + "range_pct": 0.1365 + }, + "setup": { + "text": "前 22 日在 45.45~47.71 区间横盘,T0 放量 2.6 倍突破上沿 47.71,表面气势极强。", + "confirm_rule": "突破后站稳箱体上沿 47.71 且继续收阳创新高", + "invalidate_rule": "收盘跌回箱体上沿 47.71 内部(确认假突破多头陷阱)" + }, + "drawings": { + "lines": [ + { + "id": "box_top", + "label": "箱体上沿阻力 47.71", + "color": "#D9383A", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 37, + "price": 47.707 + }, + { + "barIndex": 74, + "price": 47.707 + } + ] + }, + { + "id": "box_bot", + "label": "箱体下沿支撑 45.45", + "color": "#0FA070", + "style": "dashed", + "width": 1, + "step": 1, + "points": [ + { + "barIndex": 37, + "price": 45.453 + }, + { + "barIndex": 74, + "price": 45.453 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "belowBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 突破尝试", + "step": 1 + }, + { + "barIndex": 64, + "pos": "aboveBar", + "color": "#D9383A", + "shape": "arrowDown", + "text": "② T+5 跌回箱体·证伪", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "交易区间突破尝试", + "skill_key": "invalid_cut", + "frame1": { + "title": "战场定性:宽幅交易区间上沿 · 警惕 80% 突破失败法则", + "body": "裸看 T0 那根放量 2.6 倍的大阳线极易让人热血上头满仓追涨;但拉宽视角看前 60 根结构,股价一直困在 45.45~47.71 的震荡箱体里。Al Brooks 反复强调【交易区间 80% 突破失败法则】:主力常在区间上沿拉大阳诱多,没有次日跟随棒验证前,这根阳线随时可能变成多头坟墓。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "cycle" + }, + "frame2": { + "title": "胜负手定格:T+5 阴棒跌回箱体红线下方,杀猪盘实锤", + "body": "生死转折就在 T+5:市场完全没有给出多头跟随,反而收出 中阴棒(实体 0.6×ATR,收在最低点附近),收盘价一举砸穿箱体上沿 47.71 重新跌回箱体内部!在价格行为学里这叫【突破失败(Failed Breakout)】——T0 追进去的多头全线被套,其止损盘随后引发连环下跌(15 日累计杀跌 -9.2%)。T+5 收盘必须无条件砍仓离场!", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 5, + "key_bar_index": 64, + "confirm_rule": "突破后站稳箱体上沿 47.71 且继续收阳创新高", + "invalidate_rule": "收盘跌回箱体上沿 47.71 内部(确认假突破多头陷阱)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "invalid_cut", + "takeaway": "专治假突破被套:永远不要在突破首日满仓赌命;一旦次日或第三日实体阴线收回到箱体上沿下方,证明看多前提彻底破灭,当天立刻清仓保命。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2024-12-12", + "2024-12-13", + "2024-12-16", + "2024-12-17", + "2024-12-18", + "2024-12-19", + "2024-12-20", + "2024-12-23", + "2024-12-24", + "2024-12-25", + "2024-12-26", + "2024-12-27", + "2024-12-30", + "2024-12-31", + "2025-01-02", + "2025-01-03", + "2025-01-06", + "2025-01-07", + "2025-01-08", + "2025-01-09", + "2025-01-10", + "2025-01-13", + "2025-01-14", + "2025-01-15", + "2025-01-16", + "2025-01-17", + "2025-01-20", + "2025-01-21", + "2025-01-22", + "2025-01-23", + "2025-01-24", + "2025-01-27", + "2025-02-05", + "2025-02-06", + "2025-02-07", + "2025-02-10", + "2025-02-11", + "2025-02-12", + "2025-02-13", + "2025-02-14", + "2025-02-17", + "2025-02-18", + "2025-02-19", + "2025-02-20", + "2025-02-21", + "2025-02-24", + "2025-02-25", + "2025-02-26", + "2025-02-27", + "2025-02-28", + "2025-03-03", + "2025-03-04", + "2025-03-05", + "2025-03-06", + "2025-03-07", + "2025-03-10", + "2025-03-11", + "2025-03-12", + "2025-03-13", + "2025-03-14" + ], + "o": [ + 49.961, + 50.18, + 48.825, + 48.089, + 48.48, + 47.816, + 48.08, + 47.834, + 48.252, + 48.916, + 48.989, + 48.589, + 48.38, + 48.898, + 47.907, + 46.362, + 45.953, + 45.625, + 45.616, + 45.689, + 45.289, + 44.071, + 44.171, + 44.771, + 44.816, + 44.634, + 45.198, + 45.634, + 45.198, + 45.289, + 45.616, + 46.389, + 46.343, + 45.207, + 45.616, + 46.262, + 46.543, + 45.925, + 46.289, + 46.352, + 47.116, + 46.971, + 46.534, + 46.571, + 46.352, + 46.543, + 46.816, + 46.453, + 47.071, + 46.725, + 45.953, + 45.525, + 45.616, + 46.153, + 46.907, + 46.825, + 46.098, + 46.816, + 46.498, + 46.662 + ], + "h": [ + 50.77, + 50.189, + 49.08, + 48.607, + 48.798, + 48.125, + 48.389, + 48.616, + 48.934, + 49.37, + 49.034, + 48.861, + 48.998, + 49.107, + 47.934, + 46.443, + 46.016, + 45.78, + 45.98, + 45.825, + 45.525, + 44.362, + 45.071, + 45.143, + 45.225, + 45.062, + 45.725, + 45.807, + 45.38, + 46.771, + 46.698, + 46.925, + 46.362, + 45.907, + 46.762, + 46.689, + 46.58, + 46.471, + 47.071, + 47.143, + 47.616, + 47.434, + 47.116, + 46.643, + 46.816, + 47.707, + 47.361, + 47.071, + 47.089, + 46.953, + 46.198, + 45.716, + 45.953, + 47.207, + 47.125, + 46.962, + 46.816, + 46.907, + 46.862, + 48.989 + ], + "l": [ + 49.725, + 48.798, + 48.116, + 47.943, + 48.071, + 47.589, + 47.743, + 47.834, + 48.18, + 48.698, + 48.507, + 47.916, + 48.371, + 47.861, + 45.807, + 45.525, + 45.298, + 45.28, + 45.044, + 45.271, + 44.453, + 43.725, + 44.089, + 44.462, + 44.48, + 44.334, + 45.143, + 45.143, + 44.407, + 45.252, + 45.543, + 46.189, + 45.153, + 45.162, + 45.307, + 46.18, + 45.789, + 45.616, + 46.189, + 46.18, + 46.734, + 46.543, + 46.38, + 46.053, + 45.871, + 46.407, + 46.225, + 46.389, + 46.471, + 45.798, + 45.507, + 45.453, + 45.462, + 45.934, + 46.653, + 46.162, + 45.998, + 46.371, + 46.298, + 46.553 + ], + "c": [ + 50.525, + 48.852, + 48.289, + 48.189, + 48.125, + 48.08, + 47.834, + 48.271, + 48.889, + 48.998, + 48.589, + 48.425, + 48.998, + 47.861, + 46.098, + 45.725, + 45.762, + 45.607, + 45.725, + 45.28, + 44.498, + 44.171, + 44.871, + 44.644, + 44.771, + 44.889, + 45.28, + 45.362, + 44.498, + 45.789, + 46.234, + 46.225, + 45.198, + 45.68, + 46.252, + 46.271, + 45.925, + 46.434, + 46.38, + 46.998, + 47.125, + 46.643, + 46.771, + 46.162, + 46.543, + 47.271, + 46.343, + 46.925, + 46.925, + 45.798, + 45.752, + 45.525, + 45.798, + 46.943, + 46.816, + 46.589, + 46.816, + 46.498, + 46.489, + 48.607 + ], + "v": [ + 52630000, + 88710000, + 65860000, + 53770000, + 50450000, + 40550000, + 46200000, + 55550000, + 49560000, + 41740000, + 37920000, + 53780000, + 53340000, + 67710000, + 94860000, + 55140000, + 41350000, + 39280000, + 51040000, + 40080000, + 52270000, + 51140000, + 61580000, + 45800000, + 41580000, + 46070000, + 49170000, + 41000000, + 53080000, + 96910000, + 61680000, + 52450000, + 58310000, + 41500000, + 72580000, + 43180000, + 38180000, + 44700000, + 59040000, + 59980000, + 62570000, + 65010000, + 46440000, + 51540000, + 66880000, + 83580000, + 64240000, + 53660000, + 54720000, + 80530000, + 42320000, + 37240000, + 45510000, + 104580000, + 48150000, + 61130000, + 52910000, + 47060000, + 41140000, + 150240000 + ], + "ema20": [ + 49.863, + 49.767, + 49.626, + 49.489, + 49.359, + 49.238, + 49.104, + 49.025, + 49.012, + 49.01, + 48.97, + 48.918, + 48.926, + 48.824, + 48.565, + 48.294, + 48.053, + 47.82, + 47.621, + 47.398, + 47.122, + 46.841, + 46.653, + 46.462, + 46.301, + 46.166, + 46.082, + 46.013, + 45.869, + 45.861, + 45.897, + 45.928, + 45.858, + 45.841, + 45.881, + 45.918, + 45.918, + 45.968, + 46.007, + 46.101, + 46.199, + 46.241, + 46.292, + 46.279, + 46.304, + 46.396, + 46.391, + 46.442, + 46.488, + 46.422, + 46.359, + 46.279, + 46.233, + 46.301, + 46.35, + 46.373, + 46.415, + 46.423, + 46.429, + 46.637 + ] + }, + "future": { + "dates": [ + "2025-03-17", + "2025-03-18", + "2025-03-19", + "2025-03-20", + "2025-03-21", + "2025-03-24", + "2025-03-25", + "2025-03-26", + "2025-03-27", + "2025-03-28", + "2025-03-31", + "2025-04-01", + "2025-04-02", + "2025-04-03", + "2025-04-07" + ], + "o": [ + 48.607, + 48.816, + 48.798, + 49.134, + 47.634, + 47.107, + 47.407, + 47.252, + 47.007, + 47.452, + 47.18, + 46.907, + 46.889, + 46.716, + 44.816 + ], + "h": [ + 48.743, + 49.261, + 49.361, + 49.143, + 47.871, + 47.525, + 47.462, + 47.352, + 47.68, + 47.607, + 47.498, + 47.143, + 47.234, + 47.271, + 45.243 + ], + "l": [ + 48.271, + 48.761, + 48.698, + 47.48, + 46.98, + 47.107, + 47.107, + 47.016, + 46.843, + 47.134, + 46.716, + 46.734, + 46.843, + 46.707, + 42.725 + ], + "c": [ + 48.525, + 48.871, + 49.152, + 47.716, + 47.043, + 47.389, + 47.234, + 47.016, + 47.325, + 47.234, + 46.934, + 46.925, + 47.143, + 46.798, + 44.144 + ], + "v": [ + 60520000, + 58770000, + 50990000, + 114070000, + 79570000, + 50870000, + 34440000, + 40400000, + 43220000, + 35370000, + 46840000, + 39430000, + 28330000, + 37330000, + 172760000 + ], + "ema20": [ + 46.816, + 47.012, + 47.216, + 47.264, + 47.243, + 47.257, + 47.254, + 47.232, + 47.241, + 47.24, + 47.211, + 47.184, + 47.18, + 47.143, + 46.858 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2025-03-14", + "open": 46.662, + "high": 48.989, + "low": 46.553, + "close": 48.607, + "volume": 150240000, + "ema20": 46.637, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 96, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "大阳趋势棒(实体 2.1×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.2294, + "push": true, + "impact_pts": 10, + "text": "量价实体匹配 +1.57(放量上涨,量价配合)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0537, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +1.04 倍 ATR(有跟随)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.0523, + "push": false, + "impact_pts": -2, + "text": "三推向下楔形" + } + ] + }, + { + "day": "T+1", + "date": "2025-03-17", + "open": 48.607, + "high": 48.743, + "low": 48.271, + "close": 48.525, + "volume": 60520000, + "ema20": 46.816, + "change_from_t0_pct": -0.0017, + "bullish_edge_score": 29, + "hist_win_rate": 0.4446, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.1×ATR,收在中位犹豫,上影 29%、下影 54%)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.2016, + "push": false, + "impact_pts": -9, + "text": "三推向下楔形" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0778, + "push": false, + "impact_pts": -4, + "text": "沪深300 相对 20EMA +1.28 倍 ATR(大盘顺风)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0392, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +1.00 倍 ATR(有跟随)" + } + ] + }, + { + "day": "T+2", + "date": "2025-03-18", + "open": 48.816, + "high": 49.261, + "low": 48.761, + "close": 48.871, + "volume": 58770000, + "ema20": 47.012, + "change_from_t0_pct": 0.0054, + "bullish_edge_score": 9, + "hist_win_rate": 0.4073, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在下半区,上影 78%)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.2178, + "push": false, + "impact_pts": -10, + "text": "三推向下楔形" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0868, + "push": false, + "impact_pts": -4, + "text": "沪深300 相对 20EMA +1.42 倍 ATR(大盘顺风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0785, + "push": false, + "impact_pts": -4, + "text": "20EMA 斜率 +0.67 倍 ATR/5日(中期趋势向上)" + } + ] + }, + { + "day": "T+3", + "date": "2025-03-19", + "open": 48.798, + "high": 49.361, + "low": 48.698, + "close": 49.152, + "volume": 50990000, + "ema20": 47.216, + "change_from_t0_pct": 0.0112, + "bullish_edge_score": 10, + "hist_win_rate": 0.4356, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "小阳十字星(实体 0.4×ATR,收在上半区,上影 31%)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.2473, + "push": false, + "impact_pts": -11, + "text": "三推向下楔形" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0924, + "push": false, + "impact_pts": -4, + "text": "沪深300 相对 20EMA +1.36 倍 ATR(大盘顺风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0695, + "push": false, + "impact_pts": -3, + "text": "20EMA 斜率 +0.91 倍 ATR/5日(中期趋势向上)" + } + ] + }, + { + "day": "T+4", + "date": "2025-03-20", + "open": 49.134, + "high": 49.143, + "low": 47.48, + "close": 47.716, + "volume": 114070000, + "ema20": 47.264, + "change_from_t0_pct": -0.0183, + "bullish_edge_score": 28, + "hist_win_rate": 0.4446, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阴趋势棒(实体 1.5×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.1685, + "push": false, + "impact_pts": -8, + "text": "三推向下楔形" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0901, + "push": false, + "impact_pts": -4, + "text": "沪深300 相对 20EMA +0.54 倍 ATR(大盘顺风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0459, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +0.90 倍 ATR/5日(中期趋势向上)" + } + ] + }, + { + "day": "T+5", + "date": "2025-03-21", + "open": 47.634, + "high": 47.871, + "low": 46.98, + "close": 47.043, + "volume": 79570000, + "ema20": 47.243, + "change_from_t0_pct": -0.0322, + "bullish_edge_score": 25, + "hist_win_rate": 0.4446, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阴棒(实体 0.6×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.1694, + "push": false, + "impact_pts": -8, + "text": "三推向下楔形" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0633, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA -0.67 倍 ATR(大盘逆风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0472, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +0.66 倍 ATR/5日(中期趋势向上)" + } + ] + }, + { + "day": "T+6", + "date": "2025-03-24", + "open": 47.107, + "high": 47.525, + "low": 47.107, + "close": 47.389, + "volume": 50870000, + "ema20": 47.257, + "change_from_t0_pct": -0.0251, + "bullish_edge_score": 35, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "小阳十字星(实体 0.3×ATR,收在上半区,上影 33%)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.1571, + "push": false, + "impact_pts": -7, + "text": "三推向下楔形" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0704, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA -0.23 倍 ATR(大盘逆风)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.0362, + "push": true, + "impact_pts": 2, + "text": "近 3 日净多头实体 -0.62 倍 ATR(空头主导)" + } + ] + }, + { + "day": "T+7", + "date": "2025-03-25", + "open": 47.407, + "high": 47.462, + "low": 47.107, + "close": 47.234, + "volume": 34440000, + "ema20": 47.254, + "change_from_t0_pct": -0.0282, + "bullish_edge_score": 72, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 20, + "candle": "小阴十字星(实体 0.2×ATR,收在下半区,下影 36%)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.0906, + "push": false, + "impact_pts": -4, + "text": "三推向下楔形" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0886, + "push": true, + "impact_pts": 4, + "text": "量价实体匹配 +0.47(放量上涨,量价配合)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0354, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.27 倍 ATR(大盘逆风)" + } + ] + }, + { + "day": "T+8", + "date": "2025-03-26", + "open": 47.252, + "high": 47.352, + "low": 47.016, + "close": 47.016, + "volume": 40400000, + "ema20": 47.232, + "change_from_t0_pct": -0.0327, + "bullish_edge_score": 81, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "小阴十字星(实体 0.3×ATR,收在最低点附近,上影 30%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0347, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.52 倍 ATR(大盘逆风)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": 0.0214, + "push": true, + "impact_pts": 2, + "text": "收盘位置强度 0%(收在当日最低附近,空方掌握收盘权)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.019, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 30%(上方压力有限)" + } + ] + }, + { + "day": "T+9", + "date": "2025-03-27", + "open": 47.007, + "high": 47.68, + "low": 46.843, + "close": 47.325, + "volume": 43220000, + "ema20": 47.241, + "change_from_t0_pct": -0.0264, + "bullish_edge_score": 58, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.3×ATR,收在中位犹豫,上影 42%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.033, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.20 倍 ATR(大盘逆风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0194, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0179, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.69 倍(缩量)" + } + ] + }, + { + "day": "T+10", + "date": "2025-03-28", + "open": 47.452, + "high": 47.607, + "low": 47.134, + "close": 47.234, + "volume": 35370000, + "ema20": 47.24, + "change_from_t0_pct": -0.0282, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "小阴十字星(实体 0.2×ATR,收在下半区,上影 33%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0701, + "push": true, + "impact_pts": 3, + "text": "量价实体匹配 +0.43(放量上涨,量价配合)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0247, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 33%(上方压力有限)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": 0.0162, + "push": true, + "impact_pts": 2, + "text": "收盘位置强度 21%(收在当日最低附近,空方掌握收盘权)" + } + ] + }, + { + "day": "T+11", + "date": "2025-03-31", + "open": 47.18, + "high": 47.498, + "low": 46.716, + "close": 46.934, + "volume": 46840000, + "ema20": 47.211, + "change_from_t0_pct": -0.0344, + "bullish_edge_score": 71, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 20, + "candle": "小阴十字星(实体 0.3×ATR,收在下半区,上影 41%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0299, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 +0.22(量价背离度低)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.027, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.06 倍 ATR(大盘逆风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0183, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + } + ] + }, + { + "day": "T+12", + "date": "2025-04-01", + "open": 46.907, + "high": 47.143, + "low": 46.734, + "close": 46.925, + "volume": 39430000, + "ema20": 47.184, + "change_from_t0_pct": -0.0346, + "bullish_edge_score": 55, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.0×ATR,收在中位犹豫,上影 53%、下影 42%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0316, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.98 倍 ATR(大盘逆风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0226, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0159, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -1.327 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+13", + "date": "2025-04-02", + "open": 46.889, + "high": 47.234, + "low": 46.843, + "close": 47.143, + "volume": 28330000, + "ema20": 47.18, + "change_from_t0_pct": -0.0301, + "bullish_edge_score": 64, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "小阳十字星(实体 0.3×ATR,收在上半区)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0327, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.99 倍 ATR(大盘逆风)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": 0.0217, + "push": true, + "impact_pts": 2, + "text": "收盘位置强度 77%(收在当日最高附近,多方掌握收盘权)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0199, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -1.375 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+14", + "date": "2025-04-03", + "open": 46.716, + "high": 47.271, + "low": 46.707, + "close": 46.798, + "volume": 37330000, + "ema20": 47.143, + "change_from_t0_pct": -0.0372, + "bullish_edge_score": 64, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在最低点附近,上影 84%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0226, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.40 倍 ATR(大盘逆风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0208, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0204, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -1.399 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+15", + "date": "2025-04-07", + "open": 44.816, + "high": 45.243, + "low": 42.725, + "close": 44.144, + "volume": 172760000, + "ema20": 46.858, + "change_from_t0_pct": -0.0918, + "bullish_edge_score": 90, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "中阴棒(实体 0.7×ATR,收在中位犹豫,下影 56%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1547, + "push": true, + "impact_pts": 7, + "text": "沪深300 相对 20EMA -4.74 倍 ATR(大盘逆风)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0161, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -2.81 倍 ATR(跌破 20EMA,空头结构)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0154, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -1.052 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2025-03-14", + "candle": "大阳趋势棒(实体 2.1×ATR,收在最高点附近)", + "signal": "前 22 日在 45.45~47.71 区间横盘,T0 放量 2.6 倍突破上沿 47.71,表面气势极强。", + "hypothesis": "战场定性:宽幅交易区间上沿 · 警惕 80% 突破失败法则", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 96, + "ai_position_pct": 90 + }, + "pivots": [ + { + "day": "T+5", + "date": "2025-03-21", + "candle": "中阴棒(实体 0.6×ATR,收在最低点附近)", + "signal": "胜负手定格:T+5 阴棒跌回箱体红线下方,杀猪盘实锤", + "verdict": "原假设被证伪失效", + "change_from_t0_pct": -0.0322, + "bullish_edge_score": 25, + "ai_position_pct": 0 + } + ], + "summary": "15 个交易日收盘累计 -9.2%(期间最高 +1.6% / 最低 -12.1%)。", + "confirm_rule": "突破后站稳箱体上沿 47.71 且继续收阳创新高", + "invalidate_rule": "收盘跌回箱体上沿 47.71 内部(确认假突破多头陷阱)" + } + }, + { + "id": "300308.SZ|2025-06-12|breakout_follow", + "code": "300308.SZ", + "name": "中际旭创", + "date": "2025-06-12", + "year": 2025, + "segment": "样本外测试段", + "motif": "breakout_follow", + "motif_cn": "箱体突破 · 真主升 vs 假突破陷阱", + "outcome": "success", + "outcome_cn": "真突破主升:站稳箱体上沿持续跟随", + "thesis": "箱体突破首日试探,确认跟随棒后顺势重仓吃主升。", + "initial_position_pct": 0, + "initial_position_note": "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例", + "teaching_note": "遇到箱体突破:T0 先下 30%~40% 底仓试探,一旦 T+1/T+2 守稳前高红线并走出阳线跟随,果断顺势推高仓位吃满主升段。", + "atr": 4.606, + "close0": 115.104, + "levels": { + "box_high": 110.302, + "box_low": 88.194, + "ema20_t0": 99.127, + "support_20d": 88.194, + "resistance_20d": 118.28, + "support_60d": 66.681, + "resistance_60d": 118.28 + }, + "forward": { + "close0": 115.1043, + "atr": 4.606025638544373, + "ret15": 0.23130239269949082, + "max_up_pct": 0.2704243021329351, + "max_dn_pct": -0.017413771683594703, + "max_up_atr": 6.758, + "max_dn_atr": 0.435, + "fwd_range_atr": 7.193, + "fwd_range_pct": 0.2878, + "close_chg_15d": 0.2313, + "max_high": 146.231, + "min_low": 113.1 + }, + "quality": { + "score": 1.0, + "structure_score": 1.0, + "range_atr": 7.193, + "range_pct": 0.2878 + }, + "setup": { + "text": "前 22 日形成 88.19~110.30 横盘交易区间,T0 放量 2.2 倍收大阳棒站上箱体上沿 110.30。", + "confirm_rule": "T+1~T+3 收盘守稳箱体上沿 110.30 之上并突破 T0 高点(有效多头跟随)", + "invalidate_rule": "收盘重新跌回箱体上沿 110.30 下方(80% 区间假突破陷阱)" + }, + "drawings": { + "lines": [ + { + "id": "box_top", + "label": "箱体上沿阻力 110.30", + "color": "#D9383A", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 37, + "price": 110.302 + }, + { + "barIndex": 74, + "price": 110.302 + } + ] + }, + { + "id": "box_bot", + "label": "箱体下沿支撑 88.19", + "color": "#0FA070", + "style": "dashed", + "width": 1, + "step": 1, + "points": [ + { + "barIndex": 37, + "price": 88.194 + }, + { + "barIndex": 74, + "price": 88.194 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "belowBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 突破尝试", + "step": 1 + }, + { + "barIndex": 61, + "pos": "belowBar", + "color": "#2C48CE", + "shape": "arrowUp", + "text": "② T+2 跟随确认", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "交易区间突破尝试", + "skill_key": "invalid_cut", + "frame1": { + "title": "战场定性:横盘交易区间上沿的突破尝试", + "body": "前 20 多个交易日股价在 88.19~110.30 之间反复拉锯,属于典型的【交易区间(Trading Range)】。Al Brooks 核心铁律:区间内大多数突破尝试容易失败,因此 T0 虽然放量 2.2 倍收在区间上方,此时它只代表“多头提出突破假设”,绝不能一把梭哈,必须看接下来两天的跟随反馈。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "cycle" + }, + "frame2": { + "title": "胜负手定格:T+2 走出强力多头跟随棒,真突破成立", + "body": "关键验证出现在 T+1~T+2:空头未能把价格砸回箱体红线(110.30)下方,反而在 T+2 收出 中阳棒(实体 0.8×ATR,收在中位犹豫,上影 44%) 继续向上推高!这说明箱体上方的追买盘真实有效,市场周期正式从【交易区间】切换为【多头突破主升段】(15 日最终大涨 +23.1%),T+2 正是从试探仓顺势加到重仓的标准右侧节点。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 2, + "key_bar_index": 61, + "confirm_rule": "T+1~T+3 收盘守稳箱体上沿 110.30 之上并突破 T0 高点(有效多头跟随)", + "invalidate_rule": "收盘重新跌回箱体上沿 110.30 下方(80% 区间假突破陷阱)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "invalid_cut", + "takeaway": "遇到箱体突破:T0 先下 30%~40% 底仓试探,一旦 T+1/T+2 守稳前高红线并走出阳线跟随,果断顺势推高仓位吃满主升段。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2025-03-14", + "2025-03-17", + "2025-03-18", + "2025-03-19", + "2025-03-20", + "2025-03-21", + "2025-03-24", + "2025-03-25", + "2025-03-26", + "2025-03-27", + "2025-03-28", + "2025-03-31", + "2025-04-01", + "2025-04-02", + "2025-04-03", + "2025-04-07", + "2025-04-08", + "2025-04-09", + "2025-04-10", + "2025-04-11", + "2025-04-14", + "2025-04-15", + "2025-04-16", + "2025-04-17", + "2025-04-18", + "2025-04-21", + "2025-04-22", + "2025-04-23", + "2025-04-24", + "2025-04-25", + "2025-04-28", + "2025-04-29", + "2025-04-30", + "2025-05-06", + "2025-05-07", + "2025-05-08", + "2025-05-09", + "2025-05-12", + "2025-05-13", + "2025-05-14", + "2025-05-15", + "2025-05-16", + "2025-05-19", + "2025-05-20", + "2025-05-21", + "2025-05-22", + "2025-05-23", + "2025-05-26", + "2025-05-27", + "2025-05-28", + "2025-05-29", + "2025-05-30", + "2025-06-03", + "2025-06-04", + "2025-06-05", + "2025-06-06", + "2025-06-09", + "2025-06-10", + "2025-06-11", + "2025-06-12" + ], + "o": [ + 101.212, + 104.189, + 103.425, + 105.856, + 104.487, + 103.514, + 101.332, + 102.889, + 101.153, + 98.811, + 98.236, + 96.251, + 98.265, + 98.117, + 96.132, + 79.481, + 74.609, + 69.44, + 79.561, + 75.413, + 80.375, + 80.523, + 77.924, + 76.495, + 77.011, + 79.809, + 79.382, + 81.466, + 82.359, + 81.863, + 84.612, + 82.706, + 82.607, + 84.512, + 88.075, + 88.174, + 93.959, + 98.037, + 100.022, + 97.293, + 97.243, + 92.679, + 95.943, + 94.554, + 94.892, + 94.266, + 93.681, + 91.28, + 90.287, + 90.297, + 92.877, + 93.056, + 91.786, + 92.272, + 96.549, + 101.212, + 104.497, + 107.265, + 109.151, + 106.273 + ], + "h": [ + 103.961, + 104.993, + 109.022, + 105.856, + 105.678, + 104.15, + 103.147, + 103.991, + 101.679, + 99.704, + 98.355, + 98.216, + 98.623, + 100.597, + 97.204, + 81.863, + 76.167, + 72.972, + 80.871, + 78.668, + 83.848, + 80.752, + 78.102, + 78.241, + 78.658, + 81.625, + 79.958, + 84.681, + 83.51, + 86.318, + 84.86, + 83.58, + 83.451, + 86.517, + 88.353, + 97.243, + 95.715, + 98.295, + 100.022, + 100.309, + 97.323, + 98.712, + 96.648, + 96.43, + 96.549, + 96.033, + 94.624, + 92.272, + 91.468, + 92.272, + 95.844, + 93.651, + 92.5, + 97.214, + 102.78, + 103.644, + 110.302, + 108.883, + 110.123, + 118.28 + ], + "l": [ + 100.518, + 103.197, + 102.016, + 103.971, + 104.001, + 101.322, + 100.538, + 101.143, + 100.29, + 96.767, + 96.658, + 95.943, + 97.481, + 97.561, + 92.709, + 74.52, + 69.926, + 66.681, + 76.505, + 75.324, + 80.275, + 78.678, + 76.068, + 76.495, + 76.951, + 78.539, + 78.499, + 80.255, + 80.633, + 81.863, + 82.567, + 81.784, + 81.774, + 84.493, + 84.979, + 87.45, + 93.274, + 94.366, + 95.666, + 97.293, + 93.373, + 92.49, + 94.485, + 93.671, + 93.919, + 93.671, + 90.992, + 90.159, + 88.194, + 90.297, + 92.56, + 91.796, + 91.042, + 92.272, + 95.755, + 100.468, + 104.298, + 105.787, + 106.253, + 106.174 + ], + "c": [ + 103.187, + 103.455, + 108.019, + 104.169, + 104.189, + 101.659, + 102.086, + 101.212, + 100.299, + 98.355, + 96.658, + 97.878, + 97.849, + 98.99, + 93.155, + 74.52, + 71.722, + 71.434, + 76.892, + 77.765, + 80.91, + 79.551, + 77.388, + 77.011, + 78.529, + 80.563, + 79.452, + 82.875, + 80.702, + 84.612, + 82.746, + 82.448, + 82.845, + 85.981, + 85.981, + 95.745, + 94.068, + 96.519, + 95.686, + 97.63, + 93.393, + 97.075, + 94.544, + 95.219, + 94.991, + 93.731, + 91.161, + 91.647, + 89.464, + 91.905, + 94.207, + 92.828, + 91.052, + 96.549, + 102.086, + 102.651, + 107.712, + 106.938, + 107.146, + 115.104 + ], + "v": [ + 36706435, + 26441529, + 65239628, + 35279116, + 19889305, + 22733325, + 22978476, + 20722318, + 15909201, + 24205905, + 20128485, + 18250700, + 12295934, + 21827933, + 42498548, + 61630666, + 69279183, + 59550089, + 70926883, + 42893717, + 54892718, + 24980077, + 26670094, + 18492488, + 25754846, + 33202785, + 23616441, + 60823372, + 30617372, + 64475761, + 31121720, + 20764694, + 22442074, + 34750081, + 31463641, + 99173499, + 42305504, + 46824959, + 52215667, + 54556418, + 43481983, + 52169452, + 30567106, + 26424282, + 26224172, + 23977495, + 27309887, + 18761552, + 27821888, + 30626087, + 42242218, + 21296641, + 18333010, + 61162487, + 67768048, + 46803762, + 72691572, + 47918671, + 34304423, + 86486899 + ], + "ema20": [ + 105.583, + 105.381, + 105.632, + 105.493, + 105.369, + 105.015, + 104.736, + 104.401, + 104.01, + 103.471, + 102.823, + 102.352, + 101.923, + 101.643, + 100.835, + 98.329, + 95.795, + 93.475, + 91.895, + 90.55, + 89.632, + 88.672, + 87.597, + 86.589, + 85.821, + 85.32, + 84.761, + 84.582, + 84.212, + 84.25, + 84.107, + 83.949, + 83.844, + 84.048, + 84.232, + 85.328, + 86.161, + 87.147, + 87.96, + 88.881, + 89.311, + 90.05, + 90.478, + 90.93, + 91.317, + 91.547, + 91.51, + 91.523, + 91.327, + 91.382, + 91.651, + 91.763, + 91.695, + 92.157, + 93.103, + 94.012, + 95.317, + 96.424, + 97.445, + 99.127 + ] + }, + "future": { + "dates": [ + "2025-06-13", + "2025-06-16", + "2025-06-17", + "2025-06-18", + "2025-06-19", + "2025-06-20", + "2025-06-23", + "2025-06-24", + "2025-06-25", + "2025-06-26", + "2025-06-27", + "2025-06-30", + "2025-07-01", + "2025-07-02", + "2025-07-03" + ], + "o": [ + 113.626, + 116.017, + 120.076, + 117.595, + 124.094, + 129.514, + 126.824, + 127.9, + 126.525, + 127.123, + 128.687, + 140.971, + 143.053, + 141.967, + 140.941 + ], + "h": [ + 116.98, + 122.497, + 121.257, + 124.63, + 130.301, + 130.69, + 128.847, + 129.484, + 128.209, + 132.682, + 139.746, + 146.052, + 146.231, + 142.067, + 143.302 + ], + "l": [ + 113.1, + 115.997, + 116.99, + 115.204, + 123.138, + 124.304, + 122.221, + 123.835, + 122.74, + 126.605, + 126.087, + 137.494, + 142.216, + 137.614, + 138.969 + ], + "c": [ + 115.749, + 119.639, + 118.438, + 124.094, + 127.82, + 129.016, + 126.615, + 124.782, + 125.26, + 129.215, + 137.883, + 145.315, + 144.757, + 138.411, + 141.728 + ], + "v": [ + 47488879, + 59369856, + 35823676, + 67826342, + 62573477, + 49300523, + 53502446, + 45000554, + 49245712, + 59978741, + 66277872, + 75214393, + 31959141, + 36577096, + 38397875 + ], + "ema20": [ + 100.71, + 102.513, + 104.029, + 105.94, + 108.024, + 110.023, + 111.604, + 112.859, + 114.04, + 115.485, + 117.618, + 120.256, + 122.589, + 124.096, + 125.775 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2025-06-12", + "open": 106.273, + "high": 118.28, + "low": 106.174, + "close": 115.104, + "volume": 86486899, + "ema20": 99.127, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 84, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "大阳趋势棒(实体 1.9×ATR,收在上半区)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0778, + "push": false, + "impact_pts": -4, + "text": "沪深300 相对 20EMA +0.68 倍 ATR(大盘顺风)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0601, + "push": true, + "impact_pts": 3, + "text": "量价实体匹配 +1.23(放量上涨,量价配合)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0506, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 26%(上方压力有限)" + } + ] + }, + { + "day": "T+1", + "date": "2025-06-13", + "open": 113.626, + "high": 116.98, + "low": 113.1, + "close": 115.749, + "volume": 47488879, + "ema20": 100.71, + "change_from_t0_pct": 0.0056, + "bullish_edge_score": 90, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "中阳棒(实体 0.5×ATR,收在上半区,上影 32%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0357, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 3 根(买盘密集)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0315, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +1.19 倍 ATR(有跟随)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0277, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+2", + "date": "2025-06-16", + "open": 116.017, + "high": 122.497, + "low": 115.997, + "close": 119.639, + "volume": 59369856, + "ema20": 102.513, + "change_from_t0_pct": 0.0394, + "bullish_edge_score": 91, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "中阳棒(实体 0.8×ATR,收在中位犹豫,上影 44%)", + "top3_shap": [ + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.1207, + "push": true, + "impact_pts": 5, + "text": "近 3 日净多头实体 +1.05 倍 ATR(跟随持续)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": -0.024, + "push": false, + "impact_pts": -2, + "text": "收盘位置强度 56%(收在当日中位,多空拉锯)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0229, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+3", + "date": "2025-06-17", + "open": 120.076, + "high": 121.257, + "low": 116.99, + "close": 118.438, + "volume": 35823676, + "ema20": 104.029, + "change_from_t0_pct": 0.029, + "bullish_edge_score": 75, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "小阴十字星(实体 0.4×ATR,收在下半区,下影 34%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0318, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.03 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0295, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 3 根(买盘密集)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0282, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+4", + "date": "2025-06-18", + "open": 117.595, + "high": 124.63, + "low": 115.204, + "close": 124.094, + "volume": 67826342, + "ema20": 105.94, + "change_from_t0_pct": 0.0781, + "bullish_edge_score": 89, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "大阳趋势棒(实体 1.4×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0597, + "push": true, + "impact_pts": 3, + "text": "量价实体匹配 +0.65(放量上涨,量价配合)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0273, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 6%(上方压力有限)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0264, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 4 根(买盘密集)" + } + ] + }, + { + "day": "T+5", + "date": "2025-06-19", + "open": 124.094, + "high": 130.301, + "low": 123.138, + "close": 127.82, + "volume": 62573477, + "ema20": 108.024, + "change_from_t0_pct": 0.1105, + "bullish_edge_score": 93, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "中阳棒(实体 0.8×ATR,收在上半区,上影 35%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0358, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.45(放量上涨,量价配合)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0326, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 35%(上方被明显拒绝,抛压重)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0287, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +1.01 倍 ATR(有跟随)" + } + ] + }, + { + "day": "T+6", + "date": "2025-06-20", + "open": 129.514, + "high": 130.69, + "low": 124.304, + "close": 129.016, + "volume": 49300523, + "ema20": 110.023, + "change_from_t0_pct": 0.1209, + "bullish_edge_score": 90, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "长下影承接棒(Pin Bar)(实体 0.1×ATR,收在上半区,下影 74%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0727, + "push": true, + "impact_pts": 3, + "text": "近 5 日强多头棒 3 根(买盘密集)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0256, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": 0.0174, + "push": true, + "impact_pts": 2, + "text": "量能为前 20 日均量 1.09 倍(量能平稳)" + } + ] + }, + { + "day": "T+7", + "date": "2025-06-23", + "open": 126.824, + "high": 128.847, + "low": 122.221, + "close": 126.615, + "volume": 53502446, + "ema20": 111.604, + "change_from_t0_pct": 0.1, + "bullish_edge_score": 89, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "长下影承接棒(Pin Bar)(实体 0.0×ATR,收在上半区,上影 31%、下影 66%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0543, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0256, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": 0.0185, + "push": true, + "impact_pts": 2, + "text": "收盘位置强度 66%(收在当日中位,多空拉锯)" + } + ] + }, + { + "day": "T+8", + "date": "2025-06-24", + "open": 127.9, + "high": 129.484, + "low": 123.835, + "close": 124.782, + "volume": 45000554, + "ema20": 112.859, + "change_from_t0_pct": 0.0841, + "bullish_edge_score": 94, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "中阴棒(实体 0.7×ATR,收在最低点附近,上影 28%)", + "top3_shap": [ + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.036, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 +0.05(无明显高潮)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0337, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.032, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+9", + "date": "2025-06-25", + "open": 126.525, + "high": 128.209, + "low": 122.74, + "close": 125.26, + "volume": 49245712, + "ema20": 114.04, + "change_from_t0_pct": 0.0882, + "bullish_edge_score": 63, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.3×ATR,收在中位犹豫,上影 31%、下影 46%)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.035, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.214 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0227, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +2.33 倍 ATR(大盘顺风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0222, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.50 倍 ATR/5日(中期趋势向上)" + } + ] + }, + { + "day": "T+10", + "date": "2025-06-26", + "open": 127.123, + "high": 132.682, + "low": 126.605, + "close": 129.215, + "volume": 59978741, + "ema20": 115.485, + "change_from_t0_pct": 0.1226, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "长上影拒绝棒(流星线)(实体 0.5×ATR,收在中位犹豫,上影 57%)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0414, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.208 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.0349, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 -0.28(抢购高潮,衰竭倾向)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0235, + "push": true, + "impact_pts": 2, + "text": "距 20EMA +2.48 倍 ATR(站在 20EMA 之上,多头结构)" + } + ] + }, + { + "day": "T+11", + "date": "2025-06-27", + "open": 128.687, + "high": 139.746, + "low": 126.087, + "close": 137.883, + "volume": 66277872, + "ema20": 117.618, + "change_from_t0_pct": 0.1979, + "bullish_edge_score": 55, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阳趋势棒(实体 2.0×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0543, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +0.94 倍 ATR(有跟随)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.048, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.96 倍 ATR(大盘顺风)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": -0.0359, + "push": false, + "impact_pts": -2, + "text": "收盘位置强度 86%(收在当日最高附近,多方掌握收盘权)" + } + ] + }, + { + "day": "T+12", + "date": "2025-06-30", + "open": 140.971, + "high": 146.052, + "low": 137.494, + "close": 145.315, + "volume": 75214393, + "ema20": 120.256, + "change_from_t0_pct": 0.2625, + "bullish_edge_score": 84, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "大阳趋势棒(实体 0.9×ATR,收在最高点附近,下影 41%)", + "top3_shap": [ + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0553, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +1.10 倍 ATR(有跟随)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0407, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.25 倍 ATR(大盘顺风)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0376, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.43(放量上涨,量价配合)" + } + ] + }, + { + "day": "T+13", + "date": "2025-07-01", + "open": 143.053, + "high": 146.231, + "low": 142.216, + "close": 144.757, + "volume": 31959141, + "ema20": 122.589, + "change_from_t0_pct": 0.2576, + "bullish_edge_score": 49, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "小阳十字星(实体 0.4×ATR,收在上半区,上影 37%)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0532, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.188 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0506, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.58 倍(缩量)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0352, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.59 倍 ATR/5日(中期趋势向上)" + } + ] + }, + { + "day": "T+14", + "date": "2025-07-02", + "open": 141.967, + "high": 142.067, + "low": 137.614, + "close": 138.411, + "volume": 36577096, + "ema20": 124.096, + "change_from_t0_pct": 0.2025, + "bullish_edge_score": 69, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "中阴棒(实体 0.8×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0353, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.186 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0296, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.65 倍(缩量)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0246, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 2%(上方压力有限)" + } + ] + }, + { + "day": "T+15", + "date": "2025-07-03", + "open": 140.941, + "high": 143.302, + "low": 138.969, + "close": 141.728, + "volume": 38397875, + "ema20": 125.775, + "change_from_t0_pct": 0.2313, + "bullish_edge_score": 56, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在上半区,上影 36%、下影 46%)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0525, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.189 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0429, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.70 倍(缩量)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0288, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.83 倍 ATR(大盘顺风)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2025-06-12", + "candle": "大阳趋势棒(实体 1.9×ATR,收在上半区)", + "signal": "前 22 日形成 88.19~110.30 横盘交易区间,T0 放量 2.2 倍收大阳棒站上箱体上沿 110.30。", + "hypothesis": "战场定性:横盘交易区间上沿的突破尝试", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 84, + "ai_position_pct": 50 + }, + "pivots": [ + { + "day": "T+2", + "date": "2025-06-16", + "candle": "中阳棒(实体 0.8×ATR,收在中位犹豫,上影 44%)", + "signal": "胜负手定格:T+2 走出强力多头跟随棒,真突破成立", + "verdict": "原假设确认成立", + "change_from_t0_pct": 0.0394, + "bullish_edge_score": 91, + "ai_position_pct": 70 + } + ], + "summary": "15 个交易日收盘累计 +23.1%(期间最高 +27.0% / 最低 -1.7%)。", + "confirm_rule": "T+1~T+3 收盘守稳箱体上沿 110.30 之上并突破 T0 高点(有效多头跟随)", + "invalidate_rule": "收盘重新跌回箱体上沿 110.30 下方(80% 区间假突破陷阱)" + } + }, + { + "id": "688981.SH|2025-08-22|breakout_follow", + "code": "688981.SH", + "name": "中芯国际", + "date": "2025-08-22", + "year": 2025, + "segment": "样本外测试段", + "motif": "breakout_follow", + "motif_cn": "箱体突破 · 真主升 vs 假突破陷阱", + "outcome": "success", + "outcome_cn": "真突破主升:站稳箱体上沿持续跟随", + "thesis": "箱体突破首日试探,确认跟随棒后顺势重仓吃主升。", + "initial_position_pct": 0, + "initial_position_note": "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例", + "teaching_note": "遇到箱体突破:T0 先下 30%~40% 底仓试探,一旦 T+1/T+2 守稳前高红线并走出阳线跟随,果断顺势推高仓位吃满主升段。", + "atr": 3.534, + "close0": 103.97, + "levels": { + "box_high": 95.17, + "box_low": 86.22, + "ema20_t0": 91.254, + "support_20d": 86.22, + "resistance_20d": 105.0, + "support_60d": 80.9, + "resistance_60d": 105.0 + }, + "forward": { + "close0": 103.97, + "atr": 3.533831685146307, + "ret15": 0.23997306915456362, + "max_up_pct": 0.24872559392132354, + "max_dn_pct": -0.038376454746561484, + "max_up_atr": 7.318, + "max_dn_atr": 1.129, + "fwd_range_atr": 8.447, + "fwd_range_pct": 0.2871, + "close_chg_15d": 0.24, + "max_high": 129.83, + "min_low": 99.98 + }, + "quality": { + "score": 1.0, + "structure_score": 1.0, + "range_atr": 8.447, + "range_pct": 0.2871 + }, + "setup": { + "text": "前 22 日形成 86.22~95.17 横盘交易区间,T0 放量 4.4 倍收大阳棒站上箱体上沿 95.17。", + "confirm_rule": "T+1~T+3 收盘守稳箱体上沿 95.17 之上并突破 T0 高点(有效多头跟随)", + "invalidate_rule": "收盘重新跌回箱体上沿 95.17 下方(80% 区间假突破陷阱)" + }, + "drawings": { + "lines": [ + { + "id": "box_top", + "label": "箱体上沿阻力 95.17", + "color": "#D9383A", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 37, + "price": 95.17 + }, + { + "barIndex": 74, + "price": 95.17 + } + ] + }, + { + "id": "box_bot", + "label": "箱体下沿支撑 86.22", + "color": "#0FA070", + "style": "dashed", + "width": 1, + "step": 1, + "points": [ + { + "barIndex": 37, + "price": 86.22 + }, + { + "barIndex": 74, + "price": 86.22 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "belowBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 突破尝试", + "step": 1 + }, + { + "barIndex": 63, + "pos": "belowBar", + "color": "#2C48CE", + "shape": "arrowUp", + "text": "② T+4 跟随确认", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "交易区间突破尝试", + "skill_key": "invalid_cut", + "frame1": { + "title": "战场定性:横盘交易区间上沿的突破尝试", + "body": "前 20 多个交易日股价在 86.22~95.17 之间反复拉锯,属于典型的【交易区间(Trading Range)】。Al Brooks 核心铁律:区间内大多数突破尝试容易失败,因此 T0 虽然放量 4.4 倍收在区间上方,此时它只代表“多头提出突破假设”,绝不能一把梭哈,必须看接下来两天的跟随反馈。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "cycle" + }, + "frame2": { + "title": "胜负手定格:T+4 走出强力多头跟随棒,真突破成立", + "body": "关键验证出现在 T+1~T+4:空头未能把价格砸回箱体红线(95.17)下方,反而在 T+4 收出 大阳趋势棒(实体 4.9×ATR,收在最高点附近) 继续向上推高!这说明箱体上方的追买盘真实有效,市场周期正式从【交易区间】切换为【多头突破主升段】(15 日最终大涨 +24.0%),T+4 正是从试探仓顺势加到重仓的标准右侧节点。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 4, + "key_bar_index": 63, + "confirm_rule": "T+1~T+3 收盘守稳箱体上沿 95.17 之上并突破 T0 高点(有效多头跟随)", + "invalidate_rule": "收盘重新跌回箱体上沿 95.17 下方(80% 区间假突破陷阱)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "invalid_cut", + "takeaway": "遇到箱体突破:T0 先下 30%~40% 底仓试探,一旦 T+1/T+2 守稳前高红线并走出阳线跟随,果断顺势推高仓位吃满主升段。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2025-05-30", + "2025-06-03", + "2025-06-04", + "2025-06-05", + "2025-06-06", + "2025-06-09", + "2025-06-10", + "2025-06-11", + "2025-06-12", + "2025-06-13", + "2025-06-16", + "2025-06-17", + "2025-06-18", + "2025-06-19", + "2025-06-20", + "2025-06-23", + "2025-06-24", + "2025-06-25", + "2025-06-26", + "2025-06-27", + "2025-06-30", + "2025-07-01", + "2025-07-02", + "2025-07-03", + "2025-07-04", + "2025-07-07", + "2025-07-08", + "2025-07-09", + "2025-07-10", + "2025-07-11", + "2025-07-14", + "2025-07-15", + "2025-07-16", + "2025-07-17", + "2025-07-18", + "2025-07-21", + "2025-07-22", + "2025-07-23", + "2025-07-24", + "2025-07-25", + "2025-07-28", + "2025-07-29", + "2025-07-30", + "2025-07-31", + "2025-08-01", + "2025-08-04", + "2025-08-05", + "2025-08-06", + "2025-08-07", + "2025-08-08", + "2025-08-11", + "2025-08-12", + "2025-08-13", + "2025-08-14", + "2025-08-15", + "2025-08-18", + "2025-08-19", + "2025-08-20", + "2025-08-21", + "2025-08-22" + ], + "o": [ + 83.01, + 82.2, + 82.6, + 83.49, + 84.33, + 84.15, + 84.49, + 82.46, + 82.5, + 82.0, + 82.3, + 82.98, + 82.23, + 82.0, + 81.73, + 81.03, + 84.25, + 85.0, + 88.39, + 87.58, + 88.18, + 88.0, + 87.5, + 86.38, + 86.0, + 85.69, + 85.49, + 86.65, + 85.61, + 85.7, + 88.3, + 87.15, + 87.73, + 87.06, + 88.75, + 88.45, + 88.7, + 88.9, + 89.1, + 91.74, + 93.64, + 92.0, + 91.7, + 90.32, + 89.2, + 87.95, + 89.85, + 89.86, + 90.7, + 88.0, + 86.69, + 86.95, + 88.01, + 88.69, + 89.0, + 93.5, + 91.67, + 89.4, + 92.3, + 92.5 + ], + "h": [ + 83.1, + 82.78, + 83.32, + 84.87, + 85.0, + 85.08, + 84.49, + 83.36, + 82.88, + 83.1, + 83.07, + 83.13, + 82.67, + 82.88, + 82.59, + 85.3, + 85.37, + 88.53, + 89.98, + 88.15, + 89.63, + 88.85, + 87.73, + 86.73, + 87.2, + 86.86, + 86.85, + 86.86, + 86.17, + 89.34, + 88.49, + 87.95, + 88.2, + 89.0, + 89.13, + 89.52, + 90.55, + 90.19, + 92.9, + 93.68, + 93.69, + 92.63, + 91.83, + 92.75, + 90.33, + 90.63, + 90.58, + 91.0, + 91.7, + 88.5, + 87.18, + 90.1, + 89.23, + 92.58, + 93.3, + 95.17, + 92.48, + 92.49, + 94.11, + 105.0 + ], + "l": [ + 81.94, + 81.37, + 82.26, + 83.03, + 83.78, + 84.1, + 82.02, + 82.29, + 82.06, + 81.71, + 82.28, + 82.02, + 81.66, + 81.51, + 81.22, + 80.9, + 84.09, + 85.0, + 87.2, + 86.7, + 87.79, + 87.65, + 85.81, + 85.78, + 84.86, + 85.37, + 85.18, + 85.52, + 85.5, + 85.4, + 87.47, + 86.61, + 86.77, + 86.32, + 87.93, + 88.04, + 88.5, + 88.3, + 89.0, + 90.99, + 91.96, + 90.81, + 89.74, + 89.46, + 88.02, + 87.88, + 89.58, + 89.53, + 89.75, + 86.66, + 86.22, + 86.42, + 88.0, + 88.69, + 88.48, + 91.36, + 89.35, + 88.19, + 90.8, + 92.42 + ], + "c": [ + 82.09, + 82.47, + 83.18, + 84.39, + 84.56, + 84.43, + 82.32, + 82.91, + 82.27, + 82.79, + 82.96, + 82.4, + 82.01, + 81.65, + 81.28, + 84.25, + 85.15, + 88.39, + 87.28, + 86.88, + 88.17, + 87.76, + 86.1, + 86.24, + 85.8, + 85.48, + 86.74, + 85.85, + 85.67, + 88.16, + 87.52, + 87.89, + 87.12, + 88.79, + 88.51, + 89.02, + 89.08, + 89.39, + 91.75, + 93.47, + 92.18, + 92.17, + 90.36, + 89.5, + 88.29, + 90.07, + 90.0, + 90.78, + 90.59, + 86.66, + 86.96, + 88.52, + 88.66, + 89.46, + 91.84, + 92.31, + 89.35, + 92.28, + 91.05, + 103.97 + ], + "v": [ + 14577233, + 14113706, + 13713352, + 24759154, + 18634650, + 19227453, + 25443912, + 15435894, + 14536968, + 22621715, + 12509643, + 13764726, + 14912111, + 17728970, + 16691409, + 45387149, + 30936689, + 55719038, + 38656454, + 26165913, + 34352802, + 21688792, + 22557267, + 14615027, + 25225745, + 13534928, + 21766848, + 18310200, + 17563946, + 46992238, + 18980000, + 20620000, + 19670000, + 28790000, + 22000000, + 22270000, + 29740000, + 31650000, + 52230000, + 44210000, + 34260000, + 29410000, + 31000000, + 46200000, + 27410000, + 28610000, + 19570000, + 26780000, + 31530000, + 58470000, + 27920000, + 55160000, + 38430000, + 74150000, + 69050000, + 83340000, + 74470000, + 85870000, + 60680000, + 206190000 + ], + "ema20": [ + 84.994, + 84.753, + 84.604, + 84.583, + 84.581, + 84.567, + 84.353, + 84.215, + 84.03, + 83.912, + 83.821, + 83.686, + 83.526, + 83.348, + 83.151, + 83.255, + 83.436, + 83.908, + 84.229, + 84.481, + 84.833, + 85.111, + 85.206, + 85.304, + 85.351, + 85.364, + 85.495, + 85.529, + 85.542, + 85.791, + 85.956, + 86.14, + 86.233, + 86.477, + 86.671, + 86.894, + 87.102, + 87.32, + 87.742, + 88.288, + 88.658, + 88.993, + 89.123, + 89.159, + 89.076, + 89.171, + 89.25, + 89.396, + 89.509, + 89.238, + 89.021, + 88.973, + 88.943, + 88.993, + 89.264, + 89.554, + 89.535, + 89.796, + 89.915, + 91.254 + ] + }, + "future": { + "dates": [ + "2025-08-25", + "2025-08-26", + "2025-08-27", + "2025-08-28", + "2025-08-29", + "2025-09-09", + "2025-09-10", + "2025-09-11", + "2025-09-12", + "2025-09-15", + "2025-09-16", + "2025-09-17", + "2025-09-18", + "2025-09-19", + "2025-09-22" + ], + "o": [ + 106.0, + 101.0, + 102.2, + 102.0, + 114.0, + 102.0, + 103.0, + 102.62, + 109.28, + 110.55, + 109.0, + 110.8, + 119.98, + 123.0, + 120.54 + ], + "h": [ + 109.24, + 102.57, + 106.69, + 119.22, + 116.0, + 108.65, + 105.96, + 112.8, + 112.49, + 112.55, + 111.86, + 120.8, + 127.49, + 127.4, + 129.83 + ], + "l": [ + 101.1, + 100.13, + 100.59, + 101.99, + 112.26, + 101.2, + 102.13, + 99.98, + 108.01, + 107.5, + 108.09, + 109.8, + 116.35, + 120.11, + 119.05 + ], + "c": [ + 103.17, + 100.93, + 101.51, + 119.22, + 114.76, + 102.99, + 103.91, + 110.28, + 108.42, + 108.66, + 109.78, + 117.39, + 122.15, + 121.34, + 128.92 + ], + "v": [ + 176060000, + 85610000, + 142260000, + 242030000, + 163970000, + 157470000, + 103990000, + 146750000, + 115900000, + 94680000, + 86630000, + 152850000, + 193160000, + 144910000, + 158830000 + ], + "ema20": [ + 92.389, + 93.202, + 93.993, + 96.396, + 98.145, + 98.606, + 99.111, + 100.175, + 100.96, + 101.694, + 102.464, + 103.885, + 105.625, + 107.122, + 109.198 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2025-08-22", + "open": 92.5, + "high": 105.0, + "low": 92.42, + "close": 103.97, + "volume": 206190000, + "ema20": 91.254, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 98, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "大阳趋势棒(实体 3.2×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.1654, + "push": true, + "impact_pts": 7, + "text": "量价实体匹配 +3.00(放量上涨,量价配合)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.0954, + "push": true, + "impact_pts": 4, + "text": "近 3 日净多头实体 +1.29 倍 ATR(跟随持续)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0837, + "push": true, + "impact_pts": 4, + "text": "沪深300 相对 20EMA +4.08 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+1", + "date": "2025-08-25", + "open": 106.0, + "high": 109.24, + "low": 101.1, + "close": 103.17, + "volume": 176060000, + "ema20": 92.389, + "change_from_t0_pct": -0.0077, + "bullish_edge_score": 96, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "中阴棒(实体 0.8×ATR,收在下半区,上影 40%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1358, + "push": true, + "impact_pts": 6, + "text": "沪深300 相对 20EMA +5.06 倍 ATR(大盘顺风)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0625, + "push": true, + "impact_pts": 3, + "text": "近 2 日净多头实体 +1.26 倍 ATR(有跟随)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.028, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+2", + "date": "2025-08-26", + "open": 101.0, + "high": 102.57, + "low": 100.13, + "close": 100.93, + "volume": 85610000, + "ema20": 93.202, + "change_from_t0_pct": -0.0292, + "bullish_edge_score": 84, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "长上影拒绝棒(流星线)(实体 0.0×ATR,收在下半区,上影 64%、下影 33%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0721, + "push": true, + "impact_pts": 3, + "text": "沪深300 相对 20EMA +4.35 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0262, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0248, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.447 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+3", + "date": "2025-08-27", + "open": 102.2, + "high": 106.69, + "low": 100.59, + "close": 101.51, + "volume": 142260000, + "ema20": 93.993, + "change_from_t0_pct": -0.0237, + "bullish_edge_score": 82, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在最低点附近,上影 74%)", + "top3_shap": [ + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.0301, + "push": true, + "impact_pts": 2, + "text": "近 3 日净多头实体 -0.31 倍 ATR(空头主导)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0258, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +2.54 倍 ATR(大盘顺风)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0214, + "push": true, + "impact_pts": 2, + "text": "距 20EMA +1.89 倍 ATR(站在 20EMA 之上,多头结构)" + } + ] + }, + { + "day": "T+4", + "date": "2025-08-28", + "open": 102.0, + "high": 119.22, + "low": 101.99, + "close": 119.22, + "volume": 242030000, + "ema20": 96.396, + "change_from_t0_pct": 0.1467, + "bullish_edge_score": 98, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "大阳趋势棒(实体 4.9×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.1974, + "push": true, + "impact_pts": 9, + "text": "量价实体匹配 +2.41(放量上涨,量价配合)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.0971, + "push": true, + "impact_pts": 4, + "text": "近 3 日净多头实体 +1.10 倍 ATR(跟随持续)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0721, + "push": true, + "impact_pts": 3, + "text": "近 2 日净多头实体 +1.65 倍 ATR(有跟随)" + } + ] + }, + { + "day": "T+5", + "date": "2025-08-29", + "open": 114.0, + "high": 116.0, + "low": 112.26, + "close": 114.76, + "volume": 163970000, + "ema20": 98.145, + "change_from_t0_pct": 0.1038, + "bullish_edge_score": 94, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在上半区,上影 33%、下影 47%)", + "top3_shap": [ + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.0883, + "push": true, + "impact_pts": 4, + "text": "近 3 日净多头实体 +1.15 倍 ATR(跟随持续)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0473, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.35 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0454, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +1.81 倍 ATR(有跟随)" + } + ] + }, + { + "day": "T+6", + "date": "2025-09-09", + "open": 102.0, + "high": 108.65, + "low": 101.2, + "close": 102.99, + "volume": 157470000, + "ema20": 98.606, + "change_from_t0_pct": -0.0094, + "bullish_edge_score": 91, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "长上影拒绝棒(流星线)(实体 0.3×ATR,收在下半区,上影 76%)", + "top3_shap": [ + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.1104, + "push": true, + "impact_pts": 5, + "text": "近 3 日净多头实体 +1.27 倍 ATR(跟随持续)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0823, + "push": true, + "impact_pts": 4, + "text": "量价实体匹配 +0.80(放量上涨,量价配合)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0312, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.94 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+7", + "date": "2025-09-10", + "open": 103.0, + "high": 105.96, + "low": 102.13, + "close": 103.91, + "volume": 103990000, + "ema20": 99.111, + "change_from_t0_pct": -0.0006, + "bullish_edge_score": 49, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.3×ATR,收在中位犹豫,上影 54%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.057, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +0.99 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0217, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0207, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 +0.11(量价背离度低)" + } + ] + }, + { + "day": "T+8", + "date": "2025-09-11", + "open": 102.62, + "high": 112.8, + "low": 99.98, + "close": 110.28, + "volume": 146750000, + "ema20": 100.175, + "change_from_t0_pct": 0.0607, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "大阳趋势棒(实体 2.2×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.07, + "push": true, + "impact_pts": 3, + "text": "量价实体匹配 +0.49(放量上涨,量价配合)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0298, + "push": true, + "impact_pts": 2, + "text": "近 5 日 K 线重叠率 26%(重叠低,通道顺畅)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0267, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.276 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+9", + "date": "2025-09-12", + "open": 109.28, + "high": 112.49, + "low": 108.01, + "close": 108.42, + "volume": 115900000, + "ema20": 100.96, + "change_from_t0_pct": 0.0428, + "bullish_edge_score": 62, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在最低点附近,上影 72%)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0283, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.282 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": -0.0251, + "push": false, + "impact_pts": -2, + "text": "距 20EMA +1.25 倍 ATR(站在 20EMA 之上,多头结构)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0203, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.66 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+10", + "date": "2025-09-15", + "open": 110.55, + "high": 112.55, + "low": 107.5, + "close": 108.66, + "volume": 94680000, + "ema20": 101.694, + "change_from_t0_pct": 0.0451, + "bullish_edge_score": 73, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 20, + "candle": "中阴棒(实体 0.5×ATR,收在下半区,上影 40%)", + "top3_shap": [ + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.0255, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 +0.06(无明显高潮)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0233, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.285 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0177, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 +0.13(量价背离度低)" + } + ] + }, + { + "day": "T+11", + "date": "2025-09-16", + "open": 109.0, + "high": 111.86, + "low": 108.09, + "close": 109.78, + "volume": 86630000, + "ema20": 102.464, + "change_from_t0_pct": 0.0559, + "bullish_edge_score": 64, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在中位犹豫,上影 55%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0364, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.41 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0239, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0238, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +0.67 倍 ATR/5日(中期趋势向上)" + } + ] + }, + { + "day": "T+12", + "date": "2025-09-17", + "open": 110.8, + "high": 120.8, + "low": 109.8, + "close": 117.39, + "volume": 152850000, + "ema20": 103.885, + "change_from_t0_pct": 0.1291, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "大阳趋势棒(实体 1.9×ATR,收在上半区,上影 31%)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0337, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 -0.059 ATR/日(推动力衰减,楔形/衰竭前兆)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0268, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +0.78 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0222, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+13", + "date": "2025-09-18", + "open": 119.98, + "high": 127.49, + "low": 116.35, + "close": 122.15, + "volume": 193160000, + "ema20": 105.625, + "change_from_t0_pct": 0.1749, + "bullish_edge_score": 89, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "中阳棒(实体 0.6×ATR,收在中位犹豫,上影 48%、下影 33%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.087, + "push": true, + "impact_pts": 4, + "text": "量价实体匹配 +0.64(放量上涨,量价配合)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0629, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +0.75 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0402, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 48%(上方被明显拒绝,抛压重)" + } + ] + }, + { + "day": "T+14", + "date": "2025-09-19", + "open": 123.0, + "high": 127.4, + "low": 120.11, + "close": 121.34, + "volume": 144910000, + "ema20": 107.122, + "change_from_t0_pct": 0.1671, + "bullish_edge_score": 64, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.5×ATR,收在最低点附近,上影 60%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0612, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +0.75 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0213, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0206, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 -0.15(量价背离度低)" + } + ] + }, + { + "day": "T+15", + "date": "2025-09-22", + "open": 120.54, + "high": 129.83, + "low": 119.05, + "close": 128.92, + "volume": 158830000, + "ema20": 109.198, + "change_from_t0_pct": 0.24, + "bullish_edge_score": 63, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阳趋势棒(实体 2.4×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0547, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.99 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0384, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 8%(上方压力有限)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0383, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2025-08-22", + "candle": "大阳趋势棒(实体 3.2×ATR,收在最高点附近)", + "signal": "前 22 日形成 86.22~95.17 横盘交易区间,T0 放量 4.4 倍收大阳棒站上箱体上沿 95.17。", + "hypothesis": "战场定性:横盘交易区间上沿的突破尝试", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 98, + "ai_position_pct": 90 + }, + "pivots": [ + { + "day": "T+4", + "date": "2025-08-28", + "candle": "大阳趋势棒(实体 4.9×ATR,收在最高点附近)", + "signal": "胜负手定格:T+4 走出强力多头跟随棒,真突破成立", + "verdict": "原假设确认成立", + "change_from_t0_pct": 0.1467, + "bullish_edge_score": 98, + "ai_position_pct": 90 + } + ], + "summary": "15 个交易日收盘累计 +24.0%(期间最高 +24.9% / 最低 -3.8%)。", + "confirm_rule": "T+1~T+3 收盘守稳箱体上沿 95.17 之上并突破 T0 高点(有效多头跟随)", + "invalidate_rule": "收盘重新跌回箱体上沿 95.17 下方(80% 区间假突破陷阱)" + } + }, + { + "id": "002475.SZ|2026-04-09|breakout_follow", + "code": "002475.SZ", + "name": "立讯精密", + "date": "2026-04-09", + "year": 2026, + "segment": "样本外测试段", + "motif": "breakout_follow", + "motif_cn": "箱体突破 · 真主升 vs 假突破陷阱", + "outcome": "success", + "outcome_cn": "真突破主升:站稳箱体上沿持续跟随", + "thesis": "箱体突破首日试探,确认跟随棒后顺势重仓吃主升。", + "initial_position_pct": 0, + "initial_position_note": "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例", + "teaching_note": "遇到箱体突破:T0 先下 30%~40% 底仓试探,一旦 T+1/T+2 守稳前高红线并走出阳线跟随,果断顺势推高仓位吃满主升段。", + "atr": 2.303, + "close0": 54.831, + "levels": { + "box_high": 52.323, + "box_low": 44.361, + "ema20_t0": 49.842, + "support_20d": 44.361, + "resistance_20d": 55.518, + "support_60d": 44.361, + "resistance_60d": 60.008 + }, + "forward": { + "close0": 54.8314, + "atr": 2.3025390181469634, + "ret15": 0.21619181709750257, + "max_up_pct": 0.3178434254824791, + "max_dn_pct": -0.003448753816243988, + "max_up_atr": 7.569, + "max_dn_atr": 0.082, + "fwd_range_atr": 7.651, + "fwd_range_pct": 0.3213, + "close_chg_15d": 0.2162, + "max_high": 72.259, + "min_low": 54.642 + }, + "quality": { + "score": 0.9957, + "structure_score": 0.9957, + "range_atr": 7.651, + "range_pct": 0.3213 + }, + "setup": { + "text": "前 22 日形成 44.36~52.32 横盘交易区间,T0 放量 2.3 倍收大阳棒站上箱体上沿 52.32。", + "confirm_rule": "T+1~T+3 收盘守稳箱体上沿 52.32 之上并突破 T0 高点(有效多头跟随)", + "invalidate_rule": "收盘重新跌回箱体上沿 52.32 下方(80% 区间假突破陷阱)" + }, + "drawings": { + "lines": [ + { + "id": "box_top", + "label": "箱体上沿阻力 52.32", + "color": "#D9383A", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 37, + "price": 52.323 + }, + { + "barIndex": 74, + "price": 52.323 + } + ] + }, + { + "id": "box_bot", + "label": "箱体下沿支撑 44.36", + "color": "#0FA070", + "style": "dashed", + "width": 1, + "step": 1, + "points": [ + { + "barIndex": 37, + "price": 44.361 + }, + { + "barIndex": 74, + "price": 44.361 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "belowBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 突破尝试", + "step": 1 + }, + { + "barIndex": 60, + "pos": "belowBar", + "color": "#2C48CE", + "shape": "arrowUp", + "text": "② T+1 跟随确认", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "交易区间突破尝试", + "skill_key": "invalid_cut", + "frame1": { + "title": "战场定性:横盘交易区间上沿的突破尝试", + "body": "前 20 多个交易日股价在 44.36~52.32 之间反复拉锯,属于典型的【交易区间(Trading Range)】。Al Brooks 核心铁律:区间内大多数突破尝试容易失败,因此 T0 虽然放量 2.3 倍收在区间上方,此时它只代表“多头提出突破假设”,绝不能一把梭哈,必须看接下来两天的跟随反馈。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "cycle" + }, + "frame2": { + "title": "胜负手定格:T+1 走出强力多头跟随棒,真突破成立", + "body": "关键验证出现在 T+1~T+1:空头未能把价格砸回箱体红线(52.32)下方,反而在 T+1 收出 大阳趋势棒(实体 1.2×ATR,收在上半区) 继续向上推高!这说明箱体上方的追买盘真实有效,市场周期正式从【交易区间】切换为【多头突破主升段】(15 日最终大涨 +21.6%),T+1 正是从试探仓顺势加到重仓的标准右侧节点。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 1, + "key_bar_index": 60, + "confirm_rule": "T+1~T+3 收盘守稳箱体上沿 52.32 之上并突破 T0 高点(有效多头跟随)", + "invalidate_rule": "收盘重新跌回箱体上沿 52.32 下方(80% 区间假突破陷阱)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "invalid_cut", + "takeaway": "遇到箱体突破:T0 先下 30%~40% 底仓试探,一旦 T+1/T+2 守稳前高红线并走出阳线跟随,果断顺势推高仓位吃满主升段。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2026-01-07", + "2026-01-08", + "2026-01-09", + "2026-01-12", + "2026-01-13", + "2026-01-14", + "2026-01-15", + "2026-01-16", + "2026-01-19", + "2026-01-20", + "2026-01-21", + "2026-01-22", + "2026-01-23", + "2026-01-26", + "2026-01-27", + "2026-01-28", + "2026-01-29", + "2026-01-30", + "2026-02-02", + "2026-02-03", + "2026-02-04", + "2026-02-05", + "2026-02-06", + "2026-02-09", + "2026-02-10", + "2026-02-11", + "2026-02-12", + "2026-02-13", + "2026-02-24", + "2026-02-25", + "2026-02-26", + "2026-02-27", + "2026-03-02", + "2026-03-03", + "2026-03-04", + "2026-03-05", + "2026-03-06", + "2026-03-09", + "2026-03-10", + "2026-03-11", + "2026-03-12", + "2026-03-13", + "2026-03-16", + "2026-03-17", + "2026-03-18", + "2026-03-19", + "2026-03-20", + "2026-03-23", + "2026-03-24", + "2026-03-25", + "2026-03-26", + "2026-03-27", + "2026-03-30", + "2026-03-31", + "2026-04-01", + "2026-04-02", + "2026-04-03", + "2026-04-07", + "2026-04-08", + "2026-04-09" + ], + "o": [ + 58.539, + 56.575, + 54.422, + 54.769, + 55.215, + 53.777, + 52.924, + 57.825, + 57.646, + 57.448, + 56.208, + 56.982, + 56.188, + 54.948, + 53.896, + 53.281, + 52.586, + 51.207, + 51.584, + 52.418, + 51.604, + 51.098, + 50.969, + 51.584, + 51.286, + 50.989, + 50.86, + 49.676, + 51.169, + 50.313, + 51.348, + 50.412, + 49.079, + 48.929, + 46.451, + 46.779, + 46.371, + 46.053, + 46.978, + 49.218, + 49.666, + 49.118, + 48.78, + 49.944, + 49.427, + 48.153, + 48.163, + 47.307, + 46.58, + 47.158, + 51.467, + 47.954, + 49.566, + 48.173, + 50.243, + 49.865, + 50.064, + 48.77, + 49.327, + 51.258 + ], + "h": [ + 58.639, + 56.614, + 55.861, + 55.166, + 56.108, + 54.372, + 57.121, + 59.442, + 60.008, + 57.875, + 57.845, + 57.895, + 56.188, + 54.968, + 54.362, + 54.521, + 52.715, + 52.09, + 53.181, + 52.973, + 51.644, + 52.169, + 51.604, + 51.594, + 51.574, + 51.515, + 51.089, + 50.84, + 51.248, + 51.686, + 51.388, + 50.452, + 49.487, + 49.507, + 46.869, + 47.536, + 47.197, + 46.401, + 49.467, + 50.641, + 50.193, + 50.044, + 49.039, + 51.517, + 49.656, + 48.571, + 49.467, + 47.526, + 46.72, + 50.731, + 51.467, + 51.049, + 49.765, + 50.382, + 50.87, + 50.661, + 50.144, + 49.716, + 52.323, + 55.518 + ], + "l": [ + 56.357, + 54.342, + 53.578, + 53.578, + 53.916, + 53.043, + 52.814, + 57.458, + 57.349, + 54.878, + 56.158, + 55.662, + 54.571, + 53.588, + 52.447, + 52.408, + 51.326, + 50.622, + 51.584, + 50.85, + 50.255, + 51.019, + 50.304, + 50.929, + 50.969, + 50.622, + 50.064, + 49.029, + 50.273, + 50.233, + 50.8, + 49.089, + 48.153, + 46.978, + 45.585, + 46.66, + 46.252, + 45.217, + 46.978, + 49.049, + 49.049, + 48.82, + 47.287, + 49.526, + 48.67, + 47.625, + 47.994, + 45.734, + 44.361, + 46.779, + 49.725, + 47.954, + 47.874, + 47.775, + 49.566, + 49.337, + 48.412, + 47.884, + 49.327, + 51.059 + ], + "c": [ + 57.101, + 54.729, + 55.215, + 54.997, + 54.154, + 53.162, + 56.922, + 57.627, + 57.408, + 57.011, + 56.614, + 55.97, + 55.067, + 53.668, + 53.301, + 52.864, + 51.485, + 51.286, + 51.812, + 52.05, + 51.495, + 51.296, + 50.77, + 51.316, + 51.286, + 50.751, + 50.193, + 50.562, + 50.392, + 51.338, + 50.92, + 49.984, + 48.88, + 47.168, + 46.063, + 46.779, + 47.078, + 46.282, + 49.158, + 49.934, + 49.467, + 49.099, + 49.029, + 49.596, + 49.108, + 47.815, + 47.994, + 46.083, + 46.123, + 50.731, + 49.954, + 50.373, + 48.531, + 49.029, + 50.163, + 49.656, + 48.571, + 48.163, + 52.025, + 54.831 + ], + "v": [ + 187360000, + 240110000, + 154080000, + 188390000, + 133500000, + 169910000, + 262850000, + 259990000, + 195720000, + 177230000, + 111720000, + 149800000, + 144930000, + 127110000, + 122780000, + 151190000, + 147260000, + 108560000, + 138490000, + 104660000, + 124440000, + 75990000, + 72490000, + 77530000, + 74680000, + 68950000, + 97020000, + 114490000, + 84420000, + 124700000, + 106430000, + 127270000, + 128980000, + 136030000, + 119890000, + 100870000, + 73250000, + 97370000, + 181410000, + 168650000, + 86040000, + 81980000, + 96530000, + 185010000, + 86120000, + 91810000, + 100480000, + 101740000, + 110560000, + 260890000, + 220020000, + 174980000, + 159640000, + 167150000, + 110980000, + 85970000, + 74510000, + 79990000, + 201930000, + 299600000 + ], + "ema20": [ + 57.789, + 57.498, + 57.28, + 57.063, + 56.786, + 56.441, + 56.486, + 56.595, + 56.673, + 56.705, + 56.696, + 56.627, + 56.478, + 56.211, + 55.934, + 55.641, + 55.245, + 54.868, + 54.577, + 54.337, + 54.066, + 53.802, + 53.513, + 53.304, + 53.112, + 52.887, + 52.631, + 52.434, + 52.239, + 52.153, + 52.036, + 51.84, + 51.558, + 51.14, + 50.657, + 50.287, + 49.982, + 49.629, + 49.585, + 49.618, + 49.603, + 49.555, + 49.505, + 49.514, + 49.475, + 49.317, + 49.191, + 48.895, + 48.631, + 48.831, + 48.938, + 49.075, + 49.023, + 49.023, + 49.132, + 49.182, + 49.124, + 49.032, + 49.317, + 49.842 + ] + }, + "future": { + "dates": [ + "2026-04-10", + "2026-04-13", + "2026-04-14", + "2026-04-15", + "2026-04-16", + "2026-04-17", + "2026-04-20", + "2026-04-21", + "2026-04-22", + "2026-04-23", + "2026-04-24", + "2026-04-27", + "2026-04-28", + "2026-04-29", + "2026-04-30" + ], + "o": [ + 55.16, + 57.509, + 58.723, + 58.723, + 58.484, + 59.569, + 62.346, + 64.556, + 65.083, + 68.676, + 67.193, + 67.661, + 70.687, + 67.681, + 69.154 + ], + "h": [ + 58.902, + 59.241, + 60.365, + 60.694, + 60.365, + 60.594, + 65.421, + 65.69, + 68.368, + 70.348, + 67.482, + 72.259, + 72.06, + 69.442, + 69.154 + ], + "l": [ + 54.642, + 57.23, + 58.275, + 58.176, + 57.728, + 58.972, + 60.624, + 62.605, + 64.297, + 66.984, + 64.068, + 67.183, + 68.626, + 66.188, + 66.487 + ], + "c": [ + 57.907, + 58.325, + 58.862, + 58.504, + 60.166, + 59.47, + 65.421, + 65.441, + 67.711, + 67.452, + 65.69, + 71.632, + 69.552, + 68.318, + 66.686 + ], + "v": [ + 386900000, + 238810000, + 243270000, + 198000000, + 199640000, + 134340000, + 392930000, + 262570000, + 236670000, + 232240000, + 262280000, + 327350000, + 215990000, + 210390000, + 155050000 + ], + "ema20": [ + 50.61, + 51.345, + 52.061, + 52.675, + 53.388, + 53.967, + 55.058, + 56.047, + 57.158, + 58.138, + 58.858, + 60.074, + 60.977, + 61.676, + 62.153 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2026-04-09", + "open": 51.258, + "high": 55.518, + "low": 51.059, + "close": 54.831, + "volume": 299600000, + "ema20": 49.842, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "大阳趋势棒(实体 1.6×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.047, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +1.27(放量上涨,量价配合)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0444, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +1.41 倍 ATR(有跟随)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0209, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.32 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+1", + "date": "2026-04-10", + "open": 55.16, + "high": 58.902, + "low": 54.642, + "close": 57.907, + "volume": 386900000, + "ema20": 50.61, + "change_from_t0_pct": 0.0561, + "bullish_edge_score": 98, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "大阳趋势棒(实体 1.2×ATR,收在上半区)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.2088, + "push": true, + "impact_pts": 9, + "text": "量价实体匹配 +1.79(放量上涨,量价配合)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.1183, + "push": true, + "impact_pts": 5, + "text": "近 3 日净多头实体 +1.31 倍 ATR(跟随持续)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0738, + "push": true, + "impact_pts": 3, + "text": "近 2 日净多头实体 +1.34 倍 ATR(有跟随)" + } + ] + }, + { + "day": "T+2", + "date": "2026-04-13", + "open": 57.509, + "high": 59.241, + "low": 57.23, + "close": 58.325, + "volume": 238810000, + "ema20": 51.345, + "change_from_t0_pct": 0.0637, + "bullish_edge_score": 93, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "长上影拒绝棒(流星线)(实体 0.4×ATR,收在中位犹豫,上影 46%)", + "top3_shap": [ + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.1058, + "push": true, + "impact_pts": 5, + "text": "近 3 日净多头实体 +1.01 倍 ATR(跟随持续)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0536, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.55(放量上涨,量价配合)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0431, + "push": true, + "impact_pts": 2, + "text": "近 5 日 K 线重叠率 19%(重叠低,通道顺畅)" + } + ] + }, + { + "day": "T+3", + "date": "2026-04-14", + "open": 58.723, + "high": 60.365, + "low": 58.275, + "close": 58.862, + "volume": 243270000, + "ema20": 52.061, + "change_from_t0_pct": 0.0735, + "bullish_edge_score": 92, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在下半区,上影 72%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0706, + "push": true, + "impact_pts": 3, + "text": "量价实体匹配 +0.50(放量上涨,量价配合)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0481, + "push": true, + "impact_pts": 2, + "text": "近 5 日 K 线重叠率 25%(重叠低,通道顺畅)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0376, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 3 根(买盘密集)" + } + ] + }, + { + "day": "T+4", + "date": "2026-04-15", + "open": 58.723, + "high": 60.694, + "low": 58.176, + "close": 58.504, + "volume": 198000000, + "ema20": 52.675, + "change_from_t0_pct": 0.067, + "bullish_edge_score": 75, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在最低点附近,上影 78%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.038, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0331, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.46 倍 ATR(大盘顺风)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0248, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -0.969 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+5", + "date": "2026-04-16", + "open": 58.484, + "high": 60.365, + "low": 57.728, + "close": 60.166, + "volume": 199640000, + "ema20": 53.388, + "change_from_t0_pct": 0.0973, + "bullish_edge_score": 48, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阳棒(实体 0.7×ATR,收在最高点附近,下影 29%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0525, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +2.02 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": -0.03, + "push": false, + "impact_pts": -2, + "text": "近 5 日 K 线重叠率 56%(重叠高,属窄幅震荡 Barb Wire)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0296, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 8%(上方压力有限)" + } + ] + }, + { + "day": "T+6", + "date": "2026-04-17", + "open": 59.569, + "high": 60.594, + "low": 58.972, + "close": 59.47, + "volume": 134340000, + "ema20": 53.967, + "change_from_t0_pct": 0.0846, + "bullish_edge_score": 64, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.0×ATR,收在下半区,上影 63%、下影 31%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.04, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.81 倍 ATR(大盘顺风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0235, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.42 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0206, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -0.985 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+7", + "date": "2026-04-20", + "open": 62.346, + "high": 65.421, + "low": 60.624, + "close": 65.421, + "volume": 392930000, + "ema20": 55.058, + "change_from_t0_pct": 0.1931, + "bullish_edge_score": 75, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "大阳趋势棒(实体 1.3×ATR,收在最高点附近,下影 36%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0493, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +1.21(放量上涨,量价配合)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0399, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 0%(上方压力有限)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.031, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +2.09 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+8", + "date": "2026-04-21", + "open": 64.556, + "high": 65.69, + "low": 62.605, + "close": 65.441, + "volume": 262570000, + "ema20": 56.047, + "change_from_t0_pct": 0.1935, + "bullish_edge_score": 58, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.4×ATR,收在最高点附近,下影 63%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0425, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +2.06 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0365, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 8%(上方压力有限)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0327, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -0.877 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+9", + "date": "2026-04-22", + "open": 65.083, + "high": 68.368, + "low": 64.297, + "close": 67.711, + "volume": 236670000, + "ema20": 57.158, + "change_from_t0_pct": 0.2349, + "bullish_edge_score": 74, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "大阳趋势棒(实体 1.1×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0399, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 3 根(买盘密集)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0293, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +2.35 倍 ATR(大盘顺风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0193, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.63 倍 ATR/5日(中期趋势向上)" + } + ] + }, + { + "day": "T+10", + "date": "2026-04-23", + "open": 68.676, + "high": 70.348, + "low": 66.984, + "close": 67.452, + "volume": 232240000, + "ema20": 58.138, + "change_from_t0_pct": 0.2302, + "bullish_edge_score": 76, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "长上影拒绝棒(流星线)(实体 0.5×ATR,收在最低点附近,上影 50%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0345, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.93 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0237, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0233, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+11", + "date": "2026-04-24", + "open": 67.193, + "high": 67.482, + "low": 64.068, + "close": 65.69, + "volume": 262280000, + "ema20": 58.858, + "change_from_t0_pct": 0.198, + "bullish_edge_score": 75, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "中阴棒(实体 0.7×ATR,收在中位犹豫,下影 48%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0384, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.035, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 8%(上方压力有限)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.03, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -0.818 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+12", + "date": "2026-04-27", + "open": 67.661, + "high": 72.259, + "low": 67.183, + "close": 71.632, + "volume": 327350000, + "ema20": 60.074, + "change_from_t0_pct": 0.3064, + "bullish_edge_score": 91, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "大阳趋势棒(实体 1.7×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0958, + "push": true, + "impact_pts": 4, + "text": "近 5 日 K 线重叠率 15%(重叠低,通道顺畅)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0958, + "push": true, + "impact_pts": 4, + "text": "量价实体匹配 +0.58(放量上涨,量价配合)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0309, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.44 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+13", + "date": "2026-04-28", + "open": 70.687, + "high": 72.06, + "low": 68.626, + "close": 69.552, + "volume": 215990000, + "ema20": 60.977, + "change_from_t0_pct": 0.2685, + "bullish_edge_score": 76, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "中阴棒(实体 0.5×ATR,收在下半区,上影 40%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0421, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.15 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0312, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0294, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + } + ] + }, + { + "day": "T+14", + "date": "2026-04-29", + "open": 67.681, + "high": 69.442, + "low": 66.188, + "close": 68.318, + "volume": 210390000, + "ema20": 61.676, + "change_from_t0_pct": 0.246, + "bullish_edge_score": 58, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.3×ATR,收在上半区,上影 35%、下影 46%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0412, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.82 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0224, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0223, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.44 倍 ATR/5日(中期趋势向上)" + } + ] + }, + { + "day": "T+15", + "date": "2026-04-30", + "open": 69.154, + "high": 69.154, + "low": 66.487, + "close": 66.686, + "volume": 155050000, + "ema20": 62.153, + "change_from_t0_pct": 0.2162, + "bullish_edge_score": 80, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "大阴趋势棒(实体 1.1×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.0255, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 +0.09(无明显高潮)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0156, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 7%(下方承接一般)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0151, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 0%(上方压力有限)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2026-04-09", + "candle": "大阳趋势棒(实体 1.6×ATR,收在最高点附近)", + "signal": "前 22 日形成 44.36~52.32 横盘交易区间,T0 放量 2.3 倍收大阳棒站上箱体上沿 52.32。", + "hypothesis": "战场定性:横盘交易区间上沿的突破尝试", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 88, + "ai_position_pct": 70 + }, + "pivots": [ + { + "day": "T+1", + "date": "2026-04-10", + "candle": "大阳趋势棒(实体 1.2×ATR,收在上半区)", + "signal": "胜负手定格:T+1 走出强力多头跟随棒,真突破成立", + "verdict": "原假设确认成立", + "change_from_t0_pct": 0.0561, + "bullish_edge_score": 98, + "ai_position_pct": 90 + } + ], + "summary": "15 个交易日收盘累计 +21.6%(期间最高 +31.8% / 最低 -0.3%)。", + "confirm_rule": "T+1~T+3 收盘守稳箱体上沿 52.32 之上并突破 T0 高点(有效多头跟随)", + "invalidate_rule": "收盘重新跌回箱体上沿 52.32 下方(80% 区间假突破陷阱)" + } + }, + { + "id": "300308.SZ|2024-07-16|ema20_pullback", + "code": "300308.SZ", + "name": "中际旭创", + "date": "2024-07-16", + "year": 2024, + "segment": "训练段", + "motif": "ema20_pullback", + "motif_cn": "强趋势通道 · 回踩 20EMA vs 破位转势", + "outcome": "failure", + "outcome_cn": "通道失守:放量阴棒击穿 20EMA 转空", + "thesis": "回踩 20EMA 未能企稳反遭放量击穿,及时止损规避趋势反转。", + "initial_position_pct": 0, + "initial_position_note": "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例", + "teaching_note": "均线回踩不是免死金牌:回踩 20EMA 买入后若迟迟不创新高,反而出现放量阴线收盘跌穿均线与信号棒低点,说明通道已坏,必须第一时间止损。", + "atr": 6.808, + "close0": 146.976, + "levels": { + "box_high": 158.447, + "box_low": 132.519, + "ema20_t0": 143.191, + "support_20d": 132.519, + "resistance_20d": 158.447, + "support_60d": 107.283, + "resistance_60d": 158.447 + }, + "forward": { + "close0": 146.9763, + "atr": 6.8083865925436715, + "ret15": -0.22711280662256428, + "max_up_pct": -0.004387782247886274, + "max_dn_pct": -0.2641772857256579, + "max_up_atr": -0.095, + "max_dn_atr": 5.703, + "fwd_range_atr": 5.608, + "fwd_range_pct": 0.2598, + "close_chg_15d": -0.2271, + "max_high": 146.331, + "min_low": 108.148 + }, + "quality": { + "score": 0.8641, + "structure_score": 0.8641, + "range_atr": 5.608, + "range_pct": 0.2598 + }, + "setup": { + "text": "前期处于 20EMA 上升通道,自 158.45 回调至 20EMA 附近看似企稳,实则多头承接暗中衰竭。", + "confirm_rule": "在 20EMA 处迅速收阳突破前一日高点恢复升势", + "invalidate_rule": "实体阴线收盘跌穿 20EMA 与 T0 低点 142.69(通道失守转势)" + }, + "drawings": { + "lines": [ + { + "id": "up_leg", + "label": "前段多头主升脉冲", + "color": "#2C48CE", + "style": "solid", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 40, + "price": 143.087 + }, + { + "barIndex": 56, + "price": 158.447 + } + ] + }, + { + "id": "pb_leg", + "label": "回踩 20EMA 均线", + "color": "#B08125", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 56, + "price": 158.447 + }, + { + "barIndex": 59, + "price": 142.69 + } + ] + }, + { + "id": "def_low", + "label": "回踩防守底 142.69", + "color": "#D9383A", + "style": "dashed", + "width": 1, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 142.69 + }, + { + "barIndex": 74, + "price": 142.69 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "belowBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 回踩20EMA", + "step": 1 + }, + { + "barIndex": 60, + "pos": "aboveBar", + "color": "#D9383A", + "shape": "arrowDown", + "text": "② T+1 击穿均线·转空", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "上升趋势通道", + "skill_key": "follow_add", + "frame1": { + "title": "战场定性:上升通道回踩测试 · 20EMA 是多头最后防线", + "body": "虽然前期 20EMA 向上倾斜看似多头通道完好,但任何上升趋势终有终结的一天。在 20EMA 附近做多,本质是在赌“机构买盘仍会在均线处护盘”;因此必须把 T0 信号棒低点(142.69)和 20EMA 设为铁血止损线,绝不能无底线死扛。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "cycle" + }, + "frame2": { + "title": "胜负手定格:T+1 实体阴棒击穿 20EMA 与防守底,趋势反转", + "body": "危险信号在 T+1 爆发:股价非但没有向上走出 High 2 确认,反而以 中阴棒(实体 0.8×ATR,收在最低点附近) 直接砸穿 20EMA 与 142.69 防守红线!均线从支撑变成头顶压力,上升通道正式瓦解并演变为多杀多单边下跌(15 日重挫 -22.7%)。认出破位棒果断离场才能躲过深渊。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 1, + "key_bar_index": 60, + "confirm_rule": "在 20EMA 处迅速收阳突破前一日高点恢复升势", + "invalidate_rule": "实体阴线收盘跌穿 20EMA 与 T0 低点 142.69(通道失守转势)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "follow_add", + "takeaway": "均线回踩不是免死金牌:回踩 20EMA 买入后若迟迟不创新高,反而出现放量阴线收盘跌穿均线与信号棒低点,说明通道已坏,必须第一时间止损。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2024-04-18", + "2024-04-19", + "2024-04-22", + "2024-04-23", + "2024-04-24", + "2024-04-25", + "2024-04-26", + "2024-04-29", + "2024-04-30", + "2024-05-06", + "2024-05-07", + "2024-05-08", + "2024-05-09", + "2024-05-10", + "2024-05-13", + "2024-05-14", + "2024-05-15", + "2024-05-16", + "2024-05-17", + "2024-05-20", + "2024-05-21", + "2024-05-22", + "2024-05-23", + "2024-05-24", + "2024-05-27", + "2024-05-28", + "2024-05-29", + "2024-05-30", + "2024-05-31", + "2024-06-03", + "2024-06-04", + "2024-06-05", + "2024-06-06", + "2024-06-07", + "2024-06-11", + "2024-06-12", + "2024-06-13", + "2024-06-14", + "2024-06-17", + "2024-06-18", + "2024-06-19", + "2024-06-20", + "2024-06-21", + "2024-06-24", + "2024-06-25", + "2024-06-26", + "2024-06-27", + "2024-06-28", + "2024-07-01", + "2024-07-02", + "2024-07-03", + "2024-07-04", + "2024-07-05", + "2024-07-08", + "2024-07-09", + "2024-07-10", + "2024-07-11", + "2024-07-12", + "2024-07-15", + "2024-07-16" + ], + "o": [ + 121.347, + 122.407, + 110.212, + 113.035, + 113.604, + 117.251, + 121.582, + 133.648, + 133.321, + 135.81, + 133.52, + 124.789, + 123.651, + 121.447, + 122.655, + 122.2, + 117.33, + 122.286, + 119.314, + 120.167, + 125.613, + 125.144, + 126.566, + 122.3, + 118.112, + 118.745, + 117.323, + 114.549, + 111.634, + 114.478, + 120.878, + 122.371, + 122.348, + 123.142, + 118.071, + 118.081, + 119.937, + 124.045, + 139.911, + 141.479, + 148.594, + 144.873, + 139.415, + 144.079, + 133.958, + 136.935, + 136.905, + 134.95, + 136.29, + 143.861, + 142.888, + 144.674, + 142.491, + 144.962, + 142.779, + 152.811, + 157.981, + 146.966, + 146.857, + 148.524 + ], + "h": [ + 125.357, + 124.604, + 113.76, + 115.09, + 120.167, + 119.335, + 133.662, + 135.099, + 137.147, + 136.955, + 134.189, + 126.516, + 124.149, + 122.783, + 125.144, + 123.011, + 121.738, + 124.134, + 123.231, + 127.171, + 128.202, + 125.77, + 127.754, + 127.803, + 121.511, + 119.022, + 118.034, + 115.829, + 115.673, + 122.094, + 124.426, + 123.367, + 128.917, + 124.968, + 120.721, + 120.393, + 125.454, + 139.395, + 143.821, + 150.32, + 149.08, + 147.81, + 144.674, + 145.359, + 136.538, + 139.683, + 138.919, + 140.745, + 145.2, + 146.52, + 143.335, + 146.212, + 143.166, + 145.865, + 154.796, + 156.75, + 158.447, + 149.804, + 150.201, + 149.318 + ], + "l": [ + 119.598, + 116.54, + 107.283, + 109.835, + 112.246, + 116.1, + 121.305, + 131.913, + 132.326, + 130.015, + 122.371, + 123.367, + 119.612, + 118.517, + 121.205, + 117.102, + 116.967, + 120.878, + 116.775, + 118.389, + 124.966, + 122.812, + 120.082, + 117.308, + 117.323, + 113.838, + 114.102, + 112.815, + 109.885, + 113.291, + 120.451, + 118.716, + 122.348, + 118.071, + 116.484, + 116.117, + 118.756, + 123.122, + 139.415, + 141.479, + 143.087, + 143.543, + 138.929, + 138.472, + 132.519, + 136.538, + 134.751, + 134.702, + 135.952, + 141.598, + 139.018, + 141.906, + 137.639, + 141.291, + 141.31, + 151.402, + 148.147, + 144.873, + 144.178, + 142.69 + ], + "c": [ + 123.281, + 121.376, + 112.601, + 111.997, + 119.648, + 116.718, + 131.444, + 133.463, + 132.475, + 130.278, + 125.706, + 124.291, + 123.139, + 121.731, + 121.98, + 117.628, + 118.581, + 121.233, + 121.29, + 125.756, + 126.161, + 123.132, + 123.573, + 117.6, + 119.733, + 114.486, + 114.478, + 113.746, + 111.826, + 119.705, + 123.011, + 118.716, + 124.452, + 118.587, + 118.091, + 118.29, + 122.745, + 137.232, + 141.41, + 145.776, + 144.873, + 143.583, + 141.896, + 139.127, + 133.858, + 138.919, + 135.089, + 136.815, + 143.781, + 144.486, + 142.392, + 141.906, + 140.407, + 143.275, + 153.138, + 156.314, + 152.077, + 148.961, + 148.425, + 146.976 + ], + "v": [ + 22978966, + 30033972, + 48885558, + 33693394, + 38655026, + 23340528, + 56920969, + 34966364, + 23226207, + 27818245, + 43210209, + 22496302, + 25491190, + 21453452, + 23329586, + 30052533, + 21577002, + 32490543, + 27871330, + 33914913, + 18627302, + 19516049, + 31030308, + 38313209, + 23373172, + 34628481, + 22105738, + 15341957, + 20935008, + 39910636, + 28616221, + 19750031, + 40541005, + 31591658, + 19973543, + 16624956, + 30630949, + 58687383, + 37826641, + 34457834, + 24641347, + 20839844, + 23695838, + 20461306, + 26448922, + 26628316, + 17307415, + 22826311, + 29649324, + 22876893, + 15117526, + 17276664, + 18038676, + 20380790, + 31006787, + 23634459, + 29084256, + 20031226, + 17939747, + 25208646 + ], + "ema20": [ + 117.364, + 117.746, + 117.256, + 116.755, + 117.03, + 117.001, + 118.376, + 119.813, + 121.019, + 121.901, + 122.263, + 122.456, + 122.521, + 122.446, + 122.402, + 121.947, + 121.626, + 121.589, + 121.561, + 121.96, + 122.36, + 122.434, + 122.542, + 122.071, + 121.849, + 121.147, + 120.512, + 119.868, + 119.102, + 119.159, + 119.526, + 119.449, + 119.926, + 119.798, + 119.635, + 119.507, + 119.816, + 121.474, + 123.373, + 125.507, + 127.351, + 128.897, + 130.135, + 130.991, + 131.264, + 131.993, + 132.288, + 132.719, + 133.773, + 134.793, + 135.517, + 136.125, + 136.533, + 137.175, + 138.696, + 140.373, + 141.488, + 142.2, + 142.793, + 143.191 + ] + }, + "future": { + "dates": [ + "2024-07-17", + "2024-07-18", + "2024-07-19", + "2024-07-22", + "2024-07-23", + "2024-07-24", + "2024-07-25", + "2024-07-26", + "2024-07-29", + "2024-07-30", + "2024-07-31", + "2024-08-01", + "2024-08-02", + "2024-08-05", + "2024-08-06" + ], + "o": [ + 145.845, + 134.96, + 136.141, + 132.965, + 135.942, + 128.51, + 125.722, + 121.763, + 123.033, + 127.012, + 125.404, + 133.462, + 121.435, + 112.167, + 114.013 + ], + "h": [ + 146.331, + 139.425, + 138.224, + 135.446, + 136.022, + 134.454, + 126.397, + 124.829, + 130.296, + 128.48, + 128.996, + 134.404, + 123.261, + 115.898, + 116.335 + ], + "l": [ + 139.346, + 132.221, + 133.918, + 131.12, + 129.889, + 128.192, + 119.917, + 120.135, + 122.209, + 124.71, + 122.15, + 128.51, + 117.764, + 108.148, + 112.048 + ], + "c": [ + 140.616, + 138.919, + 133.938, + 133.561, + 129.909, + 129.334, + 121.326, + 123.291, + 128.589, + 126.674, + 128.5, + 128.897, + 118.061, + 109.27, + 113.596 + ], + "v": [ + 28992286, + 33790852, + 22467107, + 20627130, + 20271751, + 22128889, + 34355360, + 22474501, + 26996345, + 15853869, + 28132675, + 27979215, + 37967625, + 47058902, + 33381785 + ], + "ema20": [ + 142.946, + 142.562, + 141.741, + 140.962, + 139.909, + 138.902, + 137.228, + 135.901, + 135.204, + 134.392, + 133.831, + 133.361, + 131.904, + 129.748, + 128.21 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2024-07-16", + "open": 148.524, + "high": 149.318, + "low": 142.69, + "close": 146.976, + "volume": 25208646, + "ema20": 143.191, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 53, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在上半区,下影 65%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0998, + "push": false, + "impact_pts": -4, + "text": "沪深300 相对 20EMA +0.57 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.021, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 1 根(买盘一般)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0192, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+1", + "date": "2024-07-17", + "open": 145.845, + "high": 146.331, + "low": 139.346, + "close": 140.616, + "volume": 28992286, + "ema20": 142.946, + "change_from_t0_pct": -0.0433, + "bullish_edge_score": 62, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阴棒(实体 0.8×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0563, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +0.61 倍 ATR(大盘顺风)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.0244, + "push": true, + "impact_pts": 2, + "text": "近 3 日净多头实体 -0.25 倍 ATR(空头主导)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0226, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 7%(上方压力有限)" + } + ] + }, + { + "day": "T+2", + "date": "2024-07-18", + "open": 134.96, + "high": 139.425, + "low": 132.221, + "close": 138.919, + "volume": 33790852, + "ema20": 142.562, + "change_from_t0_pct": -0.0548, + "bullish_edge_score": 46, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阳棒(实体 0.6×ATR,收在最高点附近,下影 38%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0616, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +1.03 倍 ATR(大盘顺风)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": -0.0372, + "push": false, + "impact_pts": -2, + "text": "收盘位置强度 93%(收在当日最高附近,多方掌握收盘权)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0347, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 7%(上方压力有限)" + } + ] + }, + { + "day": "T+3", + "date": "2024-07-19", + "open": 136.141, + "high": 138.224, + "low": 133.918, + "close": 133.938, + "volume": 22467107, + "ema20": 141.741, + "change_from_t0_pct": -0.0887, + "bullish_edge_score": 86, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "长上影拒绝棒(流星线)(实体 0.3×ATR,收在最低点附近,上影 48%)", + "top3_shap": [ + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": 0.0363, + "push": true, + "impact_pts": 2, + "text": "收盘位置强度 0%(收在当日最低附近,空方掌握收盘权)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0232, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0181, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.328 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+4", + "date": "2024-07-22", + "open": 132.965, + "high": 135.446, + "low": 131.12, + "close": 133.561, + "volume": 20627130, + "ema20": 140.962, + "change_from_t0_pct": -0.0913, + "bullish_edge_score": 56, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在中位犹豫,上影 44%、下影 43%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0921, + "push": false, + "impact_pts": -4, + "text": "沪深300 相对 20EMA +0.61 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0295, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 44%(上方被明显拒绝,抛压重)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0228, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+5", + "date": "2024-07-23", + "open": 135.942, + "high": 136.022, + "low": 129.889, + "close": 129.909, + "volume": 20271751, + "ema20": 139.909, + "change_from_t0_pct": -0.1161, + "bullish_edge_score": 80, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "大阴趋势棒(实体 0.9×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0307, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -1.51 倍 ATR(跌破 20EMA,空头结构)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0279, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.18 倍 ATR(大盘逆风)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0225, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 0%(下方承接一般)" + } + ] + }, + { + "day": "T+6", + "date": "2024-07-24", + "open": 128.51, + "high": 134.454, + "low": 128.192, + "close": 129.334, + "volume": 22128889, + "ema20": 138.902, + "change_from_t0_pct": -0.12, + "bullish_edge_score": 76, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在最低点附近,上影 82%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0268, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.55 倍 ATR(大盘逆风)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0207, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 5%(下方承接一般)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0195, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.340 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+7", + "date": "2024-07-25", + "open": 125.722, + "high": 126.397, + "low": 119.917, + "close": 121.326, + "volume": 34355360, + "ema20": 137.228, + "change_from_t0_pct": -0.1745, + "bullish_edge_score": 47, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阴棒(实体 0.6×ATR,收在下半区)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0291, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 10%(上方压力有限)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0257, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.85 倍 ATR(大盘逆风)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": -0.024, + "push": false, + "impact_pts": -2, + "text": "近 3 日净多头实体 -0.48 倍 ATR(空头主导)" + } + ] + }, + { + "day": "T+8", + "date": "2024-07-26", + "open": 121.763, + "high": 124.829, + "low": 120.135, + "close": 123.291, + "volume": 22474501, + "ema20": 135.901, + "change_from_t0_pct": -0.1612, + "bullish_edge_score": 59, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "小阳十字星(实体 0.2×ATR,收在上半区,上影 33%、下影 35%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0357, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.47 倍 ATR(大盘逆风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0257, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0157, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 -0.06(量价背离度低)" + } + ] + }, + { + "day": "T+9", + "date": "2024-07-29", + "open": 123.033, + "high": 130.296, + "low": 122.209, + "close": 128.589, + "volume": 26996345, + "ema20": 135.204, + "change_from_t0_pct": -0.1251, + "bullish_edge_score": 53, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阳棒(实体 0.8×ATR,收在上半区)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0327, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 21%(上方压力有限)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": -0.0285, + "push": false, + "impact_pts": -2, + "text": "下影线占振幅 10%(下方承接一般)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0264, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 1 根(买盘一般)" + } + ] + }, + { + "day": "T+10", + "date": "2024-07-30", + "open": 127.012, + "high": 128.48, + "low": 124.71, + "close": 126.674, + "volume": 15853869, + "ema20": 134.392, + "change_from_t0_pct": -0.1381, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "长下影承接棒(Pin Bar)(实体 0.0×ATR,收在中位犹豫,上影 39%、下影 52%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0918, + "push": true, + "impact_pts": 4, + "text": "沪深300 相对 20EMA -2.15 倍 ATR(大盘逆风)" + }, + { + "name_cn": "实体动能", + "feature": "pa_body_atr", + "shap": -0.0329, + "push": false, + "impact_pts": -2, + "text": "实体厚度 0.05 倍 ATR(接近十字星/纺锤线)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0296, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -0.84 倍 ATR/5日(中期趋势走弱)" + } + ] + }, + { + "day": "T+11", + "date": "2024-07-31", + "open": 125.404, + "high": 128.996, + "low": 122.15, + "close": 128.5, + "volume": 28132675, + "ema20": 133.831, + "change_from_t0_pct": -0.1257, + "bullish_edge_score": 86, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "长下影承接棒(Pin Bar)(实体 0.5×ATR,收在最高点附近,下影 48%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0735, + "push": true, + "impact_pts": 3, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0407, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -0.77 倍 ATR/5日(中期趋势走弱)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0299, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 7%(上方压力有限)" + } + ] + }, + { + "day": "T+12", + "date": "2024-08-01", + "open": 133.462, + "high": 134.404, + "low": 128.51, + "close": 128.897, + "volume": 27979215, + "ema20": 133.361, + "change_from_t0_pct": -0.123, + "bullish_edge_score": 86, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "中阴棒(实体 0.7×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0631, + "push": true, + "impact_pts": 3, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0225, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -0.59 倍 ATR/5日(中期趋势走弱)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0197, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+13", + "date": "2024-08-02", + "open": 121.435, + "high": 123.261, + "low": 117.764, + "close": 118.061, + "volume": 37967625, + "ema20": 131.904, + "change_from_t0_pct": -0.1967, + "bullish_edge_score": 91, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "中阴棒(实体 0.5×ATR,收在最低点附近,上影 33%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0518, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0406, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.42 倍 ATR(大盘逆风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0346, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 33%(上方被明显拒绝,抛压重)" + } + ] + }, + { + "day": "T+14", + "date": "2024-08-05", + "open": 112.167, + "high": 115.898, + "low": 108.148, + "close": 109.27, + "volume": 47058902, + "ema20": 129.748, + "change_from_t0_pct": -0.2565, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "长上影拒绝棒(流星线)(实体 0.4×ATR,收在最低点附近,上影 48%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1202, + "push": true, + "impact_pts": 5, + "text": "沪深300 相对 20EMA -2.12 倍 ATR(大盘逆风)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": -0.0362, + "push": false, + "impact_pts": -2, + "text": "收盘位置强度 14%(收在当日最低附近,空方掌握收盘权)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": -0.0229, + "push": false, + "impact_pts": -2, + "text": "下影线占振幅 14%(下方承接一般)" + } + ] + }, + { + "day": "T+15", + "date": "2024-08-06", + "open": 114.013, + "high": 116.335, + "low": 112.048, + "close": 113.596, + "volume": 33381785, + "ema20": 128.21, + "change_from_t0_pct": -0.2271, + "bullish_edge_score": 93, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在下半区,上影 54%、下影 36%)", + "top3_shap": [ + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.051, + "push": true, + "impact_pts": 2, + "text": "近 5 日 K 线重叠率 13%(重叠低,通道顺畅)" + }, + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.0313, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 +0.04(无明显高潮)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0292, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 54%(上方被明显拒绝,抛压重)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2024-07-16", + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在上半区,下影 65%)", + "signal": "前期处于 20EMA 上升通道,自 158.45 回调至 20EMA 附近看似企稳,实则多头承接暗中衰竭。", + "hypothesis": "战场定性:上升通道回踩测试 · 20EMA 是多头最后防线", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 53, + "ai_position_pct": 0 + }, + "pivots": [ + { + "day": "T+1", + "date": "2024-07-17", + "candle": "中阴棒(实体 0.8×ATR,收在最低点附近)", + "signal": "胜负手定格:T+1 实体阴棒击穿 20EMA 与防守底,趋势反转", + "verdict": "原假设被证伪失效", + "change_from_t0_pct": -0.0433, + "bullish_edge_score": 62, + "ai_position_pct": 0 + } + ], + "summary": "15 个交易日收盘累计 -22.7%(期间最高 -0.4% / 最低 -26.4%)。", + "confirm_rule": "在 20EMA 处迅速收阳突破前一日高点恢复升势", + "invalidate_rule": "实体阴线收盘跌穿 20EMA 与 T0 低点 142.69(通道失守转势)" + } + }, + { + "id": "002475.SZ|2025-11-03|ema20_pullback", + "code": "002475.SZ", + "name": "立讯精密", + "date": "2025-11-03", + "year": 2025, + "segment": "样本外测试段", + "motif": "ema20_pullback", + "motif_cn": "强趋势通道 · 回踩 20EMA vs 破位转势", + "outcome": "failure", + "outcome_cn": "通道失守:放量阴棒击穿 20EMA 转空", + "thesis": "回踩 20EMA 未能企稳反遭放量击穿,及时止损规避趋势反转。", + "initial_position_pct": 0, + "initial_position_note": "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例", + "teaching_note": "均线回踩不是免死金牌:回踩 20EMA 买入后若迟迟不创新高,反而出现放量阴线收盘跌穿均线与信号棒低点,说明通道已坏,必须第一时间止损。", + "atr": 3.335, + "close0": 62.429, + "levels": { + "box_high": 66.953, + "box_low": 53.459, + "ema20_t0": 61.007, + "support_20d": 53.459, + "resistance_20d": 66.953, + "support_60d": 35.52, + "resistance_60d": 71.636 + }, + "forward": { + "close0": 62.4288, + "atr": 3.335061423488557, + "ret15": -0.1536870803219028, + "max_up_pct": -0.0012718488902557779, + "max_dn_pct": -0.17037489107591375, + "max_up_atr": -0.024, + "max_dn_atr": 3.189, + "fwd_range_atr": 3.165, + "fwd_range_pct": 0.1691, + "close_chg_15d": -0.1537, + "max_high": 62.349, + "min_low": 51.792 + }, + "quality": { + "score": 0.8617, + "structure_score": 0.8617, + "range_atr": 3.165, + "range_pct": 0.1691 + }, + "setup": { + "text": "前期处于 20EMA 上升通道,自 66.95 回调至 20EMA 附近看似企稳,实则多头承接暗中衰竭。", + "confirm_rule": "在 20EMA 处迅速收阳突破前一日高点恢复升势", + "invalidate_rule": "实体阴线收盘跌穿 20EMA 与 T0 低点 60.22(通道失守转势)" + }, + "drawings": { + "lines": [ + { + "id": "up_leg", + "label": "前段多头主升脉冲", + "color": "#2C48CE", + "style": "solid", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 40, + "price": 62.191 + }, + { + "barIndex": 56, + "price": 66.953 + } + ] + }, + { + "id": "pb_leg", + "label": "回踩 20EMA 均线", + "color": "#B08125", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 56, + "price": 66.953 + }, + { + "barIndex": 59, + "price": 60.216 + } + ] + }, + { + "id": "def_low", + "label": "回踩防守底 60.22", + "color": "#D9383A", + "style": "dashed", + "width": 1, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 60.216 + }, + { + "barIndex": 74, + "price": 60.216 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "belowBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 回踩20EMA", + "step": 1 + }, + { + "barIndex": 60, + "pos": "aboveBar", + "color": "#D9383A", + "shape": "arrowDown", + "text": "② T+1 击穿均线·转空", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "上升趋势通道", + "skill_key": "follow_add", + "frame1": { + "title": "战场定性:上升通道回踩测试 · 20EMA 是多头最后防线", + "body": "虽然前期 20EMA 向上倾斜看似多头通道完好,但任何上升趋势终有终结的一天。在 20EMA 附近做多,本质是在赌“机构买盘仍会在均线处护盘”;因此必须把 T0 信号棒低点(60.22)和 20EMA 设为铁血止损线,绝不能无底线死扛。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "cycle" + }, + "frame2": { + "title": "胜负手定格:T+1 实体阴棒击穿 20EMA 与防守底,趋势反转", + "body": "危险信号在 T+1 爆发:股价非但没有向上走出 High 2 确认,反而以 中阴棒(实体 0.6×ATR,收在最低点附近) 直接砸穿 20EMA 与 60.22 防守红线!均线从支撑变成头顶压力,上升通道正式瓦解并演变为多杀多单边下跌(15 日重挫 -15.4%)。认出破位棒果断离场才能躲过深渊。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 1, + "key_bar_index": 60, + "confirm_rule": "在 20EMA 处迅速收阳突破前一日高点恢复升势", + "invalidate_rule": "实体阴线收盘跌穿 20EMA 与 T0 低点 60.22(通道失守转势)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "follow_add", + "takeaway": "均线回踩不是免死金牌:回踩 20EMA 买入后若迟迟不创新高,反而出现放量阴线收盘跌穿均线与信号棒低点,说明通道已坏,必须第一时间止损。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2025-08-04", + "2025-08-05", + "2025-08-06", + "2025-08-07", + "2025-08-08", + "2025-08-11", + "2025-08-12", + "2025-08-13", + "2025-08-14", + "2025-08-15", + "2025-08-18", + "2025-08-19", + "2025-08-20", + "2025-08-21", + "2025-08-22", + "2025-08-25", + "2025-08-26", + "2025-08-27", + "2025-08-28", + "2025-08-29", + "2025-09-01", + "2025-09-02", + "2025-09-03", + "2025-09-04", + "2025-09-05", + "2025-09-08", + "2025-09-09", + "2025-09-10", + "2025-09-11", + "2025-09-12", + "2025-09-15", + "2025-09-16", + "2025-09-17", + "2025-09-18", + "2025-09-19", + "2025-09-22", + "2025-09-23", + "2025-09-24", + "2025-09-25", + "2025-09-26", + "2025-09-29", + "2025-09-30", + "2025-10-09", + "2025-10-10", + "2025-10-13", + "2025-10-14", + "2025-10-15", + "2025-10-16", + "2025-10-17", + "2025-10-20", + "2025-10-21", + "2025-10-22", + "2025-10-23", + "2025-10-24", + "2025-10-27", + "2025-10-28", + "2025-10-29", + "2025-10-30", + "2025-10-31", + "2025-11-03" + ], + "o": [ + 35.838, + 36.096, + 36.096, + 37.703, + 36.711, + 36.205, + 37.664, + 38.041, + 38.199, + 37.803, + 38.299, + 39.291, + 38.686, + 39.787, + 41.136, + 43.041, + 42.863, + 44.669, + 44.639, + 45.73, + 45.74, + 44.728, + 43.666, + 43.369, + 44.014, + 48.707, + 49.391, + 45.919, + 46.831, + 53.777, + 51.733, + 52.249, + 52.219, + 51.098, + 53.886, + 60.474, + 66.526, + 63.729, + 69.255, + 68.183, + 63.748, + 64.889, + 63.342, + 63.996, + 54.69, + 58.341, + 54.61, + 57.587, + 58.787, + 56.416, + 58.539, + 59.631, + 58.837, + 60.415, + 65.366, + 64.195, + 65.395, + 66.576, + 65.683, + 62.31 + ], + "h": [ + 36.106, + 36.324, + 36.096, + 38.358, + 36.711, + 37.902, + 38.319, + 38.676, + 38.745, + 38.517, + 40.045, + 39.44, + 40.432, + 42.099, + 42.545, + 43.944, + 46.435, + 46.802, + 45.74, + 46.99, + 46.435, + 45.234, + 44.083, + 45.333, + 46.831, + 51.515, + 50.354, + 48.588, + 52.487, + 55.225, + 53.807, + 53.777, + 52.576, + 54.511, + 57.458, + 60.474, + 66.526, + 71.636, + 71.021, + 68.243, + 64.85, + 65.862, + 65.634, + 64.443, + 57.914, + 59.502, + 57.924, + 61.119, + 58.787, + 57.398, + 62.379, + 60.673, + 59.978, + 63.649, + 65.475, + 65.286, + 66.953, + 66.765, + 66.358, + 62.468 + ], + "l": [ + 35.52, + 35.848, + 35.6, + 36.711, + 36.146, + 36.205, + 37.445, + 37.525, + 37.912, + 37.684, + 37.991, + 38.309, + 37.922, + 39.499, + 41.007, + 41.801, + 42.863, + 44.55, + 44.004, + 44.817, + 44.55, + 43.16, + 42.654, + 43.16, + 43.359, + 48.399, + 47.109, + 45.462, + 46.147, + 52.05, + 51.663, + 51.743, + 51.098, + 50.701, + 53.608, + 59.661, + 63.163, + 63.203, + 67.668, + 63.659, + 62.191, + 63.262, + 62.865, + 59.74, + 54.69, + 54.124, + 53.459, + 57.279, + 54.968, + 55.999, + 58.49, + 59.065, + 57.825, + 60.186, + 63.034, + 63.5, + 64.661, + 63.163, + 62.508, + 60.216 + ], + "c": [ + 35.957, + 36.185, + 35.927, + 36.731, + 36.156, + 37.713, + 37.872, + 38.051, + 38.18, + 38.289, + 39.281, + 38.795, + 39.737, + 41.861, + 42.367, + 42.615, + 45.244, + 44.629, + 45.74, + 45.621, + 44.917, + 43.458, + 42.883, + 44.043, + 46.831, + 49.362, + 47.337, + 47.715, + 52.487, + 52.298, + 52.328, + 51.981, + 51.604, + 52.695, + 54.977, + 60.474, + 65.187, + 69.652, + 68.203, + 63.748, + 64.294, + 64.185, + 64.79, + 60.325, + 57.299, + 54.581, + 57.746, + 58.738, + 55.057, + 56.704, + 60.673, + 59.641, + 59.67, + 63.411, + 64.889, + 64.155, + 66.755, + 64.532, + 62.508, + 62.429 + ], + "v": [ + 80240000, + 56860000, + 63990000, + 183170000, + 74280000, + 141480000, + 76450000, + 105810000, + 97920000, + 87420000, + 153900000, + 108850000, + 132780000, + 200680000, + 140170000, + 152350000, + 222320000, + 200970000, + 165320000, + 173030000, + 140620000, + 148020000, + 100890000, + 200640000, + 228190000, + 289130000, + 188130000, + 201880000, + 284210000, + 425850000, + 249500000, + 200350000, + 194960000, + 315540000, + 319700000, + 90280000, + 554120000, + 451640000, + 331770000, + 332090000, + 262850000, + 229530000, + 261650000, + 260960000, + 267290000, + 248600000, + 242530000, + 256330000, + 179240000, + 162520000, + 292940000, + 132430000, + 109740000, + 234450000, + 233990000, + 142630000, + 180050000, + 178790000, + 173420000, + 140410000 + ], + "ema20": [ + 36.457, + 36.432, + 36.384, + 36.417, + 36.392, + 36.518, + 36.647, + 36.78, + 36.914, + 37.045, + 37.258, + 37.404, + 37.626, + 38.029, + 38.443, + 38.84, + 39.45, + 39.943, + 40.495, + 40.983, + 41.358, + 41.558, + 41.684, + 41.909, + 42.378, + 43.043, + 43.452, + 43.858, + 44.68, + 45.405, + 46.065, + 46.628, + 47.102, + 47.635, + 48.334, + 49.49, + 50.985, + 52.763, + 54.233, + 55.14, + 56.011, + 56.79, + 57.552, + 57.816, + 57.767, + 57.463, + 57.49, + 57.609, + 57.366, + 57.303, + 57.624, + 57.816, + 57.993, + 58.509, + 59.116, + 59.596, + 60.278, + 60.683, + 60.857, + 61.007 + ] + }, + "future": { + "dates": [ + "2025-11-04", + "2025-11-05", + "2025-11-06", + "2025-11-07", + "2025-11-10", + "2025-11-11", + "2025-11-12", + "2025-11-13", + "2025-11-14", + "2025-11-17", + "2025-11-18", + "2025-11-19", + "2025-11-20", + "2025-11-21", + "2025-11-24" + ], + "o": [ + 62.012, + 58.142, + 60.504, + 60.246, + 59.035, + 58.52, + 55.999, + 56.753, + 56.218, + 56.049, + 55.682, + 56.555, + 57.646, + 53.578, + 52.775 + ], + "h": [ + 62.349, + 60.98, + 61.377, + 60.524, + 59.73, + 58.688, + 58.004, + 57.895, + 57.775, + 56.992, + 57.299, + 57.488, + 57.746, + 53.856, + 53.43 + ], + "l": [ + 59.591, + 57.904, + 59.333, + 59.373, + 56.763, + 55.791, + 55.93, + 56.436, + 55.662, + 55.682, + 54.968, + 55.97, + 55.245, + 52.388, + 51.792 + ], + "c": [ + 60.067, + 60.504, + 61.179, + 59.432, + 57.944, + 56.049, + 57.319, + 56.932, + 56.069, + 56.108, + 56.168, + 56.307, + 55.315, + 52.437, + 52.834 + ], + "v": [ + 128990000, + 112170000, + 132470000, + 105360000, + 153530000, + 108490000, + 135720000, + 94000000, + 101750000, + 74190000, + 105400000, + 93530000, + 95980000, + 150000000, + 95700000 + ], + "ema20": [ + 60.917, + 60.878, + 60.906, + 60.766, + 60.497, + 60.074, + 59.811, + 59.537, + 59.207, + 58.912, + 58.65, + 58.427, + 58.131, + 57.589, + 57.136 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2025-11-03", + "open": 62.31, + "high": 62.468, + "low": 60.216, + "close": 62.429, + "volume": 140410000, + "ema20": 61.007, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 34, + "hist_win_rate": 0.4538, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.0×ATR,收在最高点附近,下影 93%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0961, + "push": false, + "impact_pts": -4, + "text": "沪深300 相对 20EMA +0.40 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0275, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 2%(上方压力有限)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": -0.0197, + "push": false, + "impact_pts": -2, + "text": "距 20EMA +0.43 倍 ATR(站在 20EMA 之上,多头结构)" + } + ] + }, + { + "day": "T+1", + "date": "2025-11-04", + "open": 62.012, + "high": 62.349, + "low": 59.591, + "close": 60.067, + "volume": 128990000, + "ema20": 60.917, + "change_from_t0_pct": -0.0378, + "bullish_edge_score": 66, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阴棒(实体 0.6×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": -0.0178, + "push": false, + "impact_pts": -2, + "text": "近 3 日净多头实体 -0.49 倍 ATR(空头主导)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.016, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.10 倍 ATR(大盘逆风)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0156, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.62 倍(缩量)" + } + ] + }, + { + "day": "T+2", + "date": "2025-11-05", + "open": 58.142, + "high": 60.98, + "low": 57.904, + "close": 60.504, + "volume": 112170000, + "ema20": 60.878, + "change_from_t0_pct": -0.0308, + "bullish_edge_score": 58, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阳棒(实体 0.7×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0272, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.02 倍 ATR(大盘顺风)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": -0.023, + "push": false, + "impact_pts": -2, + "text": "收盘位置强度 85%(收在当日最高附近,多方掌握收盘权)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0214, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+3", + "date": "2025-11-06", + "open": 60.504, + "high": 61.377, + "low": 59.333, + "close": 61.179, + "volume": 132470000, + "ema20": 60.906, + "change_from_t0_pct": -0.02, + "bullish_edge_score": 41, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在最高点附近,下影 57%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0529, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.88 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0505, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 10%(上方压力有限)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0217, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+4", + "date": "2025-11-07", + "open": 60.246, + "high": 60.524, + "low": 59.373, + "close": 59.432, + "volume": 105360000, + "ema20": 60.766, + "change_from_t0_pct": -0.048, + "bullish_edge_score": 77, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "小阴十字星(实体 0.2×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.076, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +0.63 倍 ATR(大盘顺风)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0432, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.45(放量上涨,量价配合)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0292, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 24%(上方压力有限)" + } + ] + }, + { + "day": "T+5", + "date": "2025-11-10", + "open": 59.035, + "high": 59.73, + "low": 56.763, + "close": 57.944, + "volume": 153530000, + "ema20": 60.497, + "change_from_t0_pct": -0.0718, + "bullish_edge_score": 62, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "小阴十字星(实体 0.3×ATR,收在下半区,下影 40%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0333, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.81 倍 ATR(大盘顺风)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0236, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 +0.16(量价背离度低)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0156, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+6", + "date": "2025-11-11", + "open": 58.52, + "high": 58.688, + "low": 55.791, + "close": 56.049, + "volume": 108490000, + "ema20": 60.074, + "change_from_t0_pct": -0.1022, + "bullish_edge_score": 67, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "中阴棒(实体 0.7×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0216, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.14 倍 ATR(大盘顺风)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0177, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -1.31 倍 ATR(跌破 20EMA,空头结构)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": -0.0158, + "push": false, + "impact_pts": -2, + "text": "近 3 日净多头实体 -0.47 倍 ATR(空头主导)" + } + ] + }, + { + "day": "T+7", + "date": "2025-11-12", + "open": 55.999, + "high": 58.004, + "low": 55.93, + "close": 57.319, + "volume": 135720000, + "ema20": 59.811, + "change_from_t0_pct": -0.0819, + "bullish_edge_score": 67, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "小阳十字星(实体 0.4×ATR,收在上半区,上影 33%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0475, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.04 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0256, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 1 根(买盘一般)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": -0.025, + "push": false, + "impact_pts": -2, + "text": "距 20EMA -0.83 倍 ATR(跌破 20EMA,空头结构)" + } + ] + }, + { + "day": "T+8", + "date": "2025-11-13", + "open": 56.753, + "high": 57.895, + "low": 56.436, + "close": 56.932, + "volume": 94000000, + "ema20": 59.537, + "change_from_t0_pct": -0.088, + "bullish_edge_score": 84, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在下半区,上影 66%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0354, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 -0.43(放量下跌,派发嫌疑)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0267, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 -0.232 ATR/日(推动力衰减,楔形/衰竭前兆)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0256, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -0.47 倍 ATR/5日(中期趋势走弱)" + } + ] + }, + { + "day": "T+9", + "date": "2025-11-14", + "open": 56.218, + "high": 57.775, + "low": 55.662, + "close": 56.069, + "volume": 101750000, + "ema20": 59.207, + "change_from_t0_pct": -0.1019, + "bullish_edge_score": 79, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "长上影拒绝棒(流星线)(实体 0.0×ATR,收在最低点附近,上影 74%)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0244, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0241, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 -0.236 ATR/日(推动力衰减,楔形/衰竭前兆)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0213, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 1 根(买盘一般)" + } + ] + }, + { + "day": "T+10", + "date": "2025-11-17", + "open": 56.049, + "high": 56.992, + "low": 55.682, + "close": 56.108, + "volume": 74190000, + "ema20": 58.912, + "change_from_t0_pct": -0.1012, + "bullish_edge_score": 69, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "长上影拒绝棒(流星线)(实体 0.0×ATR,收在下半区,上影 67%、下影 28%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0319, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 -0.51(放量下跌,派发嫌疑)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0275, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 -0.246 ATR/日(推动力衰减,楔形/衰竭前兆)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0209, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+11", + "date": "2025-11-18", + "open": 55.682, + "high": 57.299, + "low": 54.968, + "close": 56.168, + "volume": 105400000, + "ema20": 58.65, + "change_from_t0_pct": -0.1003, + "bullish_edge_score": 74, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在中位犹豫,上影 49%、下影 31%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0247, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.08 倍 ATR(大盘逆风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0188, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -0.53 倍 ATR/5日(中期趋势走弱)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0176, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+12", + "date": "2025-11-19", + "open": 56.555, + "high": 57.488, + "low": 55.97, + "close": 56.307, + "volume": 93530000, + "ema20": 58.427, + "change_from_t0_pct": -0.0981, + "bullish_edge_score": 65, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在下半区,上影 61%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0308, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.70 倍 ATR(大盘逆风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0255, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0173, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+13", + "date": "2025-11-20", + "open": 57.646, + "high": 57.746, + "low": 55.245, + "close": 55.315, + "volume": 95980000, + "ema20": 58.131, + "change_from_t0_pct": -0.114, + "bullish_edge_score": 80, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "中阴棒(实体 0.7×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0268, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -1.08 倍 ATR(跌破 20EMA,空头结构)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0256, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -0.54 倍 ATR/5日(中期趋势走弱)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0252, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 4%(上方压力有限)" + } + ] + }, + { + "day": "T+14", + "date": "2025-11-21", + "open": 53.578, + "high": 53.856, + "low": 52.388, + "close": 52.437, + "volume": 150000000, + "ema20": 57.589, + "change_from_t0_pct": -0.16, + "bullish_edge_score": 94, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "小阴十字星(实体 0.3×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1613, + "push": true, + "impact_pts": 7, + "text": "沪深300 相对 20EMA -2.41 倍 ATR(大盘逆风)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0438, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 3%(下方承接一般)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0205, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -1.96 倍 ATR(跌破 20EMA,空头结构)" + } + ] + }, + { + "day": "T+15", + "date": "2025-11-24", + "open": 52.775, + "high": 53.43, + "low": 51.792, + "close": 52.834, + "volume": 95700000, + "ema20": 57.136, + "change_from_t0_pct": -0.1537, + "bullish_edge_score": 84, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "长下影承接棒(Pin Bar)(实体 0.0×ATR,收在上半区,上影 36%、下影 60%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1246, + "push": true, + "impact_pts": 6, + "text": "沪深300 相对 20EMA -2.28 倍 ATR(大盘逆风)" + }, + { + "name_cn": "实体动能", + "feature": "pa_body_atr", + "shap": -0.0331, + "push": false, + "impact_pts": -2, + "text": "实体厚度 0.02 倍 ATR(接近十字星/纺锤线)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": -0.0214, + "push": false, + "impact_pts": -2, + "text": "下影线占振幅 60%(下方承接明显,Pin Bar 特征)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2025-11-03", + "candle": "长下影承接棒(Pin Bar)(实体 0.0×ATR,收在最高点附近,下影 93%)", + "signal": "前期处于 20EMA 上升通道,自 66.95 回调至 20EMA 附近看似企稳,实则多头承接暗中衰竭。", + "hypothesis": "战场定性:上升通道回踩测试 · 20EMA 是多头最后防线", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 34, + "ai_position_pct": 0 + }, + "pivots": [ + { + "day": "T+1", + "date": "2025-11-04", + "candle": "中阴棒(实体 0.6×ATR,收在最低点附近)", + "signal": "胜负手定格:T+1 实体阴棒击穿 20EMA 与防守底,趋势反转", + "verdict": "原假设被证伪失效", + "change_from_t0_pct": -0.0378, + "bullish_edge_score": 66, + "ai_position_pct": 0 + } + ], + "summary": "15 个交易日收盘累计 -15.4%(期间最高 -0.1% / 最低 -17.0%)。", + "confirm_rule": "在 20EMA 处迅速收阳突破前一日高点恢复升势", + "invalidate_rule": "实体阴线收盘跌穿 20EMA 与 T0 低点 60.22(通道失守转势)" + } + }, + { + "id": "600036.SH|2022-02-21|ema20_pullback", + "code": "600036.SH", + "name": "招商银行", + "date": "2022-02-21", + "year": 2022, + "segment": "训练段", + "motif": "ema20_pullback", + "motif_cn": "强趋势通道 · 回踩 20EMA vs 破位转势", + "outcome": "failure", + "outcome_cn": "通道失守:放量阴棒击穿 20EMA 转空", + "thesis": "回踩 20EMA 未能企稳反遭放量击穿,及时止损规避趋势反转。", + "initial_position_pct": 0, + "initial_position_note": "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例", + "teaching_note": "均线回踩不是免死金牌:回踩 20EMA 买入后若迟迟不创新高,反而出现放量阴线收盘跌穿均线与信号棒低点,说明通道已坏,必须第一时间止损。", + "atr": 0.943, + "close0": 40.322, + "levels": { + "box_high": 41.288, + "box_low": 37.307, + "ema20_t0": 39.781, + "support_20d": 37.611, + "resistance_20d": 41.288, + "support_60d": 37.011, + "resistance_60d": 42.223 + }, + "forward": { + "close0": 40.3223, + "atr": 0.9433782758133618, + "ret15": -0.18566401222152495, + "max_up_pct": -0.005795800338770363, + "max_dn_pct": -0.18663121895328383, + "max_up_atr": -0.248, + "max_dn_atr": 7.977, + "fwd_range_atr": 7.729, + "fwd_range_pct": 0.1808, + "close_chg_15d": -0.1857, + "max_high": 40.089, + "min_low": 32.797 + }, + "quality": { + "score": 0.7586, + "structure_score": 0.7586, + "range_atr": 7.729, + "range_pct": 0.1808 + }, + "setup": { + "text": "前期处于 20EMA 上升通道,自 41.29 回调至 20EMA 附近看似企稳,实则多头承接暗中衰竭。", + "confirm_rule": "在 20EMA 处迅速收阳突破前一日高点恢复升势", + "invalidate_rule": "实体阴线收盘跌穿 20EMA 与 T0 低点 39.74(通道失守转势)" + }, + "drawings": { + "lines": [ + { + "id": "up_leg", + "label": "前段多头主升脉冲", + "color": "#2C48CE", + "style": "solid", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 37, + "price": 38.266 + }, + { + "barIndex": 53, + "price": 41.288 + } + ] + }, + { + "id": "pb_leg", + "label": "回踩 20EMA 均线", + "color": "#B08125", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 53, + "price": 41.288 + }, + { + "barIndex": 59, + "price": 39.738 + } + ] + }, + { + "id": "def_low", + "label": "回踩防守底 39.74", + "color": "#D9383A", + "style": "dashed", + "width": 1, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 39.738 + }, + { + "barIndex": 74, + "price": 39.738 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "belowBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 回踩20EMA", + "step": 1 + }, + { + "barIndex": 61, + "pos": "aboveBar", + "color": "#D9383A", + "shape": "arrowDown", + "text": "② T+2 击穿均线·转空", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "上升趋势通道", + "skill_key": "follow_add", + "frame1": { + "title": "战场定性:上升通道回踩测试 · 20EMA 是多头最后防线", + "body": "虽然前期 20EMA 向上倾斜看似多头通道完好,但任何上升趋势终有终结的一天。在 20EMA 附近做多,本质是在赌“机构买盘仍会在均线处护盘”;因此必须把 T0 信号棒低点(39.74)和 20EMA 设为铁血止损线,绝不能无底线死扛。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "cycle" + }, + "frame2": { + "title": "胜负手定格:T+2 实体阴棒击穿 20EMA 与防守底,趋势反转", + "body": "危险信号在 T+2 爆发:股价非但没有向上走出 High 2 确认,反而以 中阴棒(实体 0.5×ATR,收在下半区) 直接砸穿 20EMA 与 39.74 防守红线!均线从支撑变成头顶压力,上升通道正式瓦解并演变为多杀多单边下跌(15 日重挫 -18.6%)。认出破位棒果断离场才能躲过深渊。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 2, + "key_bar_index": 61, + "confirm_rule": "在 20EMA 处迅速收阳突破前一日高点恢复升势", + "invalidate_rule": "实体阴线收盘跌穿 20EMA 与 T0 低点 39.74(通道失守转势)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "follow_add", + "takeaway": "均线回踩不是免死金牌:回踩 20EMA 买入后若迟迟不创新高,反而出现放量阴线收盘跌穿均线与信号棒低点,说明通道已坏,必须第一时间止损。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2021-11-22", + "2021-11-23", + "2021-11-24", + "2021-11-25", + "2021-11-26", + "2021-11-29", + "2021-11-30", + "2021-12-01", + "2021-12-02", + "2021-12-03", + "2021-12-06", + "2021-12-07", + "2021-12-08", + "2021-12-09", + "2021-12-10", + "2021-12-13", + "2021-12-14", + "2021-12-15", + "2021-12-16", + "2021-12-17", + "2021-12-20", + "2021-12-21", + "2021-12-22", + "2021-12-23", + "2021-12-24", + "2021-12-27", + "2021-12-28", + "2021-12-29", + "2021-12-30", + "2021-12-31", + "2022-01-04", + "2022-01-05", + "2022-01-06", + "2022-01-07", + "2022-01-10", + "2022-01-11", + "2022-01-12", + "2022-01-13", + "2022-01-14", + "2022-01-17", + "2022-01-18", + "2022-01-19", + "2022-01-20", + "2022-01-21", + "2022-01-24", + "2022-01-25", + "2022-01-26", + "2022-01-27", + "2022-01-28", + "2022-02-07", + "2022-02-08", + "2022-02-09", + "2022-02-10", + "2022-02-11", + "2022-02-14", + "2022-02-15", + "2022-02-16", + "2022-02-17", + "2022-02-18", + "2022-02-21" + ], + "o": [ + 40.587, + 40.315, + 40.19, + 40.276, + 39.886, + 38.78, + 38.546, + 38.546, + 38.959, + 39.785, + 40.112, + 40.735, + 40.494, + 40.704, + 41.21, + 41.724, + 40.758, + 39.73, + 39.66, + 39.8, + 39.496, + 39.458, + 39.442, + 39.037, + 39.123, + 38.85, + 38.429, + 38.694, + 37.307, + 37.814, + 37.946, + 37.775, + 38.032, + 37.502, + 38.538, + 38.554, + 38.85, + 38.834, + 38.538, + 37.681, + 37.9, + 38.538, + 38.858, + 40.034, + 40.47, + 40.159, + 39.925, + 39.652, + 39.769, + 39.185, + 40.159, + 40.431, + 40.431, + 40.369, + 41.281, + 39.691, + 39.387, + 39.941, + 39.925, + 40.377 + ], + "h": [ + 40.774, + 40.743, + 40.431, + 40.276, + 40.081, + 39.029, + 38.834, + 39.107, + 39.73, + 39.948, + 40.821, + 40.961, + 40.727, + 41.943, + 41.67, + 42.223, + 40.899, + 39.995, + 39.964, + 40.042, + 39.964, + 39.722, + 39.535, + 39.154, + 39.123, + 38.998, + 38.795, + 38.733, + 38.001, + 38.079, + 37.946, + 38.702, + 38.476, + 38.281, + 38.951, + 39.029, + 39.029, + 38.99, + 38.538, + 38.055, + 38.437, + 38.936, + 40.423, + 40.509, + 40.509, + 40.346, + 40.112, + 39.87, + 39.886, + 40.12, + 40.509, + 40.774, + 40.431, + 41.288, + 41.281, + 40.026, + 40.011, + 40.494, + 40.595, + 40.423 + ], + "l": [ + 40.19, + 40.073, + 39.863, + 39.917, + 38.858, + 38.032, + 38.102, + 38.39, + 38.554, + 39.317, + 39.987, + 39.808, + 40.042, + 40.353, + 41.039, + 40.829, + 39.613, + 39.559, + 39.426, + 39.465, + 39.255, + 39.185, + 38.858, + 38.702, + 38.827, + 38.172, + 38.328, + 37.089, + 37.128, + 37.65, + 37.011, + 37.705, + 37.471, + 37.424, + 38.102, + 38.087, + 38.32, + 38.266, + 37.393, + 37.307, + 37.611, + 38.258, + 38.858, + 39.894, + 39.754, + 39.496, + 39.419, + 39.045, + 38.289, + 39.053, + 39.722, + 39.948, + 39.73, + 40.237, + 39.73, + 38.912, + 39.13, + 39.668, + 39.925, + 39.738 + ], + "c": [ + 40.268, + 40.315, + 40.307, + 40.057, + 39.029, + 38.811, + 38.554, + 38.943, + 39.645, + 39.925, + 40.369, + 40.385, + 40.54, + 41.389, + 41.67, + 40.836, + 39.847, + 39.73, + 39.886, + 39.551, + 39.489, + 39.442, + 38.959, + 39.123, + 38.842, + 38.429, + 38.663, + 37.097, + 37.783, + 37.946, + 37.666, + 38.211, + 37.51, + 38.211, + 38.351, + 38.834, + 38.764, + 38.437, + 37.409, + 37.845, + 38.18, + 38.718, + 40.019, + 40.369, + 40.392, + 39.652, + 39.73, + 39.551, + 38.336, + 40.003, + 40.283, + 40.213, + 40.283, + 41.101, + 39.886, + 39.123, + 39.785, + 40.089, + 40.556, + 40.322 + ], + "v": [ + 37650000, + 38910000, + 31500000, + 21570000, + 82340000, + 82720000, + 61000000, + 50040000, + 55610000, + 49410000, + 60470000, + 54080000, + 49100000, + 84060000, + 56430000, + 64550000, + 81060000, + 37850000, + 38370000, + 47640000, + 47080000, + 35690000, + 43680000, + 42370000, + 34470000, + 73590000, + 65320000, + 143890000, + 96790000, + 49290000, + 71960000, + 83720000, + 68190000, + 66070000, + 57090000, + 71560000, + 51840000, + 40140000, + 66660000, + 53180000, + 57910000, + 62030000, + 138620000, + 85810000, + 63820000, + 58350000, + 43670000, + 52940000, + 71510000, + 73230000, + 52820000, + 51220000, + 33550000, + 80990000, + 59410000, + 56620000, + 40500000, + 44160000, + 35440000, + 31350000 + ], + "ema20": [ + 40.834, + 40.785, + 40.739, + 40.674, + 40.517, + 40.355, + 40.183, + 40.065, + 40.025, + 40.016, + 40.049, + 40.081, + 40.125, + 40.245, + 40.381, + 40.424, + 40.369, + 40.309, + 40.268, + 40.2, + 40.132, + 40.067, + 39.961, + 39.881, + 39.782, + 39.653, + 39.559, + 39.325, + 39.178, + 39.06, + 38.928, + 38.859, + 38.731, + 38.681, + 38.65, + 38.667, + 38.677, + 38.654, + 38.535, + 38.47, + 38.442, + 38.468, + 38.616, + 38.783, + 38.936, + 39.004, + 39.073, + 39.119, + 39.044, + 39.136, + 39.245, + 39.337, + 39.427, + 39.587, + 39.615, + 39.568, + 39.589, + 39.636, + 39.724, + 39.781 + ] + }, + "future": { + "dates": [ + "2022-02-22", + "2022-02-23", + "2022-02-24", + "2022-02-25", + "2022-02-28", + "2022-03-01", + "2022-03-02", + "2022-03-03", + "2022-03-04", + "2022-03-07", + "2022-03-08", + "2022-03-09", + "2022-03-10", + "2022-03-11", + "2022-03-14" + ], + "o": [ + 39.792, + 40.089, + 39.38, + 38.982, + 38.632, + 38.951, + 38.795, + 38.624, + 38.367, + 37.401, + 36.271, + 35.523, + 35.523, + 34.667, + 33.888 + ], + "h": [ + 40.003, + 40.089, + 39.403, + 39.341, + 38.904, + 39.341, + 39.13, + 38.928, + 38.476, + 37.596, + 36.435, + 35.625, + 35.601, + 34.892, + 34.261 + ], + "l": [ + 39.528, + 39.458, + 38.834, + 38.601, + 38.414, + 38.453, + 38.515, + 38.523, + 37.783, + 36.225, + 35.212, + 33.506, + 34.768, + 33.576, + 32.797 + ], + "c": [ + 39.902, + 39.598, + 38.967, + 38.803, + 38.795, + 39.138, + 38.538, + 38.741, + 37.938, + 36.427, + 35.43, + 34.581, + 34.822, + 34.628, + 32.836 + ], + "v": [ + 36980000, + 37500000, + 48240000, + 45180000, + 33530000, + 40650000, + 39710000, + 31130000, + 57790000, + 101440000, + 83470000, + 90040000, + 67150000, + 74050000, + 108050000 + ], + "ema20": [ + 39.793, + 39.774, + 39.697, + 39.612, + 39.534, + 39.496, + 39.405, + 39.342, + 39.208, + 38.943, + 38.609, + 38.225, + 37.901, + 37.589, + 37.137 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2022-02-21", + "open": 40.377, + "high": 40.423, + "low": 39.738, + "close": 40.322, + "volume": 31350000, + "ema20": 39.781, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 51, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.1×ATR,收在最高点附近,下影 85%)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0287, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 7%(上方压力有限)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.028, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.48(放量上涨,量价配合)" + }, + { + "name_cn": "实体动能", + "feature": "pa_body_atr", + "shap": -0.0226, + "push": false, + "impact_pts": -2, + "text": "实体厚度 0.06 倍 ATR(接近十字星/纺锤线)" + } + ] + }, + { + "day": "T+1", + "date": "2022-02-22", + "open": 39.792, + "high": 40.003, + "low": 39.528, + "close": 39.902, + "volume": 36980000, + "ema20": 39.793, + "change_from_t0_pct": -0.0104, + "bullish_edge_score": 40, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.1×ATR,收在上半区,下影 56%)", + "top3_shap": [ + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.059, + "push": false, + "impact_pts": -3, + "text": "量能为前 20 日均量 0.62 倍(缩量)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0275, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +0.24 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0188, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 21%(上方压力有限)" + } + ] + }, + { + "day": "T+2", + "date": "2022-02-23", + "open": 40.089, + "high": 40.089, + "low": 39.458, + "close": 39.598, + "volume": 37500000, + "ema20": 39.774, + "change_from_t0_pct": -0.018, + "bullish_edge_score": 60, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阴棒(实体 0.5×ATR,收在下半区)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0204, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -0.688 ATR/日(推动力衰减,楔形/衰竭前兆)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0179, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.53 倍 ATR(大盘逆风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0144, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+3", + "date": "2022-02-24", + "open": 39.38, + "high": 39.403, + "low": 38.834, + "close": 38.967, + "volume": 48240000, + "ema20": 39.697, + "change_from_t0_pct": -0.0336, + "bullish_edge_score": 55, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阴棒(实体 0.4×ATR,收在下半区)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.033, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 4%(上方压力有限)" + }, + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": -0.0182, + "push": false, + "impact_pts": -2, + "text": "高潮衰竭度 +0.20(恐慌抛售高潮,反转倾向)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0151, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.67 倍 ATR(大盘逆风)" + } + ] + }, + { + "day": "T+4", + "date": "2022-02-25", + "open": 38.982, + "high": 39.341, + "low": 38.601, + "close": 38.803, + "volume": 45180000, + "ema20": 39.612, + "change_from_t0_pct": -0.0377, + "bullish_edge_score": 63, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在下半区,上影 48%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0304, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.92 倍 ATR(大盘逆风)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0213, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -0.705 ATR/日(推动力衰减,楔形/衰竭前兆)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0181, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + } + ] + }, + { + "day": "T+5", + "date": "2022-02-28", + "open": 38.632, + "high": 38.904, + "low": 38.414, + "close": 38.795, + "volume": 33530000, + "ema20": 39.534, + "change_from_t0_pct": -0.0379, + "bullish_edge_score": 64, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在上半区,下影 44%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0464, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.74 倍 ATR(大盘逆风)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0173, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -0.729 ATR/日(推动力衰减,楔形/衰竭前兆)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": 0.0143, + "push": true, + "impact_pts": 2, + "text": "收盘位置强度 78%(收在当日最高附近,多方掌握收盘权)" + } + ] + }, + { + "day": "T+6", + "date": "2022-03-01", + "open": 38.951, + "high": 39.341, + "low": 38.453, + "close": 39.138, + "volume": 40650000, + "ema20": 39.496, + "change_from_t0_pct": -0.0294, + "bullish_edge_score": 63, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在上半区,下影 56%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0314, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.18 倍 ATR(大盘逆风)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": 0.0201, + "push": true, + "impact_pts": 2, + "text": "收盘位置强度 77%(收在当日最高附近,多方掌握收盘权)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0172, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+7", + "date": "2022-03-02", + "open": 38.795, + "high": 39.13, + "low": 38.515, + "close": 38.538, + "volume": 39710000, + "ema20": 39.405, + "change_from_t0_pct": -0.0442, + "bullish_edge_score": 63, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.3×ATR,收在最低点附近,上影 54%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0366, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.72 倍 ATR(大盘逆风)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0286, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -0.742 ATR/日(推动力衰减,楔形/衰竭前兆)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0265, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + } + ] + }, + { + "day": "T+8", + "date": "2022-03-03", + "open": 38.624, + "high": 38.928, + "low": 38.523, + "close": 38.741, + "volume": 31130000, + "ema20": 39.342, + "change_from_t0_pct": -0.0392, + "bullish_edge_score": 63, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在中位犹豫,上影 46%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0294, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0245, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.03 倍 ATR(大盘逆风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0168, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -0.44 倍 ATR/5日(中期趋势走弱)" + } + ] + }, + { + "day": "T+9", + "date": "2022-03-04", + "open": 38.367, + "high": 38.476, + "low": 37.783, + "close": 37.938, + "volume": 57790000, + "ema20": 39.208, + "change_from_t0_pct": -0.0591, + "bullish_edge_score": 60, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阴棒(实体 0.5×ATR,收在下半区)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0266, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.69 倍 ATR(大盘逆风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0246, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 16%(上方压力有限)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0191, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + } + ] + }, + { + "day": "T+10", + "date": "2022-03-07", + "open": 37.401, + "high": 37.596, + "low": 36.225, + "close": 36.427, + "volume": 101440000, + "ema20": 38.943, + "change_from_t0_pct": -0.0966, + "bullish_edge_score": 82, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "大阴趋势棒(实体 1.0×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1361, + "push": true, + "impact_pts": 6, + "text": "沪深300 相对 20EMA -3.18 倍 ATR(大盘逆风)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": -0.0349, + "push": false, + "impact_pts": -2, + "text": "收盘位置强度 15%(收在当日最低附近,空方掌握收盘权)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": -0.0252, + "push": false, + "impact_pts": -2, + "text": "下影线占振幅 15%(下方承接一般)" + } + ] + }, + { + "day": "T+11", + "date": "2022-03-08", + "open": 36.271, + "high": 36.435, + "low": 35.212, + "close": 35.43, + "volume": 83470000, + "ema20": 38.609, + "change_from_t0_pct": -0.1213, + "bullish_edge_score": 78, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "大阴趋势棒(实体 0.9×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1218, + "push": true, + "impact_pts": 5, + "text": "沪深300 相对 20EMA -3.75 倍 ATR(大盘逆风)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": -0.0333, + "push": false, + "impact_pts": -2, + "text": "收盘位置强度 18%(收在当日最低附近,空方掌握收盘权)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0265, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 13%(上方压力有限)" + } + ] + }, + { + "day": "T+12", + "date": "2022-03-09", + "open": 35.523, + "high": 35.625, + "low": 33.506, + "close": 34.581, + "volume": 90040000, + "ema20": 38.225, + "change_from_t0_pct": -0.1424, + "bullish_edge_score": 87, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "大阴趋势棒(实体 1.0×ATR,收在中位犹豫,下影 51%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1433, + "push": true, + "impact_pts": 6, + "text": "沪深300 相对 20EMA -3.36 倍 ATR(大盘逆风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0283, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 5%(上方压力有限)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0225, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -3.65 倍 ATR(跌破 20EMA,空头结构)" + } + ] + }, + { + "day": "T+13", + "date": "2022-03-10", + "open": 35.523, + "high": 35.601, + "low": 34.768, + "close": 34.822, + "volume": 67150000, + "ema20": 37.901, + "change_from_t0_pct": -0.1364, + "bullish_edge_score": 91, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "中阴棒(实体 0.7×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1627, + "push": true, + "impact_pts": 7, + "text": "沪深300 相对 20EMA -2.31 倍 ATR(大盘逆风)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0329, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 7%(下方承接一般)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0299, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 9%(上方压力有限)" + } + ] + }, + { + "day": "T+14", + "date": "2022-03-11", + "open": 34.667, + "high": 34.892, + "low": 33.576, + "close": 34.628, + "volume": 74050000, + "ema20": 37.589, + "change_from_t0_pct": -0.1412, + "bullish_edge_score": 47, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.0×ATR,收在上半区,下影 80%)", + "top3_shap": [ + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": -0.0497, + "push": false, + "impact_pts": -2, + "text": "近 3 日净多头实体 -0.56 倍 ATR(空头主导)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0403, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 17%(上方压力有限)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0337, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.88 倍 ATR(大盘逆风)" + } + ] + }, + { + "day": "T+15", + "date": "2022-03-14", + "open": 33.888, + "high": 34.261, + "low": 32.797, + "close": 32.836, + "volume": 108050000, + "ema20": 37.137, + "change_from_t0_pct": -0.1857, + "bullish_edge_score": 95, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "大阴趋势棒(实体 1.1×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1291, + "push": true, + "impact_pts": 6, + "text": "沪深300 相对 20EMA -2.90 倍 ATR(大盘逆风)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0542, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 3%(下方承接一般)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0233, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -3.98 倍 ATR(跌破 20EMA,空头结构)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2022-02-21", + "candle": "长下影承接棒(Pin Bar)(实体 0.1×ATR,收在最高点附近,下影 85%)", + "signal": "前期处于 20EMA 上升通道,自 41.29 回调至 20EMA 附近看似企稳,实则多头承接暗中衰竭。", + "hypothesis": "战场定性:上升通道回踩测试 · 20EMA 是多头最后防线", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 51, + "ai_position_pct": 0 + }, + "pivots": [ + { + "day": "T+2", + "date": "2022-02-23", + "candle": "中阴棒(实体 0.5×ATR,收在下半区)", + "signal": "胜负手定格:T+2 实体阴棒击穿 20EMA 与防守底,趋势反转", + "verdict": "原假设被证伪失效", + "change_from_t0_pct": -0.018, + "bullish_edge_score": 60, + "ai_position_pct": 0 + } + ], + "summary": "15 个交易日收盘累计 -18.6%(期间最高 -0.6% / 最低 -18.7%)。", + "confirm_rule": "在 20EMA 处迅速收阳突破前一日高点恢复升势", + "invalidate_rule": "实体阴线收盘跌穿 20EMA 与 T0 低点 39.74(通道失守转势)" + } + }, + { + "id": "601899.SH|2025-08-20|ema20_pullback", + "code": "601899.SH", + "name": "紫金矿业", + "date": "2025-08-20", + "year": 2025, + "segment": "样本外测试段", + "motif": "ema20_pullback", + "motif_cn": "强趋势通道 · 回踩 20EMA vs 破位转势", + "outcome": "success", + "outcome_cn": "顺势起飞:回踩 20EMA 走出 H2 确认", + "thesis": "上升趋势通道回踩 20EMA 企稳,借 High 2 确认棒顺势做多。", + "initial_position_pct": 0, + "initial_position_note": "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例", + "teaching_note": "上升趋势通道黄金纪律:不在远离均线处追高,专等回踩 20EMA 企稳试仓;一旦走出突破前棒高点的确认阳棒(H2),大胆重仓顺势拿住波段。", + "atr": 0.492, + "close0": 19.857, + "levels": { + "box_high": 20.823, + "box_low": 18.379, + "ema20_t0": 19.601, + "support_20d": 18.379, + "resistance_20d": 20.823, + "support_60d": 16.782, + "resistance_60d": 20.823 + }, + "forward": { + "close0": 19.8571, + "atr": 0.4916813040352765, + "ret15": 0.22471055692925956, + "max_up_pct": 0.2572983970469003, + "max_dn_pct": -0.005348212981754474, + "max_up_atr": 10.391, + "max_dn_atr": 0.216, + "fwd_range_atr": 10.607, + "fwd_range_pct": 0.2626, + "close_chg_15d": 0.2247, + "max_high": 24.966, + "min_low": 19.751 + }, + "quality": { + "score": 0.9446, + "structure_score": 0.9446, + "range_atr": 10.607, + "range_pct": 0.2626 + }, + "setup": { + "text": "20EMA 稳健向上倾斜,股价自前高 20.82 缩量回踩至 20EMA 附近企稳收出承接信号。", + "confirm_rule": "站稳 20EMA 且阳线向上突破前棒高点(High 2 二次顺势入场确认)", + "invalidate_rule": "放量阴线收盘跌穿 20EMA 与 T0 防守底 19.50" + }, + "drawings": { + "lines": [ + { + "id": "up_leg", + "label": "前段多头主升脉冲", + "color": "#2C48CE", + "style": "solid", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 40, + "price": 19.152 + }, + { + "barIndex": 56, + "price": 20.823 + } + ] + }, + { + "id": "pb_leg", + "label": "回踩 20EMA 均线", + "color": "#B08125", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 56, + "price": 20.823 + }, + { + "barIndex": 59, + "price": 19.5 + } + ] + }, + { + "id": "def_low", + "label": "回踩防守底 19.50", + "color": "#D9383A", + "style": "dashed", + "width": 1, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 19.5 + }, + { + "barIndex": 74, + "price": 19.5 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "belowBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 回踩20EMA", + "step": 1 + }, + { + "barIndex": 62, + "pos": "belowBar", + "color": "#2C48CE", + "shape": "arrowUp", + "text": "② T+3 H2顺势确认", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "上升趋势通道", + "skill_key": "follow_add", + "frame1": { + "title": "战场定性:清晰上升通道中的 20EMA 动态支撑测试", + "body": "前段走势高低点依次抬高,蓝色 20EMA 均线持续向上倾斜,属于高胜率的【多头趋势通道(Bull Channel)】。在上升通道里追涨前高(20.82)极易挨洗盘,而耐心等价格回落触碰 20EMA 价值中枢(T0 出现企稳承接),正是交易员方程里胜率与盈亏比双优的顺势狙击位。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "cycle" + }, + "frame2": { + "title": "胜负手定格:T+3 向上突破前棒高点(High 2),主升浪重启", + "body": "T+3 收出 大阳趋势棒(实体 2.3×ATR,收在最高点附近),干净利落地站稳 20EMA 并向上吞掉回调高点——空头打压彻底宣告失败(Al Brooks 经典的 High 2 顺势买点)!随后趋势恢复主升惯性,一路攻破前高直奔 24.97(15 日大涨 +22.5%)。在此结构下最忌涨一点就早早卖飞。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 3, + "key_bar_index": 62, + "confirm_rule": "站稳 20EMA 且阳线向上突破前棒高点(High 2 二次顺势入场确认)", + "invalidate_rule": "放量阴线收盘跌穿 20EMA 与 T0 防守底 19.50", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "follow_add", + "takeaway": "上升趋势通道黄金纪律:不在远离均线处追高,专等回踩 20EMA 企稳试仓;一旦走出突破前棒高点的确认阳棒(H2),大胆重仓顺势拿住波段。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2025-05-28", + "2025-05-29", + "2025-05-30", + "2025-06-03", + "2025-06-04", + "2025-06-05", + "2025-06-06", + "2025-06-09", + "2025-06-10", + "2025-06-11", + "2025-06-12", + "2025-06-13", + "2025-06-16", + "2025-06-17", + "2025-06-18", + "2025-06-19", + "2025-06-20", + "2025-06-23", + "2025-06-24", + "2025-06-25", + "2025-06-26", + "2025-06-27", + "2025-06-30", + "2025-07-01", + "2025-07-02", + "2025-07-03", + "2025-07-04", + "2025-07-07", + "2025-07-08", + "2025-07-09", + "2025-07-10", + "2025-07-11", + "2025-07-14", + "2025-07-15", + "2025-07-16", + "2025-07-17", + "2025-07-18", + "2025-07-21", + "2025-07-22", + "2025-07-23", + "2025-07-24", + "2025-07-25", + "2025-07-28", + "2025-07-29", + "2025-07-30", + "2025-07-31", + "2025-08-01", + "2025-08-04", + "2025-08-05", + "2025-08-06", + "2025-08-07", + "2025-08-08", + "2025-08-11", + "2025-08-12", + "2025-08-13", + "2025-08-14", + "2025-08-15", + "2025-08-18", + "2025-08-19", + "2025-08-20" + ], + "o": [ + 16.944, + 16.973, + 17.077, + 17.201, + 17.192, + 17.277, + 17.125, + 17.106, + 17.039, + 17.392, + 17.82, + 18.602, + 18.486, + 18.148, + 18.215, + 18.109, + 17.8, + 17.819, + 17.8, + 17.945, + 18.254, + 18.544, + 19.104, + 19.017, + 19.22, + 19.674, + 19.384, + 19.278, + 19.191, + 19.21, + 18.273, + 18.244, + 18.611, + 18.408, + 18.486, + 18.476, + 18.534, + 18.891, + 19.239, + 19.732, + 19.316, + 19.278, + 19.036, + 18.93, + 18.93, + 18.843, + 18.447, + 18.901, + 19.307, + 19.133, + 19.471, + 19.664, + 19.809, + 19.529, + 19.751, + 20.311, + 20.224, + 20.572, + 20.099, + 19.635 + ], + "h": [ + 17.23, + 17.182, + 17.201, + 17.401, + 17.439, + 17.42, + 17.372, + 17.268, + 17.496, + 17.81, + 18.553, + 18.708, + 18.505, + 18.322, + 18.331, + 18.138, + 17.974, + 17.983, + 18.302, + 18.351, + 18.563, + 19.374, + 19.152, + 19.239, + 19.732, + 19.79, + 19.596, + 19.336, + 19.355, + 19.21, + 18.399, + 18.544, + 18.679, + 18.495, + 18.524, + 18.534, + 19.026, + 19.152, + 19.683, + 19.78, + 19.577, + 19.384, + 19.123, + 19.065, + 19.297, + 18.853, + 18.766, + 19.258, + 19.336, + 19.558, + 19.664, + 19.992, + 19.809, + 19.857, + 20.446, + 20.794, + 20.823, + 20.639, + 20.417, + 19.867 + ], + "l": [ + 16.849, + 16.925, + 16.811, + 17.096, + 17.144, + 17.001, + 17.058, + 16.782, + 17.039, + 17.354, + 17.734, + 18.389, + 18.051, + 18.061, + 17.945, + 17.742, + 17.713, + 17.655, + 17.771, + 17.819, + 18.08, + 18.544, + 18.737, + 18.718, + 19.123, + 19.393, + 19.162, + 19.036, + 19.075, + 18.225, + 18.167, + 18.215, + 18.36, + 18.177, + 18.331, + 18.331, + 18.37, + 18.833, + 19.133, + 19.422, + 19.152, + 19.133, + 18.766, + 18.843, + 18.92, + 18.379, + 18.399, + 18.833, + 19.094, + 19.104, + 19.278, + 19.606, + 19.5, + 19.451, + 19.703, + 20.253, + 20.157, + 20.089, + 19.587, + 19.5 + ], + "c": [ + 17.116, + 16.963, + 16.878, + 17.192, + 17.22, + 17.02, + 17.268, + 17.106, + 17.392, + 17.763, + 18.524, + 18.495, + 18.177, + 18.225, + 18.138, + 17.742, + 17.781, + 17.877, + 17.906, + 18.341, + 18.331, + 19.104, + 18.833, + 19.22, + 19.48, + 19.596, + 19.365, + 19.123, + 19.142, + 18.254, + 18.196, + 18.244, + 18.428, + 18.466, + 18.486, + 18.418, + 18.804, + 19.113, + 19.558, + 19.519, + 19.432, + 19.171, + 19.123, + 18.92, + 19.142, + 18.495, + 18.602, + 19.2, + 19.191, + 19.471, + 19.606, + 19.838, + 19.558, + 19.606, + 20.301, + 20.446, + 20.562, + 20.089, + 19.635, + 19.857 + ], + "v": [ + 99200000, + 90450000, + 93360000, + 139520000, + 83170000, + 89340000, + 133470000, + 191490000, + 150610000, + 128370000, + 208560000, + 187890000, + 133060000, + 84090000, + 93200000, + 101640000, + 87650000, + 98520000, + 128700000, + 122600000, + 127310000, + 239150000, + 138730000, + 123930000, + 170370000, + 137380000, + 135860000, + 83470000, + 97070000, + 333830000, + 189330000, + 218170000, + 230590000, + 153150000, + 92690000, + 117460000, + 222960000, + 173020000, + 202580000, + 181220000, + 161030000, + 125300000, + 143710000, + 129690000, + 154360000, + 208760000, + 122000000, + 173830000, + 113840000, + 142800000, + 131720000, + 127650000, + 140990000, + 117350000, + 185830000, + 138820000, + 170980000, + 261100000, + 235250000, + 168300000 + ], + "ema20": [ + 17.06, + 17.051, + 17.034, + 17.049, + 17.066, + 17.061, + 17.081, + 17.083, + 17.113, + 17.175, + 17.303, + 17.417, + 17.489, + 17.559, + 17.614, + 17.626, + 17.641, + 17.664, + 17.687, + 17.749, + 17.804, + 17.928, + 18.014, + 18.129, + 18.258, + 18.385, + 18.479, + 18.54, + 18.597, + 18.565, + 18.53, + 18.502, + 18.495, + 18.493, + 18.492, + 18.485, + 18.515, + 18.572, + 18.666, + 18.747, + 18.813, + 18.847, + 18.873, + 18.878, + 18.903, + 18.864, + 18.839, + 18.873, + 18.904, + 18.958, + 19.019, + 19.097, + 19.141, + 19.185, + 19.292, + 19.402, + 19.512, + 19.567, + 19.574, + 19.601 + ] + }, + "future": { + "dates": [ + "2025-08-21", + "2025-08-22", + "2025-08-25", + "2025-08-26", + "2025-08-27", + "2025-08-28", + "2025-08-29", + "2025-09-01", + "2025-09-02", + "2025-09-03", + "2025-09-04", + "2025-09-05", + "2025-09-08", + "2025-09-09", + "2025-09-10" + ], + "o": [ + 20.002, + 19.944, + 20.33, + 21.431, + 21.721, + 21.77, + 22.04, + 23.083, + 23.923, + 24.242, + 23.952, + 22.977, + 24.821, + 24.136, + 23.711 + ], + "h": [ + 20.089, + 20.05, + 21.489, + 21.779, + 22.503, + 22.108, + 22.677, + 23.807, + 24.223, + 24.638, + 24.319, + 24.541, + 24.918, + 24.966, + 24.396 + ], + "l": [ + 19.809, + 19.751, + 20.33, + 21.209, + 21.557, + 21.451, + 21.924, + 22.61, + 23.16, + 23.556, + 22.59, + 22.977, + 23.585, + 23.904, + 23.672 + ], + "c": [ + 19.896, + 19.954, + 21.451, + 21.625, + 21.76, + 21.75, + 22.291, + 23.547, + 23.576, + 24.087, + 23.054, + 24.406, + 23.798, + 24.329, + 24.319 + ], + "v": [ + 128650000, + 149000000, + 306330000, + 184880000, + 238890000, + 173370000, + 250410000, + 376320000, + 343890000, + 307190000, + 387760000, + 345230000, + 317260000, + 353350000, + 224390000 + ], + "ema20": [ + 19.629, + 19.66, + 19.83, + 20.001, + 20.169, + 20.319, + 20.507, + 20.796, + 21.061, + 21.349, + 21.512, + 21.787, + 21.979, + 22.203, + 22.404 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2025-08-20", + "open": 19.635, + "high": 19.867, + "low": 19.5, + "close": 19.857, + "volume": 168300000, + "ema20": 19.601, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 87, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "中阳棒(实体 0.5×ATR,收在最高点附近,下影 37%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0772, + "push": true, + "impact_pts": 3, + "text": "沪深300 相对 20EMA +2.72 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0262, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 3%(上方压力有限)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0208, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + } + ] + }, + { + "day": "T+1", + "date": "2025-08-21", + "open": 20.002, + "high": 20.089, + "low": 19.809, + "close": 19.896, + "volume": 128650000, + "ema20": 19.629, + "change_from_t0_pct": 0.0019, + "bullish_edge_score": 93, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "小阴十字星(实体 0.2×ATR,收在下半区,上影 31%、下影 31%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1242, + "push": true, + "impact_pts": 6, + "text": "沪深300 相对 20EMA +2.83 倍 ATR(大盘顺风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0279, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 +0.48 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0272, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 +0.18(量价背离度低)" + } + ] + }, + { + "day": "T+2", + "date": "2025-08-22", + "open": 19.944, + "high": 20.05, + "low": 19.751, + "close": 19.954, + "volume": 149000000, + "ema20": 19.66, + "change_from_t0_pct": 0.0049, + "bullish_edge_score": 96, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "长下影承接棒(Pin Bar)(实体 0.0×ATR,收在上半区,上影 32%、下影 65%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.2185, + "push": true, + "impact_pts": 10, + "text": "沪深300 相对 20EMA +4.08 倍 ATR(大盘顺风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0494, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 +0.32 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0274, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+3", + "date": "2025-08-25", + "open": 20.33, + "high": 21.489, + "low": 20.33, + "close": 21.451, + "volume": 306330000, + "ema20": 19.83, + "change_from_t0_pct": 0.0803, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "大阳趋势棒(实体 2.3×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1017, + "push": true, + "impact_pts": 5, + "text": "沪深300 相对 20EMA +5.06 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0413, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 3%(上方压力有限)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.036, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +1.05 倍 ATR(有跟随)" + } + ] + }, + { + "day": "T+4", + "date": "2025-08-26", + "open": 21.431, + "high": 21.779, + "low": 21.209, + "close": 21.625, + "volume": 184880000, + "ema20": 20.001, + "change_from_t0_pct": 0.089, + "bullish_edge_score": 96, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "小阳十字星(实体 0.4×ATR,收在上半区,下影 39%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1372, + "push": true, + "impact_pts": 6, + "text": "沪深300 相对 20EMA +4.35 倍 ATR(大盘顺风)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0519, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +1.21 倍 ATR(有跟随)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0315, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+5", + "date": "2025-08-27", + "open": 21.721, + "high": 22.503, + "low": 21.557, + "close": 21.76, + "volume": 238890000, + "ema20": 20.169, + "change_from_t0_pct": 0.0958, + "bullish_edge_score": 69, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在下半区,上影 79%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0462, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.42(放量上涨,量价配合)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": -0.0304, + "push": false, + "impact_pts": -2, + "text": "近 5 日 K 线重叠率 27%(重叠低,通道顺畅)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0251, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +2.54 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+6", + "date": "2025-08-28", + "open": 21.77, + "high": 22.108, + "low": 21.451, + "close": 21.75, + "volume": 173370000, + "ema20": 20.319, + "change_from_t0_pct": 0.0953, + "bullish_edge_score": 74, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "长上影拒绝棒(流星线)(实体 0.0×ATR,收在中位犹豫,上影 51%、下影 46%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0827, + "push": true, + "impact_pts": 4, + "text": "沪深300 相对 20EMA +3.38 倍 ATR(大盘顺风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0523, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.20 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0246, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+7", + "date": "2025-08-29", + "open": 22.04, + "high": 22.677, + "low": 21.924, + "close": 22.291, + "volume": 250410000, + "ema20": 20.507, + "change_from_t0_pct": 0.1226, + "bullish_edge_score": 81, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "长上影拒绝棒(流星线)(实体 0.5×ATR,收在中位犹豫,上影 51%)", + "top3_shap": [ + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0517, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.41 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0389, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA +3.54 倍 ATR(大盘顺风)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0354, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.47(放量上涨,量价配合)" + } + ] + }, + { + "day": "T+8", + "date": "2025-09-01", + "open": 23.083, + "high": 23.807, + "low": 22.61, + "close": 23.547, + "volume": 376320000, + "ema20": 20.796, + "change_from_t0_pct": 0.1858, + "bullish_edge_score": 87, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "大阳趋势棒(实体 0.9×ATR,收在上半区,下影 40%)", + "top3_shap": [ + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0524, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.45 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0475, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +1.13(放量上涨,量价配合)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0352, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA +3.70 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+9", + "date": "2025-09-02", + "open": 23.923, + "high": 24.223, + "low": 23.16, + "close": 23.576, + "volume": 343890000, + "ema20": 21.061, + "change_from_t0_pct": 0.1873, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "中阴棒(实体 0.7×ATR,收在下半区,上影 28%、下影 39%)", + "top3_shap": [ + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0368, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.52 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0256, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0243, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 28%(上方压力有限)" + } + ] + }, + { + "day": "T+10", + "date": "2025-09-03", + "open": 24.242, + "high": 24.638, + "low": 23.556, + "close": 24.087, + "volume": 307190000, + "ema20": 21.349, + "change_from_t0_pct": 0.213, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "长下影承接棒(Pin Bar)(实体 0.3×ATR,收在中位犹豫,上影 37%、下影 49%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0481, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0292, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.92 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0238, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+11", + "date": "2025-09-04", + "open": 23.952, + "high": 24.319, + "low": 22.59, + "close": 23.054, + "volume": 387760000, + "ema20": 21.512, + "change_from_t0_pct": 0.161, + "bullish_edge_score": 84, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "大阴趋势棒(实体 1.8×ATR,收在下半区)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0401, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0378, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.32 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0201, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+12", + "date": "2025-09-05", + "open": 22.977, + "high": 24.541, + "low": 22.977, + "close": 24.406, + "volume": 345230000, + "ema20": 21.787, + "change_from_t0_pct": 0.2291, + "bullish_edge_score": 65, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阳趋势棒(实体 2.9×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0534, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 9%(上方压力有限)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0381, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.50 倍 ATR(大盘顺风)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0332, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.57(放量上涨,量价配合)" + } + ] + }, + { + "day": "T+13", + "date": "2025-09-08", + "open": 24.821, + "high": 24.918, + "low": 23.585, + "close": 23.798, + "volume": 317260000, + "ema20": 21.979, + "change_from_t0_pct": 0.1984, + "bullish_edge_score": 75, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "大阴趋势棒(实体 2.1×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0203, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 7%(上方压力有限)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0195, + "push": true, + "impact_pts": 2, + "text": "距 20EMA +2.06 倍 ATR(站在 20EMA 之上,多头结构)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0173, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+14", + "date": "2025-09-09", + "open": 24.136, + "high": 24.966, + "low": 23.904, + "close": 24.329, + "volume": 353350000, + "ema20": 22.203, + "change_from_t0_pct": 0.2252, + "bullish_edge_score": 90, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "长上影拒绝棒(流星线)(实体 0.4×ATR,收在下半区,上影 60%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.1032, + "push": true, + "impact_pts": 5, + "text": "量价实体匹配 +0.48(放量上涨,量价配合)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0443, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.94 倍 ATR(大盘顺风)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.032, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 -0.47 倍 ATR(空头主导)" + } + ] + }, + { + "day": "T+15", + "date": "2025-09-10", + "open": 23.711, + "high": 24.396, + "low": 23.672, + "close": 24.319, + "volume": 224390000, + "ema20": 22.404, + "change_from_t0_pct": 0.2247, + "bullish_edge_score": 41, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阳趋势棒(实体 1.2×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0698, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +0.99 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": -0.0297, + "push": false, + "impact_pts": -2, + "text": "近 5 日 K 线重叠率 57%(重叠高,属窄幅震荡 Barb Wire)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0196, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 -0.11(量价背离度低)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2025-08-20", + "candle": "中阳棒(实体 0.5×ATR,收在最高点附近,下影 37%)", + "signal": "20EMA 稳健向上倾斜,股价自前高 20.82 缩量回踩至 20EMA 附近企稳收出承接信号。", + "hypothesis": "战场定性:清晰上升通道中的 20EMA 动态支撑测试", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 87, + "ai_position_pct": 60 + }, + "pivots": [ + { + "day": "T+3", + "date": "2025-08-25", + "candle": "大阳趋势棒(实体 2.3×ATR,收在最高点附近)", + "signal": "胜负手定格:T+3 向上突破前棒高点(High 2),主升浪重启", + "verdict": "原假设确认成立", + "change_from_t0_pct": 0.0803, + "bullish_edge_score": 85, + "ai_position_pct": 60 + } + ], + "summary": "15 个交易日收盘累计 +22.5%(期间最高 +25.7% / 最低 -0.5%)。", + "confirm_rule": "站稳 20EMA 且阳线向上突破前棒高点(High 2 二次顺势入场确认)", + "invalidate_rule": "放量阴线收盘跌穿 20EMA 与 T0 防守底 19.50" + } + }, + { + "id": "300750.SZ|2025-08-28|ema20_pullback", + "code": "300750.SZ", + "name": "宁德时代", + "date": "2025-08-28", + "year": 2025, + "segment": "样本外测试段", + "motif": "ema20_pullback", + "motif_cn": "强趋势通道 · 回踩 20EMA vs 破位转势", + "outcome": "success", + "outcome_cn": "顺势起飞:回踩 20EMA 走出 H2 确认", + "thesis": "上升趋势通道回踩 20EMA 企稳,借 High 2 确认棒顺势做多。", + "initial_position_pct": 0, + "initial_position_note": "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例", + "teaching_note": "上升趋势通道黄金纪律:不在远离均线处追高,专等回踩 20EMA 企稳试仓;一旦走出突破前棒高点的确认阳棒(H2),大胆重仓顺势拿住波段。", + "atr": 7.101, + "close0": 272.142, + "levels": { + "box_high": 288.299, + "box_low": 251.916, + "ema20_t0": 272.001, + "support_20d": 251.916, + "resistance_20d": 288.299, + "support_60d": 232.669, + "resistance_60d": 288.299 + }, + "forward": { + "close0": 272.142, + "atr": 7.101116736837835, + "ret15": 0.3225551366565984, + "max_up_pct": 0.37659089739915186, + "max_dn_pct": 0.001946777785126974, + "max_up_atr": 14.432, + "max_dn_atr": -0.075, + "fwd_range_atr": 14.358, + "fwd_range_pct": 0.3746, + "close_chg_15d": 0.3226, + "max_high": 374.628, + "min_low": 272.672 + }, + "quality": { + "score": 0.8591, + "structure_score": 0.8591, + "range_atr": 14.358, + "range_pct": 0.3746 + }, + "setup": { + "text": "20EMA 稳健向上倾斜,股价自前高 288.30 缩量回踩至 20EMA 附近企稳收出承接信号。", + "confirm_rule": "站稳 20EMA 且阳线向上突破前棒高点(High 2 二次顺势入场确认)", + "invalidate_rule": "放量阴线收盘跌穿 20EMA 与 T0 防守底 267.54" + }, + "drawings": { + "lines": [ + { + "id": "up_leg", + "label": "前段多头主升脉冲", + "color": "#2C48CE", + "style": "solid", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 40, + "price": 256.833 + }, + { + "barIndex": 56, + "price": 288.299 + } + ] + }, + { + "id": "pb_leg", + "label": "回踩 20EMA 均线", + "color": "#B08125", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 56, + "price": 288.299 + }, + { + "barIndex": 59, + "price": 267.541 + } + ] + }, + { + "id": "def_low", + "label": "回踩防守底 267.54", + "color": "#D9383A", + "style": "dashed", + "width": 1, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 267.541 + }, + { + "barIndex": 74, + "price": 267.541 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "belowBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 回踩20EMA", + "step": 1 + }, + { + "barIndex": 60, + "pos": "belowBar", + "color": "#2C48CE", + "shape": "arrowUp", + "text": "② T+1 H2顺势确认", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "上升趋势通道", + "skill_key": "follow_add", + "frame1": { + "title": "战场定性:清晰上升通道中的 20EMA 动态支撑测试", + "body": "前段走势高低点依次抬高,蓝色 20EMA 均线持续向上倾斜,属于高胜率的【多头趋势通道(Bull Channel)】。在上升通道里追涨前高(288.30)极易挨洗盘,而耐心等价格回落触碰 20EMA 价值中枢(T0 出现企稳承接),正是交易员方程里胜率与盈亏比双优的顺势狙击位。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "cycle" + }, + "frame2": { + "title": "胜负手定格:T+1 向上突破前棒高点(High 2),主升浪重启", + "body": "T+1 收出 大阳趋势棒(实体 3.9×ATR,收在上半区),干净利落地站稳 20EMA 并向上吞掉回调高点——空头打压彻底宣告失败(Al Brooks 经典的 High 2 顺势买点)!随后趋势恢复主升惯性,一路攻破前高直奔 374.63(15 日大涨 +32.3%)。在此结构下最忌涨一点就早早卖飞。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 1, + "key_bar_index": 60, + "confirm_rule": "站稳 20EMA 且阳线向上突破前棒高点(High 2 二次顺势入场确认)", + "invalidate_rule": "放量阴线收盘跌穿 20EMA 与 T0 防守底 267.54", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "follow_add", + "takeaway": "上升趋势通道黄金纪律:不在远离均线处追高,专等回踩 20EMA 企稳试仓;一旦走出突破前棒高点的确认阳棒(H2),大胆重仓顺势拿住波段。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2025-06-06", + "2025-06-09", + "2025-06-10", + "2025-06-11", + "2025-06-12", + "2025-06-13", + "2025-06-16", + "2025-06-17", + "2025-06-18", + "2025-06-19", + "2025-06-20", + "2025-06-23", + "2025-06-24", + "2025-06-25", + "2025-06-26", + "2025-06-27", + "2025-06-30", + "2025-07-01", + "2025-07-02", + "2025-07-03", + "2025-07-04", + "2025-07-07", + "2025-07-08", + "2025-07-09", + "2025-07-10", + "2025-07-11", + "2025-07-14", + "2025-07-15", + "2025-07-16", + "2025-07-17", + "2025-07-18", + "2025-07-21", + "2025-07-22", + "2025-07-23", + "2025-07-24", + "2025-07-25", + "2025-07-28", + "2025-07-29", + "2025-07-30", + "2025-07-31", + "2025-08-01", + "2025-08-04", + "2025-08-05", + "2025-08-06", + "2025-08-07", + "2025-08-08", + "2025-08-11", + "2025-08-12", + "2025-08-13", + "2025-08-14", + "2025-08-15", + "2025-08-18", + "2025-08-19", + "2025-08-20", + "2025-08-21", + "2025-08-22", + "2025-08-25", + "2025-08-26", + "2025-08-27", + "2025-08-28" + ], + "o": [ + 246.325, + 243.275, + 239.482, + 240.548, + 246.325, + 242.512, + 242.415, + 241.398, + 241.418, + 239.776, + 235.631, + 233.911, + 235.162, + 240.948, + 250.117, + 250.723, + 245.836, + 246.813, + 245.836, + 245.807, + 259.042, + 259.814, + 254.829, + 256.295, + 268.797, + 265.385, + 264.897, + 262.453, + 262.453, + 259.394, + 262.649, + 270.762, + 273.694, + 281.67, + 282.491, + 278.777, + 276.646, + 280.243, + 285.619, + 274.476, + 258.836, + 257.077, + 261.476, + 259.247, + 259.032, + 258.054, + 257.546, + 257.566, + 258.807, + 270.654, + 272.111, + 274.349, + 276.627, + 272.23, + 273.967, + 273.633, + 284.493, + 281.57, + 283.512, + 270.818 + ], + "h": [ + 247.625, + 245.23, + 241.3, + 246.755, + 246.813, + 244.77, + 243.099, + 242.835, + 243.959, + 240.616, + 237.645, + 235.181, + 242.493, + 250.117, + 250.518, + 251.652, + 247.791, + 247.048, + 246.334, + 257.282, + 263.9, + 262.825, + 259.912, + 268.279, + 268.797, + 267.829, + 265.21, + 266.363, + 262.649, + 261.72, + 266.314, + 275.649, + 283.469, + 284.202, + 282.687, + 278.777, + 282.579, + 285.424, + 285.619, + 275.63, + 260.596, + 261.964, + 262.942, + 260.889, + 260.488, + 260.166, + 260.156, + 259.208, + 268.807, + 275.649, + 275.942, + 279.051, + 277.604, + 274.673, + 276.449, + 283.855, + 288.299, + 285.464, + 284.042, + 273.692 + ], + "l": [ + 242.904, + 239.971, + 236.765, + 239.287, + 243.167, + 240.821, + 240.264, + 239.697, + 240.04, + 236.159, + 234.106, + 232.669, + 235.162, + 240.46, + 246.677, + 244.477, + 244.077, + 244.252, + 243.578, + 244.946, + 255.102, + 253.05, + 253.969, + 256.197, + 262.453, + 264.017, + 260.107, + 260.009, + 257.116, + 258.406, + 259.814, + 267.389, + 272.892, + 280.136, + 276.538, + 275.405, + 274.965, + 280.224, + 270.136, + 258.661, + 256.833, + 255.806, + 257.566, + 257.302, + 256.295, + 256.109, + 256.588, + 251.916, + 258.553, + 268.298, + 269.882, + 271.759, + 269.999, + 266.884, + 272.721, + 273.309, + 281.334, + 280.157, + 272.907, + 267.541 + ], + "c": [ + 243.275, + 240.049, + 237.664, + 244.858, + 244.184, + 242.61, + 241.105, + 240.714, + 240.04, + 236.648, + 234.849, + 234.214, + 240.382, + 249.159, + 247.097, + 245.337, + 246.54, + 245.836, + 244.81, + 256.676, + 259.814, + 255.014, + 257.38, + 264.701, + 265.874, + 265.385, + 262.453, + 261.72, + 258.445, + 259.521, + 265.092, + 273.362, + 280.204, + 280.556, + 278.777, + 276.431, + 279.852, + 285.248, + 270.85, + 258.661, + 257.145, + 260.479, + 259.716, + 259.032, + 257.126, + 257.546, + 257.722, + 257.321, + 267.438, + 273.587, + 274.349, + 276.627, + 271.544, + 273.898, + 273.702, + 281.726, + 284.768, + 284.002, + 273.015, + 272.142 + ], + "v": [ + 16551474, + 18549757, + 13932459, + 27993404, + 17569617, + 17403245, + 12217571, + 9765024, + 10460561, + 14798456, + 13688340, + 12709927, + 23501081, + 31537723, + 19914530, + 23620067, + 17623370, + 9532258, + 11571374, + 33803747, + 27206013, + 17466498, + 15592292, + 29388371, + 24239349, + 21328153, + 14978884, + 16952649, + 15626479, + 14511017, + 22186558, + 32486275, + 33309029, + 20018974, + 22389114, + 13432601, + 23897336, + 23394555, + 41594301, + 44710355, + 25250002, + 23768168, + 21976040, + 15323311, + 16548104, + 17428216, + 21330876, + 22240739, + 39466769, + 37170757, + 24109169, + 28528793, + 24428585, + 23353492, + 18269814, + 26421851, + 31229720, + 23024462, + 38258429, + 30466401 + ], + "ema20": [ + 246.702, + 246.069, + 245.268, + 245.229, + 245.13, + 244.89, + 244.529, + 244.166, + 243.773, + 243.094, + 242.309, + 241.538, + 241.428, + 242.164, + 242.634, + 242.892, + 243.239, + 243.486, + 243.612, + 244.856, + 246.281, + 247.113, + 248.091, + 249.673, + 251.216, + 252.565, + 253.507, + 254.289, + 254.685, + 255.145, + 256.093, + 257.737, + 259.877, + 261.847, + 263.459, + 264.694, + 266.138, + 267.958, + 268.233, + 267.322, + 266.352, + 265.793, + 265.214, + 264.626, + 263.911, + 263.305, + 262.773, + 262.254, + 262.748, + 263.78, + 264.787, + 265.914, + 266.45, + 267.16, + 267.783, + 269.111, + 270.602, + 271.878, + 271.986, + 272.001 + ] + }, + "future": { + "dates": [ + "2025-08-29", + "2025-09-01", + "2025-09-02", + "2025-09-03", + "2025-09-04", + "2025-09-05", + "2025-09-08", + "2025-09-09", + "2025-09-10", + "2025-09-11", + "2025-09-12", + "2025-09-15", + "2025-09-16", + "2025-09-17", + "2025-09-18" + ], + "o": [ + 273.025, + 300.68, + 298.257, + 297.737, + 307.517, + 294.205, + 327.657, + 316.67, + 311.951, + 309.558, + 319.711, + 339.439, + 349.348, + 350.024, + 367.477 + ], + "h": [ + 310.647, + 301.072, + 305.192, + 305.732, + 317.19, + 318.936, + 331.238, + 328.226, + 315.885, + 316.847, + 323.635, + 364.465, + 352.183, + 374.628, + 372.784 + ], + "l": [ + 272.672, + 293.616, + 293.351, + 297.276, + 294.921, + 294.127, + 317.357, + 311.137, + 307.056, + 303.171, + 316.082, + 337.487, + 341.882, + 347.278, + 353.949 + ], + "c": [ + 300.366, + 298.227, + 297.119, + 303.132, + 298.257, + 318.936, + 319.191, + 313.923, + 310.038, + 316.425, + 318.828, + 347.964, + 346.709, + 369.939, + 359.923 + ], + "v": [ + 78013892, + 42996421, + 37116889, + 50897473, + 65754754, + 70819779, + 58834578, + 43402397, + 36752683, + 38034460, + 33871316, + 71841023, + 37744465, + 54377100, + 51889690 + ], + "ema20": [ + 274.703, + 276.943, + 278.865, + 281.176, + 282.802, + 286.244, + 289.382, + 291.719, + 293.464, + 295.65, + 297.858, + 302.63, + 306.828, + 312.838, + 317.323 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2025-08-28", + "open": 270.818, + "high": 273.692, + "low": 267.541, + "close": 272.142, + "volume": 30466401, + "ema20": 272.001, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 95, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在上半区,下影 53%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1435, + "push": true, + "impact_pts": 6, + "text": "沪深300 相对 20EMA +3.38 倍 ATR(大盘顺风)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0281, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +0.149 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0263, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+1", + "date": "2025-08-29", + "open": 273.025, + "high": 310.647, + "low": 272.672, + "close": 300.366, + "volume": 78013892, + "ema20": 274.703, + "change_from_t0_pct": 0.1037, + "bullish_edge_score": 98, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "大阳趋势棒(实体 3.9×ATR,收在上半区)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.1679, + "push": true, + "impact_pts": 8, + "text": "量价实体匹配 +2.07(放量上涨,量价配合)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0938, + "push": true, + "impact_pts": 4, + "text": "沪深300 相对 20EMA +3.54 倍 ATR(大盘顺风)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0601, + "push": true, + "impact_pts": 3, + "text": "近 2 日净多头实体 +1.56 倍 ATR(有跟随)" + } + ] + }, + { + "day": "T+2", + "date": "2025-09-01", + "open": 300.68, + "high": 301.072, + "low": 293.616, + "close": 298.227, + "volume": 42996421, + "ema20": 276.943, + "change_from_t0_pct": 0.0959, + "bullish_edge_score": 97, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "长下影承接棒(Pin Bar)(实体 0.3×ATR,收在上半区,下影 62%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1468, + "push": true, + "impact_pts": 7, + "text": "沪深300 相对 20EMA +3.70 倍 ATR(大盘顺风)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.1133, + "push": true, + "impact_pts": 5, + "text": "近 3 日净多头实体 +0.95 倍 ATR(跟随持续)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0355, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +1.33 倍 ATR(有跟随)" + } + ] + }, + { + "day": "T+3", + "date": "2025-09-02", + "open": 298.257, + "high": 305.192, + "low": 293.351, + "close": 297.119, + "volume": 37116889, + "ema20": 278.865, + "change_from_t0_pct": 0.0918, + "bullish_edge_score": 89, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在下半区,上影 59%、下影 32%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0977, + "push": true, + "impact_pts": 4, + "text": "沪深300 相对 20EMA +2.70 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0293, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0236, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 -0.28(量价背离度低)" + } + ] + }, + { + "day": "T+4", + "date": "2025-09-03", + "open": 297.737, + "high": 305.732, + "low": 297.276, + "close": 303.132, + "volume": 50897473, + "ema20": 281.176, + "change_from_t0_pct": 0.1139, + "bullish_edge_score": 92, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "中阳棒(实体 0.8×ATR,收在上半区,上影 31%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0811, + "push": true, + "impact_pts": 4, + "text": "量价实体匹配 +0.71(放量上涨,量价配合)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0528, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 31%(上方压力有限)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0249, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +3.874 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+5", + "date": "2025-09-04", + "open": 307.517, + "high": 317.19, + "low": 294.921, + "close": 298.257, + "volume": 65754754, + "ema20": 282.802, + "change_from_t0_pct": 0.096, + "bullish_edge_score": 91, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "大阴趋势棒(实体 1.3×ATR,收在最低点附近,上影 43%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.037, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.037, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.32 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0259, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+6", + "date": "2025-09-05", + "open": 294.205, + "high": 318.936, + "low": 294.127, + "close": 318.936, + "volume": 70819779, + "ema20": 286.244, + "change_from_t0_pct": 0.1719, + "bullish_edge_score": 38, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阳趋势棒(实体 3.5×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0604, + "push": false, + "impact_pts": -3, + "text": "上影线占振幅 0%(上方压力有限)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0493, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.50 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": -0.0421, + "push": false, + "impact_pts": -2, + "text": "近 5 日 K 线重叠率 64%(重叠高,属窄幅震荡 Barb Wire)" + } + ] + }, + { + "day": "T+7", + "date": "2025-09-08", + "open": 327.657, + "high": 331.238, + "low": 317.357, + "close": 319.191, + "volume": 58834578, + "ema20": 289.382, + "change_from_t0_pct": 0.1729, + "bullish_edge_score": 83, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "大阴趋势棒(实体 1.2×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0257, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0247, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.0227, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 +0.12(无明显高潮)" + } + ] + }, + { + "day": "T+8", + "date": "2025-09-09", + "open": 316.67, + "high": 328.226, + "low": 311.137, + "close": 313.923, + "volume": 43402397, + "ema20": 291.719, + "change_from_t0_pct": 0.1535, + "bullish_edge_score": 93, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "长上影拒绝棒(流星线)(实体 0.4×ATR,收在最低点附近,上影 68%)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0484, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +3.044 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0402, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0279, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+9", + "date": "2025-09-10", + "open": 311.951, + "high": 315.885, + "low": 307.056, + "close": 310.038, + "volume": 36752683, + "ema20": 293.464, + "change_from_t0_pct": 0.1393, + "bullish_edge_score": 79, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "长上影拒绝棒(流星线)(实体 0.3×ATR,收在下半区,上影 45%、下影 34%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0398, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.99 倍 ATR(大盘顺风)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.033, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +3.101 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.022, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+10", + "date": "2025-09-11", + "open": 309.558, + "high": 316.847, + "low": 303.171, + "close": 316.425, + "volume": 38034460, + "ema20": 295.65, + "change_from_t0_pct": 0.1627, + "bullish_edge_score": 34, + "hist_win_rate": 0.4538, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阳趋势棒(实体 1.0×ATR,收在最高点附近,下影 47%)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0415, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 3%(上方压力有限)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0354, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +2.16 倍 ATR(大盘顺风)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0319, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.185 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+11", + "date": "2025-09-12", + "open": 319.711, + "high": 323.635, + "low": 316.082, + "close": 318.828, + "volume": 33871316, + "ema20": 297.858, + "change_from_t0_pct": 0.1716, + "bullish_edge_score": 56, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在下半区,上影 52%、下影 36%)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0508, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.189 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0223, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.66 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0171, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+12", + "date": "2025-09-15", + "open": 339.439, + "high": 364.465, + "low": 337.487, + "close": 347.964, + "volume": 71841023, + "ema20": 302.63, + "change_from_t0_pct": 0.2786, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "大阳趋势棒(实体 1.2×ATR,收在下半区,上影 61%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0688, + "push": true, + "impact_pts": 3, + "text": "量价实体匹配 +0.79(放量上涨,量价配合)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.025, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0243, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 61%(上方被明显拒绝,抛压重)" + } + ] + }, + { + "day": "T+13", + "date": "2025-09-16", + "open": 349.348, + "high": 352.183, + "low": 341.882, + "close": 346.709, + "volume": 37744465, + "ema20": 306.828, + "change_from_t0_pct": 0.274, + "bullish_edge_score": 78, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "长下影承接棒(Pin Bar)(实体 0.4×ATR,收在中位犹豫,下影 47%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0413, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0395, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.41 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0324, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+14", + "date": "2025-09-17", + "open": 350.024, + "high": 374.628, + "low": 347.278, + "close": 369.939, + "volume": 54377100, + "ema20": 312.838, + "change_from_t0_pct": 0.3594, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "大阳趋势棒(实体 2.8×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0605, + "push": true, + "impact_pts": 3, + "text": "近 5 日强多头棒 3 根(买盘密集)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0295, + "push": true, + "impact_pts": 2, + "text": "近 5 日 K 线重叠率 14%(重叠低,通道顺畅)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0254, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+15", + "date": "2025-09-18", + "open": 367.477, + "high": 372.784, + "low": 353.949, + "close": 359.923, + "volume": 51889690, + "ema20": 317.323, + "change_from_t0_pct": 0.3226, + "bullish_edge_score": 80, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "大阴趋势棒(实体 1.1×ATR,收在下半区,上影 28%、下影 32%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0539, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.75 倍 ATR(大盘顺风)" + }, + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.0266, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 +0.05(无明显高潮)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0257, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 28%(上方压力有限)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2025-08-28", + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在上半区,下影 53%)", + "signal": "20EMA 稳健向上倾斜,股价自前高 288.30 缩量回踩至 20EMA 附近企稳收出承接信号。", + "hypothesis": "战场定性:清晰上升通道中的 20EMA 动态支撑测试", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 95, + "ai_position_pct": 90 + }, + "pivots": [ + { + "day": "T+1", + "date": "2025-08-29", + "candle": "大阳趋势棒(实体 3.9×ATR,收在上半区)", + "signal": "胜负手定格:T+1 向上突破前棒高点(High 2),主升浪重启", + "verdict": "原假设确认成立", + "change_from_t0_pct": 0.1037, + "bullish_edge_score": 98, + "ai_position_pct": 90 + } + ], + "summary": "15 个交易日收盘累计 +32.3%(期间最高 +37.7% / 最低 +0.2%)。", + "confirm_rule": "站稳 20EMA 且阳线向上突破前棒高点(High 2 二次顺势入场确认)", + "invalidate_rule": "放量阴线收盘跌穿 20EMA 与 T0 防守底 267.54" + } + }, + { + "id": "002594.SZ|2024-09-24|ema20_pullback", + "code": "002594.SZ", + "name": "比亚迪", + "date": "2024-09-24", + "year": 2024, + "segment": "训练段", + "motif": "ema20_pullback", + "motif_cn": "强趋势通道 · 回踩 20EMA vs 破位转势", + "outcome": "success", + "outcome_cn": "顺势起飞:回踩 20EMA 走出 H2 确认", + "thesis": "上升趋势通道回踩 20EMA 企稳,借 High 2 确认棒顺势做多。", + "initial_position_pct": 0, + "initial_position_note": "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例", + "teaching_note": "上升趋势通道黄金纪律:不在远离均线处追高,专等回踩 20EMA 企稳试仓;一旦走出突破前棒高点的确认阳棒(H2),大胆重仓顺势拿住波段。", + "atr": 2.125, + "close0": 83.451, + "levels": { + "box_high": 85.522, + "box_low": 75.907, + "ema20_t0": 82.102, + "support_20d": 75.907, + "resistance_20d": 85.522, + "support_60d": 73.347, + "resistance_60d": 87.562 + }, + "forward": { + "close0": 83.4513, + "atr": 2.125049351939128, + "ret15": 0.19843549471368327, + "max_up_pct": 0.32934897359298176, + "max_dn_pct": 0.013253238715274618, + "max_up_atr": 12.934, + "max_dn_atr": -0.52, + "fwd_range_atr": 12.413, + "fwd_range_pct": 0.3161, + "close_chg_15d": 0.1984, + "max_high": 110.936, + "min_low": 84.557 + }, + "quality": { + "score": 0.8293, + "structure_score": 0.8293, + "range_atr": 12.413, + "range_pct": 0.3161 + }, + "setup": { + "text": "20EMA 稳健向上倾斜,股价自前高 85.52 缩量回踩至 20EMA 附近企稳收出承接信号。", + "confirm_rule": "站稳 20EMA 且阳线向上突破前棒高点(High 2 二次顺势入场确认)", + "invalidate_rule": "放量阴线收盘跌穿 20EMA 与 T0 防守底 80.98" + }, + "drawings": { + "lines": [ + { + "id": "up_leg", + "label": "前段多头主升脉冲", + "color": "#2C48CE", + "style": "solid", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 36, + "price": 76.606 + }, + { + "barIndex": 52, + "price": 85.522 + } + ] + }, + { + "id": "pb_leg", + "label": "回踩 20EMA 均线", + "color": "#B08125", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 52, + "price": 85.522 + }, + { + "barIndex": 59, + "price": 80.98 + } + ] + }, + { + "id": "def_low", + "label": "回踩防守底 80.98", + "color": "#D9383A", + "style": "dashed", + "width": 1, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 80.98 + }, + { + "barIndex": 74, + "price": 80.98 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "belowBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 回踩20EMA", + "step": 1 + }, + { + "barIndex": 60, + "pos": "belowBar", + "color": "#2C48CE", + "shape": "arrowUp", + "text": "② T+1 H2顺势确认", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "上升趋势通道", + "skill_key": "follow_add", + "frame1": { + "title": "战场定性:清晰上升通道中的 20EMA 动态支撑测试", + "body": "前段走势高低点依次抬高,蓝色 20EMA 均线持续向上倾斜,属于高胜率的【多头趋势通道(Bull Channel)】。在上升通道里追涨前高(85.52)极易挨洗盘,而耐心等价格回落触碰 20EMA 价值中枢(T0 出现企稳承接),正是交易员方程里胜率与盈亏比双优的顺势狙击位。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "cycle" + }, + "frame2": { + "title": "胜负手定格:T+1 向上突破前棒高点(High 2),主升浪重启", + "body": "T+1 收出 中阳棒(实体 0.7×ATR,收在中位犹豫,上影 57%),干净利落地站稳 20EMA 并向上吞掉回调高点——空头打压彻底宣告失败(Al Brooks 经典的 High 2 顺势买点)!随后趋势恢复主升惯性,一路攻破前高直奔 110.94(15 日大涨 +19.8%)。在此结构下最忌涨一点就早早卖飞。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 1, + "key_bar_index": 60, + "confirm_rule": "站稳 20EMA 且阳线向上突破前棒高点(High 2 二次顺势入场确认)", + "invalidate_rule": "放量阴线收盘跌穿 20EMA 与 T0 防守底 80.98", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "follow_add", + "takeaway": "上升趋势通道黄金纪律:不在远离均线处追高,专等回踩 20EMA 企稳试仓;一旦走出突破前棒高点的确认阳棒(H2),大胆重仓顺势拿住波段。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2024-07-01", + "2024-07-02", + "2024-07-03", + "2024-07-04", + "2024-07-05", + "2024-07-08", + "2024-07-09", + "2024-07-10", + "2024-07-11", + "2024-07-12", + "2024-07-15", + "2024-07-16", + "2024-07-17", + "2024-07-18", + "2024-07-19", + "2024-07-22", + "2024-07-23", + "2024-07-24", + "2024-07-25", + "2024-07-26", + "2024-07-29", + "2024-07-30", + "2024-07-31", + "2024-08-01", + "2024-08-02", + "2024-08-05", + "2024-08-06", + "2024-08-07", + "2024-08-08", + "2024-08-09", + "2024-08-12", + "2024-08-13", + "2024-08-14", + "2024-08-15", + "2024-08-16", + "2024-08-19", + "2024-08-20", + "2024-08-21", + "2024-08-22", + "2024-08-23", + "2024-08-26", + "2024-08-27", + "2024-08-28", + "2024-08-29", + "2024-08-30", + "2024-09-02", + "2024-09-03", + "2024-09-04", + "2024-09-05", + "2024-09-06", + "2024-09-09", + "2024-09-10", + "2024-09-11", + "2024-09-12", + "2024-09-13", + "2024-09-18", + "2024-09-19", + "2024-09-20", + "2024-09-23", + "2024-09-24" + ], + "o": [ + 81.127, + 80.031, + 79.088, + 79.425, + 78.832, + 78.388, + 79.49, + 81.853, + 82.667, + 82.187, + 85.033, + 84.486, + 83.963, + 83.607, + 84.45, + 85.617, + 85.905, + 82.093, + 81.036, + 82.009, + 83.005, + 81.253, + 79.618, + 81.387, + 79.415, + 75.756, + 76.793, + 75.165, + 74.758, + 74.843, + 76.14, + 75.598, + 75.02, + 74.354, + 76.172, + 77.203, + 77.449, + 77.009, + 79.09, + 78.696, + 78.598, + 77.945, + 78.85, + 76.573, + 78.099, + 81.394, + 78.893, + 80.567, + 82.043, + 82.982, + 81.873, + 82.043, + 82.043, + 84.899, + 84.406, + 83.691, + 85.0, + 83.809, + 83.996, + 83.028 + ], + "h": [ + 81.646, + 80.3, + 79.548, + 80.945, + 79.263, + 80.469, + 82.184, + 83.163, + 83.075, + 85.584, + 85.844, + 85.001, + 84.781, + 85.228, + 86.233, + 87.562, + 86.041, + 82.715, + 82.518, + 83.519, + 83.028, + 81.322, + 81.394, + 81.63, + 79.503, + 77.669, + 76.996, + 75.808, + 74.758, + 77.41, + 76.625, + 75.608, + 75.02, + 76.3, + 78.21, + 78.427, + 77.885, + 79.789, + 79.671, + 79.188, + 79.746, + 79.182, + 78.854, + 77.613, + 82.631, + 82.181, + 81.207, + 82.667, + 83.881, + 83.717, + 83.343, + 82.962, + 85.522, + 85.325, + 84.669, + 85.105, + 85.122, + 84.931, + 84.328, + 83.848 + ], + "l": [ + 78.615, + 78.793, + 77.804, + 79.263, + 77.441, + 78.187, + 78.294, + 81.532, + 81.591, + 81.659, + 84.486, + 83.104, + 83.192, + 83.481, + 84.203, + 85.617, + 82.018, + 80.556, + 80.235, + 81.419, + 80.921, + 79.293, + 79.605, + 78.762, + 76.99, + 75.483, + 74.161, + 74.322, + 73.347, + 74.837, + 75.316, + 74.167, + 73.905, + 73.8, + 75.644, + 77.124, + 76.606, + 76.136, + 78.637, + 78.155, + 78.01, + 77.613, + 76.399, + 75.907, + 77.862, + 79.09, + 78.893, + 80.547, + 81.912, + 82.51, + 81.577, + 81.591, + 81.86, + 84.341, + 83.635, + 83.389, + 83.126, + 82.989, + 81.646, + 80.98 + ], + "c": [ + 80.008, + 79.091, + 78.809, + 79.305, + 78.462, + 79.422, + 81.889, + 81.856, + 82.038, + 85.137, + 84.842, + 83.96, + 84.129, + 84.751, + 85.604, + 86.106, + 82.093, + 81.043, + 81.172, + 82.651, + 81.748, + 80.045, + 81.075, + 80.14, + 77.049, + 75.867, + 75.132, + 75.135, + 74.315, + 76.012, + 75.611, + 75.063, + 74.364, + 75.969, + 77.157, + 77.259, + 77.606, + 79.09, + 78.932, + 78.545, + 78.568, + 79.024, + 77.728, + 77.072, + 81.853, + 79.123, + 81.085, + 82.148, + 82.979, + 82.569, + 82.037, + 81.929, + 84.702, + 84.344, + 83.681, + 84.81, + 83.802, + 84.045, + 82.043, + 83.451 + ], + "v": [ + 38781996, + 30788211, + 28972209, + 29758902, + 28699434, + 31612398, + 42228765, + 32784768, + 30107835, + 56658966, + 29614656, + 35276304, + 31557513, + 28600000, + 40860000, + 30220000, + 50220000, + 35590000, + 30330000, + 37450000, + 23660000, + 33120000, + 26250000, + 31090000, + 43700000, + 31580000, + 38730000, + 24610000, + 25610000, + 35960000, + 16130000, + 18130000, + 16900000, + 26560000, + 30670000, + 21050000, + 18750000, + 33310000, + 18750000, + 14940000, + 16950000, + 15280000, + 26710000, + 23820000, + 57910000, + 30340000, + 30550000, + 30180000, + 30040000, + 23440000, + 21260000, + 18370000, + 46610000, + 23180000, + 17100000, + 20050000, + 27310000, + 26970000, + 32270000, + 46950000 + ], + "ema20": [ + 79.589, + 79.542, + 79.472, + 79.456, + 79.361, + 79.367, + 79.607, + 79.821, + 80.033, + 80.519, + 80.93, + 81.219, + 81.496, + 81.806, + 82.168, + 82.543, + 82.5, + 82.361, + 82.248, + 82.286, + 82.235, + 82.027, + 81.936, + 81.765, + 81.316, + 80.797, + 80.257, + 79.77, + 79.25, + 78.942, + 78.624, + 78.285, + 77.912, + 77.727, + 77.673, + 77.633, + 77.631, + 77.77, + 77.88, + 77.944, + 78.003, + 78.1, + 78.065, + 77.97, + 78.34, + 78.415, + 78.669, + 79.0, + 79.379, + 79.683, + 79.907, + 80.1, + 80.538, + 80.9, + 81.165, + 81.512, + 81.73, + 81.951, + 81.96, + 82.102 + ] + }, + "future": { + "dates": [ + "2024-09-25", + "2024-09-26", + "2024-09-27", + "2024-09-30", + "2024-10-08", + "2024-10-09", + "2024-10-10", + "2024-10-11", + "2024-10-14", + "2024-10-15", + "2024-10-16", + "2024-10-17", + "2024-10-18", + "2024-10-21", + "2024-10-22" + ], + "o": [ + 84.669, + 86.638, + 89.591, + 95.17, + 110.936, + 103.375, + 101.734, + 103.053, + 98.777, + 100.257, + 96.155, + 95.994, + 94.99, + 99.437, + 100.093 + ], + "h": [ + 88.495, + 88.508, + 95.823, + 101.104, + 110.936, + 105.249, + 105.672, + 103.053, + 101.727, + 101.202, + 97.133, + 97.747, + 100.487, + 101.274, + 101.773 + ], + "l": [ + 84.557, + 86.014, + 89.099, + 95.17, + 100.851, + 98.616, + 101.727, + 97.143, + 98.518, + 97.796, + 94.186, + 94.882, + 94.54, + 98.748, + 99.437 + ], + "c": [ + 86.244, + 88.479, + 93.198, + 100.851, + 107.438, + 100.32, + 103.667, + 98.469, + 100.749, + 97.796, + 95.102, + 94.98, + 98.551, + 100.569, + 100.011 + ], + "v": [ + 61710000, + 44720000, + 92980000, + 116640000, + 133030000, + 97780000, + 75050000, + 55930000, + 51710000, + 36640000, + 45096561, + 30736962, + 57327726, + 47344806, + 31119798 + ], + "ema20": [ + 82.496, + 83.066, + 84.031, + 85.633, + 87.71, + 88.911, + 90.316, + 91.092, + 92.012, + 92.563, + 92.805, + 93.012, + 93.539, + 94.209, + 94.761 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2024-09-24", + "open": 83.028, + "high": 83.848, + "low": 80.98, + "close": 83.451, + "volume": 46950000, + "ema20": 82.102, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 82, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在最高点附近,下影 71%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0432, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.76(放量上涨,量价配合)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0322, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.198 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.026, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA +2.42 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+1", + "date": "2024-09-25", + "open": 84.669, + "high": 88.495, + "low": 84.557, + "close": 86.244, + "volume": 61710000, + "ema20": 82.496, + "change_from_t0_pct": 0.0335, + "bullish_edge_score": 98, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "中阳棒(实体 0.7×ATR,收在中位犹豫,上影 57%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1307, + "push": true, + "impact_pts": 6, + "text": "沪深300 相对 20EMA +2.89 倍 ATR(大盘顺风)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0617, + "push": true, + "impact_pts": 3, + "text": "量价实体匹配 +1.18(放量上涨,量价配合)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0481, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 +0.42 倍 ATR/5日(中期趋势向上)" + } + ] + }, + { + "day": "T+2", + "date": "2024-09-26", + "open": 86.638, + "high": 88.508, + "low": 86.014, + "close": 88.479, + "volume": 44720000, + "ema20": 83.066, + "change_from_t0_pct": 0.0602, + "bullish_edge_score": 93, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "大阳趋势棒(实体 0.9×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1116, + "push": true, + "impact_pts": 5, + "text": "沪深300 相对 20EMA +4.59 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0362, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 1%(上方压力有限)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0258, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +0.180 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+3", + "date": "2024-09-27", + "open": 89.591, + "high": 95.823, + "low": 89.099, + "close": 93.198, + "volume": 92980000, + "ema20": 84.031, + "change_from_t0_pct": 0.1168, + "bullish_edge_score": 98, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "大阳趋势棒(实体 1.7×ATR,收在上半区,上影 39%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.1584, + "push": true, + "impact_pts": 7, + "text": "量价实体匹配 +1.91(放量上涨,量价配合)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1, + "push": true, + "impact_pts": 4, + "text": "沪深300 相对 20EMA +5.90 倍 ATR(大盘顺风)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0681, + "push": true, + "impact_pts": 3, + "text": "近 2 日净多头实体 +1.06 倍 ATR(有跟随)" + } + ] + }, + { + "day": "T+4", + "date": "2024-09-30", + "open": 95.17, + "high": 101.104, + "low": 95.17, + "close": 100.851, + "volume": 116640000, + "ema20": 85.633, + "change_from_t0_pct": 0.2085, + "bullish_edge_score": 98, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "大阳趋势棒(实体 2.7×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.2098, + "push": true, + "impact_pts": 9, + "text": "量价实体匹配 +2.31(放量上涨,量价配合)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.0983, + "push": true, + "impact_pts": 4, + "text": "近 3 日净多头实体 +1.32 倍 ATR(跟随持续)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.064, + "push": true, + "impact_pts": 3, + "text": "近 2 日净多头实体 +1.59 倍 ATR(有跟随)" + } + ] + }, + { + "day": "T+5", + "date": "2024-10-08", + "open": 110.936, + "high": 110.936, + "low": 100.851, + "close": 107.438, + "volume": 133030000, + "ema20": 87.71, + "change_from_t0_pct": 0.2874, + "bullish_edge_score": 81, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "大阴趋势棒(实体 1.6×ATR,收在上半区,下影 65%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0517, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA +7.23 倍 ATR(大盘顺风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0508, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.57 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0355, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 4 根(买盘密集)" + } + ] + }, + { + "day": "T+6", + "date": "2024-10-09", + "open": 103.375, + "high": 105.249, + "low": 98.616, + "close": 100.32, + "volume": 97780000, + "ema20": 88.911, + "change_from_t0_pct": 0.2021, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "大阴趋势棒(实体 1.4×ATR,收在下半区,上影 28%)", + "top3_shap": [ + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0515, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.62 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0469, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA +3.54 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0275, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 3 根(买盘密集)" + } + ] + }, + { + "day": "T+7", + "date": "2024-10-10", + "open": 101.734, + "high": 105.672, + "low": 101.727, + "close": 103.667, + "volume": 75050000, + "ema20": 90.316, + "change_from_t0_pct": 0.2422, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "大阳趋势棒(实体 0.9×ATR,收在中位犹豫,上影 51%)", + "top3_shap": [ + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0513, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.79 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0288, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA +3.39 倍 ATR(大盘顺风)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0261, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 -0.104 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+8", + "date": "2024-10-11", + "open": 103.053, + "high": 103.053, + "low": 97.143, + "close": 98.469, + "volume": 55930000, + "ema20": 91.092, + "change_from_t0_pct": 0.18, + "bullish_edge_score": 77, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "大阴趋势棒(实体 2.2×ATR,收在下半区)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0328, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0252, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 0%(上方压力有限)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0227, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +2.25 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+9", + "date": "2024-10-14", + "open": 98.777, + "high": 101.727, + "low": 98.518, + "close": 100.749, + "volume": 51710000, + "ema20": 92.012, + "change_from_t0_pct": 0.2073, + "bullish_edge_score": 89, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "大阳趋势棒(实体 0.9×ATR,收在上半区,上影 30%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0309, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0214, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 30%(上方压力有限)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0213, + "push": true, + "impact_pts": 2, + "text": "距 20EMA +2.10 倍 ATR(站在 20EMA 之上,多头结构)" + } + ] + }, + { + "day": "T+10", + "date": "2024-10-15", + "open": 100.257, + "high": 101.202, + "low": 97.796, + "close": 97.796, + "volume": 36640000, + "ema20": 92.563, + "change_from_t0_pct": 0.1719, + "bullish_edge_score": 82, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "大阴趋势棒(实体 1.2×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0377, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.71 倍(缩量)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0273, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 0%(下方承接一般)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0273, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 +0.29(量价背离度低)" + } + ] + }, + { + "day": "T+11", + "date": "2024-10-16", + "open": 96.155, + "high": 97.133, + "low": 94.186, + "close": 95.102, + "volume": 45096561, + "ema20": 92.805, + "change_from_t0_pct": 0.1396, + "bullish_edge_score": 83, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "中阴棒(实体 0.5×ATR,收在下半区,上影 33%、下影 31%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0319, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.32 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0292, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 33%(上方被明显拒绝,抛压重)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0291, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + } + ] + }, + { + "day": "T+12", + "date": "2024-10-17", + "open": 95.994, + "high": 97.747, + "low": 94.882, + "close": 94.98, + "volume": 30736962, + "ema20": 93.012, + "change_from_t0_pct": 0.1382, + "bullish_edge_score": 90, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "长上影拒绝棒(流星线)(实体 0.5×ATR,收在最低点附近,上影 61%)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.048, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +1.341 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": -0.0343, + "push": false, + "impact_pts": -2, + "text": "近 3 日净多头实体 -0.37 倍 ATR(空头主导)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.034, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 3%(下方承接一般)" + } + ] + }, + { + "day": "T+13", + "date": "2024-10-18", + "open": 94.99, + "high": 100.487, + "low": 94.54, + "close": 98.551, + "volume": 57327726, + "ema20": 93.539, + "change_from_t0_pct": 0.1809, + "bullish_edge_score": 86, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "大阳趋势棒(实体 1.7×ATR,收在上半区,上影 33%)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0224, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 33%(上方压力有限)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.022, + "push": true, + "impact_pts": 2, + "text": "近 5 日 K 线重叠率 45%(重叠中等)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": -0.0155, + "push": false, + "impact_pts": -2, + "text": "距 20EMA +1.22 倍 ATR(站在 20EMA 之上,多头结构)" + } + ] + }, + { + "day": "T+14", + "date": "2024-10-21", + "open": 99.437, + "high": 101.274, + "low": 98.748, + "close": 100.569, + "volume": 47344806, + "ema20": 94.209, + "change_from_t0_pct": 0.2051, + "bullish_edge_score": 56, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阳棒(实体 0.5×ATR,收在上半区)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0313, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.66 倍 ATR(大盘顺风)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0301, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -0.795 ATR/日(推动力衰减,楔形/衰竭前兆)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0284, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +0.55 倍 ATR/5日(中期趋势向上)" + } + ] + }, + { + "day": "T+15", + "date": "2024-10-22", + "open": 100.093, + "high": 101.773, + "low": 99.437, + "close": 100.011, + "volume": 31119798, + "ema20": 94.761, + "change_from_t0_pct": 0.1984, + "bullish_edge_score": 71, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 20, + "candle": "长上影拒绝棒(流星线)(实体 0.0×ATR,收在下半区,上影 72%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0642, + "push": true, + "impact_pts": 3, + "text": "量价实体匹配 +0.44(放量上涨,量价配合)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0538, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -0.820 ATR/日(推动力衰减,楔形/衰竭前兆)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0273, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.74 倍 ATR(大盘顺风)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2024-09-24", + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在最高点附近,下影 71%)", + "signal": "20EMA 稳健向上倾斜,股价自前高 85.52 缩量回踩至 20EMA 附近企稳收出承接信号。", + "hypothesis": "战场定性:清晰上升通道中的 20EMA 动态支撑测试", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 82, + "ai_position_pct": 50 + }, + "pivots": [ + { + "day": "T+1", + "date": "2024-09-25", + "candle": "中阳棒(实体 0.7×ATR,收在中位犹豫,上影 57%)", + "signal": "胜负手定格:T+1 向上突破前棒高点(High 2),主升浪重启", + "verdict": "原假设确认成立", + "change_from_t0_pct": 0.0335, + "bullish_edge_score": 98, + "ai_position_pct": 90 + } + ], + "summary": "15 个交易日收盘累计 +19.8%(期间最高 +32.9% / 最低 +1.3%)。", + "confirm_rule": "站稳 20EMA 且阳线向上突破前棒高点(High 2 二次顺势入场确认)", + "invalidate_rule": "放量阴线收盘跌穿 20EMA 与 T0 防守底 80.98" + } + }, + { + "id": "300750.SZ|2026-10-09|wedge_climax_low", + "code": "300750.SZ", + "name": "宁德时代", + "date": "2026-10-09", + "year": 2026, + "segment": "样本外测试段", + "motif": "wedge_climax_low", + "motif_cn": "急跌衰竭 · 楔形底反转 vs 抄底接飞刀", + "outcome": "failure", + "outcome_cn": "抄底接飞刀:跌穿 T0 低点沦为下跌中继", + "thesis": "急跌反抽后跌破 T0 生死低点,识破下跌中继拒绝死扛。", + "initial_position_pct": 0, + "initial_position_note": "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例", + "teaching_note": "保命铁律:永远敬畏空头趋势!逆势试探抄底时,T0 信号棒最低点就是唯一生命线——一旦收盘跌破该低点,说明底是假的,无条件清仓走人。", + "atr": 10.165, + "close0": 297.75, + "levels": { + "box_high": 378.66, + "box_low": 289.0, + "ema20_t0": 312.544, + "support_20d": 285.17, + "resistance_20d": 354.66, + "support_60d": 285.17, + "resistance_60d": 408.521 + }, + "forward": { + "close0": 297.75, + "atr": 10.164587544557168, + "ret15": -0.2177329974811083, + "max_up_pct": 0.030092359361880705, + "max_dn_pct": -0.27284634760705295, + "max_up_atr": 0.881, + "max_dn_atr": 7.992, + "fwd_range_atr": 8.874, + "fwd_range_pct": 0.3029, + "close_chg_15d": -0.2177, + "max_high": 306.71, + "min_low": 216.51 + }, + "quality": { + "score": 0.9013, + "structure_score": 0.9013, + "range_atr": 8.874, + "range_pct": 0.3029 + }, + "setup": { + "text": "连续急跌 21.4% 后 T0 出现低位阳线/下影反弹,极易诱使散户误判“见底”而重仓抄底。", + "confirm_rule": "守住 T0 低点 289.00 并持续收阳重返 20EMA", + "invalidate_rule": "收盘跌穿 T0 反转棒最低点 289.00(确认为下跌中继飞刀)" + }, + "drawings": { + "lines": [ + { + "id": "dn_slope", + "label": "前期急跌斜线 (-21%)", + "color": "#0FA070", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 34, + "price": 378.66 + }, + { + "barIndex": 59, + "price": 289.0 + } + ] + }, + { + "id": "life_low", + "label": "T0 反转生死底 289.00", + "color": "#D9383A", + "style": "solid", + "width": 2, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 289.0 + }, + { + "barIndex": 74, + "price": 289.0 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "belowBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 衰竭止跌棒", + "step": 1 + }, + { + "barIndex": 62, + "pos": "aboveBar", + "color": "#D9383A", + "shape": "arrowDown", + "text": "② T+3 破底·下跌中继", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "抛售高潮 / 三推楔形底", + "skill_key": "cycle_read", + "frame1": { + "title": "战场定性:空头强趋势中的单棒反弹 · 散户最容易阵亡的“猜底陷阱”", + "body": "面对连续暴跌 21.4% 后的第一根好看阳线/下影线,人性本能总想“抄在最低点一把翻身”。但 Al Brooks 警告:在陡峭空头通道里,80% 的首次企稳信号只是空头获利平仓造成的技术性反抽(Bear Flag 下跌旗形),绝非真正见底!", + "focus_range": [ + 18, + 60 + ], + "theory_key": "bars" + }, + "frame2": { + "title": "胜负手定格:T+3 阴线直接砸穿 T0 生死底 289.00,新一轮杀跌开启", + "body": "仅仅到了 T+3,空头再度发力收出 中阴棒(实体 0.8×ATR,收在最低点附近),收盘直接击穿 T0 最低点红线(289.00)!抄底盘瞬间全军覆没,行情确认为残酷的【下跌中继】,随后继续深跌至 216.51(15 日再跌 -21.8%)。破底那一刻不砍仓就会深套。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 3, + "key_bar_index": 62, + "confirm_rule": "守住 T0 低点 289.00 并持续收阳重返 20EMA", + "invalidate_rule": "收盘跌穿 T0 反转棒最低点 289.00(确认为下跌中继飞刀)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "cycle_read", + "takeaway": "保命铁律:永远敬畏空头趋势!逆势试探抄底时,T0 信号棒最低点就是唯一生命线——一旦收盘跌破该低点,说明底是假的,无条件清仓走人。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2026-07-10", + "2026-07-13", + "2026-07-14", + "2026-07-15", + "2026-07-16", + "2026-07-17", + "2026-07-20", + "2026-07-21", + "2026-07-22", + "2026-07-23", + "2026-07-24", + "2026-07-27", + "2026-07-28", + "2026-07-29", + "2026-07-30", + "2026-07-31", + "2026-08-03", + "2026-08-04", + "2026-08-05", + "2026-08-06", + "2026-08-07", + "2026-08-10", + "2026-08-11", + "2026-08-12", + "2026-08-13", + "2026-08-14", + "2026-08-17", + "2026-08-18", + "2026-08-19", + "2026-08-20", + "2026-08-21", + "2026-08-24", + "2026-08-25", + "2026-08-26", + "2026-08-27", + "2026-08-28", + "2026-08-31", + "2026-09-01", + "2026-09-02", + "2026-09-03", + "2026-09-04", + "2026-09-07", + "2026-09-08", + "2026-09-09", + "2026-09-10", + "2026-09-11", + "2026-09-14", + "2026-09-15", + "2026-09-16", + "2026-09-17", + "2026-09-18", + "2026-09-21", + "2026-09-22", + "2026-09-23", + "2026-09-24", + "2026-09-28", + "2026-09-29", + "2026-09-30", + "2026-10-08", + "2026-10-09" + ], + "o": [ + 373.647, + 347.741, + 351.328, + 366.682, + 368.147, + 370.957, + 352.723, + 371.326, + 381.469, + 371.654, + 381.798, + 396.574, + 394.83, + 388.593, + 388.593, + 394.123, + 391.184, + 393.575, + 398.577, + 408.521, + 386.59, + 385.61, + 395.0, + 388.43, + 393.04, + 395.0, + 393.93, + 399.0, + 394.0, + 391.51, + 386.0, + 391.15, + 391.0, + 379.9, + 376.5, + 368.0, + 366.6, + 362.49, + 355.98, + 349.99, + 351.4, + 351.05, + 345.67, + 332.48, + 335.9, + 333.06, + 334.51, + 335.0, + 313.01, + 306.0, + 309.77, + 303.04, + 298.0, + 304.5, + 300.0, + 289.0, + 291.0, + 290.0, + 292.0, + 292.0 + ], + "h": [ + 373.846, + 360.694, + 363.315, + 378.619, + 373.667, + 373.886, + 376.238, + 389.589, + 383.611, + 384.608, + 389.45, + 402.343, + 398.547, + 400.41, + 402.343, + 398.756, + 394.452, + 396.425, + 406.428, + 408.521, + 387.477, + 394.62, + 395.28, + 395.91, + 399.39, + 400.99, + 400.5, + 400.75, + 396.99, + 392.09, + 397.83, + 394.4, + 391.15, + 385.5, + 378.66, + 371.25, + 367.33, + 363.56, + 356.5, + 354.8, + 354.66, + 351.8, + 346.6, + 337.66, + 340.8, + 335.66, + 341.81, + 335.73, + 315.0, + 308.66, + 310.0, + 303.6, + 308.69, + 305.76, + 302.0, + 292.66, + 293.19, + 292.7, + 293.47, + 301.42 + ], + "l": [ + 344.911, + 346.745, + 351.218, + 361.77, + 363.185, + 358.701, + 352.524, + 371.156, + 368.536, + 364.69, + 381.27, + 392.579, + 389.45, + 380.004, + 388.394, + 387.597, + 388.195, + 389.809, + 396.564, + 382.774, + 382.635, + 384.63, + 389.52, + 387.52, + 391.04, + 393.68, + 390.5, + 394.5, + 388.33, + 384.0, + 383.05, + 386.68, + 376.06, + 373.71, + 370.05, + 364.13, + 357.3, + 358.03, + 347.55, + 348.1, + 349.56, + 345.5, + 326.0, + 327.1, + 330.5, + 328.3, + 334.0, + 316.0, + 299.0, + 302.7, + 300.27, + 295.5, + 297.74, + 299.1, + 293.0, + 286.66, + 285.74, + 285.8, + 285.17, + 289.0 + ], + "c": [ + 347.502, + 357.765, + 362.697, + 371.654, + 364.879, + 358.701, + 375.072, + 380.821, + 370.917, + 384.598, + 381.628, + 398.557, + 389.45, + 395.408, + 400.43, + 393.874, + 392.977, + 393.675, + 403.738, + 386.6, + 386.67, + 393.87, + 390.4, + 393.93, + 396.3, + 393.93, + 399.98, + 396.26, + 389.0, + 385.0, + 391.15, + 387.89, + 376.73, + 379.0, + 373.0, + 368.5, + 363.55, + 358.1, + 348.29, + 349.5, + 351.0, + 348.2, + 335.49, + 336.84, + 338.06, + 330.51, + 337.11, + 316.36, + 305.48, + 304.3, + 301.95, + 297.1, + 304.63, + 301.0, + 293.5, + 291.99, + 286.8, + 291.11, + 286.75, + 297.75 + ], + "v": [ + 55601355, + 46290681, + 43631637, + 35849258, + 25186882, + 51245336, + 44790768, + 44036045, + 31193761, + 35940928, + 25454224, + 47327210, + 37191082, + 40435873, + 45239048, + 39414948, + 21522258, + 26165417, + 30011167, + 45320103, + 25519302, + 23160930, + 16299162, + 20236434, + 24429304, + 15930154, + 20399838, + 16933180, + 21157158, + 17909645, + 20449615, + 13972968, + 26064594, + 20716240, + 23373782, + 26376977, + 26242387, + 19808688, + 27806728, + 26286404, + 22738097, + 24678820, + 51955096, + 39024000, + 29118430, + 27659996, + 26184902, + 48048297, + 78716301, + 34489561, + 38071252, + 49488323, + 47381066, + 24744055, + 28008499, + 33914360, + 29875746, + 29699471, + 36680000, + 54150000 + ], + "ema20": [ + 381.889, + 379.592, + 377.983, + 377.38, + 376.189, + 374.524, + 374.576, + 375.171, + 374.766, + 375.702, + 376.266, + 378.389, + 379.443, + 380.963, + 382.817, + 383.87, + 384.738, + 385.589, + 387.317, + 387.249, + 387.194, + 387.83, + 388.074, + 388.632, + 389.362, + 389.797, + 390.767, + 391.29, + 391.072, + 390.494, + 390.556, + 390.302, + 389.01, + 388.057, + 386.623, + 384.897, + 382.864, + 380.505, + 377.437, + 374.776, + 372.512, + 370.197, + 366.891, + 364.029, + 361.556, + 358.599, + 356.553, + 352.725, + 348.225, + 344.042, + 340.033, + 335.944, + 332.962, + 329.918, + 326.45, + 323.168, + 319.704, + 316.981, + 314.102, + 312.544 + ] + }, + "future": { + "dates": [ + "2026-10-12", + "2026-10-13", + "2026-10-14", + "2026-10-15", + "2026-10-16", + "2026-10-19", + "2026-10-20", + "2026-10-21", + "2026-10-22", + "2026-10-23", + "2026-10-26", + "2026-10-27", + "2026-10-28", + "2026-10-29", + "2026-10-30" + ], + "o": [ + 300.27, + 297.9, + 288.0, + 274.98, + 281.79, + 275.0, + 268.35, + 246.13, + 222.11, + 220.0, + 234.95, + 238.8, + 233.34, + 226.86, + 230.85 + ], + "h": [ + 306.71, + 297.99, + 290.88, + 282.01, + 282.0, + 275.0, + 268.99, + 249.0, + 225.19, + 238.0, + 241.6, + 238.8, + 234.0, + 232.11, + 237.57 + ], + "l": [ + 297.57, + 286.7, + 280.12, + 272.0, + 273.29, + 267.02, + 254.55, + 227.08, + 218.45, + 216.51, + 229.6, + 232.67, + 228.6, + 225.45, + 228.02 + ], + "c": [ + 298.38, + 289.1, + 280.12, + 278.5, + 277.0, + 267.02, + 259.08, + 227.9, + 220.41, + 237.6, + 238.0, + 233.0, + 229.14, + 229.07, + 232.92 + ], + "v": [ + 41710000, + 40880000, + 33460000, + 42000000, + 29740000, + 31150000, + 58860000, + 138350000, + 91940000, + 111480000, + 61920000, + 37500000, + 44390000, + 37480000, + 44150000 + ], + "ema20": [ + 311.195, + 309.091, + 306.332, + 303.681, + 301.14, + 297.891, + 294.194, + 287.881, + 281.455, + 277.278, + 273.537, + 269.677, + 265.816, + 262.316, + 259.517 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2026-10-09", + "open": 292.0, + "high": 301.42, + "low": 289.0, + "close": 297.75, + "volume": 54150000, + "ema20": 312.544, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 93, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "中阳棒(实体 0.6×ATR,收在上半区,上影 30%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1129, + "push": true, + "impact_pts": 5, + "text": "沪深300 相对 20EMA -2.19 倍 ATR(大盘逆风)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0322, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.49(放量上涨,量价配合)" + }, + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.0269, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 -0.10(无明显高潮)" + } + ] + }, + { + "day": "T+1", + "date": "2026-10-12", + "open": 300.27, + "high": 306.71, + "low": 297.57, + "close": 298.38, + "volume": 41710000, + "ema20": 311.195, + "change_from_t0_pct": 0.0021, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在最低点附近,上影 70%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1237, + "push": true, + "impact_pts": 6, + "text": "沪深300 相对 20EMA -2.43 倍 ATR(大盘逆风)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0248, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 9%(下方承接一般)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": -0.0176, + "push": false, + "impact_pts": -2, + "text": "近 2 日净多头实体 +0.19 倍 ATR(有跟随)" + } + ] + }, + { + "day": "T+2", + "date": "2026-10-13", + "open": 297.9, + "high": 297.99, + "low": 286.7, + "close": 289.1, + "volume": 40880000, + "ema20": 309.091, + "change_from_t0_pct": -0.0291, + "bullish_edge_score": 93, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "大阴趋势棒(实体 0.9×ATR,收在下半区)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1752, + "push": true, + "impact_pts": 8, + "text": "沪深300 相对 20EMA -2.29 倍 ATR(大盘逆风)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0239, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -1.96 倍 ATR(跌破 20EMA,空头结构)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0184, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -1.04 倍 ATR/5日(中期趋势走弱)" + } + ] + }, + { + "day": "T+3", + "date": "2026-10-14", + "open": 288.0, + "high": 290.88, + "low": 280.12, + "close": 280.12, + "volume": 33460000, + "ema20": 306.332, + "change_from_t0_pct": -0.0592, + "bullish_edge_score": 96, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "中阴棒(实体 0.8×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1733, + "push": true, + "impact_pts": 8, + "text": "沪深300 相对 20EMA -2.88 倍 ATR(大盘逆风)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0461, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 0%(下方承接一般)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0246, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -2.56 倍 ATR(跌破 20EMA,空头结构)" + } + ] + }, + { + "day": "T+4", + "date": "2026-10-15", + "open": 274.98, + "high": 282.01, + "low": 272.0, + "close": 278.5, + "volume": 42000000, + "ema20": 303.681, + "change_from_t0_pct": -0.0647, + "bullish_edge_score": 95, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "小阳十字星(实体 0.3×ATR,收在上半区,上影 35%、下影 30%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.2002, + "push": true, + "impact_pts": 9, + "text": "沪深300 相对 20EMA -3.20 倍 ATR(大盘逆风)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0362, + "push": true, + "impact_pts": 2, + "text": "近 5 日 K 线重叠率 14%(重叠低,通道顺畅)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": -0.0248, + "push": false, + "impact_pts": -2, + "text": "近 3 日净多头实体 -0.43 倍 ATR(空头主导)" + } + ] + }, + { + "day": "T+5", + "date": "2026-10-16", + "open": 281.79, + "high": 282.0, + "low": 273.29, + "close": 277.0, + "volume": 29740000, + "ema20": 301.14, + "change_from_t0_pct": -0.0697, + "bullish_edge_score": 95, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "长下影承接棒(Pin Bar)(实体 0.5×ATR,收在中位犹豫,下影 43%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.2, + "push": true, + "impact_pts": 9, + "text": "沪深300 相对 20EMA -2.80 倍 ATR(大盘逆风)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0242, + "push": true, + "impact_pts": 2, + "text": "近 5 日 K 线重叠率 31%(重叠低,通道顺畅)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0202, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -1.13 倍 ATR/5日(中期趋势走弱)" + } + ] + }, + { + "day": "T+6", + "date": "2026-10-19", + "open": 275.0, + "high": 275.0, + "low": 267.02, + "close": 267.02, + "volume": 31150000, + "ema20": 297.891, + "change_from_t0_pct": -0.1032, + "bullish_edge_score": 97, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "中阴棒(实体 0.8×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.21, + "push": true, + "impact_pts": 9, + "text": "沪深300 相对 20EMA -2.53 倍 ATR(大盘逆风)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0509, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 0%(下方承接一般)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0353, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +0.598 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+7", + "date": "2026-10-20", + "open": 268.35, + "high": 268.99, + "low": 254.55, + "close": 259.08, + "volume": 58860000, + "ema20": 294.194, + "change_from_t0_pct": -0.1299, + "bullish_edge_score": 92, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "大阴趋势棒(实体 0.9×ATR,收在下半区,下影 31%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.208, + "push": true, + "impact_pts": 9, + "text": "沪深300 相对 20EMA -2.61 倍 ATR(大盘逆风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0258, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 4%(上方压力有限)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0226, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +0.581 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+8", + "date": "2026-10-21", + "open": 246.13, + "high": 249.0, + "low": 227.08, + "close": 227.9, + "volume": 138350000, + "ema20": 287.881, + "change_from_t0_pct": -0.2346, + "bullish_edge_score": 97, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "大阴趋势棒(实体 1.8×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.2271, + "push": true, + "impact_pts": 10, + "text": "沪深300 相对 20EMA -2.92 倍 ATR(大盘逆风)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0681, + "push": true, + "impact_pts": 3, + "text": "下影线占振幅 4%(下方承接一般)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0567, + "push": true, + "impact_pts": 3, + "text": "推次斜率衰减 +0.506 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+9", + "date": "2026-10-22", + "open": 222.11, + "high": 225.19, + "low": 218.45, + "close": 220.41, + "volume": 91940000, + "ema20": 281.455, + "change_from_t0_pct": -0.2597, + "bullish_edge_score": 96, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在下半区,上影 46%、下影 29%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.2092, + "push": true, + "impact_pts": 9, + "text": "沪深300 相对 20EMA -3.59 倍 ATR(大盘逆风)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0532, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +0.514 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0352, + "push": true, + "impact_pts": 2, + "text": "近 5 日 K 线重叠率 5%(重叠低,通道顺畅)" + } + ] + }, + { + "day": "T+10", + "date": "2026-10-23", + "open": 220.0, + "high": 238.0, + "low": 216.51, + "close": 237.6, + "volume": 111480000, + "ema20": 277.278, + "change_from_t0_pct": -0.202, + "bullish_edge_score": 98, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "大阳趋势棒(实体 1.7×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1479, + "push": true, + "impact_pts": 7, + "text": "沪深300 相对 20EMA -2.13 倍 ATR(大盘逆风)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.1341, + "push": true, + "impact_pts": 6, + "text": "量价实体匹配 +1.44(放量上涨,量价配合)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0415, + "push": true, + "impact_pts": 2, + "text": "近 5 日 K 线重叠率 10%(重叠低,通道顺畅)" + } + ] + }, + { + "day": "T+11", + "date": "2026-10-26", + "open": 234.95, + "high": 241.6, + "low": 229.6, + "close": 238.0, + "volume": 61920000, + "ema20": 273.537, + "change_from_t0_pct": -0.2007, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "长下影承接棒(Pin Bar)(实体 0.3×ATR,收在上半区,上影 30%、下影 45%)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0419, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 30%(上方压力有限)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0343, + "push": true, + "impact_pts": 2, + "text": "近 5 日 K 线重叠率 16%(重叠低,通道顺畅)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.026, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -1.96 倍 ATR/5日(中期趋势走弱)" + } + ] + }, + { + "day": "T+12", + "date": "2026-10-27", + "open": 238.8, + "high": 238.8, + "low": 232.67, + "close": 233.0, + "volume": 37500000, + "ema20": 269.677, + "change_from_t0_pct": -0.2175, + "bullish_edge_score": 97, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "中阴棒(实体 0.6×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.2107, + "push": true, + "impact_pts": 9, + "text": "沪深300 相对 20EMA -2.52 倍 ATR(大盘逆风)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0438, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +0.505 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0348, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 5%(下方承接一般)" + } + ] + }, + { + "day": "T+13", + "date": "2026-10-28", + "open": 233.34, + "high": 234.0, + "low": 228.6, + "close": 229.14, + "volume": 44390000, + "ema20": 265.816, + "change_from_t0_pct": -0.2304, + "bullish_edge_score": 67, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "中阴棒(实体 0.4×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0247, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 12%(上方压力有限)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0232, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.90 倍 ATR(大盘逆风)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0219, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -3.18 倍 ATR(跌破 20EMA,空头结构)" + } + ] + }, + { + "day": "T+14", + "date": "2026-10-29", + "open": 226.86, + "high": 232.11, + "low": 225.45, + "close": 229.07, + "volume": 37480000, + "ema20": 262.316, + "change_from_t0_pct": -0.2307, + "bullish_edge_score": 93, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在中位犹豫,上影 46%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1574, + "push": true, + "impact_pts": 7, + "text": "沪深300 相对 20EMA -2.31 倍 ATR(大盘逆风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0221, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -1.71 倍 ATR/5日(中期趋势走弱)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.012, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -2.98 倍 ATR(跌破 20EMA,空头结构)" + } + ] + }, + { + "day": "T+15", + "date": "2026-10-30", + "open": 230.85, + "high": 237.57, + "low": 228.02, + "close": 232.92, + "volume": 44150000, + "ema20": 259.517, + "change_from_t0_pct": -0.2177, + "bullish_edge_score": 93, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在中位犹豫,上影 49%、下影 30%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1751, + "push": true, + "impact_pts": 8, + "text": "沪深300 相对 20EMA -2.81 倍 ATR(大盘逆风)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0159, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -2.41 倍 ATR(跌破 20EMA,空头结构)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0151, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -1.61 倍 ATR/5日(中期趋势走弱)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2026-10-09", + "candle": "中阳棒(实体 0.6×ATR,收在上半区,上影 30%)", + "signal": "连续急跌 21.4% 后 T0 出现低位阳线/下影反弹,极易诱使散户误判“见底”而重仓抄底。", + "hypothesis": "战场定性:空头强趋势中的单棒反弹 · 散户最容易阵亡的“猜底陷阱”", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 93, + "ai_position_pct": 80 + }, + "pivots": [ + { + "day": "T+3", + "date": "2026-10-14", + "candle": "中阴棒(实体 0.8×ATR,收在最低点附近)", + "signal": "胜负手定格:T+3 阴线直接砸穿 T0 生死底 289.00,新一轮杀跌开启", + "verdict": "原假设被证伪失效", + "change_from_t0_pct": -0.0592, + "bullish_edge_score": 96, + "ai_position_pct": 90 + } + ], + "summary": "15 个交易日收盘累计 -21.8%(期间最高 +3.0% / 最低 -27.3%)。", + "confirm_rule": "守住 T0 低点 289.00 并持续收阳重返 20EMA", + "invalidate_rule": "收盘跌穿 T0 反转棒最低点 289.00(确认为下跌中继飞刀)" + } + }, + { + "id": "300750.SZ|2022-09-09|wedge_climax_low", + "code": "300750.SZ", + "name": "宁德时代", + "date": "2022-09-09", + "year": 2022, + "segment": "训练段", + "motif": "wedge_climax_low", + "motif_cn": "急跌衰竭 · 楔形底反转 vs 抄底接飞刀", + "outcome": "failure", + "outcome_cn": "抄底接飞刀:跌穿 T0 低点沦为下跌中继", + "thesis": "急跌反抽后跌破 T0 生死低点,识破下跌中继拒绝死扛。", + "initial_position_pct": 0, + "initial_position_note": "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例", + "teaching_note": "保命铁律:永远敬畏空头趋势!逆势试探抄底时,T0 信号棒最低点就是唯一生命线——一旦收盘跌破该低点,说明底是假的,无条件清仓走人。", + "atr": 10.262, + "close0": 232.002, + "levels": { + "box_high": 294.992, + "box_low": 229.068, + "ema20_t0": 250.308, + "support_20d": 227.724, + "resistance_20d": 294.992, + "support_60d": 227.724, + "resistance_60d": 294.992 + }, + "forward": { + "close0": 232.0022, + "atr": 10.262467237595192, + "ret15": -0.12994704360562093, + "max_up_pct": 0.01764638438773436, + "max_dn_pct": -0.13355692316710788, + "max_up_atr": 0.399, + "max_dn_atr": 3.019, + "fwd_range_atr": 3.418, + "fwd_range_pct": 0.1512, + "close_chg_15d": -0.1299, + "max_high": 236.096, + "min_low": 201.017 + }, + "quality": { + "score": 0.8404, + "structure_score": 0.8404, + "range_atr": 3.418, + "range_pct": 0.1512 + }, + "setup": { + "text": "连续急跌 21.4% 后 T0 出现低位阳线/下影反弹,极易诱使散户误判“见底”而重仓抄底。", + "confirm_rule": "守住 T0 低点 229.07 并持续收阳重返 20EMA", + "invalidate_rule": "收盘跌穿 T0 反转棒最低点 229.07(确认为下跌中继飞刀)" + }, + "drawings": { + "lines": [ + { + "id": "dn_slope", + "label": "前期急跌斜线 (-21%)", + "color": "#0FA070", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 47, + "price": 294.992 + }, + { + "barIndex": 59, + "price": 229.068 + } + ] + }, + { + "id": "life_low", + "label": "T0 反转生死底 229.07", + "color": "#D9383A", + "style": "solid", + "width": 2, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 229.068 + }, + { + "barIndex": 74, + "price": 229.068 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "belowBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 衰竭止跌棒", + "step": 1 + }, + { + "barIndex": 61, + "pos": "aboveBar", + "color": "#D9383A", + "shape": "arrowDown", + "text": "② T+2 破底·下跌中继", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "抛售高潮 / 三推楔形底", + "skill_key": "cycle_read", + "frame1": { + "title": "战场定性:空头强趋势中的单棒反弹 · 散户最容易阵亡的“猜底陷阱”", + "body": "面对连续暴跌 21.4% 后的第一根好看阳线/下影线,人性本能总想“抄在最低点一把翻身”。但 Al Brooks 警告:在陡峭空头通道里,80% 的首次企稳信号只是空头获利平仓造成的技术性反抽(Bear Flag 下跌旗形),绝非真正见底!", + "focus_range": [ + 18, + 60 + ], + "theory_key": "bars" + }, + "frame2": { + "title": "胜负手定格:T+2 阴线直接砸穿 T0 生死底 229.07,新一轮杀跌开启", + "body": "仅仅到了 T+2,空头再度发力收出 中阴棒(实体 0.8×ATR,收在下半区),收盘直接击穿 T0 最低点红线(229.07)!抄底盘瞬间全军覆没,行情确认为残酷的【下跌中继】,随后继续深跌至 201.02(15 日再跌 -13.0%)。破底那一刻不砍仓就会深套。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 2, + "key_bar_index": 61, + "confirm_rule": "守住 T0 低点 229.07 并持续收阳重返 20EMA", + "invalidate_rule": "收盘跌穿 T0 反转棒最低点 229.07(确认为下跌中继飞刀)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "cycle_read", + "takeaway": "保命铁律:永远敬畏空头趋势!逆势试探抄底时,T0 信号棒最低点就是唯一生命线——一旦收盘跌破该低点,说明底是假的,无条件清仓走人。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2022-06-20", + "2022-06-21", + "2022-06-22", + "2022-06-23", + "2022-06-24", + "2022-06-27", + "2022-06-28", + "2022-06-29", + "2022-06-30", + "2022-07-01", + "2022-07-04", + "2022-07-05", + "2022-07-06", + "2022-07-07", + "2022-07-08", + "2022-07-11", + "2022-07-12", + "2022-07-13", + "2022-07-14", + "2022-07-15", + "2022-07-18", + "2022-07-19", + "2022-07-20", + "2022-07-21", + "2022-07-22", + "2022-07-25", + "2022-07-26", + "2022-07-27", + "2022-07-28", + "2022-07-29", + "2022-08-01", + "2022-08-02", + "2022-08-03", + "2022-08-04", + "2022-08-05", + "2022-08-08", + "2022-08-09", + "2022-08-10", + "2022-08-11", + "2022-08-12", + "2022-08-15", + "2022-08-16", + "2022-08-17", + "2022-08-18", + "2022-08-19", + "2022-08-22", + "2022-08-23", + "2022-08-24", + "2022-08-25", + "2022-08-26", + "2022-08-29", + "2022-08-30", + "2022-08-31", + "2022-09-01", + "2022-09-02", + "2022-09-05", + "2022-09-06", + "2022-09-07", + "2022-09-08", + "2022-09-09" + ], + "o": [ + 253.349, + 258.567, + 263.697, + 264.21, + 281.14, + 289.344, + 279.601, + 273.44, + 273.198, + 273.434, + 261.65, + 269.084, + 270.423, + 272.855, + 284.731, + 274.081, + 266.262, + 260.773, + 274.727, + 281.91, + 278.062, + 282.454, + 271.895, + 268.314, + 275.866, + 272.932, + 267.688, + 267.545, + 266.006, + 268.802, + 260.552, + 267.945, + 268.827, + 260.106, + 256.515, + 254.463, + 257.028, + 261.696, + 258.639, + 261.748, + 259.023, + 266.724, + 270.613, + 280.627, + 281.653, + 273.958, + 282.156, + 293.981, + 269.341, + 263.184, + 258.049, + 257.541, + 247.121, + 246.254, + 243.627, + 237.025, + 240.098, + 231.628, + 240.277, + 232.197 + ], + "h": [ + 264.78, + 263.123, + 267.93, + 275.481, + 289.092, + 289.846, + 281.838, + 278.318, + 276.933, + 274.984, + 269.684, + 275.071, + 273.691, + 284.5, + 289.846, + 274.727, + 269.494, + 278.693, + 288.323, + 289.066, + 283.218, + 282.454, + 274.543, + 276.036, + 279.083, + 273.932, + 270.88, + 267.853, + 270.213, + 268.827, + 274.881, + 273.157, + 273.896, + 261.178, + 263.646, + 259.685, + 266.057, + 263.082, + 263.194, + 262.671, + 268.314, + 276.01, + 282.151, + 287.296, + 282.007, + 285.07, + 289.687, + 294.992, + 270.125, + 266.252, + 259.993, + 257.541, + 251.282, + 248.819, + 244.202, + 242.15, + 240.282, + 244.453, + 241.637, + 233.136 + ], + "l": [ + 253.349, + 254.519, + 260.055, + 262.61, + 271.798, + 279.596, + 269.392, + 269.848, + 270.197, + 265.595, + 261.645, + 263.02, + 263.995, + 272.419, + 274.589, + 264.877, + 256.32, + 257.423, + 272.034, + 273.445, + 272.085, + 268.827, + 268.243, + 265.862, + 269.874, + 266.262, + 264.338, + 262.261, + 263.194, + 258.11, + 258.875, + 266.493, + 255.899, + 254.001, + 253.95, + 250.871, + 255.232, + 256.515, + 253.437, + 255.448, + 257.992, + 265.842, + 268.817, + 278.293, + 271.916, + 270.469, + 279.832, + 267.801, + 259.126, + 258.054, + 254.627, + 249.23, + 243.443, + 239.41, + 236.907, + 235.486, + 227.724, + 230.863, + 230.094, + 229.068 + ], + "c": [ + 259.86, + 260.542, + 260.106, + 275.481, + 289.092, + 281.653, + 279.088, + 273.209, + 273.958, + 268.13, + 267.801, + 268.761, + 267.801, + 282.166, + 277.549, + 266.006, + 258.408, + 276.523, + 285.25, + 273.445, + 283.018, + 269.14, + 269.853, + 267.288, + 272.932, + 267.673, + 267.801, + 264.313, + 264.518, + 260.927, + 274.43, + 268.761, + 258.567, + 256.976, + 259.413, + 257.284, + 262.445, + 258.557, + 261.645, + 257.541, + 264.774, + 268.725, + 280.627, + 279.498, + 272.932, + 282.951, + 285.701, + 268.827, + 263.697, + 259.993, + 257.541, + 252.154, + 247.793, + 239.862, + 239.205, + 240.282, + 233.531, + 243.135, + 230.607, + 232.002 + ], + "v": [ + 45210000, + 26220000, + 26390000, + 31880000, + 34740000, + 29920000, + 33560000, + 26250000, + 23540000, + 22130000, + 21950000, + 27830000, + 23550000, + 44280000, + 29840000, + 24850000, + 27230000, + 44220000, + 35920000, + 28550000, + 25870000, + 29360000, + 14100000, + 15850000, + 25710000, + 15570000, + 14340000, + 16800000, + 16680000, + 21442468, + 29338607, + 21857407, + 30646024, + 20457131, + 21929533, + 16136447, + 20354166, + 14488349, + 17641278, + 13290849, + 24763574, + 28975261, + 33031183, + 25704079, + 19385294, + 25749650, + 23681119, + 54123109, + 32431541, + 21990571, + 20269787, + 28108942, + 31410284, + 27857806, + 20809579, + 16398016, + 49544221, + 39019882, + 38794736, + 22044154 + ], + "ema20": [ + 229.721, + 232.656, + 235.27, + 239.1, + 243.861, + 247.46, + 250.473, + 252.638, + 254.668, + 255.95, + 257.079, + 258.192, + 259.107, + 261.303, + 262.85, + 263.151, + 262.699, + 264.016, + 266.038, + 266.743, + 268.293, + 268.374, + 268.515, + 268.398, + 268.83, + 268.72, + 268.632, + 268.221, + 267.868, + 267.207, + 267.895, + 267.977, + 267.081, + 266.119, + 265.48, + 264.7, + 264.485, + 263.92, + 263.704, + 263.117, + 263.275, + 263.794, + 265.397, + 266.74, + 267.33, + 268.817, + 270.425, + 270.273, + 269.647, + 268.727, + 267.662, + 266.185, + 264.433, + 262.093, + 259.913, + 258.044, + 255.709, + 254.512, + 252.235, + 250.308 + ] + }, + "future": { + "dates": [ + "2022-09-13", + "2022-09-14", + "2022-09-15", + "2022-09-16", + "2022-09-19", + "2022-09-20", + "2022-09-21", + "2022-09-22", + "2022-09-23", + "2022-09-26", + "2022-09-27", + "2022-09-28", + "2022-09-29", + "2022-09-30", + "2022-10-10" + ], + "o": [ + 235.481, + 230.863, + 222.809, + 212.548, + 210.152, + 214.446, + 213.933, + 213.061, + 213.4, + 211.902, + 222.598, + 219.396, + 217.967, + 215.429, + 206.55 + ], + "h": [ + 236.096, + 232.402, + 223.168, + 214.6, + 216.293, + 220.603, + 217.248, + 215.472, + 217.935, + 223.168, + 223.337, + 220.336, + 218.625, + 215.902, + 207.835 + ], + "l": [ + 229.247, + 219.72, + 210.958, + 209.829, + 209.85, + 212.907, + 212.071, + 208.29, + 210.368, + 211.902, + 217.017, + 212.094, + 213.271, + 205.78, + 201.017 + ], + "c": [ + 234.408, + 222.809, + 212.574, + 210.342, + 212.225, + 215.99, + 215.626, + 212.902, + 214.108, + 219.915, + 220.346, + 214.15, + 215.285, + 205.98, + 201.854 + ], + "v": [ + 18365202, + 46608815, + 45690469, + 26933774, + 25135846, + 29824254, + 15857750, + 17355769, + 21633278, + 33903272, + 20811470, + 19255394, + 16010600, + 21265220, + 20637635 + ], + "ema20": [ + 248.794, + 246.319, + 243.105, + 239.985, + 237.341, + 235.308, + 233.433, + 231.478, + 229.824, + 228.88, + 228.067, + 226.742, + 225.651, + 223.777, + 221.689 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2022-09-09", + "open": 232.197, + "high": 233.136, + "low": 229.068, + "close": 232.002, + "volume": 22044154, + "ema20": 250.308, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 53, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.0×ATR,收在上半区,下影 72%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.036, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.03 倍 ATR(大盘逆风)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": -0.0231, + "push": false, + "impact_pts": -2, + "text": "近 3 日净多头实体 +0.06 倍 ATR(跟随不足)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0188, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+1", + "date": "2022-09-13", + "open": 235.481, + "high": 236.096, + "low": 229.247, + "close": 234.408, + "volume": 18365202, + "ema20": 248.794, + "change_from_t0_pct": 0.0104, + "bullish_edge_score": 58, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.1×ATR,收在上半区,下影 75%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.058, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +0.28 倍 ATR(大盘顺风)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": -0.0259, + "push": false, + "impact_pts": -2, + "text": "下影线占振幅 75%(下方承接明显,Pin Bar 特征)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.0224, + "push": true, + "impact_pts": 2, + "text": "近 3 日净多头实体 -0.34 倍 ATR(空头主导)" + } + ] + }, + { + "day": "T+2", + "date": "2022-09-14", + "open": 230.863, + "high": 232.402, + "low": 219.72, + "close": 222.809, + "volume": 46608815, + "ema20": 246.319, + "change_from_t0_pct": -0.0396, + "bullish_edge_score": 63, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阴棒(实体 0.8×ATR,收在下半区)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0247, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.56 倍 ATR(大盘逆风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0233, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 1 根(买盘一般)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0139, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 -0.61(放量下跌,派发嫌疑)" + } + ] + }, + { + "day": "T+3", + "date": "2022-09-15", + "open": 222.809, + "high": 223.168, + "low": 210.958, + "close": 212.574, + "volume": 45690469, + "ema20": 243.105, + "change_from_t0_pct": -0.0837, + "bullish_edge_score": 60, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阴趋势棒(实体 1.0×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0229, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.12 倍 ATR(大盘逆风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0214, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.014, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+4", + "date": "2022-09-16", + "open": 212.548, + "high": 214.6, + "low": 209.829, + "close": 210.342, + "volume": 26933774, + "ema20": 239.985, + "change_from_t0_pct": -0.0934, + "bullish_edge_score": 97, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在最低点附近,上影 43%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.2197, + "push": true, + "impact_pts": 10, + "text": "沪深300 相对 20EMA -2.46 倍 ATR(大盘逆风)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0323, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 11%(下方承接一般)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0233, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +0.919 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+5", + "date": "2022-09-19", + "open": 210.152, + "high": 216.293, + "low": 209.85, + "close": 212.225, + "volume": 25135846, + "ema20": 237.341, + "change_from_t0_pct": -0.0852, + "bullish_edge_score": 97, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在下半区,上影 63%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.2069, + "push": true, + "impact_pts": 9, + "text": "沪深300 相对 20EMA -2.34 倍 ATR(大盘逆风)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0454, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 5%(下方承接一般)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0308, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +0.943 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+6", + "date": "2022-09-20", + "open": 214.446, + "high": 220.603, + "low": 212.907, + "close": 215.99, + "volume": 29824254, + "ema20": 235.308, + "change_from_t0_pct": -0.069, + "bullish_edge_score": 84, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在下半区,上影 60%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0882, + "push": true, + "impact_pts": 4, + "text": "沪深300 相对 20EMA -2.09 倍 ATR(大盘逆风)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": -0.0246, + "push": false, + "impact_pts": -2, + "text": "近 2 日净多头实体 +0.19 倍 ATR(有跟随)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0204, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + } + ] + }, + { + "day": "T+7", + "date": "2022-09-21", + "open": 213.933, + "high": 217.248, + "low": 212.071, + "close": 215.626, + "volume": 15857750, + "ema20": 233.433, + "change_from_t0_pct": -0.0706, + "bullish_edge_score": 80, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "小阳十字星(实体 0.2×ATR,收在上半区,上影 31%、下影 36%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1, + "push": true, + "impact_pts": 4, + "text": "沪深300 相对 20EMA -2.40 倍 ATR(大盘逆风)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0855, + "push": false, + "impact_pts": -4, + "text": "量能为前 20 日均量 0.51 倍(缩量)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0303, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -1.37 倍 ATR/5日(中期趋势走弱)" + } + ] + }, + { + "day": "T+8", + "date": "2022-09-22", + "open": 213.061, + "high": 215.472, + "low": 208.29, + "close": 212.902, + "volume": 17355769, + "ema20": 231.478, + "change_from_t0_pct": -0.0823, + "bullish_edge_score": 65, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.0×ATR,收在上半区,上影 34%、下影 64%)", + "top3_shap": [ + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0694, + "push": false, + "impact_pts": -3, + "text": "量能为前 20 日均量 0.57 倍(缩量)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.049, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA -2.78 倍 ATR(大盘逆风)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.025, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.43(放量上涨,量价配合)" + } + ] + }, + { + "day": "T+9", + "date": "2022-09-23", + "open": 213.4, + "high": 217.935, + "low": 210.368, + "close": 214.108, + "volume": 21633278, + "ema20": 229.824, + "change_from_t0_pct": -0.0771, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在中位犹豫,上影 51%、下影 40%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1366, + "push": true, + "impact_pts": 6, + "text": "沪深300 相对 20EMA -2.72 倍 ATR(大盘逆风)" + }, + { + "name_cn": "实体动能", + "feature": "pa_body_atr", + "shap": -0.0327, + "push": false, + "impact_pts": -2, + "text": "实体厚度 0.08 倍 ATR(接近十字星/纺锤线)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0213, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -1.201 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+10", + "date": "2022-09-26", + "open": 211.902, + "high": 223.168, + "low": 211.902, + "close": 219.915, + "volume": 33903272, + "ema20": 228.88, + "change_from_t0_pct": -0.0521, + "bullish_edge_score": 93, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "中阳棒(实体 0.8×ATR,收在上半区,上影 29%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1574, + "push": true, + "impact_pts": 7, + "text": "沪深300 相对 20EMA -2.75 倍 ATR(大盘逆风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0288, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -0.91 倍 ATR/5日(中期趋势走弱)" + }, + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.026, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 -0.16(抢购高潮,衰竭倾向)" + } + ] + }, + { + "day": "T+11", + "date": "2022-09-27", + "open": 222.598, + "high": 223.337, + "low": 217.017, + "close": 220.346, + "volume": 20811470, + "ema20": 228.067, + "change_from_t0_pct": -0.0502, + "bullish_edge_score": 60, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在中位犹豫,下影 53%)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0325, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 12%(上方压力有限)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0214, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -1.447 ATR/日(推动力衰减,楔形/衰竭前兆)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0185, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.54 倍 ATR(大盘逆风)" + } + ] + }, + { + "day": "T+12", + "date": "2022-09-28", + "open": 219.396, + "high": 220.336, + "low": 212.094, + "close": 214.15, + "volume": 19255394, + "ema20": 226.742, + "change_from_t0_pct": -0.077, + "bullish_edge_score": 84, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "中阴棒(实体 0.5×ATR,收在下半区)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1419, + "push": true, + "impact_pts": 6, + "text": "沪深300 相对 20EMA -2.41 倍 ATR(大盘逆风)" + }, + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": -0.0215, + "push": false, + "impact_pts": -2, + "text": "高潮衰竭度 +0.22(恐慌抛售高潮,反转倾向)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.02, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -1.456 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+13", + "date": "2022-09-29", + "open": 217.967, + "high": 218.625, + "low": 213.271, + "close": 215.285, + "volume": 16010600, + "ema20": 225.651, + "change_from_t0_pct": -0.0721, + "bullish_edge_score": 74, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "小阴十字星(实体 0.3×ATR,收在下半区,下影 38%)", + "top3_shap": [ + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0709, + "push": false, + "impact_pts": -3, + "text": "量能为前 20 日均量 0.56 倍(缩量)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0604, + "push": true, + "impact_pts": 3, + "text": "沪深300 相对 20EMA -2.18 倍 ATR(大盘逆风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0226, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -0.67 倍 ATR/5日(中期趋势走弱)" + } + ] + }, + { + "day": "T+14", + "date": "2022-09-30", + "open": 215.429, + "high": 215.902, + "low": 205.78, + "close": 205.98, + "volume": 21265220, + "ema20": 223.777, + "change_from_t0_pct": -0.1122, + "bullish_edge_score": 96, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "大阴趋势棒(实体 0.9×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1759, + "push": true, + "impact_pts": 8, + "text": "沪深300 相对 20EMA -2.36 倍 ATR(大盘逆风)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0565, + "push": true, + "impact_pts": 3, + "text": "下影线占振幅 2%(下方承接一般)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0249, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -2.01 倍 ATR(跌破 20EMA,空头结构)" + } + ] + }, + { + "day": "T+15", + "date": "2022-10-10", + "open": 206.55, + "high": 207.835, + "low": 201.017, + "close": 201.854, + "volume": 20637635, + "ema20": 221.689, + "change_from_t0_pct": -0.1299, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "中阴棒(实体 0.5×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1471, + "push": true, + "impact_pts": 7, + "text": "沪深300 相对 20EMA -3.34 倍 ATR(大盘逆风)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": -0.0325, + "push": false, + "impact_pts": -2, + "text": "收盘位置强度 12%(收在当日最低附近,空方掌握收盘权)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": -0.0252, + "push": false, + "impact_pts": -2, + "text": "下影线占振幅 12%(下方承接一般)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2022-09-09", + "candle": "长下影承接棒(Pin Bar)(实体 0.0×ATR,收在上半区,下影 72%)", + "signal": "连续急跌 21.4% 后 T0 出现低位阳线/下影反弹,极易诱使散户误判“见底”而重仓抄底。", + "hypothesis": "战场定性:空头强趋势中的单棒反弹 · 散户最容易阵亡的“猜底陷阱”", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 53, + "ai_position_pct": 0 + }, + "pivots": [ + { + "day": "T+2", + "date": "2022-09-14", + "candle": "中阴棒(实体 0.8×ATR,收在下半区)", + "signal": "胜负手定格:T+2 阴线直接砸穿 T0 生死底 229.07,新一轮杀跌开启", + "verdict": "原假设被证伪失效", + "change_from_t0_pct": -0.0396, + "bullish_edge_score": 63, + "ai_position_pct": 0 + } + ], + "summary": "15 个交易日收盘累计 -13.0%(期间最高 +1.8% / 最低 -13.4%)。", + "confirm_rule": "守住 T0 低点 229.07 并持续收阳重返 20EMA", + "invalidate_rule": "收盘跌穿 T0 反转棒最低点 229.07(确认为下跌中继飞刀)" + } + }, + { + "id": "600887.SH|2022-10-12|wedge_climax_low", + "code": "600887.SH", + "name": "伊利股份", + "date": "2022-10-12", + "year": 2022, + "segment": "训练段", + "motif": "wedge_climax_low", + "motif_cn": "急跌衰竭 · 楔形底反转 vs 抄底接飞刀", + "outcome": "failure", + "outcome_cn": "抄底接飞刀:跌穿 T0 低点沦为下跌中继", + "thesis": "急跌反抽后跌破 T0 生死低点,识破下跌中继拒绝死扛。", + "initial_position_pct": 0, + "initial_position_note": "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例", + "teaching_note": "保命铁律:永远敬畏空头趋势!逆势试探抄底时,T0 信号棒最低点就是唯一生命线——一旦收盘跌破该低点,说明底是假的,无条件清仓走人。", + "atr": 0.567, + "close0": 27.451, + "levels": { + "box_high": 30.587, + "box_low": 26.667, + "ema20_t0": 27.936, + "support_20d": 26.667, + "resistance_20d": 28.75, + "support_60d": 26.667, + "resistance_60d": 31.161 + }, + "forward": { + "close0": 27.4512, + "atr": 0.5666645403320204, + "ret15": -0.1603208602902605, + "max_up_pct": 0.02610450544967069, + "max_dn_pct": -0.24723509354782303, + "max_up_atr": 1.265, + "max_dn_atr": 11.977, + "fwd_range_atr": 13.242, + "fwd_range_pct": 0.2733, + "close_chg_15d": -0.1603, + "max_high": 28.168, + "min_low": 20.664 + }, + "quality": { + "score": 0.8008, + "structure_score": 0.8008, + "range_atr": 13.242, + "range_pct": 0.2733 + }, + "setup": { + "text": "连续急跌 10.3% 后 T0 出现低位阳线/下影反弹,极易诱使散户误判“见底”而重仓抄底。", + "confirm_rule": "守住 T0 低点 26.67 并持续收阳重返 20EMA", + "invalidate_rule": "收盘跌穿 T0 反转棒最低点 26.67(确认为下跌中继飞刀)" + }, + "drawings": { + "lines": [ + { + "id": "dn_slope", + "label": "前期急跌斜线 (-10%)", + "color": "#0FA070", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 34, + "price": 30.587 + }, + { + "barIndex": 59, + "price": 26.667 + } + ] + }, + { + "id": "life_low", + "label": "T0 反转生死底 26.67", + "color": "#D9383A", + "style": "solid", + "width": 2, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 26.667 + }, + { + "barIndex": 74, + "price": 26.667 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "belowBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 衰竭止跌棒", + "step": 1 + }, + { + "barIndex": 65, + "pos": "aboveBar", + "color": "#D9383A", + "shape": "arrowDown", + "text": "② T+6 破底·下跌中继", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "抛售高潮 / 三推楔形底", + "skill_key": "cycle_read", + "frame1": { + "title": "战场定性:空头强趋势中的单棒反弹 · 散户最容易阵亡的“猜底陷阱”", + "body": "面对连续暴跌 10.3% 后的第一根好看阳线/下影线,人性本能总想“抄在最低点一把翻身”。但 Al Brooks 警告:在陡峭空头通道里,80% 的首次企稳信号只是空头获利平仓造成的技术性反抽(Bear Flag 下跌旗形),绝非真正见底!", + "focus_range": [ + 18, + 60 + ], + "theory_key": "bars" + }, + "frame2": { + "title": "胜负手定格:T+6 阴线直接砸穿 T0 生死底 26.67,新一轮杀跌开启", + "body": "仅仅到了 T+6,空头再度发力收出 大阴趋势棒(实体 2.8×ATR,收在最低点附近),收盘直接击穿 T0 最低点红线(26.67)!抄底盘瞬间全军覆没,行情确认为残酷的【下跌中继】,随后继续深跌至 20.66(15 日再跌 -16.0%)。破底那一刻不砍仓就会深套。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 6, + "key_bar_index": 65, + "confirm_rule": "守住 T0 低点 26.67 并持续收阳重返 20EMA", + "invalidate_rule": "收盘跌穿 T0 反转棒最低点 26.67(确认为下跌中继飞刀)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "cycle_read", + "takeaway": "保命铁律:永远敬畏空头趋势!逆势试探抄底时,T0 信号棒最低点就是唯一生命线——一旦收盘跌破该低点,说明底是假的,无条件清仓走人。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2022-07-13", + "2022-07-14", + "2022-07-15", + "2022-07-18", + "2022-07-19", + "2022-07-20", + "2022-07-21", + "2022-07-22", + "2022-07-25", + "2022-07-26", + "2022-07-27", + "2022-07-28", + "2022-07-29", + "2022-08-01", + "2022-08-02", + "2022-08-03", + "2022-08-04", + "2022-08-05", + "2022-08-08", + "2022-08-09", + "2022-08-10", + "2022-08-11", + "2022-08-12", + "2022-08-15", + "2022-08-16", + "2022-08-17", + "2022-08-18", + "2022-08-19", + "2022-08-22", + "2022-08-23", + "2022-08-24", + "2022-08-25", + "2022-08-26", + "2022-08-29", + "2022-08-30", + "2022-08-31", + "2022-09-01", + "2022-09-02", + "2022-09-05", + "2022-09-06", + "2022-09-07", + "2022-09-08", + "2022-09-09", + "2022-09-13", + "2022-09-14", + "2022-09-15", + "2022-09-16", + "2022-09-19", + "2022-09-20", + "2022-09-21", + "2022-09-22", + "2022-09-23", + "2022-09-26", + "2022-09-27", + "2022-09-28", + "2022-09-29", + "2022-09-30", + "2022-10-10", + "2022-10-11", + "2022-10-12" + ], + "o": [ + 30.815, + 30.318, + 30.427, + 30.124, + 30.233, + 30.537, + 30.689, + 30.453, + 30.672, + 30.815, + 30.773, + 30.832, + 31.001, + 30.208, + 29.93, + 29.753, + 29.787, + 30.174, + 30.756, + 30.638, + 30.714, + 30.47, + 30.756, + 30.714, + 30.579, + 30.722, + 30.562, + 30.267, + 30.065, + 30.208, + 29.854, + 29.643, + 30.587, + 30.368, + 30.453, + 30.09, + 29.854, + 29.171, + 28.328, + 28.193, + 28.227, + 27.915, + 28.033, + 28.454, + 28.159, + 28.328, + 28.286, + 27.805, + 27.746, + 27.325, + 27.215, + 26.895, + 27.535, + 27.257, + 27.974, + 28.041, + 28.067, + 27.527, + 27.51, + 27.257 + ], + "h": [ + 30.824, + 30.52, + 30.84, + 30.537, + 30.52, + 30.908, + 30.756, + 30.731, + 30.883, + 31.06, + 30.967, + 31.161, + 31.085, + 30.326, + 29.989, + 29.997, + 30.082, + 30.68, + 30.984, + 30.883, + 30.832, + 30.798, + 30.942, + 30.984, + 30.824, + 30.773, + 30.562, + 30.419, + 30.419, + 30.351, + 29.997, + 30.242, + 30.63, + 30.554, + 30.587, + 30.351, + 29.964, + 29.357, + 28.522, + 28.362, + 28.345, + 28.21, + 28.446, + 28.64, + 28.362, + 28.75, + 28.404, + 27.957, + 27.864, + 27.578, + 27.392, + 27.485, + 27.569, + 28.084, + 28.412, + 28.539, + 28.218, + 27.873, + 27.51, + 27.485 + ], + "l": [ + 30.2, + 30.023, + 30.073, + 30.023, + 30.124, + 30.486, + 30.453, + 30.36, + 30.453, + 30.604, + 30.604, + 30.714, + 30.141, + 29.837, + 29.39, + 29.534, + 29.66, + 29.93, + 30.503, + 30.537, + 30.225, + 30.309, + 30.638, + 30.537, + 30.36, + 30.402, + 30.309, + 30.149, + 30.023, + 29.846, + 29.635, + 29.584, + 30.267, + 30.267, + 30.107, + 29.525, + 29.112, + 28.32, + 27.89, + 28.1, + 27.932, + 27.915, + 27.949, + 28.294, + 28.117, + 28.201, + 27.721, + 27.426, + 27.291, + 27.232, + 26.979, + 26.853, + 27.274, + 27.181, + 27.755, + 27.873, + 27.763, + 27.148, + 27.021, + 26.667 + ], + "c": [ + 30.318, + 30.427, + 30.082, + 30.394, + 30.486, + 30.773, + 30.453, + 30.587, + 30.866, + 30.84, + 30.697, + 31.001, + 30.208, + 30.216, + 29.761, + 29.643, + 29.997, + 30.655, + 30.638, + 30.672, + 30.309, + 30.773, + 30.874, + 30.562, + 30.613, + 30.638, + 30.351, + 30.166, + 30.242, + 29.871, + 29.643, + 30.183, + 30.512, + 30.309, + 30.461, + 30.132, + 29.129, + 28.581, + 28.134, + 28.353, + 28.008, + 28.05, + 28.412, + 28.446, + 28.328, + 28.404, + 27.721, + 27.738, + 27.535, + 27.384, + 26.979, + 27.358, + 27.283, + 28.008, + 28.041, + 28.075, + 27.805, + 27.232, + 27.283, + 27.451 + ], + "v": [ + 53095360, + 44455677, + 51725758, + 39358206, + 37562652, + 49507917, + 26567524, + 27528246, + 34582290, + 35395073, + 30711851, + 40244447, + 52691894, + 38799536, + 45504336, + 29649539, + 23281707, + 36877633, + 29288144, + 23059598, + 24618897, + 29077084, + 19651327, + 27129424, + 20801054, + 24116805, + 23168176, + 21090245, + 21235647, + 24245869, + 28074491, + 36865270, + 31183766, + 23766533, + 21575519, + 59101195, + 65690869, + 60293375, + 41000325, + 27372595, + 39617373, + 27506520, + 39560422, + 35502367, + 24109307, + 44325829, + 45854277, + 29443348, + 29215971, + 26596003, + 30588490, + 44411263, + 26432671, + 40877581, + 42582428, + 31754170, + 26476180, + 29557462, + 18679992, + 35799260 + ], + "ema20": [ + 31.329, + 31.243, + 31.133, + 31.062, + 31.008, + 30.985, + 30.934, + 30.901, + 30.898, + 30.893, + 30.874, + 30.886, + 30.821, + 30.764, + 30.668, + 30.571, + 30.516, + 30.529, + 30.54, + 30.552, + 30.529, + 30.552, + 30.583, + 30.581, + 30.584, + 30.589, + 30.567, + 30.528, + 30.501, + 30.441, + 30.365, + 30.348, + 30.363, + 30.358, + 30.368, + 30.346, + 30.23, + 30.073, + 29.888, + 29.742, + 29.577, + 29.431, + 29.334, + 29.25, + 29.162, + 29.09, + 28.959, + 28.843, + 28.718, + 28.591, + 28.438, + 28.335, + 28.235, + 28.213, + 28.197, + 28.185, + 28.149, + 28.062, + 27.987, + 27.936 + ] + }, + "future": { + "dates": [ + "2022-10-13", + "2022-10-14", + "2022-10-17", + "2022-10-18", + "2022-10-19", + "2022-10-20", + "2022-10-21", + "2022-10-24", + "2022-10-25", + "2022-10-26", + "2022-10-27", + "2022-10-28", + "2022-10-31", + "2022-11-01", + "2022-11-02" + ], + "o": [ + 27.333, + 27.418, + 27.485, + 27.839, + 27.561, + 27.148, + 25.335, + 24.854, + 24.121, + 24.534, + 24.694, + 22.41, + 21.238, + 21.575, + 22.098 + ], + "h": [ + 27.611, + 27.864, + 27.965, + 28.168, + 27.772, + 27.19, + 25.698, + 25.369, + 24.779, + 25.082, + 24.829, + 22.494, + 21.735, + 22.426, + 23.118 + ], + "l": [ + 27.055, + 27.409, + 27.418, + 27.569, + 27.24, + 25.512, + 24.964, + 24.281, + 24.113, + 24.416, + 24.214, + 21.819, + 20.664, + 21.086, + 22.005 + ], + "c": [ + 27.451, + 27.662, + 27.831, + 27.628, + 27.401, + 25.546, + 25.242, + 24.366, + 24.576, + 24.534, + 24.247, + 21.819, + 21.28, + 22.376, + 23.05 + ], + "v": [ + 26849973, + 34154331, + 28743074, + 32026983, + 28729927, + 99440167, + 64541966, + 67398295, + 46763272, + 40041423, + 38380000, + 152650000, + 114400000, + 102570000, + 98090000 + ], + "ema20": [ + 27.89, + 27.868, + 27.865, + 27.842, + 27.8, + 27.586, + 27.362, + 27.077, + 26.839, + 26.619, + 26.393, + 25.958, + 25.512, + 25.214, + 25.007 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2022-10-12", + "open": 27.257, + "high": 27.485, + "low": 26.667, + "close": 27.451, + "volume": 35799260, + "ema20": 27.936, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 55, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.3×ATR,收在最高点附近,下影 72%)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0341, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 4%(上方压力有限)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0169, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": -0.0167, + "push": false, + "impact_pts": -2, + "text": "下影线占振幅 72%(下方承接明显,Pin Bar 特征)" + } + ] + }, + { + "day": "T+1", + "date": "2022-10-13", + "open": 27.333, + "high": 27.611, + "low": 27.055, + "close": 27.451, + "volume": 26849973, + "ema20": 27.89, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 75, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在上半区,上影 29%、下影 50%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0587, + "push": true, + "impact_pts": 3, + "text": "沪深300 相对 20EMA -2.05 倍 ATR(大盘逆风)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0372, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.186 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0193, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + } + ] + }, + { + "day": "T+2", + "date": "2022-10-14", + "open": 27.418, + "high": 27.864, + "low": 27.409, + "close": 27.662, + "volume": 34154331, + "ema20": 27.868, + "change_from_t0_pct": 0.0077, + "bullish_edge_score": 70, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "长上影拒绝棒(流星线)(实体 0.4×ATR,收在中位犹豫,上影 44%)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0605, + "push": false, + "impact_pts": -3, + "text": "推次斜率衰减 +0.189 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0305, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 1 根(买盘一般)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0302, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.46 倍 ATR(大盘逆风)" + } + ] + }, + { + "day": "T+3", + "date": "2022-10-17", + "open": 27.485, + "high": 27.965, + "low": 27.418, + "close": 27.831, + "volume": 28743074, + "ema20": 27.865, + "change_from_t0_pct": 0.0138, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "中阳棒(实体 0.6×ATR,收在上半区)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0356, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0237, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.37 倍 ATR(大盘逆风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0236, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+4", + "date": "2022-10-18", + "open": 27.839, + "high": 28.168, + "low": 27.569, + "close": 27.628, + "volume": 32026983, + "ema20": 27.842, + "change_from_t0_pct": 0.0064, + "bullish_edge_score": 79, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "长上影拒绝棒(流星线)(实体 0.4×ATR,收在最低点附近,上影 55%)", + "top3_shap": [ + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0357, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 -0.26 倍 ATR/5日(中期趋势走弱)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0347, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0251, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 55%(上方被明显拒绝,抛压重)" + } + ] + }, + { + "day": "T+5", + "date": "2022-10-19", + "open": 27.561, + "high": 27.772, + "low": 27.24, + "close": 27.401, + "volume": 28729927, + "ema20": 27.8, + "change_from_t0_pct": -0.0018, + "bullish_edge_score": 83, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "小阴十字星(实体 0.3×ATR,收在下半区,上影 40%、下影 30%)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0312, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 40%(上方被明显拒绝,抛压重)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0275, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 -0.24 倍 ATR/5日(中期趋势走弱)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0252, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + } + ] + }, + { + "day": "T+6", + "date": "2022-10-20", + "open": 27.148, + "high": 27.19, + "low": 25.512, + "close": 25.546, + "volume": 99440167, + "ema20": 27.586, + "change_from_t0_pct": -0.0694, + "bullish_edge_score": 76, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "大阴趋势棒(实体 2.8×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0515, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.51 倍 ATR(大盘逆风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0401, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0273, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -0.47 倍 ATR/5日(中期趋势走弱)" + } + ] + }, + { + "day": "T+7", + "date": "2022-10-21", + "open": 25.335, + "high": 25.698, + "low": 24.964, + "close": 25.242, + "volume": 64541966, + "ema20": 27.362, + "change_from_t0_pct": -0.0805, + "bullish_edge_score": 61, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在下半区,上影 49%、下影 38%)", + "top3_shap": [ + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": -0.0397, + "push": false, + "impact_pts": -2, + "text": "近 3 日净多头实体 -0.96 倍 ATR(空头主导)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0258, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 1 根(买盘一般)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0161, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 -0.141 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+8", + "date": "2022-10-24", + "open": 24.854, + "high": 25.369, + "low": 24.281, + "close": 24.366, + "volume": 67398295, + "ema20": 27.077, + "change_from_t0_pct": -0.1124, + "bullish_edge_score": 94, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "大阴趋势棒(实体 0.9×ATR,收在最低点附近,上影 47%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1407, + "push": true, + "impact_pts": 6, + "text": "沪深300 相对 20EMA -2.80 倍 ATR(大盘逆风)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0397, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 8%(下方承接一般)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0237, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -3.93 倍 ATR(跌破 20EMA,空头结构)" + } + ] + }, + { + "day": "T+9", + "date": "2022-10-25", + "open": 24.121, + "high": 24.779, + "low": 24.113, + "close": 24.576, + "volume": 46763272, + "ema20": 26.839, + "change_from_t0_pct": -0.1047, + "bullish_edge_score": 93, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "中阳棒(实体 0.8×ATR,收在上半区,上影 30%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1372, + "push": true, + "impact_pts": 6, + "text": "沪深300 相对 20EMA -2.59 倍 ATR(大盘逆风)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0182, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 1%(下方承接一般)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0181, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -1.46 倍 ATR/5日(中期趋势走弱)" + } + ] + }, + { + "day": "T+10", + "date": "2022-10-26", + "open": 24.534, + "high": 25.082, + "low": 24.416, + "close": 24.534, + "volume": 40041423, + "ema20": 26.619, + "change_from_t0_pct": -0.1063, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "长上影拒绝棒(流星线)(实体 0.0×ATR,收在最低点附近,上影 82%)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0176, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 82%(上方被明显拒绝,抛压重)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0148, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 -0.135 ATR/日(推动力衰减,楔形/衰竭前兆)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0135, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -3.04 倍 ATR(跌破 20EMA,空头结构)" + } + ] + }, + { + "day": "T+11", + "date": "2022-10-27", + "open": 24.694, + "high": 24.829, + "low": 24.214, + "close": 24.247, + "volume": 38380000, + "ema20": 26.393, + "change_from_t0_pct": -0.1167, + "bullish_edge_score": 90, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "中阴棒(实体 0.8×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1421, + "push": true, + "impact_pts": 6, + "text": "沪深300 相对 20EMA -2.12 倍 ATR(大盘逆风)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": -0.0251, + "push": false, + "impact_pts": -2, + "text": "近 3 日净多头实体 +0.00 倍 ATR(跟随不足)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0242, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 5%(下方承接一般)" + } + ] + }, + { + "day": "T+12", + "date": "2022-10-28", + "open": 22.41, + "high": 22.494, + "low": 21.819, + "close": 21.819, + "volume": 152650000, + "ema20": 25.958, + "change_from_t0_pct": -0.2052, + "bullish_edge_score": 94, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "大阴趋势棒(实体 1.0×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.163, + "push": true, + "impact_pts": 7, + "text": "沪深300 相对 20EMA -3.04 倍 ATR(大盘逆风)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0561, + "push": true, + "impact_pts": 3, + "text": "下影线占振幅 0%(下方承接一般)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0258, + "push": true, + "impact_pts": 2, + "text": "距 20EMA -5.13 倍 ATR(跌破 20EMA,空头结构)" + } + ] + }, + { + "day": "T+13", + "date": "2022-10-31", + "open": 21.238, + "high": 21.735, + "low": 20.664, + "close": 21.28, + "volume": 114400000, + "ema20": 25.512, + "change_from_t0_pct": -0.2248, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在中位犹豫,上影 43%、下影 54%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.1207, + "push": true, + "impact_pts": 5, + "text": "量价实体匹配 +1.51(放量上涨,量价配合)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": -0.035, + "push": false, + "impact_pts": -2, + "text": "近 3 日净多头实体 -0.45 倍 ATR(空头主导)" + }, + { + "name_cn": "实体动能", + "feature": "pa_body_atr", + "shap": -0.0346, + "push": false, + "impact_pts": -2, + "text": "实体厚度 0.05 倍 ATR(接近十字星/纺锤线)" + } + ] + }, + { + "day": "T+14", + "date": "2022-11-01", + "open": 21.575, + "high": 22.426, + "low": 21.086, + "close": 22.376, + "volume": 102570000, + "ema20": 25.214, + "change_from_t0_pct": -0.1849, + "bullish_edge_score": 96, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "大阳趋势棒(实体 1.4×ATR,收在最高点附近,下影 36%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.1166, + "push": true, + "impact_pts": 5, + "text": "量价实体匹配 +1.05(放量上涨,量价配合)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0593, + "push": true, + "impact_pts": 3, + "text": "近 5 日 K 线重叠率 21%(重叠低,通道顺畅)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0351, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 -0.107 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+15", + "date": "2022-11-02", + "open": 22.098, + "high": 23.118, + "low": 22.005, + "close": 23.05, + "volume": 98090000, + "ema20": 25.007, + "change_from_t0_pct": -0.1603, + "bullish_edge_score": 93, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "大阳趋势棒(实体 1.7×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0603, + "push": true, + "impact_pts": 3, + "text": "近 5 日 K 线重叠率 14%(重叠低,通道顺畅)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0553, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.85(放量上涨,量价配合)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0507, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 6%(上方压力有限)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2022-10-12", + "candle": "长下影承接棒(Pin Bar)(实体 0.3×ATR,收在最高点附近,下影 72%)", + "signal": "连续急跌 10.3% 后 T0 出现低位阳线/下影反弹,极易诱使散户误判“见底”而重仓抄底。", + "hypothesis": "战场定性:空头强趋势中的单棒反弹 · 散户最容易阵亡的“猜底陷阱”", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 55, + "ai_position_pct": 0 + }, + "pivots": [ + { + "day": "T+6", + "date": "2022-10-20", + "candle": "大阴趋势棒(实体 2.8×ATR,收在最低点附近)", + "signal": "胜负手定格:T+6 阴线直接砸穿 T0 生死底 26.67,新一轮杀跌开启", + "verdict": "原假设被证伪失效", + "change_from_t0_pct": -0.0694, + "bullish_edge_score": 76, + "ai_position_pct": 30 + } + ], + "summary": "15 个交易日收盘累计 -16.0%(期间最高 +2.6% / 最低 -24.7%)。", + "confirm_rule": "守住 T0 低点 26.67 并持续收阳重返 20EMA", + "invalidate_rule": "收盘跌穿 T0 反转棒最低点 26.67(确认为下跌中继飞刀)" + } + }, + { + "id": "300308.SZ|2025-10-15|wedge_climax_low", + "code": "300308.SZ", + "name": "中际旭创", + "date": "2025-10-15", + "year": 2025, + "segment": "样本外测试段", + "motif": "wedge_climax_low", + "motif_cn": "急跌衰竭 · 楔形底反转 vs 抄底接飞刀", + "outcome": "success", + "outcome_cn": "底部反转成立:守住 T0 低点反攻", + "thesis": "急跌抛售衰竭后低位承接,确认突破 T0 高点吃均值回归。", + "initial_position_pct": 0, + "initial_position_note": "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例", + "teaching_note": "底部反转右侧法则:急跌后的第一根止跌阳线只下轻仓试探,必须等后续阳线站上该信号棒高点、且低点不破时,再分批加仓吃均值回归。", + "atr": 31.485, + "close0": 353.159, + "levels": { + "box_high": 455.302, + "box_low": 336.085, + "ema20_t0": 385.757, + "support_20d": 336.085, + "resistance_20d": 455.302, + "support_60d": 168.538, + "resistance_60d": 455.302 + }, + "forward": { + "close0": 353.1585, + "atr": 31.48536336612634, + "ret15": 0.347029449949527, + "max_up_pct": 0.5305830101781495, + "max_dn_pct": -0.011549771561494282, + "max_up_atr": 5.951, + "max_dn_atr": 0.13, + "fwd_range_atr": 6.081, + "fwd_range_pct": 0.5421, + "close_chg_15d": 0.347, + "max_high": 540.538, + "min_low": 349.08 + }, + "quality": { + "score": 0.9568, + "structure_score": 0.9568, + "range_atr": 6.081, + "range_pct": 0.5421 + }, + "setup": { + "text": "自阶段高点 455.30 连续急跌 22.4% 后,T0 在低位收出强力下影/阳线承接棒。", + "confirm_rule": "后续 K 线守住 T0 最低点 336.08 且阳线向上站上 T0 高点 356.03", + "invalidate_rule": "收盘跌破 T0 最低点 336.08(抄底失败,沦为下跌中继)" + }, + "drawings": { + "lines": [ + { + "id": "dn_slope", + "label": "前期急跌斜线 (-22%)", + "color": "#0FA070", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 49, + "price": 455.302 + }, + { + "barIndex": 59, + "price": 336.085 + } + ] + }, + { + "id": "life_low", + "label": "T0 反转生死底 336.08", + "color": "#D9383A", + "style": "solid", + "width": 2, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 336.085 + }, + { + "barIndex": 74, + "price": 336.085 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "belowBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 衰竭止跌棒", + "step": 1 + }, + { + "barIndex": 60, + "pos": "belowBar", + "color": "#2C48CE", + "shape": "arrowUp", + "text": "② T+1 站上高点确认", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "抛售高潮 / 三推楔形底", + "skill_key": "cycle_read", + "frame1": { + "title": "战场定性:恐慌抛售高潮 / 楔形衰竭末端的左侧反转信号", + "body": "股价在过去二十多天累计重挫 22.4%,远离 20EMA 均线,属于典型的【抛售高潮(Sell Climax)/ 空头动能透支】。T0 出现底部承接棒,意味着空头集中回补、抄底资金进场;但逆势摸底初始胜率不高,标准动作是先用 20%~30% 轻仓试探,把 T0 最低点 336.08 作为绝对防守线。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "bars" + }, + "frame2": { + "title": "胜负手定格:T+1 站上反转棒高点,空头回补推动波段反转", + "body": "随后走势稳稳守住 336.08 铁底未破,并在 T+1 以 长上影拒绝棒(流星线)(实体 0.5×ATR,收在中位犹豫,上影 42%) 向上突破 T0 高点确认买盘延续,向 20EMA 均线磁力位发起均值回归反攻(15 日反弹 +34.7%)。在 T+1 右侧确认后再补足仓位,既避开了盲目重仓接飞刀的风险,又稳稳吃到了反转波段。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 1, + "key_bar_index": 60, + "confirm_rule": "后续 K 线守住 T0 最低点 336.08 且阳线向上站上 T0 高点 356.03", + "invalidate_rule": "收盘跌破 T0 最低点 336.08(抄底失败,沦为下跌中继)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "cycle_read", + "takeaway": "底部反转右侧法则:急跌后的第一根止跌阳线只下轻仓试探,必须等后续阳线站上该信号棒高点、且低点不破时,再分批加仓吃均值回归。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2025-07-16", + "2025-07-17", + "2025-07-18", + "2025-07-21", + "2025-07-22", + "2025-07-23", + "2025-07-24", + "2025-07-25", + "2025-07-28", + "2025-07-29", + "2025-07-30", + "2025-07-31", + "2025-08-01", + "2025-08-04", + "2025-08-05", + "2025-08-06", + "2025-08-07", + "2025-08-08", + "2025-08-11", + "2025-08-12", + "2025-08-13", + "2025-08-14", + "2025-08-15", + "2025-08-18", + "2025-08-19", + "2025-08-20", + "2025-08-21", + "2025-08-22", + "2025-08-25", + "2025-08-26", + "2025-08-27", + "2025-08-28", + "2025-08-29", + "2025-09-01", + "2025-09-02", + "2025-09-03", + "2025-09-04", + "2025-09-05", + "2025-09-08", + "2025-09-09", + "2025-09-10", + "2025-09-11", + "2025-09-12", + "2025-09-15", + "2025-09-16", + "2025-09-17", + "2025-09-18", + "2025-09-19", + "2025-09-22", + "2025-09-23", + "2025-09-24", + "2025-09-25", + "2025-09-26", + "2025-09-29", + "2025-09-30", + "2025-10-09", + "2025-10-10", + "2025-10-13", + "2025-10-14", + "2025-10-15" + ], + "o": [ + 179.128, + 168.558, + 180.503, + 179.218, + 186.401, + 178.331, + 189.788, + 185.305, + 185.305, + 197.27, + 206.286, + 220.174, + 211.726, + 206.754, + 215.691, + 205.937, + 209.733, + 206.226, + 209.215, + 214.196, + 225.902, + 245.479, + 240.567, + 240.717, + 259.028, + 261.011, + 271.78, + 258.142, + 286.923, + 312.428, + 318.804, + 321.663, + 350.684, + 371.357, + 400.517, + 390.535, + 434.37, + 376.607, + 392.527, + 363.656, + 376.587, + 400.687, + 415.441, + 408.467, + 408.497, + 403.486, + 392.736, + 413.847, + 415.73, + 445.339, + 414.455, + 414.455, + 427.446, + 408.587, + 416.946, + 417.434, + 397.519, + 367.998, + 383.955, + 344.063 + ], + "h": [ + 181.29, + 178.321, + 191.292, + 187.696, + 196.363, + 187.178, + 192.239, + 189.19, + 192.508, + 210.201, + 211.008, + 227.745, + 220.054, + 209.554, + 217.554, + 212.782, + 215.193, + 213.081, + 219.676, + 225.544, + 252.014, + 247.163, + 244.532, + 266.998, + 276.542, + 267.995, + 273.574, + 279.83, + 318.804, + 321.593, + 344.607, + 358.236, + 366.325, + 412.253, + 418.031, + 428.383, + 446.325, + 417.314, + 392.527, + 371.217, + 394.002, + 442.33, + 430.375, + 418.4, + 420.393, + 411.436, + 428.383, + 423.411, + 420.223, + 455.302, + 433.374, + 441.304, + 440.647, + 431.551, + 433.374, + 425.065, + 406.276, + 380.963, + 384.892, + 356.031 + ], + "l": [ + 169.036, + 168.538, + 178.331, + 176.518, + 180.722, + 175.342, + 180.991, + 183.82, + 183.512, + 197.27, + 202.829, + 215.123, + 206.854, + 203.736, + 202.739, + 205.838, + 196.463, + 204.234, + 209.205, + 212.204, + 223.163, + 238.505, + 234.231, + 237.19, + 257.932, + 256.448, + 255.143, + 258.032, + 286.923, + 304.856, + 310.146, + 321.245, + 343.68, + 362.639, + 372.473, + 377.683, + 362.52, + 360.368, + 342.714, + 345.703, + 369.195, + 400.687, + 408.467, + 396.154, + 394.739, + 389.648, + 387.755, + 398.535, + 393.205, + 416.438, + 408.467, + 402.49, + 412.154, + 401.583, + 396.572, + 396.193, + 379.586, + 360.818, + 343.066, + 336.085 + ], + "c": [ + 170.122, + 176.189, + 179.945, + 187.247, + 183.751, + 185.484, + 184.508, + 184.528, + 191.153, + 209.145, + 209.813, + 216.797, + 209.843, + 207.641, + 210.132, + 209.733, + 207.681, + 208.518, + 213.947, + 224.836, + 251.058, + 238.575, + 237.16, + 259.028, + 274.47, + 266.789, + 264.229, + 277.858, + 318.804, + 312.826, + 323.885, + 357.688, + 353.593, + 404.582, + 382.565, + 424.597, + 367.76, + 405.479, + 368.607, + 357.947, + 383.561, + 438.325, + 420.512, + 406.495, + 409.882, + 404.682, + 407.87, + 419.924, + 416.438, + 432.667, + 421.917, + 432.976, + 412.154, + 415.192, + 402.171, + 397.319, + 388.542, + 375.966, + 345.16, + 353.159 + ], + "v": [ + 90585177, + 60463077, + 61156221, + 59683509, + 59291285, + 40578373, + 44208006, + 28787743, + 43894765, + 58440368, + 39050574, + 64406594, + 47594674, + 33083739, + 41413757, + 25530156, + 45307651, + 32731508, + 35076252, + 43082931, + 55126547, + 40760133, + 35054080, + 46984979, + 40978934, + 40819732, + 39443593, + 38258165, + 49806131, + 36191921, + 61074635, + 58391643, + 49033310, + 59865089, + 78412730, + 71235178, + 93905671, + 79255067, + 74111648, + 48063109, + 62010239, + 65680163, + 47250565, + 35752541, + 44253263, + 32431621, + 56160786, + 46653593, + 41268476, + 53444036, + 39338586, + 50559151, + 35111815, + 42905921, + 39289331, + 39090946, + 38428592, + 40931349, + 51433907, + 35317253 + ], + "ema20": [ + 141.677, + 144.964, + 148.295, + 152.005, + 155.028, + 157.929, + 160.46, + 162.752, + 165.457, + 169.618, + 173.446, + 177.575, + 180.648, + 183.219, + 185.782, + 188.063, + 189.931, + 191.701, + 193.82, + 196.774, + 201.944, + 205.433, + 208.454, + 213.271, + 219.099, + 223.641, + 227.507, + 232.302, + 240.54, + 247.425, + 254.707, + 264.514, + 272.998, + 285.53, + 294.771, + 307.136, + 312.909, + 321.725, + 326.19, + 329.215, + 334.391, + 344.289, + 351.549, + 356.781, + 361.839, + 365.919, + 369.914, + 374.677, + 378.654, + 383.798, + 387.429, + 391.766, + 393.708, + 395.754, + 396.365, + 396.456, + 395.702, + 393.823, + 389.188, + 385.757 + ] + }, + "future": { + "dates": [ + "2025-10-16", + "2025-10-17", + "2025-10-20", + "2025-10-21", + "2025-10-22", + "2025-10-23", + "2025-10-24", + "2025-10-27", + "2025-10-28", + "2025-10-29", + "2025-10-30", + "2025-10-31", + "2025-11-03", + "2025-11-04", + "2025-11-05" + ], + "o": [ + 350.187, + 366.173, + 407.082, + 408.887, + 434.906, + 439.882, + 448.778, + 502.612, + 501.933, + 536.549, + 515.108, + 501.634, + 469.392, + 488.271, + 460.766 + ], + "h": [ + 378.27, + 380.873, + 420.066, + 450.254, + 456.258, + 441.797, + 494.304, + 513.602, + 534.545, + 540.538, + 536.539, + 507.618, + 482.087, + 502.921, + 478.697 + ], + "l": [ + 349.08, + 359.023, + 394.506, + 403.9, + 434.906, + 424.544, + 435.913, + 494.214, + 499.64, + 504.786, + 507.618, + 470.719, + 456.268, + 472.593, + 457.544 + ], + "c": [ + 365.974, + 372.586, + 401.906, + 440.301, + 443.094, + 439.683, + 492.659, + 507.558, + 511.607, + 519.306, + 513.342, + 471.726, + 478.697, + 476.503, + 475.715 + ], + "v": [ + 34256818, + 46763644, + 60155062, + 56517865, + 39749910, + 27601113, + 49102526, + 45072389, + 41796087, + 41727105, + 45330984, + 56301279, + 39840875, + 36085368, + 26408751 + ], + "ema20": [ + 383.873, + 382.798, + 384.618, + 389.921, + 394.985, + 399.242, + 408.139, + 417.607, + 426.56, + 435.393, + 442.816, + 445.57, + 448.725, + 451.37, + 453.689 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2025-10-15", + "open": 344.063, + "high": 356.031, + "low": 336.085, + "close": 353.159, + "volume": 35317253, + "ema20": 385.757, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 55, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "小阳十字星(实体 0.3×ATR,收在最高点附近,下影 40%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0925, + "push": false, + "impact_pts": -4, + "text": "沪深300 相对 20EMA +0.69 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0266, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 14%(上方压力有限)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.0208, + "push": true, + "impact_pts": 2, + "text": "近 3 日净多头实体 -0.22 倍 ATR(空头主导)" + } + ] + }, + { + "day": "T+1", + "date": "2025-10-16", + "open": 350.187, + "high": 378.27, + "low": 349.08, + "close": 365.974, + "volume": 34256818, + "ema20": 383.873, + "change_from_t0_pct": 0.0363, + "bullish_edge_score": 82, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "长上影拒绝棒(流星线)(实体 0.5×ATR,收在中位犹豫,上影 42%)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0417, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 42%(上方被明显拒绝,抛压重)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0386, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.78 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0253, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 1 根(买盘一般)" + } + ] + }, + { + "day": "T+2", + "date": "2025-10-17", + "open": 366.173, + "high": 380.873, + "low": 359.023, + "close": 372.586, + "volume": 46763644, + "ema20": 382.798, + "change_from_t0_pct": 0.055, + "bullish_edge_score": 76, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "小阳十字星(实体 0.2×ATR,收在上半区,上影 38%、下影 33%)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.032, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 38%(上方被明显拒绝,抛压重)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0308, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.51 倍 ATR(大盘逆风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0279, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 1 根(买盘一般)" + } + ] + }, + { + "day": "T+3", + "date": "2025-10-20", + "open": 407.082, + "high": 420.066, + "low": 394.506, + "close": 401.906, + "volume": 60155062, + "ema20": 384.618, + "change_from_t0_pct": 0.138, + "bullish_edge_score": 74, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在下半区,上影 51%、下影 29%)", + "top3_shap": [ + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.0239, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 +0.07(无明显高潮)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0228, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.19 倍 ATR(大盘逆风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.02, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+4", + "date": "2025-10-21", + "open": 408.887, + "high": 450.254, + "low": 403.9, + "close": 440.301, + "volume": 56517865, + "ema20": 389.921, + "change_from_t0_pct": 0.2468, + "bullish_edge_score": 61, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阳趋势棒(实体 1.0×ATR,收在上半区)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0768, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +0.64 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0256, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0143, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+5", + "date": "2025-10-22", + "open": 434.906, + "high": 456.258, + "low": 434.906, + "close": 443.094, + "volume": 39749910, + "ema20": 394.985, + "change_from_t0_pct": 0.2547, + "bullish_edge_score": 72, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 20, + "candle": "长上影拒绝棒(流星线)(实体 0.3×ATR,收在下半区,上影 62%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0806, + "push": false, + "impact_pts": -4, + "text": "沪深300 相对 20EMA +0.42 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.029, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 62%(上方被明显拒绝,抛压重)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0224, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+6", + "date": "2025-10-23", + "open": 439.882, + "high": 441.797, + "low": 424.544, + "close": 439.683, + "volume": 27601113, + "ema20": 399.242, + "change_from_t0_pct": 0.245, + "bullish_edge_score": 33, + "hist_win_rate": 0.4538, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.0×ATR,收在最高点附近,下影 88%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0938, + "push": false, + "impact_pts": -4, + "text": "沪深300 相对 20EMA +0.55 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0332, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 11%(上方压力有限)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0174, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 +0.37(放量上涨,量价配合)" + } + ] + }, + { + "day": "T+7", + "date": "2025-10-24", + "open": 448.778, + "high": 494.304, + "low": 435.913, + "close": 492.659, + "volume": 49102526, + "ema20": 408.139, + "change_from_t0_pct": 0.395, + "bullish_edge_score": 64, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阳趋势棒(实体 1.4×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0417, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.18 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0326, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0313, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 3%(上方压力有限)" + } + ] + }, + { + "day": "T+8", + "date": "2025-10-27", + "open": 502.612, + "high": 513.602, + "low": 494.214, + "close": 507.558, + "volume": 45072389, + "ema20": 417.607, + "change_from_t0_pct": 0.4372, + "bullish_edge_score": 90, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在上半区,上影 31%、下影 43%)", + "top3_shap": [ + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0461, + "push": true, + "impact_pts": 2, + "text": "近 5 日 K 线重叠率 15%(重叠低,通道顺畅)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.033, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0283, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 31%(上方压力有限)" + } + ] + }, + { + "day": "T+9", + "date": "2025-10-28", + "open": 501.933, + "high": 534.545, + "low": 499.64, + "close": 511.607, + "volume": 41796087, + "ema20": 426.56, + "change_from_t0_pct": 0.4487, + "bullish_edge_score": 76, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "长上影拒绝棒(流星线)(实体 0.3×ATR,收在下半区,上影 66%)", + "top3_shap": [ + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0445, + "push": true, + "impact_pts": 2, + "text": "近 5 日 K 线重叠率 16%(重叠低,通道顺畅)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0301, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.33 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0286, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+10", + "date": "2025-10-29", + "open": 536.549, + "high": 540.538, + "low": 504.786, + "close": 519.306, + "volume": 41727105, + "ema20": 435.393, + "change_from_t0_pct": 0.4705, + "bullish_edge_score": 65, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阴棒(实体 0.5×ATR,收在下半区,下影 41%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0312, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.94 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0292, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 11%(上方压力有限)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0196, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+11", + "date": "2025-10-30", + "open": 515.108, + "high": 536.539, + "low": 507.618, + "close": 513.342, + "volume": 45330984, + "ema20": 442.816, + "change_from_t0_pct": 0.4536, + "bullish_edge_score": 80, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在最低点附近,上影 74%)", + "top3_shap": [ + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0302, + "push": true, + "impact_pts": 2, + "text": "距 20EMA +2.17 倍 ATR(站在 20EMA 之上,多头结构)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0301, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.28 倍 ATR(大盘顺风)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.0199, + "push": true, + "impact_pts": 2, + "text": "近 3 日净多头实体 -0.09 倍 ATR(跟随不足)" + } + ] + }, + { + "day": "T+12", + "date": "2025-10-31", + "open": 501.634, + "high": 507.618, + "low": 470.719, + "close": 471.726, + "volume": 56301279, + "ema20": 445.57, + "change_from_t0_pct": 0.3357, + "bullish_edge_score": 66, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阴趋势棒(实体 0.9×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0209, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0207, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.25 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.02, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 16%(上方压力有限)" + } + ] + }, + { + "day": "T+13", + "date": "2025-11-03", + "open": 469.392, + "high": 482.087, + "low": 456.268, + "close": 478.697, + "volume": 39840875, + "ema20": 448.725, + "change_from_t0_pct": 0.3555, + "bullish_edge_score": 40, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.3×ATR,收在最高点附近,下影 51%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.1025, + "push": false, + "impact_pts": -5, + "text": "沪深300 相对 20EMA +0.40 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.034, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 13%(上方压力有限)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.0237, + "push": true, + "impact_pts": 2, + "text": "近 3 日净多头实体 -0.22 倍 ATR(空头主导)" + } + ] + }, + { + "day": "T+14", + "date": "2025-11-04", + "open": 488.271, + "high": 502.921, + "low": 472.593, + "close": 476.503, + "volume": 36085368, + "ema20": 451.37, + "change_from_t0_pct": 0.3493, + "bullish_edge_score": 66, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.4×ATR,收在最低点附近,上影 48%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0272, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.10 倍 ATR(大盘逆风)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0262, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 +0.17(量价背离度低)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0186, + "push": true, + "impact_pts": 2, + "text": "三推向上楔形" + } + ] + }, + { + "day": "T+15", + "date": "2025-11-05", + "open": 460.766, + "high": 478.697, + "low": 457.544, + "close": 475.715, + "volume": 26408751, + "ema20": 453.689, + "change_from_t0_pct": 0.347, + "bullish_edge_score": 58, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阳棒(实体 0.5×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0321, + "push": true, + "impact_pts": 2, + "text": "近 5 日 K 线重叠率 14%(重叠低,通道顺畅)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0211, + "push": true, + "impact_pts": 2, + "text": "三推向上楔形" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0208, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 -0.39(放量下跌,派发嫌疑)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2025-10-15", + "candle": "小阳十字星(实体 0.3×ATR,收在最高点附近,下影 40%)", + "signal": "自阶段高点 455.30 连续急跌 22.4% 后,T0 在低位收出强力下影/阳线承接棒。", + "hypothesis": "战场定性:恐慌抛售高潮 / 楔形衰竭末端的左侧反转信号", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 55, + "ai_position_pct": 0 + }, + "pivots": [ + { + "day": "T+1", + "date": "2025-10-16", + "candle": "长上影拒绝棒(流星线)(实体 0.5×ATR,收在中位犹豫,上影 42%)", + "signal": "胜负手定格:T+1 站上反转棒高点,空头回补推动波段反转", + "verdict": "原假设确认成立", + "change_from_t0_pct": 0.0363, + "bullish_edge_score": 82, + "ai_position_pct": 50 + } + ], + "summary": "15 个交易日收盘累计 +34.7%(期间最高 +53.1% / 最低 -1.2%)。", + "confirm_rule": "后续 K 线守住 T0 最低点 336.08 且阳线向上站上 T0 高点 356.03", + "invalidate_rule": "收盘跌破 T0 最低点 336.08(抄底失败,沦为下跌中继)" + } + }, + { + "id": "688981.SH|2026-11-02|wedge_climax_low", + "code": "688981.SH", + "name": "中芯国际", + "date": "2026-11-02", + "year": 2026, + "segment": "样本外测试段", + "motif": "wedge_climax_low", + "motif_cn": "急跌衰竭 · 楔形底反转 vs 抄底接飞刀", + "outcome": "success", + "outcome_cn": "底部反转成立:守住 T0 低点反攻", + "thesis": "急跌抛售衰竭后低位承接,确认突破 T0 高点吃均值回归。", + "initial_position_pct": 0, + "initial_position_note": "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例", + "teaching_note": "底部反转右侧法则:急跌后的第一根止跌阳线只下轻仓试探,必须等后续阳线站上该信号棒高点、且低点不破时,再分批加仓吃均值回归。", + "atr": 4.314, + "close0": 100.0, + "levels": { + "box_high": 125.61, + "box_low": 96.4, + "ema20_t0": 104.548, + "support_20d": 94.8, + "resistance_20d": 118.18, + "support_60d": 94.8, + "resistance_60d": 137.48 + }, + "forward": { + "close0": 100.0, + "atr": 4.313844959627867, + "ret15": 0.21599999999999997, + "max_up_pct": 0.25680000000000014, + "max_dn_pct": -0.02400000000000002, + "max_up_atr": 5.953, + "max_dn_atr": 0.556, + "fwd_range_atr": 6.509, + "fwd_range_pct": 0.2808, + "close_chg_15d": 0.216, + "max_high": 125.68, + "min_low": 97.6 + }, + "quality": { + "score": 0.9378, + "structure_score": 0.9378, + "range_atr": 6.509, + "range_pct": 0.2808 + }, + "setup": { + "text": "自阶段高点 125.61 连续急跌 20.4% 后,T0 在低位收出强力下影/阳线承接棒。", + "confirm_rule": "后续 K 线守住 T0 最低点 96.40 且阳线向上站上 T0 高点 100.50", + "invalidate_rule": "收盘跌破 T0 最低点 96.40(抄底失败,沦为下跌中继)" + }, + "drawings": { + "lines": [ + { + "id": "dn_slope", + "label": "前期急跌斜线 (-20%)", + "color": "#0FA070", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 36, + "price": 125.61 + }, + { + "barIndex": 59, + "price": 96.4 + } + ] + }, + { + "id": "life_low", + "label": "T0 反转生死底 96.40", + "color": "#D9383A", + "style": "solid", + "width": 2, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 96.4 + }, + { + "barIndex": 74, + "price": 96.4 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "belowBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 衰竭止跌棒", + "step": 1 + }, + { + "barIndex": 60, + "pos": "belowBar", + "color": "#2C48CE", + "shape": "arrowUp", + "text": "② T+1 站上高点确认", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "抛售高潮 / 三推楔形底", + "skill_key": "cycle_read", + "frame1": { + "title": "战场定性:恐慌抛售高潮 / 楔形衰竭末端的左侧反转信号", + "body": "股价在过去二十多天累计重挫 20.4%,远离 20EMA 均线,属于典型的【抛售高潮(Sell Climax)/ 空头动能透支】。T0 出现底部承接棒,意味着空头集中回补、抄底资金进场;但逆势摸底初始胜率不高,标准动作是先用 20%~30% 轻仓试探,把 T0 最低点 96.40 作为绝对防守线。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "bars" + }, + "frame2": { + "title": "胜负手定格:T+1 站上反转棒高点,空头回补推动波段反转", + "body": "随后走势稳稳守住 96.40 铁底未破,并在 T+1 以 中阳棒(实体 0.5×ATR,收在上半区,下影 39%) 向上突破 T0 高点确认买盘延续,向 20EMA 均线磁力位发起均值回归反攻(15 日反弹 +21.6%)。在 T+1 右侧确认后再补足仓位,既避开了盲目重仓接飞刀的风险,又稳稳吃到了反转波段。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 1, + "key_bar_index": 60, + "confirm_rule": "后续 K 线守住 T0 最低点 96.40 且阳线向上站上 T0 高点 100.50", + "invalidate_rule": "收盘跌破 T0 最低点 96.40(抄底失败,沦为下跌中继)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "cycle_read", + "takeaway": "底部反转右侧法则:急跌后的第一根止跌阳线只下轻仓试探,必须等后续阳线站上该信号棒高点、且低点不破时,再分批加仓吃均值回归。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2026-08-03", + "2026-08-04", + "2026-08-05", + "2026-08-06", + "2026-08-07", + "2026-08-10", + "2026-08-11", + "2026-08-12", + "2026-08-13", + "2026-08-14", + "2026-08-17", + "2026-08-18", + "2026-08-19", + "2026-08-20", + "2026-08-21", + "2026-08-24", + "2026-08-25", + "2026-08-26", + "2026-08-27", + "2026-08-28", + "2026-08-31", + "2026-09-01", + "2026-09-02", + "2026-09-03", + "2026-09-04", + "2026-09-07", + "2026-09-08", + "2026-09-09", + "2026-09-10", + "2026-09-11", + "2026-09-14", + "2026-09-15", + "2026-09-16", + "2026-09-17", + "2026-09-18", + "2026-09-21", + "2026-09-22", + "2026-09-23", + "2026-09-24", + "2026-09-28", + "2026-09-29", + "2026-09-30", + "2026-10-08", + "2026-10-09", + "2026-10-12", + "2026-10-13", + "2026-10-14", + "2026-10-15", + "2026-10-16", + "2026-10-19", + "2026-10-20", + "2026-10-21", + "2026-10-22", + "2026-10-23", + "2026-10-26", + "2026-10-27", + "2026-10-28", + "2026-10-29", + "2026-10-30", + "2026-11-02" + ], + "o": [ + 123.0, + 116.7, + 121.0, + 122.0, + 123.36, + 128.49, + 124.85, + 126.0, + 129.0, + 133.99, + 132.0, + 136.0, + 130.87, + 128.8, + 124.32, + 124.5, + 118.58, + 120.5, + 124.05, + 126.33, + 123.0, + 128.0, + 124.58, + 123.77, + 124.98, + 122.5, + 124.25, + 122.12, + 120.0, + 118.0, + 116.8, + 113.61, + 114.86, + 119.5, + 120.78, + 122.6, + 124.1, + 122.4, + 121.1, + 119.51, + 116.57, + 117.77, + 112.0, + 106.0, + 107.5, + 103.68, + 105.0, + 99.56, + 105.0, + 100.87, + 98.99, + 102.0, + 101.0, + 99.46, + 103.13, + 102.77, + 103.42, + 102.0, + 99.95, + 99.38 + ], + "h": [ + 123.41, + 122.5, + 127.55, + 126.99, + 128.5, + 128.66, + 128.43, + 128.5, + 134.5, + 135.36, + 137.42, + 137.48, + 131.56, + 129.28, + 126.86, + 124.78, + 121.64, + 124.6, + 126.78, + 128.47, + 129.89, + 128.12, + 124.58, + 124.86, + 125.75, + 125.3, + 124.44, + 122.96, + 120.37, + 118.4, + 116.8, + 117.37, + 120.99, + 120.77, + 123.43, + 123.94, + 125.61, + 122.41, + 121.39, + 119.62, + 117.8, + 118.18, + 113.13, + 109.55, + 109.18, + 107.44, + 105.81, + 104.58, + 105.0, + 101.49, + 101.98, + 102.38, + 101.44, + 104.28, + 103.33, + 103.87, + 103.5, + 102.0, + 100.76, + 100.5 + ], + "l": [ + 116.0, + 115.21, + 120.36, + 121.88, + 123.13, + 124.11, + 124.5, + 124.51, + 129.0, + 129.67, + 130.8, + 132.47, + 126.01, + 124.79, + 124.2, + 118.3, + 117.88, + 120.22, + 123.51, + 125.5, + 122.75, + 125.46, + 122.0, + 122.9, + 120.55, + 122.22, + 121.5, + 120.06, + 118.9, + 115.8, + 113.96, + 113.6, + 114.6, + 117.9, + 119.93, + 120.96, + 121.82, + 120.8, + 119.63, + 115.29, + 116.26, + 111.29, + 105.82, + 102.8, + 105.68, + 102.1, + 102.38, + 99.1, + 100.52, + 97.71, + 98.51, + 99.66, + 98.4, + 94.8, + 100.98, + 99.91, + 99.9, + 99.5, + 96.36, + 96.4 + ], + "c": [ + 116.5, + 121.1, + 125.45, + 124.15, + 128.5, + 126.25, + 125.41, + 127.96, + 129.44, + 132.87, + 136.76, + 134.98, + 128.01, + 125.5, + 124.8, + 120.58, + 120.0, + 124.15, + 126.33, + 125.88, + 128.7, + 126.11, + 122.55, + 123.87, + 121.14, + 124.12, + 121.52, + 120.51, + 119.18, + 117.41, + 114.07, + 114.86, + 120.9, + 118.62, + 122.0, + 122.01, + 122.41, + 121.39, + 119.98, + 116.56, + 117.51, + 111.99, + 107.08, + 108.42, + 106.68, + 106.0, + 102.55, + 104.44, + 102.66, + 99.7, + 101.98, + 100.24, + 100.09, + 104.1, + 102.77, + 100.0, + 102.0, + 101.0, + 96.79, + 100.0 + ], + "v": [ + 65440000, + 64430000, + 66330000, + 51890000, + 60190000, + 42770000, + 37180000, + 43840000, + 66630000, + 77450000, + 68010000, + 57420000, + 66600000, + 40130000, + 30570000, + 47670000, + 31060000, + 40110000, + 34380000, + 29670000, + 37280000, + 23580000, + 28550000, + 22150000, + 31270000, + 31310000, + 27760000, + 21860000, + 19150000, + 35170000, + 27710000, + 25520000, + 39440000, + 24510000, + 38720000, + 25870000, + 32140000, + 18340000, + 18660000, + 26940000, + 18380000, + 42870000, + 48153938, + 46104484, + 24790690, + 30272877, + 24720186, + 47571746, + 37855220, + 31711334, + 29936506, + 23986822, + 35790512, + 52490626, + 31278556, + 24807797, + 28098839, + 28429754, + 29998989, + 34214339 + ], + "ema20": [ + 139.745, + 137.97, + 136.777, + 135.575, + 134.901, + 134.077, + 133.252, + 132.748, + 132.433, + 132.474, + 132.882, + 133.082, + 132.599, + 131.923, + 131.245, + 130.229, + 129.255, + 128.769, + 128.536, + 128.283, + 128.323, + 128.112, + 127.583, + 127.229, + 126.649, + 126.408, + 125.943, + 125.425, + 124.83, + 124.124, + 123.166, + 122.375, + 122.235, + 121.89, + 121.901, + 121.911, + 121.959, + 121.905, + 121.721, + 121.23, + 120.875, + 120.029, + 118.796, + 117.808, + 116.748, + 115.724, + 114.47, + 113.514, + 112.481, + 111.264, + 110.379, + 109.414, + 108.526, + 108.104, + 107.596, + 106.873, + 106.409, + 105.894, + 105.027, + 104.548 + ] + }, + "future": { + "dates": [ + "2026-11-03", + "2026-11-04", + "2026-11-05", + "2026-11-06", + "2026-11-09", + "2026-11-10", + "2026-11-11", + "2026-11-12", + "2026-11-13", + "2026-11-16", + "2026-11-17", + "2026-11-18", + "2026-11-19", + "2026-11-20", + "2026-11-23" + ], + "o": [ + 100.0, + 102.0, + 107.6, + 106.0, + 111.2, + 110.61, + 106.9, + 108.49, + 111.72, + 107.0, + 108.12, + 115.9, + 117.2, + 119.7, + 123.66 + ], + "h": [ + 103.8, + 111.82, + 113.84, + 113.49, + 111.71, + 111.38, + 109.39, + 114.9, + 116.28, + 109.1, + 115.94, + 117.3, + 122.65, + 125.68, + 124.35 + ], + "l": [ + 97.6, + 101.24, + 107.6, + 105.0, + 109.02, + 107.3, + 106.51, + 108.44, + 108.7, + 104.83, + 107.66, + 112.12, + 116.01, + 119.33, + 117.55 + ], + "c": [ + 102.11, + 111.3, + 110.69, + 110.9, + 109.02, + 107.75, + 109.31, + 111.72, + 110.5, + 106.44, + 113.45, + 115.1, + 122.25, + 125.46, + 121.6 + ], + "v": [ + 51926450, + 58021471, + 45744772, + 44934854, + 20997842, + 25541770, + 28496458, + 49349812, + 60681953, + 39334084, + 74634202, + 50840447, + 87563311, + 71848002, + 61213012 + ], + "ema20": [ + 104.316, + 104.981, + 105.525, + 106.037, + 106.321, + 106.457, + 106.729, + 107.204, + 107.518, + 107.415, + 107.99, + 108.667, + 109.961, + 111.437, + 112.405 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2026-11-02", + "open": 99.38, + "high": 100.5, + "low": 96.4, + "close": 100.0, + "volume": 34214339, + "ema20": 104.548, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 97, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "长下影承接棒(Pin Bar)(实体 0.1×ATR,收在最高点附近,下影 73%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.2265, + "push": true, + "impact_pts": 10, + "text": "沪深300 相对 20EMA -2.16 倍 ATR(大盘逆风)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": 0.0559, + "push": true, + "impact_pts": 3, + "text": "收盘位置强度 88%(收在当日最高附近,多方掌握收盘权)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.039, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +1.817 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+1", + "date": "2026-11-03", + "open": 100.0, + "high": 103.8, + "low": 97.6, + "close": 102.11, + "volume": 51926450, + "ema20": 104.316, + "change_from_t0_pct": 0.0211, + "bullish_edge_score": 94, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "中阳棒(实体 0.5×ATR,收在上半区,下影 39%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0759, + "push": true, + "impact_pts": 3, + "text": "沪深300 相对 20EMA -2.08 倍 ATR(大盘逆风)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0696, + "push": true, + "impact_pts": 3, + "text": "量价实体匹配 +0.55(放量上涨,量价配合)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": 0.0307, + "push": true, + "impact_pts": 2, + "text": "收盘位置强度 73%(收在当日最高附近,多方掌握收盘权)" + } + ] + }, + { + "day": "T+2", + "date": "2026-11-04", + "open": 102.0, + "high": 111.82, + "low": 101.24, + "close": 111.3, + "volume": 58021471, + "ema20": 104.981, + "change_from_t0_pct": 0.113, + "bullish_edge_score": 69, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "大阳趋势棒(实体 2.2×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0466, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 5%(上方压力有限)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0301, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.65(放量上涨,量价配合)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.027, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +1.19 倍 ATR(有跟随)" + } + ] + }, + { + "day": "T+3", + "date": "2026-11-05", + "open": 107.6, + "high": 113.84, + "low": 107.6, + "close": 110.69, + "volume": 45744772, + "ema20": 105.525, + "change_from_t0_pct": 0.1069, + "bullish_edge_score": 91, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "中阳棒(实体 0.7×ATR,收在中位犹豫,上影 50%)", + "top3_shap": [ + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.1223, + "push": true, + "impact_pts": 6, + "text": "近 3 日净多头实体 +1.00 倍 ATR(跟随持续)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0254, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 3 根(买盘密集)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0225, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +1.26 倍 ATR(有跟随)" + } + ] + }, + { + "day": "T+4", + "date": "2026-11-06", + "open": 106.0, + "high": 113.49, + "low": 105.0, + "close": 110.9, + "volume": 44934854, + "ema20": 106.037, + "change_from_t0_pct": 0.109, + "bullish_edge_score": 92, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "大阳趋势棒(实体 1.1×ATR,收在上半区,上影 31%)", + "top3_shap": [ + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.1254, + "push": true, + "impact_pts": 6, + "text": "近 3 日净多头实体 +1.15 倍 ATR(跟随持续)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0327, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 4 根(买盘密集)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0186, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +1.498 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+5", + "date": "2026-11-09", + "open": 111.2, + "high": 111.71, + "low": 109.02, + "close": 109.02, + "volume": 20997842, + "ema20": 106.321, + "change_from_t0_pct": 0.0902, + "bullish_edge_score": 77, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "中阴棒(实体 0.5×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0531, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +1.551 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0238, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.59 倍(缩量)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.021, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+6", + "date": "2026-11-10", + "open": 110.61, + "high": 111.38, + "low": 107.3, + "close": 107.75, + "volume": 25541770, + "ema20": 106.457, + "change_from_t0_pct": 0.0775, + "bullish_edge_score": 67, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "中阴棒(实体 0.7×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0391, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 3 根(买盘密集)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0337, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.72 倍(缩量)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0225, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.89 倍 ATR(大盘逆风)" + } + ] + }, + { + "day": "T+7", + "date": "2026-11-11", + "open": 106.9, + "high": 109.39, + "low": 106.51, + "close": 109.31, + "volume": 28496458, + "ema20": 106.729, + "change_from_t0_pct": 0.0931, + "bullish_edge_score": 54, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阳棒(实体 0.6×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0526, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 3%(上方压力有限)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0253, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 3 根(买盘密集)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0233, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.80 倍(量能平稳)" + } + ] + }, + { + "day": "T+8", + "date": "2026-11-12", + "open": 108.49, + "high": 114.9, + "low": 108.44, + "close": 111.72, + "volume": 49349812, + "ema20": 107.204, + "change_from_t0_pct": 0.1172, + "bullish_edge_score": 61, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阳棒(实体 0.7×ATR,收在中位犹豫,上影 49%)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.028, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -1.488 ATR/日(推动力衰减,楔形/衰竭前兆)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0277, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.98 倍 ATR(大盘逆风)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": -0.021, + "push": false, + "impact_pts": -2, + "text": "距 20EMA +0.91 倍 ATR(站在 20EMA 之上,多头结构)" + } + ] + }, + { + "day": "T+9", + "date": "2026-11-13", + "open": 111.72, + "high": 116.28, + "low": 108.7, + "close": 110.5, + "volume": 60681953, + "ema20": 107.518, + "change_from_t0_pct": 0.105, + "bullish_edge_score": 82, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "长上影拒绝棒(流星线)(实体 0.3×ATR,收在下半区,上影 60%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0454, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.0284, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 +0.07(无明显高潮)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0179, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -1.434 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+10", + "date": "2026-11-16", + "open": 107.0, + "high": 109.1, + "low": 104.83, + "close": 106.44, + "volume": 39334084, + "ema20": 107.415, + "change_from_t0_pct": 0.0644, + "bullish_edge_score": 91, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在下半区,上影 49%、下影 38%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0448, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0347, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA -1.69 倍 ATR(大盘逆风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0297, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 49%(上方被明显拒绝,抛压重)" + } + ] + }, + { + "day": "T+11", + "date": "2026-11-17", + "open": 108.12, + "high": 115.94, + "low": 107.66, + "close": 113.45, + "volume": 74634202, + "ema20": 107.99, + "change_from_t0_pct": 0.1345, + "bullish_edge_score": 72, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 20, + "candle": "大阳趋势棒(实体 1.2×ATR,收在上半区,上影 30%)", + "top3_shap": [ + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": -0.0502, + "push": false, + "impact_pts": -2, + "text": "近 5 日 K 线重叠率 27%(重叠低,通道顺畅)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0346, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +1.01(放量上涨,量价配合)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0325, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 30%(上方压力有限)" + } + ] + }, + { + "day": "T+12", + "date": "2026-11-18", + "open": 115.9, + "high": 117.3, + "low": 112.12, + "close": 115.1, + "volume": 50840447, + "ema20": 108.667, + "change_from_t0_pct": 0.151, + "bullish_edge_score": 78, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在中位犹豫,下影 58%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0403, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0203, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -1.348 ATR/日(推动力衰减,楔形/衰竭前兆)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": 0.0156, + "push": true, + "impact_pts": 2, + "text": "量能为前 20 日均量 1.29 倍(量能平稳)" + } + ] + }, + { + "day": "T+13", + "date": "2026-11-19", + "open": 117.2, + "high": 122.65, + "low": 116.01, + "close": 122.25, + "volume": 87563311, + "ema20": 109.961, + "change_from_t0_pct": 0.2225, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "大阳趋势棒(实体 1.2×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.0853, + "push": false, + "impact_pts": -4, + "text": "三推向下楔形" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0574, + "push": true, + "impact_pts": 3, + "text": "量价实体匹配 +1.15(放量上涨,量价配合)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0329, + "push": true, + "impact_pts": 2, + "text": "距 20EMA +2.19 倍 ATR(站在 20EMA 之上,多头结构)" + } + ] + }, + { + "day": "T+14", + "date": "2026-11-20", + "open": 119.7, + "high": 125.68, + "low": 119.33, + "close": 125.46, + "volume": 71848002, + "ema20": 111.437, + "change_from_t0_pct": 0.2546, + "bullish_edge_score": 52, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阳趋势棒(实体 1.3×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.1312, + "push": false, + "impact_pts": -6, + "text": "三推向下楔形" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0624, + "push": false, + "impact_pts": -3, + "text": "20EMA 斜率 +0.69 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.047, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.66(放量上涨,量价配合)" + } + ] + }, + { + "day": "T+15", + "date": "2026-11-23", + "open": 123.66, + "high": 124.35, + "low": 117.55, + "close": 121.6, + "volume": 61213012, + "ema20": 112.405, + "change_from_t0_pct": 0.216, + "bullish_edge_score": 62, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.5×ATR,收在上半区,下影 60%)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.1172, + "push": false, + "impact_pts": -5, + "text": "三推向下楔形" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0594, + "push": true, + "impact_pts": 3, + "text": "沪深300 相对 20EMA -1.32 倍 ATR(大盘逆风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0447, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +0.86 倍 ATR/5日(中期趋势向上)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2026-11-02", + "candle": "长下影承接棒(Pin Bar)(实体 0.1×ATR,收在最高点附近,下影 73%)", + "signal": "自阶段高点 125.61 连续急跌 20.4% 后,T0 在低位收出强力下影/阳线承接棒。", + "hypothesis": "战场定性:恐慌抛售高潮 / 楔形衰竭末端的左侧反转信号", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 97, + "ai_position_pct": 90 + }, + "pivots": [ + { + "day": "T+1", + "date": "2026-11-03", + "candle": "中阳棒(实体 0.5×ATR,收在上半区,下影 39%)", + "signal": "胜负手定格:T+1 站上反转棒高点,空头回补推动波段反转", + "verdict": "原假设确认成立", + "change_from_t0_pct": 0.0211, + "bullish_edge_score": 94, + "ai_position_pct": 80 + } + ], + "summary": "15 个交易日收盘累计 +21.6%(期间最高 +25.7% / 最低 -2.4%)。", + "confirm_rule": "后续 K 线守住 T0 最低点 96.40 且阳线向上站上 T0 高点 100.50", + "invalidate_rule": "收盘跌破 T0 最低点 96.40(抄底失败,沦为下跌中继)" + } + }, + { + "id": "601899.SH|2026-06-30|wedge_climax_low", + "code": "601899.SH", + "name": "紫金矿业", + "date": "2026-06-30", + "year": 2026, + "segment": "样本外测试段", + "motif": "wedge_climax_low", + "motif_cn": "急跌衰竭 · 楔形底反转 vs 抄底接飞刀", + "outcome": "success", + "outcome_cn": "底部反转成立:守住 T0 低点反攻", + "thesis": "急跌抛售衰竭后低位承接,确认突破 T0 高点吃均值回归。", + "initial_position_pct": 0, + "initial_position_note": "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例", + "teaching_note": "底部反转右侧法则:急跌后的第一根止跌阳线只下轻仓试探,必须等后续阳线站上该信号棒高点、且低点不破时,再分批加仓吃均值回归。", + "atr": 1.342, + "close0": 24.832, + "levels": { + "box_high": 32.098, + "box_low": 24.397, + "ema20_t0": 27.711, + "support_20d": 24.397, + "resistance_20d": 30.969, + "support_60d": 24.397, + "resistance_60d": 35.037 + }, + "forward": { + "close0": 24.8317, + "atr": 1.3420371367592545, + "ret15": 0.2016696400165916, + "max_up_pct": 0.2064457930790078, + "max_dn_pct": -0.028640809932465428, + "max_up_atr": 3.82, + "max_dn_atr": 0.53, + "fwd_range_atr": 4.35, + "fwd_range_pct": 0.2351, + "close_chg_15d": 0.2017, + "max_high": 29.958, + "min_low": 24.12 + }, + "quality": { + "score": 0.9357, + "structure_score": 0.9357, + "range_atr": 4.35, + "range_pct": 0.2351 + }, + "setup": { + "text": "自阶段高点 32.10 连续急跌 22.6% 后,T0 在低位收出强力下影/阳线承接棒。", + "confirm_rule": "后续 K 线守住 T0 最低点 24.40 且阳线向上站上 T0 高点 24.95", + "invalidate_rule": "收盘跌破 T0 最低点 24.40(抄底失败,沦为下跌中继)" + }, + "drawings": { + "lines": [ + { + "id": "dn_slope", + "label": "前期急跌斜线 (-23%)", + "color": "#0FA070", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 35, + "price": 32.098 + }, + { + "barIndex": 59, + "price": 24.397 + } + ] + }, + { + "id": "life_low", + "label": "T0 反转生死底 24.40", + "color": "#D9383A", + "style": "solid", + "width": 2, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 24.397 + }, + { + "barIndex": 74, + "price": 24.397 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "belowBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 衰竭止跌棒", + "step": 1 + }, + { + "barIndex": 61, + "pos": "belowBar", + "color": "#2C48CE", + "shape": "arrowUp", + "text": "② T+2 站上高点确认", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "抛售高潮 / 三推楔形底", + "skill_key": "cycle_read", + "frame1": { + "title": "战场定性:恐慌抛售高潮 / 楔形衰竭末端的左侧反转信号", + "body": "股价在过去二十多天累计重挫 22.6%,远离 20EMA 均线,属于典型的【抛售高潮(Sell Climax)/ 空头动能透支】。T0 出现底部承接棒,意味着空头集中回补、抄底资金进场;但逆势摸底初始胜率不高,标准动作是先用 20%~30% 轻仓试探,把 T0 最低点 24.40 作为绝对防守线。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "bars" + }, + "frame2": { + "title": "胜负手定格:T+2 站上反转棒高点,空头回补推动波段反转", + "body": "随后走势稳稳守住 24.40 铁底未破,并在 T+2 以 长上影拒绝棒(流星线)(实体 0.5×ATR,收在中位犹豫,上影 46%) 向上突破 T0 高点确认买盘延续,向 20EMA 均线磁力位发起均值回归反攻(15 日反弹 +20.2%)。在 T+2 右侧确认后再补足仓位,既避开了盲目重仓接飞刀的风险,又稳稳吃到了反转波段。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 2, + "key_bar_index": 61, + "confirm_rule": "后续 K 线守住 T0 最低点 24.40 且阳线向上站上 T0 高点 24.95", + "invalidate_rule": "收盘跌破 T0 最低点 24.40(抄底失败,沦为下跌中继)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "cycle_read", + "takeaway": "底部反转右侧法则:急跌后的第一根止跌阳线只下轻仓试探,必须等后续阳线站上该信号棒高点、且低点不破时,再分批加仓吃均值回归。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2026-04-01", + "2026-04-02", + "2026-04-03", + "2026-04-07", + "2026-04-08", + "2026-04-09", + "2026-04-10", + "2026-04-13", + "2026-04-14", + "2026-04-15", + "2026-04-16", + "2026-04-17", + "2026-04-20", + "2026-04-21", + "2026-04-22", + "2026-04-23", + "2026-04-24", + "2026-04-27", + "2026-04-28", + "2026-04-29", + "2026-04-30", + "2026-05-06", + "2026-05-07", + "2026-05-08", + "2026-05-11", + "2026-05-12", + "2026-05-13", + "2026-05-14", + "2026-05-15", + "2026-05-18", + "2026-05-19", + "2026-05-20", + "2026-05-21", + "2026-05-22", + "2026-05-25", + "2026-05-26", + "2026-05-27", + "2026-05-28", + "2026-05-29", + "2026-06-01", + "2026-06-02", + "2026-06-03", + "2026-06-04", + "2026-06-05", + "2026-06-08", + "2026-06-09", + "2026-06-10", + "2026-06-11", + "2026-06-12", + "2026-06-15", + "2026-06-16", + "2026-06-17", + "2026-06-18", + "2026-06-22", + "2026-06-23", + "2026-06-24", + "2026-06-25", + "2026-06-26", + "2026-06-29", + "2026-06-30" + ], + "o": [ + 32.955, + 33.081, + 32.361, + 31.923, + 33.091, + 33.081, + 33.315, + 32.487, + 33.568, + 34.794, + 34.064, + 34.064, + 33.928, + 34.044, + 34.716, + 34.609, + 33.11, + 33.091, + 32.439, + 31.68, + 32.799, + 32.604, + 33.908, + 33.11, + 33.626, + 34.025, + 34.161, + 33.568, + 32.108, + 30.074, + 30.463, + 29.713, + 30.083, + 29.353, + 30.794, + 30.327, + 31.709, + 30.171, + 30.482, + 29.412, + 29.548, + 30.181, + 30.074, + 29.49, + 27.524, + 27.387, + 26.862, + 26.473, + 27.339, + 29.723, + 30.171, + 29.684, + 29.159, + 28.468, + 29.149, + 26.677, + 25.801, + 25.582, + 25.039, + 24.743 + ], + "h": [ + 33.655, + 33.081, + 32.439, + 32.215, + 33.83, + 33.276, + 33.655, + 32.896, + 34.015, + 35.037, + 34.444, + 34.161, + 34.346, + 34.726, + 34.901, + 34.609, + 33.499, + 33.334, + 32.565, + 33.285, + 33.11, + 33.461, + 34.229, + 34.064, + 33.791, + 34.385, + 34.307, + 33.83, + 32.117, + 30.531, + 30.55, + 29.821, + 30.414, + 30.307, + 31.144, + 32.098, + 32.01, + 30.366, + 30.541, + 29.879, + 30.891, + 30.969, + 30.122, + 30.025, + 27.962, + 27.767, + 27.251, + 26.95, + 28.964, + 30.512, + 30.268, + 30.122, + 30.151, + 29.684, + 29.198, + 27.222, + 26.044, + 25.582, + 25.642, + 24.95 + ], + "l": [ + 32.721, + 31.826, + 31.942, + 31.465, + 33.091, + 32.838, + 32.799, + 32.419, + 33.431, + 33.879, + 34.064, + 33.577, + 33.772, + 33.577, + 34.298, + 33.227, + 32.633, + 32.585, + 32.001, + 31.641, + 32.195, + 32.322, + 33.208, + 32.935, + 32.945, + 33.577, + 33.529, + 32.604, + 30.658, + 29.889, + 29.821, + 29.12, + 29.13, + 29.081, + 30.259, + 30.19, + 30.687, + 29.276, + 29.373, + 29.314, + 29.314, + 30.122, + 29.412, + 28.74, + 26.842, + 26.862, + 26.473, + 26.083, + 27.066, + 29.587, + 29.392, + 29.314, + 28.497, + 27.787, + 26.901, + 26.599, + 25.042, + 24.555, + 24.674, + 24.397 + ], + "c": [ + 33.237, + 32.234, + 32.03, + 31.543, + 33.694, + 32.993, + 32.847, + 32.76, + 33.869, + 33.976, + 34.356, + 33.801, + 33.889, + 34.706, + 34.58, + 33.48, + 33.392, + 32.663, + 32.069, + 33.227, + 32.409, + 33.295, + 33.538, + 33.869, + 33.353, + 33.655, + 33.733, + 32.624, + 30.988, + 30.463, + 30.327, + 29.577, + 29.188, + 30.132, + 30.512, + 32.02, + 30.774, + 29.889, + 29.626, + 29.383, + 30.735, + 30.434, + 29.529, + 28.838, + 27.3, + 27.709, + 26.959, + 26.599, + 28.312, + 30.473, + 29.48, + 29.616, + 28.896, + 29.626, + 27.008, + 26.91, + 25.227, + 24.792, + 25.474, + 24.832 + ], + "v": [ + 323700000, + 258940000, + 142000000, + 150650000, + 407950000, + 220660000, + 237570000, + 176530000, + 298850000, + 299180000, + 200940000, + 215580000, + 225640000, + 311980000, + 372390000, + 356640000, + 257790000, + 231090000, + 207010000, + 303500000, + 240390000, + 399070000, + 336040000, + 301250000, + 303710000, + 416950000, + 322480000, + 276950000, + 448280000, + 288800000, + 180860000, + 314490000, + 295620000, + 268100000, + 284050000, + 443720000, + 261700000, + 310990000, + 261020000, + 175160000, + 333320000, + 252980000, + 206220000, + 271620000, + 377530000, + 251320000, + 304410000, + 323140000, + 509850000, + 571480000, + 292270000, + 222980000, + 362070000, + 391850000, + 494740000, + 284610000, + 576070000, + 352820000, + 323290000, + 310710000 + ], + "ema20": [ + 33.317, + 33.214, + 33.101, + 32.952, + 33.023, + 33.02, + 33.004, + 32.981, + 33.065, + 33.152, + 33.267, + 33.318, + 33.372, + 33.499, + 33.602, + 33.59, + 33.572, + 33.485, + 33.35, + 33.338, + 33.25, + 33.254, + 33.281, + 33.337, + 33.339, + 33.369, + 33.404, + 33.329, + 33.106, + 32.855, + 32.614, + 32.325, + 32.026, + 31.846, + 31.719, + 31.747, + 31.655, + 31.486, + 31.309, + 31.126, + 31.089, + 31.026, + 30.884, + 30.689, + 30.366, + 30.113, + 29.813, + 29.506, + 29.393, + 29.496, + 29.494, + 29.506, + 29.448, + 29.465, + 29.231, + 29.01, + 28.649, + 28.282, + 28.015, + 27.711 + ] + }, + "future": { + "dates": [ + "2026-07-01", + "2026-07-02", + "2026-07-03", + "2026-07-06", + "2026-07-07", + "2026-07-08", + "2026-07-09", + "2026-07-10", + "2026-07-13", + "2026-07-14", + "2026-07-15", + "2026-07-16", + "2026-07-17", + "2026-07-20", + "2026-07-21" + ], + "o": [ + 24.545, + 25.296, + 27.163, + 27.301, + 27.459, + 26.787, + 26.491, + 27.657, + 26.896, + 26.55, + 28.704, + 28.467, + 28.299, + 28.012, + 29.583 + ], + "h": [ + 25.237, + 26.629, + 27.953, + 28.832, + 27.765, + 27.686, + 27.36, + 28.101, + 27.291, + 28.931, + 28.98, + 29.227, + 28.467, + 29.089, + 29.958 + ], + "l": [ + 24.12, + 25.207, + 27.074, + 27.281, + 27.094, + 26.471, + 26.224, + 26.748, + 26.412, + 26.422, + 28.21, + 28.437, + 27.578, + 27.943, + 28.773 + ], + "c": [ + 24.802, + 25.977, + 27.479, + 27.933, + 27.281, + 27.024, + 27.281, + 27.38, + 27.024, + 28.704, + 28.477, + 28.891, + 28.012, + 28.99, + 29.84 + ], + "v": [ + 338910000, + 506740000, + 538650000, + 370090000, + 223540000, + 196980000, + 251500000, + 265710000, + 213020000, + 380320000, + 268350000, + 265440000, + 290420000, + 275770000, + 342670000 + ], + "ema20": [ + 27.434, + 27.296, + 27.313, + 27.372, + 27.363, + 27.331, + 27.326, + 27.332, + 27.302, + 27.436, + 27.535, + 27.664, + 27.697, + 27.82, + 28.013 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2026-06-30", + "open": 24.743, + "high": 24.95, + "low": 24.397, + "close": 24.832, + "volume": 310710000, + "ema20": 27.711, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 58, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.1×ATR,收在上半区,下影 63%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0527, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.79 倍 ATR(大盘顺风)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": -0.0238, + "push": false, + "impact_pts": -2, + "text": "下影线占振幅 63%(下方承接明显,Pin Bar 特征)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": -0.0215, + "push": false, + "impact_pts": -2, + "text": "近 2 日净多头实体 +0.19 倍 ATR(有跟随)" + } + ] + }, + { + "day": "T+1", + "date": "2026-07-01", + "open": 24.545, + "high": 25.237, + "low": 24.12, + "close": 24.802, + "volume": 338910000, + "ema20": 27.434, + "change_from_t0_pct": -0.0012, + "bullish_edge_score": 53, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "小阳十字星(实体 0.2×ATR,收在上半区,上影 39%、下影 38%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0878, + "push": false, + "impact_pts": -4, + "text": "沪深300 相对 20EMA +0.52 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0395, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0311, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -1.19 倍 ATR/5日(中期趋势走弱)" + } + ] + }, + { + "day": "T+2", + "date": "2026-07-02", + "open": 25.296, + "high": 26.629, + "low": 25.207, + "close": 25.977, + "volume": 506740000, + "ema20": 27.296, + "change_from_t0_pct": 0.0461, + "bullish_edge_score": 69, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "长上影拒绝棒(流星线)(实体 0.5×ATR,收在中位犹豫,上影 46%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0356, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.91 倍 ATR(大盘逆风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0234, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 1 根(买盘一般)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0233, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.44(放量上涨,量价配合)" + } + ] + }, + { + "day": "T+3", + "date": "2026-07-03", + "open": 27.163, + "high": 27.953, + "low": 27.074, + "close": 27.479, + "volume": 538650000, + "ema20": 27.313, + "change_from_t0_pct": 0.1066, + "bullish_edge_score": 79, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在中位犹豫,上影 54%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0483, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.48(放量上涨,量价配合)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0461, + "push": true, + "impact_pts": 2, + "text": "近 5 日 K 线重叠率 18%(重叠低,通道顺畅)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0346, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +0.996 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+4", + "date": "2026-07-06", + "open": 27.301, + "high": 28.832, + "low": 27.281, + "close": 27.933, + "volume": 370090000, + "ema20": 27.372, + "change_from_t0_pct": 0.1249, + "bullish_edge_score": 25, + "hist_win_rate": 0.4446, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.5×ATR,收在中位犹豫,上影 58%)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.2484, + "push": false, + "impact_pts": -11, + "text": "三推向下楔形" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0675, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA -0.50 倍 ATR(大盘逆风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0567, + "push": true, + "impact_pts": 3, + "text": "20EMA 斜率 -0.45 倍 ATR/5日(中期趋势走弱)" + } + ] + }, + { + "day": "T+5", + "date": "2026-07-07", + "open": 27.459, + "high": 27.765, + "low": 27.094, + "close": 27.281, + "volume": 223540000, + "ema20": 27.363, + "change_from_t0_pct": 0.0986, + "bullish_edge_score": 60, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在下半区,上影 46%)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.1695, + "push": false, + "impact_pts": -8, + "text": "三推向下楔形" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0963, + "push": true, + "impact_pts": 4, + "text": "量价实体匹配 +0.42(放量上涨,量价配合)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0155, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.93 倍 ATR(大盘逆风)" + } + ] + }, + { + "day": "T+6", + "date": "2026-07-08", + "open": 26.787, + "high": 27.686, + "low": 26.471, + "close": 27.024, + "volume": 196980000, + "ema20": 27.331, + "change_from_t0_pct": 0.0883, + "bullish_edge_score": 48, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在中位犹豫,上影 54%)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.1217, + "push": false, + "impact_pts": -5, + "text": "三推向下楔形" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": -0.0455, + "push": false, + "impact_pts": -2, + "text": "近 5 日 K 线重叠率 28%(重叠低,通道顺畅)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0396, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA -1.21 倍 ATR(大盘逆风)" + } + ] + }, + { + "day": "T+7", + "date": "2026-07-09", + "open": 26.491, + "high": 27.36, + "low": 26.224, + "close": 27.281, + "volume": 251500000, + "ema20": 27.326, + "change_from_t0_pct": 0.0986, + "bullish_edge_score": 20, + "hist_win_rate": 0.4446, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阳棒(实体 0.6×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.1509, + "push": false, + "impact_pts": -7, + "text": "三推向下楔形" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0847, + "push": false, + "impact_pts": -4, + "text": "沪深300 相对 20EMA +0.07 倍 ATR(大盘顺风)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.042, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.67 倍(缩量)" + } + ] + }, + { + "day": "T+8", + "date": "2026-07-10", + "open": 27.657, + "high": 28.101, + "low": 26.748, + "close": 27.38, + "volume": 265710000, + "ema20": 27.332, + "change_from_t0_pct": 0.1026, + "bullish_edge_score": 28, + "hist_win_rate": 0.4446, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在中位犹豫,上影 33%、下影 47%)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.156, + "push": false, + "impact_pts": -7, + "text": "三推向下楔形" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.034, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.81 倍 ATR(大盘逆风)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0338, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.71 倍(缩量)" + } + ] + }, + { + "day": "T+9", + "date": "2026-07-13", + "open": 26.896, + "high": 27.291, + "low": 26.412, + "close": 27.024, + "volume": 213020000, + "ema20": 27.302, + "change_from_t0_pct": 0.0883, + "bullish_edge_score": 62, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.1×ATR,收在上半区,上影 30%、下影 55%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.065, + "push": true, + "impact_pts": 3, + "text": "沪深300 相对 20EMA -1.49 倍 ATR(大盘逆风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.046, + "push": false, + "impact_pts": -2, + "text": "三推向下楔形" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0325, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.58 倍(缩量)" + } + ] + }, + { + "day": "T+10", + "date": "2026-07-14", + "open": 26.55, + "high": 28.931, + "low": 26.422, + "close": 28.704, + "volume": 380320000, + "ema20": 27.436, + "change_from_t0_pct": 0.1559, + "bullish_edge_score": 75, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "大阳趋势棒(实体 1.6×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0371, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0217, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 9%(上方压力有限)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": -0.0212, + "push": false, + "impact_pts": -2, + "text": "距 20EMA +0.90 倍 ATR(站在 20EMA 之上,多头结构)" + } + ] + }, + { + "day": "T+11", + "date": "2026-07-15", + "open": 28.704, + "high": 28.98, + "low": 28.21, + "close": 28.477, + "volume": 268350000, + "ema20": 27.535, + "change_from_t0_pct": 0.1468, + "bullish_edge_score": 69, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "小阴十字星(实体 0.2×ATR,收在下半区,上影 36%、下影 35%)", + "top3_shap": [ + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": -0.0267, + "push": false, + "impact_pts": -2, + "text": "距 20EMA +0.69 倍 ATR(站在 20EMA 之上,多头结构)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0252, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 +0.22(量价背离度低)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0244, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+12", + "date": "2026-07-16", + "open": 28.467, + "high": 29.227, + "low": 28.437, + "close": 28.891, + "volume": 265440000, + "ema20": 27.664, + "change_from_t0_pct": 0.1635, + "bullish_edge_score": 69, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "长上影拒绝棒(流星线)(实体 0.3×ATR,收在中位犹豫,上影 43%)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0181, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 43%(上方被明显拒绝,抛压重)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0128, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.22 倍 ATR(大盘逆风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0119, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +0.26 倍 ATR/5日(中期趋势向上)" + } + ] + }, + { + "day": "T+13", + "date": "2026-07-17", + "open": 28.299, + "high": 28.467, + "low": 27.578, + "close": 28.012, + "volume": 290420000, + "ema20": 27.697, + "change_from_t0_pct": 0.1281, + "bullish_edge_score": 91, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在中位犹豫,下影 49%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.1862, + "push": true, + "impact_pts": 8, + "text": "沪深300 相对 20EMA -2.44 倍 ATR(大盘逆风)" + }, + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.024, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 +0.04(无明显高潮)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0232, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -0.532 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+14", + "date": "2026-07-20", + "open": 28.012, + "high": 29.089, + "low": 27.943, + "close": 28.99, + "volume": 275770000, + "ema20": 27.82, + "change_from_t0_pct": 0.1675, + "bullish_edge_score": 40, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阳棒(实体 0.7×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0468, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 9%(上方压力有限)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0434, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -1.63 倍 ATR(大盘逆风)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": -0.0216, + "push": false, + "impact_pts": -2, + "text": "距 20EMA +0.90 倍 ATR(站在 20EMA 之上,多头结构)" + } + ] + }, + { + "day": "T+15", + "date": "2026-07-21", + "open": 29.583, + "high": 29.958, + "low": 28.773, + "close": 29.84, + "volume": 342670000, + "ema20": 28.013, + "change_from_t0_pct": 0.2017, + "bullish_edge_score": 56, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在最高点附近,下影 68%)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0328, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 10%(上方压力有限)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0204, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 1 根(买盘一般)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0183, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2026-06-30", + "candle": "长下影承接棒(Pin Bar)(实体 0.1×ATR,收在上半区,下影 63%)", + "signal": "自阶段高点 32.10 连续急跌 22.6% 后,T0 在低位收出强力下影/阳线承接棒。", + "hypothesis": "战场定性:恐慌抛售高潮 / 楔形衰竭末端的左侧反转信号", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 58, + "ai_position_pct": 0 + }, + "pivots": [ + { + "day": "T+2", + "date": "2026-07-02", + "candle": "长上影拒绝棒(流星线)(实体 0.5×ATR,收在中位犹豫,上影 46%)", + "signal": "胜负手定格:T+2 站上反转棒高点,空头回补推动波段反转", + "verdict": "原假设确认成立", + "change_from_t0_pct": 0.0461, + "bullish_edge_score": 69, + "ai_position_pct": 10 + } + ], + "summary": "15 个交易日收盘累计 +20.2%(期间最高 +20.6% / 最低 -2.9%)。", + "confirm_rule": "后续 K 线守住 T0 最低点 24.40 且阳线向上站上 T0 高点 24.95", + "invalidate_rule": "收盘跌破 T0 最低点 24.40(抄底失败,沦为下跌中继)" + } + }, + { + "id": "002475.SZ|2025-09-05|climax_wedge_top", + "code": "002475.SZ", + "name": "立讯精密", + "date": "2025-09-05", + "year": 2025, + "segment": "样本外测试段", + "motif": "climax_wedge_top", + "motif_cn": "高位加速 · 抢购高潮逃顶 vs 旗形洗盘", + "outcome": "failure", + "outcome_cn": "强势旗形洗盘:守稳低点突破开启二波主升", + "thesis": "高位分歧未破防守底反包创新高,识别强势旗形避免过早卖飞。", + "initial_position_pct": 70, + "initial_position_note": "高位逃顶特训局:开局默认持有 70% 获利老仓(T0 当日即可减仓或清仓)", + "teaching_note": "防卖飞大牛股精髓:高位出现首根分歧棒最多减部分仓位观察,只要未跌破分歧棒低点就不算见顶;若随后阳线反包突破该棒最高点,正是二波主升启动信号!", + "atr": 1.867, + "close0": 46.831, + "levels": { + "box_high": 46.831, + "box_low": 35.52, + "ema20_t0": 42.378, + "support_20d": 36.205, + "resistance_20d": 46.99, + "support_60d": 30.606, + "resistance_60d": 46.99 + }, + "forward": { + "close0": 46.8315, + "atr": 1.866917659125486, + "ret15": 0.36122908725964353, + "max_up_pct": 0.5296605916957604, + "max_dn_pct": -0.02923673168700558, + "max_up_atr": 13.286, + "max_dn_atr": 0.733, + "fwd_range_atr": 14.02, + "fwd_range_pct": 0.5589, + "close_chg_15d": 0.3612, + "max_high": 71.636, + "min_low": 45.462 + }, + "quality": { + "score": 0.9021, + "structure_score": 0.9021, + "range_atr": 14.02, + "range_pct": 0.5589 + }, + "setup": { + "text": "前期大涨 +31.8% 后 T0 出现高位放量震荡,看似见顶吓人,实则主力换手洗盘(开局持有 70% 老仓)。", + "confirm_rule": "跌破 T0 低点 43.36 且连续收阴走弱(真见顶)", + "invalidate_rule": "回调守住防守位并向上收阳突破 T0 高点 46.83(强势旗形二波主升)" + }, + "drawings": { + "lines": [ + { + "id": "climax_run", + "label": "前期急涨波段 (+32%)", + "color": "#D9383A", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 35, + "price": 35.52 + }, + { + "barIndex": 59, + "price": 46.831 + } + ] + }, + { + "id": "top_hi", + "label": "T0 高点(续涨突破位 46.83)", + "color": "#2C48CE", + "style": "dashed", + "width": 1, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 46.831 + }, + { + "barIndex": 74, + "price": 46.831 + } + ] + }, + { + "id": "top_lo", + "label": "T0 低点(派发破位线 43.36)", + "color": "#0FA070", + "style": "solid", + "width": 2, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 43.359 + }, + { + "barIndex": 74, + "price": 43.359 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "aboveBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 高位巨震分歧", + "step": 1 + }, + { + "barIndex": 60, + "pos": "belowBar", + "color": "#2C48CE", + "shape": "arrowUp", + "text": "② T+1 突破高点·空中加油", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "抢购高潮 / 高位分歧", + "skill_key": "climax_protect", + "frame1": { + "title": "战场定性:高位巨震分歧 · 是真见顶还是“强势窄旗形”洗盘?", + "body": "很多交易者一看到高位上影线或阴线就吓得一键清仓,结果卖完就踏空翻倍二波主升!价格行为学区分“真见顶”与“空中加油”的唯一客观标准:看空头能不能打出连续阴线跌穿关键低点(43.36)!只要低点不破且窄幅横住,就属于多头极强势的【高位旗形(High Tight Flag)】。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "bars" + }, + "frame2": { + "title": "胜负手定格:低点稳守不破,T+1 反包突破 46.83 开启二波暴涨", + "body": "看盘中演化:T0 分歧后空头根本砸不动价格,紧接着在 T+1 收出 长上影拒绝棒(流星线)(实体 0.4×ATR,收在下半区,上影 69%) 一举突破 T0 高点(46.83)!洗盘结束,二波主升浪直接拉爆至 71.64(15 日再涨 +36.1%)!即便 T0 谨慎减了小半仓,看到 T+1 反包突破也应果断拿稳或接回仓位。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 1, + "key_bar_index": 60, + "confirm_rule": "跌破 T0 低点 43.36 且连续收阴走弱(真见顶)", + "invalidate_rule": "回调守住防守位并向上收阳突破 T0 高点 46.83(强势旗形二波主升)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "climax_protect", + "takeaway": "防卖飞大牛股精髓:高位出现首根分歧棒最多减部分仓位观察,只要未跌破分歧棒低点就不算见顶;若随后阳线反包突破该棒最高点,正是二波主升启动信号!", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2025-06-16", + "2025-06-17", + "2025-06-18", + "2025-06-19", + "2025-06-20", + "2025-06-23", + "2025-06-24", + "2025-06-25", + "2025-06-26", + "2025-06-27", + "2025-06-30", + "2025-07-01", + "2025-07-02", + "2025-07-03", + "2025-07-04", + "2025-07-07", + "2025-07-08", + "2025-07-09", + "2025-07-10", + "2025-07-11", + "2025-07-14", + "2025-07-15", + "2025-07-16", + "2025-07-17", + "2025-07-18", + "2025-07-21", + "2025-07-22", + "2025-07-23", + "2025-07-24", + "2025-07-25", + "2025-07-28", + "2025-07-29", + "2025-07-30", + "2025-07-31", + "2025-08-01", + "2025-08-04", + "2025-08-05", + "2025-08-06", + "2025-08-07", + "2025-08-08", + "2025-08-11", + "2025-08-12", + "2025-08-13", + "2025-08-14", + "2025-08-15", + "2025-08-18", + "2025-08-19", + "2025-08-20", + "2025-08-21", + "2025-08-22", + "2025-08-25", + "2025-08-26", + "2025-08-27", + "2025-08-28", + "2025-08-29", + "2025-09-01", + "2025-09-02", + "2025-09-03", + "2025-09-04", + "2025-09-05" + ], + "o": [ + 30.635, + 31.484, + 31.977, + 32.52, + 32.214, + 32.549, + 32.855, + 32.816, + 32.796, + 32.539, + 33.497, + 34.325, + 34.128, + 33.536, + 35.144, + 34.809, + 34.138, + 34.917, + 34.73, + 35.401, + 35.302, + 35.124, + 36.324, + 36.711, + 39.043, + 38.447, + 37.892, + 37.614, + 37.505, + 37.594, + 38.1, + 37.257, + 37.009, + 37.138, + 36.433, + 35.838, + 36.096, + 36.096, + 37.703, + 36.711, + 36.205, + 37.664, + 38.041, + 38.199, + 37.803, + 38.299, + 39.291, + 38.686, + 39.787, + 41.136, + 43.041, + 42.863, + 44.669, + 44.639, + 45.73, + 45.74, + 44.728, + 43.666, + 43.369, + 44.014 + ], + "h": [ + 31.622, + 32.362, + 32.609, + 32.895, + 33.043, + 33.319, + 33.112, + 32.836, + 33.102, + 33.645, + 34.316, + 34.493, + 34.128, + 35.697, + 35.194, + 34.809, + 34.996, + 35.47, + 35.509, + 35.519, + 35.392, + 36.612, + 37.396, + 39.311, + 39.519, + 38.676, + 38.15, + 38.199, + 37.703, + 38.249, + 38.17, + 37.316, + 38.1, + 37.703, + 37.078, + 36.106, + 36.324, + 36.096, + 38.358, + 36.711, + 37.902, + 38.319, + 38.676, + 38.745, + 38.517, + 40.045, + 39.44, + 40.432, + 42.099, + 42.545, + 43.944, + 46.435, + 46.802, + 45.74, + 46.99, + 46.435, + 45.234, + 44.083, + 45.333, + 46.831 + ], + "l": [ + 30.606, + 31.405, + 31.967, + 32.184, + 32.155, + 32.441, + 32.569, + 32.332, + 32.51, + 32.253, + 33.497, + 33.802, + 33.398, + 33.536, + 34.779, + 33.793, + 34.128, + 34.651, + 34.661, + 34.937, + 34.638, + 35.064, + 36.215, + 36.602, + 38.239, + 37.525, + 37.485, + 37.386, + 37.009, + 37.495, + 37.118, + 36.542, + 36.622, + 36.175, + 35.997, + 35.52, + 35.848, + 35.6, + 36.711, + 36.146, + 36.205, + 37.445, + 37.525, + 37.912, + 37.684, + 37.991, + 38.309, + 37.922, + 39.499, + 41.007, + 41.801, + 42.863, + 44.55, + 44.004, + 44.817, + 44.55, + 43.16, + 42.654, + 43.16, + 43.359 + ], + "c": [ + 31.484, + 32.234, + 32.5, + 32.283, + 32.766, + 32.747, + 32.786, + 32.796, + 32.53, + 33.418, + 34.227, + 34.246, + 33.467, + 35.292, + 34.819, + 34.286, + 34.888, + 34.828, + 35.282, + 35.282, + 35.084, + 36.493, + 36.761, + 39.092, + 38.428, + 38.358, + 37.793, + 37.664, + 37.574, + 38.031, + 37.465, + 37.277, + 37.445, + 36.344, + 36.354, + 35.957, + 36.185, + 35.927, + 36.731, + 36.156, + 37.713, + 37.872, + 38.051, + 38.18, + 38.289, + 39.281, + 38.795, + 39.737, + 41.861, + 42.367, + 42.615, + 45.244, + 44.629, + 45.74, + 45.621, + 44.917, + 43.458, + 42.883, + 44.043, + 46.831 + ], + "v": [ + 96100000, + 153610000, + 118320000, + 106170000, + 119140000, + 93650000, + 100540000, + 104900000, + 83770000, + 154940000, + 126690000, + 78170000, + 71190000, + 191840000, + 86380000, + 88360000, + 88520000, + 84500000, + 83700000, + 80260000, + 50630000, + 145530000, + 118650000, + 169450000, + 135940000, + 102690000, + 91420000, + 68220000, + 98030000, + 81960000, + 93740000, + 95290000, + 92430000, + 100620000, + 75000000, + 80240000, + 56860000, + 63990000, + 183170000, + 74280000, + 141480000, + 76450000, + 105810000, + 97920000, + 87420000, + 153900000, + 108850000, + 132780000, + 200680000, + 140170000, + 152350000, + 222320000, + 200970000, + 165320000, + 173030000, + 140620000, + 148020000, + 100890000, + 200640000, + 228190000 + ], + "ema20": [ + 31.206, + 31.304, + 31.418, + 31.5, + 31.621, + 31.728, + 31.829, + 31.921, + 31.979, + 32.116, + 32.317, + 32.501, + 32.593, + 32.85, + 33.037, + 33.156, + 33.321, + 33.465, + 33.638, + 33.795, + 33.917, + 34.163, + 34.41, + 34.856, + 35.196, + 35.497, + 35.716, + 35.901, + 36.061, + 36.248, + 36.364, + 36.451, + 36.546, + 36.527, + 36.51, + 36.457, + 36.432, + 36.384, + 36.417, + 36.392, + 36.518, + 36.647, + 36.78, + 36.914, + 37.045, + 37.258, + 37.404, + 37.626, + 38.029, + 38.443, + 38.84, + 39.45, + 39.943, + 40.495, + 40.983, + 41.358, + 41.558, + 41.684, + 41.909, + 42.378 + ] + }, + "future": { + "dates": [ + "2025-09-08", + "2025-09-09", + "2025-09-10", + "2025-09-11", + "2025-09-12", + "2025-09-15", + "2025-09-16", + "2025-09-17", + "2025-09-18", + "2025-09-19", + "2025-09-22", + "2025-09-23", + "2025-09-24", + "2025-09-25", + "2025-09-26" + ], + "o": [ + 48.707, + 49.391, + 45.919, + 46.831, + 53.777, + 51.733, + 52.249, + 52.219, + 51.098, + 53.886, + 60.474, + 66.526, + 63.729, + 69.255, + 68.183 + ], + "h": [ + 51.515, + 50.354, + 48.588, + 52.487, + 55.225, + 53.807, + 53.777, + 52.576, + 54.511, + 57.458, + 60.474, + 66.526, + 71.636, + 71.021, + 68.243 + ], + "l": [ + 48.399, + 47.109, + 45.462, + 46.147, + 52.05, + 51.663, + 51.743, + 51.098, + 50.701, + 53.608, + 59.661, + 63.163, + 63.203, + 67.668, + 63.659 + ], + "c": [ + 49.362, + 47.337, + 47.715, + 52.487, + 52.298, + 52.328, + 51.981, + 51.604, + 52.695, + 54.977, + 60.474, + 65.187, + 69.652, + 68.203, + 63.748 + ], + "v": [ + 289130000, + 188130000, + 201880000, + 284210000, + 425850000, + 249500000, + 200350000, + 194960000, + 315540000, + 319700000, + 90280000, + 554120000, + 451640000, + 331770000, + 332090000 + ], + "ema20": [ + 43.043, + 43.452, + 43.858, + 44.68, + 45.405, + 46.065, + 46.628, + 47.102, + 47.635, + 48.334, + 49.49, + 50.985, + 52.763, + 54.233, + 55.14 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2025-09-05", + "open": 44.014, + "high": 46.831, + "low": 43.359, + "close": 46.831, + "volume": 228190000, + "ema20": 42.378, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 65, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阳趋势棒(实体 1.5×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0525, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.62(放量上涨,量价配合)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.041, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 0%(上方压力有限)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0379, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +0.95 倍 ATR(有跟随)" + } + ] + }, + { + "day": "T+1", + "date": "2025-09-08", + "open": 48.707, + "high": 51.515, + "low": 48.399, + "close": 49.362, + "volume": 289130000, + "ema20": 43.043, + "change_from_t0_pct": 0.054, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "长上影拒绝棒(流星线)(实体 0.4×ATR,收在下半区,上影 69%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0698, + "push": true, + "impact_pts": 3, + "text": "量价实体匹配 +0.94(放量上涨,量价配合)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0441, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +0.91 倍 ATR(有跟随)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0244, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.49 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+2", + "date": "2025-09-09", + "open": 49.391, + "high": 50.354, + "low": 47.109, + "close": 47.337, + "volume": 188130000, + "ema20": 43.452, + "change_from_t0_pct": 0.0108, + "bullish_edge_score": 72, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 20, + "candle": "大阴趋势棒(实体 1.1×ATR,收在最低点附近,上影 30%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0284, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.94 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0227, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 30%(上方压力有限)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0206, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+3", + "date": "2025-09-10", + "open": 45.919, + "high": 48.588, + "low": 45.462, + "close": 47.715, + "volume": 201880000, + "ema20": 43.858, + "change_from_t0_pct": 0.0189, + "bullish_edge_score": 69, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "大阳趋势棒(实体 1.0×ATR,收在上半区)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0445, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.99 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0236, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0217, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+4", + "date": "2025-09-11", + "open": 46.831, + "high": 52.487, + "low": 46.147, + "close": 52.487, + "volume": 284210000, + "ema20": 44.68, + "change_from_t0_pct": 0.1208, + "bullish_edge_score": 62, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阳趋势棒(实体 3.0×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0451, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +1.53 倍 ATR(有跟随)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0405, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 0%(上方压力有限)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0354, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +2.16 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+5", + "date": "2025-09-12", + "open": 53.777, + "high": 55.225, + "low": 52.05, + "close": 52.298, + "volume": 425850000, + "ema20": 45.405, + "change_from_t0_pct": 0.1167, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "中阴棒(实体 0.8×ATR,收在最低点附近,上影 46%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0285, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.0259, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 +0.16(恐慌抛售高潮,反转倾向)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.023, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+6", + "date": "2025-09-15", + "open": 51.733, + "high": 53.807, + "low": 51.663, + "close": 52.328, + "volume": 249500000, + "ema20": 46.065, + "change_from_t0_pct": 0.1174, + "bullish_edge_score": 84, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "长上影拒绝棒(流星线)(实体 0.3×ATR,收在下半区,上影 69%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0329, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0277, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.69 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0233, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+7", + "date": "2025-09-16", + "open": 52.249, + "high": 53.777, + "low": 51.743, + "close": 51.981, + "volume": 200350000, + "ema20": 46.628, + "change_from_t0_pct": 0.11, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在最低点附近,上影 75%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0303, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.41 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0262, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0251, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + } + ] + }, + { + "day": "T+8", + "date": "2025-09-17", + "open": 52.219, + "high": 52.576, + "low": 51.098, + "close": 51.604, + "volume": 194960000, + "ema20": 47.102, + "change_from_t0_pct": 0.1019, + "bullish_edge_score": 90, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "小阴十字星(实体 0.3×ATR,收在下半区,下影 34%)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0308, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +0.145 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0253, + "push": true, + "impact_pts": 2, + "text": "距 20EMA +1.86 倍 ATR(站在 20EMA 之上,多头结构)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0217, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 24%(上方压力有限)" + } + ] + }, + { + "day": "T+9", + "date": "2025-09-18", + "open": 51.098, + "high": 54.511, + "low": 50.701, + "close": 52.695, + "volume": 315540000, + "ema20": 47.635, + "change_from_t0_pct": 0.1252, + "bullish_edge_score": 87, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "大阳趋势棒(实体 0.9×ATR,收在中位犹豫,上影 48%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.1074, + "push": true, + "impact_pts": 5, + "text": "量价实体匹配 +0.54(放量上涨,量价配合)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0786, + "push": false, + "impact_pts": -4, + "text": "沪深300 相对 20EMA +0.75 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0427, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 48%(上方被明显拒绝,抛压重)" + } + ] + }, + { + "day": "T+10", + "date": "2025-09-19", + "open": 53.886, + "high": 57.458, + "low": 53.608, + "close": 54.977, + "volume": 319700000, + "ema20": 48.334, + "change_from_t0_pct": 0.1739, + "bullish_edge_score": 82, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "中阳棒(实体 0.6×ATR,收在下半区,上影 64%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0799, + "push": false, + "impact_pts": -4, + "text": "沪深300 相对 20EMA +0.75 倍 ATR(大盘顺风)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0565, + "push": true, + "impact_pts": 3, + "text": "量价实体匹配 +0.51(放量上涨,量价配合)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.039, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 64%(上方被明显拒绝,抛压重)" + } + ] + }, + { + "day": "T+11", + "date": "2025-09-22", + "open": 60.474, + "high": 60.474, + "low": 59.661, + "close": 60.474, + "volume": 90280000, + "ema20": 49.49, + "change_from_t0_pct": 0.2913, + "bullish_edge_score": 34, + "hist_win_rate": 0.4538, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.0×ATR,收在最高点附近,下影 100%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0618, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +0.99 倍 ATR(大盘顺风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.032, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.19 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0255, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 0%(上方压力有限)" + } + ] + }, + { + "day": "T+12", + "date": "2025-09-23", + "open": 66.526, + "high": 66.526, + "low": 63.163, + "close": 65.187, + "volume": 554120000, + "ema20": 50.985, + "change_from_t0_pct": 0.3919, + "bullish_edge_score": 82, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "中阴棒(实体 0.7×ATR,收在上半区,下影 60%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0514, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.82 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0374, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 0%(上方压力有限)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0342, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + } + ] + }, + { + "day": "T+13", + "date": "2025-09-24", + "open": 63.729, + "high": 71.636, + "low": 63.203, + "close": 69.652, + "volume": 451640000, + "ema20": 52.763, + "change_from_t0_pct": 0.4873, + "bullish_edge_score": 94, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "大阳趋势棒(实体 3.2×ATR,收在上半区)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0919, + "push": true, + "impact_pts": 4, + "text": "量价实体匹配 +0.93(放量上涨,量价配合)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0607, + "push": true, + "impact_pts": 3, + "text": "近 5 日 K 线重叠率 13%(重叠低,通道顺畅)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.028, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+14", + "date": "2025-09-25", + "open": 69.255, + "high": 71.021, + "low": 67.668, + "close": 68.203, + "volume": 331770000, + "ema20": 54.233, + "change_from_t0_pct": 0.4564, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "中阴棒(实体 0.6×ATR,收在最低点附近,上影 53%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0391, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0278, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0253, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 -0.191 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+15", + "date": "2025-09-26", + "open": 68.183, + "high": 68.243, + "low": 63.659, + "close": 63.748, + "volume": 332090000, + "ema20": 55.14, + "change_from_t0_pct": 0.3612, + "bullish_edge_score": 81, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "大阴趋势棒(实体 2.4×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": 0.0435, + "push": true, + "impact_pts": 2, + "text": "收盘位置强度 2%(收在当日最低附近,空方掌握收盘权)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0297, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 1%(上方压力有限)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0238, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2025-09-05", + "candle": "大阳趋势棒(实体 1.5×ATR,收在最高点附近)", + "signal": "前期大涨 +31.8% 后 T0 出现高位放量震荡,看似见顶吓人,实则主力换手洗盘(开局持有 70% 老仓)。", + "hypothesis": "战场定性:高位巨震分歧 · 是真见顶还是“强势窄旗形”洗盘?", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 65, + "ai_position_pct": 0 + }, + "pivots": [ + { + "day": "T+1", + "date": "2025-09-08", + "candle": "长上影拒绝棒(流星线)(实体 0.4×ATR,收在下半区,上影 69%)", + "signal": "胜负手定格:低点稳守不破,T+1 反包突破 46.83 开启二波暴涨", + "verdict": "反例:强势洗盘后突破续涨", + "change_from_t0_pct": 0.054, + "bullish_edge_score": 88, + "ai_position_pct": 70 + } + ], + "summary": "15 个交易日收盘累计 +36.1%(期间最高 +53.0% / 最低 -2.9%)。", + "confirm_rule": "跌破 T0 低点 43.36 且连续收阴走弱(真见顶)", + "invalidate_rule": "回调守住防守位并向上收阳突破 T0 高点 46.83(强势旗形二波主升)" + } + }, + { + "id": "002594.SZ|2025-02-06|climax_wedge_top", + "code": "002594.SZ", + "name": "比亚迪", + "date": "2025-02-06", + "year": 2025, + "segment": "训练段", + "motif": "climax_wedge_top", + "motif_cn": "高位加速 · 抢购高潮逃顶 vs 旗形洗盘", + "outcome": "failure", + "outcome_cn": "强势旗形洗盘:守稳低点突破开启二波主升", + "thesis": "高位分歧未破防守底反包创新高,识别强势旗形避免过早卖飞。", + "initial_position_pct": 70, + "initial_position_note": "高位逃顶特训局:开局默认持有 70% 获利老仓(T0 当日即可减仓或清仓)", + "teaching_note": "防卖飞大牛股精髓:高位出现首根分歧棒最多减部分仓位观察,只要未跌破分歧棒低点就不算见顶;若随后阳线反包突破该棒最高点,正是二波主升启动信号!", + "atr": 2.824, + "close0": 102.088, + "levels": { + "box_high": 102.088, + "box_low": 86.05, + "ema20_t0": 92.274, + "support_20d": 86.05, + "resistance_20d": 102.088, + "support_60d": 86.05, + "resistance_60d": 102.088 + }, + "forward": { + "close0": 102.0883, + "atr": 2.823825133919819, + "ret15": 0.20708543486374031, + "max_up_pct": 0.2493890093184037, + "max_dn_pct": 0.009386971866511606, + "max_up_atr": 9.016, + "max_dn_atr": -0.339, + "fwd_range_atr": 8.677, + "fwd_range_pct": 0.24, + "close_chg_15d": 0.2071, + "max_high": 127.548, + "min_low": 103.047 + }, + "quality": { + "score": 0.8129, + "structure_score": 0.8129, + "range_atr": 8.677, + "range_pct": 0.24 + }, + "setup": { + "text": "前期大涨 +18.6% 后 T0 出现高位放量震荡,看似见顶吓人,实则主力换手洗盘(开局持有 70% 老仓)。", + "confirm_rule": "跌破 T0 低点 92.69 且连续收阴走弱(真见顶)", + "invalidate_rule": "回调守住防守位并向上收阳突破 T0 高点 102.09(强势旗形二波主升)" + }, + "drawings": { + "lines": [ + { + "id": "climax_run", + "label": "前期急涨波段 (+19%)", + "color": "#D9383A", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 47, + "price": 86.05 + }, + { + "barIndex": 59, + "price": 102.088 + } + ] + }, + { + "id": "top_hi", + "label": "T0 高点(续涨突破位 102.09)", + "color": "#2C48CE", + "style": "dashed", + "width": 1, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 102.088 + }, + { + "barIndex": 74, + "price": 102.088 + } + ] + }, + { + "id": "top_lo", + "label": "T0 低点(派发破位线 92.69)", + "color": "#0FA070", + "style": "solid", + "width": 2, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 92.693 + }, + { + "barIndex": 74, + "price": 92.693 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "aboveBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 高位巨震分歧", + "step": 1 + }, + { + "barIndex": 60, + "pos": "belowBar", + "color": "#2C48CE", + "shape": "arrowUp", + "text": "② T+1 突破高点·空中加油", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "抢购高潮 / 高位分歧", + "skill_key": "climax_protect", + "frame1": { + "title": "战场定性:高位巨震分歧 · 是真见顶还是“强势窄旗形”洗盘?", + "body": "很多交易者一看到高位上影线或阴线就吓得一键清仓,结果卖完就踏空翻倍二波主升!价格行为学区分“真见顶”与“空中加油”的唯一客观标准:看空头能不能打出连续阴线跌穿关键低点(92.69)!只要低点不破且窄幅横住,就属于多头极强势的【高位旗形(High Tight Flag)】。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "bars" + }, + "frame2": { + "title": "胜负手定格:低点稳守不破,T+1 反包突破 102.09 开启二波暴涨", + "body": "看盘中演化:T0 分歧后空头根本砸不动价格,紧接着在 T+1 收出 中阳棒(实体 0.8×ATR,收在最高点附近,下影 37%) 一举突破 T0 高点(102.09)!洗盘结束,二波主升浪直接拉爆至 127.55(15 日再涨 +20.7%)!即便 T0 谨慎减了小半仓,看到 T+1 反包突破也应果断拿稳或接回仓位。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 1, + "key_bar_index": 60, + "confirm_rule": "跌破 T0 低点 92.69 且连续收阴走弱(真见顶)", + "invalidate_rule": "回调守住防守位并向上收阳突破 T0 高点 102.09(强势旗形二波主升)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "climax_protect", + "takeaway": "防卖飞大牛股精髓:高位出现首根分歧棒最多减部分仓位观察,只要未跌破分歧棒低点就不算见顶;若随后阳线反包突破该棒最高点,正是二波主升启动信号!", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2024-11-06", + "2024-11-07", + "2024-11-08", + "2024-11-11", + "2024-11-12", + "2024-11-13", + "2024-11-14", + "2024-11-15", + "2024-11-18", + "2024-11-19", + "2024-11-20", + "2024-11-21", + "2024-11-22", + "2024-11-25", + "2024-11-26", + "2024-11-27", + "2024-11-28", + "2024-11-29", + "2024-12-02", + "2024-12-03", + "2024-12-04", + "2024-12-05", + "2024-12-06", + "2024-12-09", + "2024-12-10", + "2024-12-11", + "2024-12-12", + "2024-12-13", + "2024-12-16", + "2024-12-17", + "2024-12-18", + "2024-12-19", + "2024-12-20", + "2024-12-23", + "2024-12-24", + "2024-12-25", + "2024-12-26", + "2024-12-27", + "2024-12-30", + "2024-12-31", + "2025-01-02", + "2025-01-03", + "2025-01-06", + "2025-01-07", + "2025-01-08", + "2025-01-09", + "2025-01-10", + "2025-01-13", + "2025-01-14", + "2025-01-15", + "2025-01-16", + "2025-01-17", + "2025-01-20", + "2025-01-21", + "2025-01-22", + "2025-01-23", + "2025-01-24", + "2025-01-27", + "2025-02-05", + "2025-02-06" + ], + "o": [ + 101.078, + 96.821, + 100.789, + 96.811, + 98.501, + 97.796, + 98.452, + 96.742, + 95.174, + 94.737, + 94.517, + 94.668, + 93.694, + 92.873, + 91.889, + 91.652, + 92.282, + 89.591, + 90.776, + 93.464, + 92.328, + 90.966, + 90.468, + 91.636, + 96.155, + 92.555, + 91.921, + 92.325, + 90.747, + 90.222, + 92.955, + 92.483, + 93.533, + 92.053, + 91.853, + 94.754, + 93.832, + 94.12, + 94.251, + 93.529, + 92.873, + 89.099, + 89.244, + 89.027, + 89.588, + 88.279, + 88.279, + 86.31, + 87.406, + 90.642, + 90.149, + 89.762, + 91.561, + 93.529, + 93.529, + 93.523, + 90.743, + 91.59, + 92.785, + 92.811 + ], + "h": [ + 101.652, + 99.069, + 100.92, + 98.278, + 101.734, + 98.889, + 98.551, + 97.07, + 96.138, + 95.656, + 95.302, + 94.675, + 93.812, + 94.96, + 93.858, + 92.217, + 92.401, + 91.193, + 93.201, + 93.818, + 92.981, + 91.39, + 92.538, + 93.198, + 96.483, + 93.159, + 93.096, + 92.42, + 91.291, + 93.746, + 94.147, + 94.166, + 94.104, + 92.968, + 94.681, + 95.617, + 94.12, + 94.366, + 95.006, + 94.022, + 92.899, + 90.113, + 89.883, + 91.144, + 89.916, + 89.165, + 88.735, + 88.105, + 90.953, + 91.006, + 91.012, + 91.626, + 93.999, + 94.327, + 93.956, + 93.529, + 92.053, + 91.928, + 94.104, + 102.088 + ], + "l": [ + 97.796, + 96.483, + 97.468, + 96.024, + 98.226, + 96.91, + 96.483, + 94.521, + 94.074, + 92.552, + 93.694, + 93.201, + 91.232, + 92.181, + 91.193, + 90.904, + 89.591, + 89.28, + 89.946, + 92.079, + 91.495, + 90.021, + 89.923, + 91.127, + 92.545, + 91.692, + 91.364, + 90.714, + 89.782, + 89.913, + 92.752, + 91.889, + 91.954, + 91.521, + 91.603, + 93.759, + 93.201, + 92.873, + 92.981, + 92.545, + 88.417, + 88.029, + 88.289, + 87.787, + 87.232, + 87.511, + 86.894, + 86.05, + 87.297, + 90.084, + 88.781, + 89.421, + 91.534, + 92.873, + 91.823, + 90.904, + 90.576, + 90.084, + 92.414, + 92.693 + ], + "c": [ + 98.57, + 99.036, + 97.763, + 98.219, + 98.718, + 98.639, + 96.729, + 95.17, + 94.737, + 94.511, + 94.665, + 93.858, + 91.393, + 92.873, + 92.22, + 92.217, + 90.11, + 90.192, + 92.676, + 92.758, + 91.882, + 90.333, + 91.981, + 92.049, + 92.725, + 92.141, + 93.096, + 90.743, + 90.231, + 92.808, + 93.415, + 93.661, + 91.954, + 92.118, + 94.652, + 93.832, + 93.484, + 93.95, + 93.526, + 92.762, + 88.968, + 88.847, + 89.027, + 89.93, + 88.338, + 88.407, + 87.301, + 87.294, + 90.674, + 90.146, + 89.513, + 90.773, + 93.343, + 93.874, + 92.709, + 90.94, + 91.587, + 90.084, + 92.808, + 102.088 + ], + "v": [ + 55458360, + 45202776, + 50014716, + 54257790, + 73967238, + 43534737, + 37374870, + 45970782, + 34861785, + 39584007, + 31805079, + 28659882, + 37542534, + 52359945, + 28561935, + 33000843, + 47576766, + 38401380, + 45407163, + 27434913, + 25503858, + 27080313, + 37409520, + 27645804, + 52778745, + 28007964, + 30040185, + 33707589, + 21447078, + 52704621, + 25231914, + 26018556, + 29012133, + 24454788, + 42686214, + 25017309, + 20281365, + 23604957, + 24884043, + 23285928, + 50635212, + 29809428, + 24734049, + 28716654, + 32724741, + 19683864, + 24164463, + 20164125, + 37740000, + 18700000, + 21770000, + 25840000, + 40740000, + 22930000, + 24320000, + 28850000, + 20440000, + 19020000, + 43610000, + 114440000 + ], + "ema20": [ + 97.8, + 97.917, + 97.903, + 97.933, + 98.008, + 98.068, + 97.94, + 97.676, + 97.397, + 97.122, + 96.888, + 96.599, + 96.103, + 95.796, + 95.455, + 95.147, + 94.667, + 94.241, + 94.092, + 93.965, + 93.766, + 93.44, + 93.301, + 93.181, + 93.138, + 93.043, + 93.048, + 92.829, + 92.581, + 92.603, + 92.68, + 92.774, + 92.696, + 92.641, + 92.832, + 92.927, + 92.98, + 93.073, + 93.116, + 93.082, + 92.69, + 92.324, + 92.01, + 91.812, + 91.481, + 91.188, + 90.818, + 90.482, + 90.501, + 90.467, + 90.376, + 90.414, + 90.693, + 90.996, + 91.159, + 91.138, + 91.181, + 91.076, + 91.241, + 92.274 + ] + }, + "future": { + "dates": [ + "2025-02-07", + "2025-02-10", + "2025-02-11", + "2025-02-12", + "2025-02-13", + "2025-02-14", + "2025-02-17", + "2025-02-18", + "2025-02-19", + "2025-02-20", + "2025-02-21", + "2025-02-24", + "2025-02-25", + "2025-02-26", + "2025-02-27" + ], + "o": [ + 105.016, + 107.283, + 111.349, + 107.477, + 111.973, + 112.078, + 116.846, + 115.32, + 116.016, + 119.285, + 120.112, + 126.347, + 121.424, + 122.242, + 125.362 + ], + "h": [ + 108.297, + 108.954, + 111.678, + 113.857, + 113.663, + 118.011, + 117.749, + 119.285, + 118.143, + 120.656, + 126.839, + 127.548, + 124.706, + 123.328, + 126.016 + ], + "l": [ + 103.047, + 105.534, + 106.988, + 105.885, + 111.415, + 112.078, + 113.056, + 114.48, + 115.845, + 117.552, + 119.859, + 122.566, + 121.034, + 119.783, + 121.756 + ], + "c": [ + 107.28, + 108.34, + 108.264, + 113.236, + 112.006, + 116.846, + 114.369, + 116.902, + 117.65, + 119.055, + 125.691, + 123.485, + 122.242, + 122.114, + 123.229 + ], + "v": [ + 146120000, + 81810000, + 84110000, + 83810000, + 59950000, + 73090000, + 69600000, + 75540000, + 48580000, + 47080000, + 71790000, + 59820000, + 48330000, + 41560000, + 50530000 + ], + "ema20": [ + 93.703, + 95.097, + 96.351, + 97.959, + 99.297, + 100.969, + 102.245, + 103.641, + 104.975, + 106.316, + 108.161, + 109.621, + 110.823, + 111.898, + 112.977 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2025-02-06", + "open": 92.811, + "high": 102.088, + "low": 92.693, + "close": 102.088, + "volume": 114440000, + "ema20": 92.274, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 97, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "大阳趋势棒(实体 3.3×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.2688, + "push": true, + "impact_pts": 12, + "text": "量价实体匹配 +3.00(放量上涨,量价配合)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": -0.066, + "push": false, + "impact_pts": -3, + "text": "三推向下楔形" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": 0.0592, + "push": true, + "impact_pts": 3, + "text": "量能为前 20 日均量 4.10 倍(明显放量)" + } + ] + }, + { + "day": "T+1", + "date": "2025-02-07", + "open": 105.016, + "high": 108.297, + "low": 103.047, + "close": 107.28, + "volume": 146120000, + "ema20": 93.703, + "change_from_t0_pct": 0.0509, + "bullish_edge_score": 98, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "中阳棒(实体 0.8×ATR,收在最高点附近,下影 37%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.2211, + "push": true, + "impact_pts": 10, + "text": "量价实体匹配 +3.00(放量上涨,量价配合)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.1117, + "push": true, + "impact_pts": 5, + "text": "近 3 日净多头实体 +1.34 倍 ATR(跟随持续)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.062, + "push": true, + "impact_pts": 3, + "text": "近 2 日净多头实体 +2.01 倍 ATR(有跟随)" + } + ] + }, + { + "day": "T+2", + "date": "2025-02-10", + "open": 107.283, + "high": 108.954, + "low": 105.534, + "close": 108.34, + "volume": 81810000, + "ema20": 95.097, + "change_from_t0_pct": 0.0612, + "bullish_edge_score": 96, + "hist_win_rate": 0.515, + "base_win_rate": 0.47, + "ai_position_pct": 90, + "candle": "长下影承接棒(Pin Bar)(实体 0.4×ATR,收在最高点附近,下影 51%)", + "top3_shap": [ + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.1098, + "push": true, + "impact_pts": 5, + "text": "近 3 日净多头实体 +1.46 倍 ATR(跟随持续)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0861, + "push": true, + "impact_pts": 4, + "text": "量价实体匹配 +1.20(放量上涨,量价配合)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0612, + "push": true, + "impact_pts": 3, + "text": "近 5 日 K 线重叠率 15%(重叠低,通道顺畅)" + } + ] + }, + { + "day": "T+3", + "date": "2025-02-11", + "open": 111.349, + "high": 111.678, + "low": 106.988, + "close": 108.264, + "volume": 84110000, + "ema20": 96.351, + "change_from_t0_pct": 0.0605, + "bullish_edge_score": 83, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "大阴趋势棒(实体 1.1×ATR,收在下半区)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0401, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.73 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0351, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0263, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 7%(上方压力有限)" + } + ] + }, + { + "day": "T+4", + "date": "2025-02-12", + "open": 107.477, + "high": 113.857, + "low": 105.885, + "close": 113.236, + "volume": 83810000, + "ema20": 97.959, + "change_from_t0_pct": 0.1092, + "bullish_edge_score": 81, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "大阳趋势棒(实体 2.0×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0581, + "push": true, + "impact_pts": 3, + "text": "量价实体匹配 +0.96(放量上涨,量价配合)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0477, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 8%(上方压力有限)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0425, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.29 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+5", + "date": "2025-02-13", + "open": 111.973, + "high": 113.663, + "low": 111.415, + "close": 112.006, + "volume": 59950000, + "ema20": 99.297, + "change_from_t0_pct": 0.0971, + "bullish_edge_score": 84, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "长上影拒绝棒(流星线)(实体 0.0×ATR,收在下半区,上影 74%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0268, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.94 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0258, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0258, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+6", + "date": "2025-02-14", + "open": 112.078, + "high": 118.011, + "low": 112.078, + "close": 116.846, + "volume": 73090000, + "ema20": 100.969, + "change_from_t0_pct": 0.1446, + "bullish_edge_score": 94, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "大阳趋势棒(实体 1.7×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.1228, + "push": true, + "impact_pts": 6, + "text": "近 3 日净多头实体 +0.98 倍 ATR(跟随持续)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0583, + "push": true, + "impact_pts": 3, + "text": "量价实体匹配 +0.56(放量上涨,量价配合)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0417, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 -0.088 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+7", + "date": "2025-02-17", + "open": 116.846, + "high": 117.749, + "low": 113.056, + "close": 114.369, + "volume": 69600000, + "ema20": 102.245, + "change_from_t0_pct": 0.1203, + "bullish_edge_score": 82, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "大阴趋势棒(实体 0.9×ATR,收在下半区)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0322, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.0225, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 +0.07(无明显高潮)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0216, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+8", + "date": "2025-02-18", + "open": 115.32, + "high": 119.285, + "low": 114.48, + "close": 116.902, + "volume": 75540000, + "ema20": 103.641, + "change_from_t0_pct": 0.1451, + "bullish_edge_score": 87, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "中阳棒(实体 0.6×ATR,收在中位犹豫,上影 50%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0599, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +0.72 倍 ATR(大盘顺风)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0431, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.46(放量上涨,量价配合)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.034, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 50%(上方被明显拒绝,抛压重)" + } + ] + }, + { + "day": "T+9", + "date": "2025-02-19", + "open": 116.016, + "high": 118.143, + "low": 115.845, + "close": 117.65, + "volume": 48580000, + "ema20": 104.975, + "change_from_t0_pct": 0.1524, + "bullish_edge_score": 64, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阳棒(实体 0.6×ATR,收在上半区)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0351, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.16 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0273, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0267, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 -0.11(量价背离度低)" + } + ] + }, + { + "day": "T+10", + "date": "2025-02-20", + "open": 119.285, + "high": 120.656, + "low": 117.552, + "close": 119.055, + "volume": 47080000, + "ema20": 106.316, + "change_from_t0_pct": 0.1662, + "bullish_edge_score": 69, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在中位犹豫,上影 44%、下影 48%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0448, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.88 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0401, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 3 根(买盘密集)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0282, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+11", + "date": "2025-02-21", + "open": 120.112, + "high": 126.839, + "low": 119.859, + "close": 125.691, + "volume": 71790000, + "ema20": 108.161, + "change_from_t0_pct": 0.2312, + "bullish_edge_score": 73, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 20, + "candle": "大阳趋势棒(实体 2.0×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0353, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 3 根(买盘密集)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0345, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.71 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0226, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+12", + "date": "2025-02-24", + "open": 126.347, + "high": 127.548, + "low": 122.566, + "close": 123.485, + "volume": 59820000, + "ema20": 109.621, + "change_from_t0_pct": 0.2096, + "bullish_edge_score": 89, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "大阴趋势棒(实体 1.0×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.0368, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 +0.05(无明显高潮)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0334, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.03, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 3 根(买盘密集)" + } + ] + }, + { + "day": "T+13", + "date": "2025-02-25", + "open": 121.424, + "high": 124.706, + "low": 121.034, + "close": 122.242, + "volume": 48330000, + "ema20": 110.823, + "change_from_t0_pct": 0.1974, + "bullish_edge_score": 59, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.3×ATR,收在下半区,上影 67%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0919, + "push": false, + "impact_pts": -4, + "text": "沪深300 相对 20EMA +0.43 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.03, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0295, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.80 倍(缩量)" + } + ] + }, + { + "day": "T+14", + "date": "2025-02-26", + "open": 122.242, + "high": 123.328, + "low": 119.783, + "close": 122.114, + "volume": 41560000, + "ema20": 111.898, + "change_from_t0_pct": 0.1962, + "bullish_edge_score": 46, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.0×ATR,收在上半区,上影 31%、下影 66%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0674, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +1.04 倍 ATR(大盘顺风)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0314, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.68 倍(缩量)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": -0.023, + "push": false, + "impact_pts": -2, + "text": "下影线占振幅 66%(下方承接明显,Pin Bar 特征)" + } + ] + }, + { + "day": "T+15", + "date": "2025-02-27", + "open": 125.362, + "high": 126.016, + "low": 121.756, + "close": 123.229, + "volume": 50530000, + "ema20": 112.977, + "change_from_t0_pct": 0.2071, + "bullish_edge_score": 75, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "中阴棒(实体 0.8×ATR,收在下半区,下影 35%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0462, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.11 倍 ATR(大盘顺风)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.027, + "push": true, + "impact_pts": 2, + "text": "距 20EMA +2.57 倍 ATR(站在 20EMA 之上,多头结构)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.022, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2025-02-06", + "candle": "大阳趋势棒(实体 3.3×ATR,收在最高点附近)", + "signal": "前期大涨 +18.6% 后 T0 出现高位放量震荡,看似见顶吓人,实则主力换手洗盘(开局持有 70% 老仓)。", + "hypothesis": "战场定性:高位巨震分歧 · 是真见顶还是“强势窄旗形”洗盘?", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 97, + "ai_position_pct": 90 + }, + "pivots": [ + { + "day": "T+1", + "date": "2025-02-07", + "candle": "中阳棒(实体 0.8×ATR,收在最高点附近,下影 37%)", + "signal": "胜负手定格:低点稳守不破,T+1 反包突破 102.09 开启二波暴涨", + "verdict": "反例:强势洗盘后突破续涨", + "change_from_t0_pct": 0.0509, + "bullish_edge_score": 98, + "ai_position_pct": 90 + } + ], + "summary": "15 个交易日收盘累计 +20.7%(期间最高 +24.9% / 最低 +0.9%)。", + "confirm_rule": "跌破 T0 低点 92.69 且连续收阴走弱(真见顶)", + "invalidate_rule": "回调守住防守位并向上收阳突破 T0 高点 102.09(强势旗形二波主升)" + } + }, + { + "id": "002594.SZ|2022-05-20|climax_wedge_top", + "code": "002594.SZ", + "name": "比亚迪", + "date": "2022-05-20", + "year": 2022, + "segment": "训练段", + "motif": "climax_wedge_top", + "motif_cn": "高位加速 · 抢购高潮逃顶 vs 旗形洗盘", + "outcome": "failure", + "outcome_cn": "强势旗形洗盘:守稳低点突破开启二波主升", + "thesis": "高位分歧未破防守底反包创新高,识别强势旗形避免过早卖飞。", + "initial_position_pct": 70, + "initial_position_note": "高位逃顶特训局:开局默认持有 70% 获利老仓(T0 当日即可减仓或清仓)", + "teaching_note": "防卖飞大牛股精髓:高位出现首根分歧棒最多减部分仓位观察,只要未跌破分歧棒低点就不算见顶;若随后阳线反包突破该棒最高点,正是二波主升启动信号!", + "atr": 3.676, + "close0": 92.833, + "levels": { + "box_high": 94.094, + "box_low": 70.604, + "ema20_t0": 83.296, + "support_20d": 70.604, + "resistance_20d": 94.094, + "support_60d": 67.577, + "resistance_60d": 94.094 + }, + "forward": { + "close0": 92.8327, + "atr": 3.67563749316414, + "ret15": 0.2123734416859575, + "max_up_pct": 0.24734064613008133, + "max_dn_pct": -0.03361207850251047, + "max_up_atr": 6.247, + "max_dn_atr": 0.849, + "fwd_range_atr": 7.096, + "fwd_range_pct": 0.281, + "close_chg_15d": 0.2124, + "max_high": 115.794, + "min_low": 89.712 + }, + "quality": { + "score": 0.7955, + "structure_score": 0.7955, + "range_atr": 7.096, + "range_pct": 0.281 + }, + "setup": { + "text": "前期大涨 +31.5% 后 T0 出现高位放量震荡,看似见顶吓人,实则主力换手洗盘(开局持有 70% 老仓)。", + "confirm_rule": "跌破 T0 低点 90.73 且连续收阴走弱(真见顶)", + "invalidate_rule": "回调守住防守位并向上收阳突破 T0 高点 94.09(强势旗形二波主升)" + }, + "drawings": { + "lines": [ + { + "id": "climax_run", + "label": "前期急涨波段 (+31%)", + "color": "#D9383A", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 45, + "price": 70.604 + }, + { + "barIndex": 59, + "price": 94.094 + } + ] + }, + { + "id": "top_hi", + "label": "T0 高点(续涨突破位 94.09)", + "color": "#2C48CE", + "style": "dashed", + "width": 1, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 94.094 + }, + { + "barIndex": 74, + "price": 94.094 + } + ] + }, + { + "id": "top_lo", + "label": "T0 低点(派发破位线 90.73)", + "color": "#0FA070", + "style": "solid", + "width": 2, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 90.735 + }, + { + "barIndex": 74, + "price": 90.735 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "aboveBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 高位巨震分歧", + "step": 1 + }, + { + "barIndex": 60, + "pos": "belowBar", + "color": "#2C48CE", + "shape": "arrowUp", + "text": "② T+1 突破高点·空中加油", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "抢购高潮 / 高位分歧", + "skill_key": "climax_protect", + "frame1": { + "title": "战场定性:高位巨震分歧 · 是真见顶还是“强势窄旗形”洗盘?", + "body": "很多交易者一看到高位上影线或阴线就吓得一键清仓,结果卖完就踏空翻倍二波主升!价格行为学区分“真见顶”与“空中加油”的唯一客观标准:看空头能不能打出连续阴线跌穿关键低点(90.73)!只要低点不破且窄幅横住,就属于多头极强势的【高位旗形(High Tight Flag)】。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "bars" + }, + "frame2": { + "title": "胜负手定格:低点稳守不破,T+1 反包突破 94.09 开启二波暴涨", + "body": "看盘中演化:T0 分歧后空头根本砸不动价格,紧接着在 T+1 收出 长下影承接棒(Pin Bar)(实体 0.2×ATR,收在上半区,下影 48%) 一举突破 T0 高点(94.09)!洗盘结束,二波主升浪直接拉爆至 115.79(15 日再涨 +21.2%)!即便 T0 谨慎减了小半仓,看到 T+1 反包突破也应果断拿稳或接回仓位。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 1, + "key_bar_index": 60, + "confirm_rule": "跌破 T0 低点 90.73 且连续收阴走弱(真见顶)", + "invalidate_rule": "回调守住防守位并向上收阳突破 T0 高点 94.09(强势旗形二波主升)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "climax_protect", + "takeaway": "防卖飞大牛股精髓:高位出现首根分歧棒最多减部分仓位观察,只要未跌破分歧棒低点就不算见顶;若随后阳线反包突破该棒最高点,正是二波主升启动信号!", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2022-02-21", + "2022-02-22", + "2022-02-23", + "2022-02-24", + "2022-02-25", + "2022-02-28", + "2022-03-01", + "2022-03-02", + "2022-03-03", + "2022-03-04", + "2022-03-07", + "2022-03-08", + "2022-03-09", + "2022-03-10", + "2022-03-11", + "2022-03-14", + "2022-03-15", + "2022-03-16", + "2022-03-17", + "2022-03-18", + "2022-03-21", + "2022-03-22", + "2022-03-23", + "2022-03-24", + "2022-03-25", + "2022-03-28", + "2022-03-29", + "2022-03-30", + "2022-03-31", + "2022-04-01", + "2022-04-06", + "2022-04-07", + "2022-04-08", + "2022-04-11", + "2022-04-12", + "2022-04-13", + "2022-04-14", + "2022-04-15", + "2022-04-18", + "2022-04-19", + "2022-04-20", + "2022-04-21", + "2022-04-22", + "2022-04-25", + "2022-04-26", + "2022-04-27", + "2022-04-28", + "2022-04-29", + "2022-05-05", + "2022-05-06", + "2022-05-09", + "2022-05-10", + "2022-05-11", + "2022-05-12", + "2022-05-13", + "2022-05-16", + "2022-05-17", + "2022-05-18", + "2022-05-19", + "2022-05-20" + ], + "o": [ + 77.764, + 77.118, + 78.054, + 80.058, + 80.636, + 79.668, + 82.281, + 80.345, + 80.513, + 76.573, + 73.211, + 71.336, + 70.02, + 75.153, + 71.633, + 72.601, + 68.126, + 71.311, + 77.564, + 75.796, + 77.441, + 79.055, + 80.668, + 78.635, + 79.732, + 75.796, + 75.157, + 73.246, + 75.573, + 73.179, + 79.055, + 77.441, + 77.444, + 77.441, + 74.86, + 75.834, + 78.087, + 76.957, + 75.76, + 78.461, + 79.913, + 76.722, + 74.218, + 74.215, + 73.889, + 73.121, + 75.699, + 75.441, + 79.442, + 77.77, + 74.537, + 72.311, + 74.86, + 80.665, + 83.83, + 87.48, + 86.792, + 91.155, + 88.835, + 92.61 + ], + "h": [ + 79.313, + 77.118, + 81.481, + 81.242, + 81.436, + 80.729, + 82.801, + 80.461, + 80.945, + 78.041, + 73.469, + 72.759, + 72.149, + 75.321, + 74.792, + 72.601, + 71.633, + 74.215, + 77.725, + 77.077, + 80.303, + 79.829, + 80.991, + 80.668, + 80.332, + 75.796, + 76.312, + 76.48, + 75.828, + 77.299, + 79.377, + 79.151, + 79.539, + 77.919, + 76.977, + 78.07, + 79.051, + 77.441, + 77.764, + 80.958, + 80.129, + 77.69, + 76.041, + 76.293, + 76.102, + 76.089, + 75.989, + 78.677, + 81.439, + 79.377, + 76.438, + 75.395, + 82.817, + 83.153, + 87.605, + 88.089, + 91.961, + 92.93, + 92.074, + 94.094 + ], + "l": [ + 77.325, + 75.602, + 77.122, + 77.951, + 79.968, + 79.377, + 80.426, + 78.719, + 78.732, + 74.215, + 70.994, + 67.761, + 67.761, + 73.892, + 70.994, + 70.665, + 67.577, + 69.116, + 75.718, + 74.876, + 76.851, + 78.093, + 79.464, + 78.216, + 75.508, + 73.853, + 73.827, + 71.704, + 73.211, + 73.117, + 77.315, + 77.122, + 77.151, + 74.053, + 74.602, + 75.186, + 77.722, + 75.102, + 74.215, + 78.451, + 77.719, + 74.892, + 73.911, + 73.124, + 73.708, + 70.604, + 74.215, + 74.457, + 78.012, + 77.474, + 74.537, + 71.724, + 74.698, + 80.252, + 82.575, + 85.605, + 86.637, + 90.025, + 88.509, + 90.735 + ], + "c": [ + 78.051, + 76.618, + 81.313, + 79.009, + 79.971, + 80.539, + 81.242, + 80.216, + 79.122, + 75.441, + 72.153, + 69.758, + 72.146, + 73.924, + 74.166, + 70.665, + 68.665, + 74.031, + 75.796, + 75.666, + 79.177, + 78.99, + 79.755, + 79.726, + 75.928, + 74.344, + 74.537, + 76.48, + 74.15, + 76.138, + 78.054, + 77.441, + 78.725, + 75.183, + 76.847, + 76.473, + 77.858, + 76.215, + 77.151, + 79.009, + 78.016, + 75.518, + 75.957, + 73.408, + 74.799, + 75.831, + 74.853, + 78.409, + 80.281, + 78.112, + 75.095, + 75.289, + 81.539, + 81.988, + 87.147, + 86.192, + 91.155, + 90.806, + 91.803, + 92.833 + ], + "v": [ + 32860000, + 37640000, + 87340000, + 71470000, + 43800000, + 35490000, + 52960000, + 36370000, + 29890000, + 87510000, + 70840000, + 87450000, + 75340000, + 74500000, + 55830000, + 45250000, + 59460000, + 100130000, + 94750000, + 45160000, + 83750000, + 34520000, + 44550000, + 34100000, + 62410000, + 42930000, + 41580000, + 75380000, + 48520000, + 54880000, + 61590000, + 36810000, + 51520000, + 57920000, + 38670000, + 32900000, + 39490000, + 38770000, + 33180000, + 62330000, + 39230000, + 46210000, + 32450000, + 48570000, + 47450000, + 76300000, + 43910000, + 74450000, + 75980000, + 43650000, + 52530000, + 62910000, + 137860000, + 72350000, + 110140000, + 60710000, + 88050000, + 61590000, + 52090000, + 53610000 + ], + "ema20": [ + 78.853, + 78.64, + 78.895, + 78.906, + 79.007, + 79.153, + 79.352, + 79.434, + 79.405, + 79.027, + 78.372, + 77.552, + 77.037, + 76.741, + 76.496, + 75.94, + 75.247, + 75.131, + 75.195, + 75.24, + 75.615, + 75.936, + 76.3, + 76.626, + 76.56, + 76.349, + 76.176, + 76.205, + 76.009, + 76.021, + 76.215, + 76.332, + 76.56, + 76.429, + 76.469, + 76.469, + 76.601, + 76.564, + 76.62, + 76.848, + 76.959, + 76.822, + 76.739, + 76.422, + 76.267, + 76.226, + 76.095, + 76.316, + 76.693, + 76.828, + 76.663, + 76.532, + 77.009, + 77.483, + 78.404, + 79.146, + 80.289, + 81.291, + 82.292, + 83.296 + ] + }, + "future": { + "dates": [ + "2022-05-23", + "2022-05-24", + "2022-05-25", + "2022-05-26", + "2022-05-27", + "2022-05-30", + "2022-05-31", + "2022-06-01", + "2022-06-02", + "2022-06-06", + "2022-06-07", + "2022-06-08", + "2022-06-09", + "2022-06-10", + "2022-06-13" + ], + "o": [ + 94.446, + 93.575, + 90.755, + 92.726, + 94.527, + 94.22, + 96.802, + 96.156, + 95.511, + 98.092, + 102.61, + 102.803, + 107.782, + 103.739, + 111.644 + ], + "h": [ + 96.156, + 94.53, + 93.139, + 93.969, + 96.03, + 96.705, + 97.111, + 98.35, + 98.415, + 103.407, + 103.213, + 105.856, + 108.031, + 112.935, + 115.794 + ], + "l": [ + 92.868, + 90.671, + 89.712, + 91.155, + 92.494, + 93.923, + 94.707, + 94.582, + 95.259, + 97.624, + 100.386, + 100.999, + 103.578, + 103.597, + 109.902 + ], + "c": [ + 95.253, + 90.671, + 92.671, + 92.491, + 93.213, + 96.195, + 95.482, + 96.795, + 97.131, + 102.684, + 101.606, + 105.646, + 104.033, + 112.548, + 112.548 + ], + "v": [ + 76680000, + 87150000, + 69260000, + 42930000, + 45960000, + 65560000, + 53100000, + 65070000, + 53320000, + 88430000, + 60070000, + 87150000, + 92260000, + 131470000, + 108200000 + ], + "ema20": [ + 84.435, + 85.029, + 85.756, + 86.398, + 87.047, + 87.918, + 88.639, + 89.415, + 90.15, + 91.344, + 92.321, + 93.59, + 94.585, + 96.295, + 97.843 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2022-05-20", + "open": 92.61, + "high": 94.094, + "low": 90.735, + "close": 92.833, + "volume": 53610000, + "ema20": 83.296, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 80, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "长下影承接棒(Pin Bar)(实体 0.1×ATR,收在上半区,上影 38%、下影 56%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0411, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.87 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0386, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0309, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+1", + "date": "2022-05-23", + "open": 94.446, + "high": 96.156, + "low": 92.868, + "close": 95.253, + "volume": 76680000, + "ema20": 84.435, + "change_from_t0_pct": 0.0261, + "bullish_edge_score": 74, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在上半区,下影 48%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.097, + "push": false, + "impact_pts": -4, + "text": "沪深300 相对 20EMA +0.54 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0389, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0243, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+2", + "date": "2022-05-24", + "open": 93.575, + "high": 94.53, + "low": 90.671, + "close": 90.671, + "volume": 87150000, + "ema20": 85.029, + "change_from_t0_pct": -0.0233, + "bullish_edge_score": 93, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "中阴棒(实体 0.8×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": 0.0319, + "push": true, + "impact_pts": 2, + "text": "近 3 日净多头实体 -0.17 倍 ATR(空头主导)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0269, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0261, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 25%(上方压力有限)" + } + ] + }, + { + "day": "T+3", + "date": "2022-05-25", + "open": 90.755, + "high": 93.139, + "low": 89.712, + "close": 92.671, + "volume": 69260000, + "ema20": 85.756, + "change_from_t0_pct": -0.0017, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "中阳棒(实体 0.5×ATR,收在最高点附近,下影 30%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0486, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0295, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0253, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 14%(上方压力有限)" + } + ] + }, + { + "day": "T+4", + "date": "2022-05-26", + "open": 92.726, + "high": 93.969, + "low": 91.155, + "close": 92.491, + "volume": 42930000, + "ema20": 86.398, + "change_from_t0_pct": -0.0037, + "bullish_edge_score": 79, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在中位犹豫,上影 44%、下影 47%)", + "top3_shap": [ + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0325, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 +1.13 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0252, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": -0.024, + "push": false, + "impact_pts": -2, + "text": "近 2 日净多头实体 +0.23 倍 ATR(有跟随)" + } + ] + }, + { + "day": "T+5", + "date": "2022-05-27", + "open": 94.527, + "high": 96.03, + "low": 92.494, + "close": 93.213, + "volume": 45960000, + "ema20": 87.047, + "change_from_t0_pct": 0.0041, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "长上影拒绝棒(流星线)(实体 0.4×ATR,收在下半区,上影 43%)", + "top3_shap": [ + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.026, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0227, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 +1.03 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0202, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 43%(上方被明显拒绝,抛压重)" + } + ] + }, + { + "day": "T+6", + "date": "2022-05-30", + "open": 94.22, + "high": 96.705, + "low": 93.923, + "close": 96.195, + "volume": 65560000, + "ema20": 87.918, + "change_from_t0_pct": 0.0362, + "bullish_edge_score": 83, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "中阳棒(实体 0.5×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0545, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0482, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.32 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0277, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+7", + "date": "2022-05-31", + "open": 96.802, + "high": 97.111, + "low": 94.707, + "close": 95.482, + "volume": 53100000, + "ema20": 88.639, + "change_from_t0_pct": 0.0285, + "bullish_edge_score": 68, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "小阴十字星(实体 0.4×ATR,收在下半区,下影 32%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0423, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.05 倍 ATR(大盘顺风)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.031, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +0.144 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0229, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+8", + "date": "2022-06-01", + "open": 96.156, + "high": 98.35, + "low": 94.582, + "close": 96.795, + "volume": 65070000, + "ema20": 89.415, + "change_from_t0_pct": 0.0427, + "bullish_edge_score": 69, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "小阳十字星(实体 0.2×ATR,收在上半区,上影 41%、下影 42%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0514, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.88 倍 ATR(大盘顺风)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0329, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +0.143 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.027, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+9", + "date": "2022-06-02", + "open": 95.511, + "high": 98.415, + "low": 95.259, + "close": 97.131, + "volume": 53320000, + "ema20": 90.15, + "change_from_t0_pct": 0.0463, + "bullish_edge_score": 64, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阳棒(实体 0.4×ATR,收在上半区,上影 41%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0561, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +0.91 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": -0.0322, + "push": false, + "impact_pts": -2, + "text": "近 5 日 K 线重叠率 64%(重叠高,属窄幅震荡 Barb Wire)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0282, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+10", + "date": "2022-06-06", + "open": 98.092, + "high": 103.407, + "low": 97.624, + "close": 102.684, + "volume": 88430000, + "ema20": 91.344, + "change_from_t0_pct": 0.1061, + "bullish_edge_score": 65, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阳趋势棒(实体 1.2×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0482, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.77 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0315, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 3 根(买盘密集)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.026, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 13%(上方压力有限)" + } + ] + }, + { + "day": "T+11", + "date": "2022-06-07", + "open": 102.61, + "high": 103.213, + "low": 100.386, + "close": 101.606, + "volume": 60070000, + "ema20": 92.321, + "change_from_t0_pct": 0.0945, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "长下影承接棒(Pin Bar)(实体 0.3×ATR,收在中位犹豫,下影 43%)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0273, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +0.139 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0258, + "push": true, + "impact_pts": 2, + "text": "近 5 日 K 线重叠率 51%(重叠中等)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0223, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+12", + "date": "2022-06-08", + "open": 102.803, + "high": 105.856, + "low": 100.999, + "close": 105.646, + "volume": 87150000, + "ema20": 93.59, + "change_from_t0_pct": 0.138, + "bullish_edge_score": 70, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "中阳棒(实体 0.8×ATR,收在最高点附近,下影 37%)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0353, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 4%(上方压力有限)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0326, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 3 根(买盘密集)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0302, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +2.19 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+13", + "date": "2022-06-09", + "open": 107.782, + "high": 108.031, + "low": 103.578, + "close": 104.033, + "volume": 92260000, + "ema20": 94.585, + "change_from_t0_pct": 0.1206, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "大阴趋势棒(实体 1.0×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0502, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 3 根(买盘密集)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.039, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 6%(上方压力有限)" + }, + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.0266, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 +0.12(无明显高潮)" + } + ] + }, + { + "day": "T+14", + "date": "2022-06-10", + "open": 103.739, + "high": 112.935, + "low": 103.597, + "close": 112.548, + "volume": 131470000, + "ema20": 96.295, + "change_from_t0_pct": 0.2124, + "bullish_edge_score": 58, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "大阳趋势棒(实体 2.4×ATR,收在最高点附近)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0626, + "push": false, + "impact_pts": -3, + "text": "上影线占振幅 4%(上方压力有限)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0306, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +2.03 倍 ATR(大盘顺风)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0222, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.90(放量上涨,量价配合)" + } + ] + }, + { + "day": "T+15", + "date": "2022-06-13", + "open": 111.644, + "high": 115.794, + "low": 109.902, + "close": 112.548, + "volume": 108200000, + "ema20": 97.843, + "change_from_t0_pct": 0.2124, + "bullish_edge_score": 90, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在中位犹豫,上影 55%、下影 30%)", + "top3_shap": [ + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0336, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +1.16 倍 ATR(有跟随)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0335, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.50(放量上涨,量价配合)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0308, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 55%(上方被明显拒绝,抛压重)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2022-05-20", + "candle": "长下影承接棒(Pin Bar)(实体 0.1×ATR,收在上半区,上影 38%、下影 56%)", + "signal": "前期大涨 +31.5% 后 T0 出现高位放量震荡,看似见顶吓人,实则主力换手洗盘(开局持有 70% 老仓)。", + "hypothesis": "战场定性:高位巨震分歧 · 是真见顶还是“强势窄旗形”洗盘?", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 80, + "ai_position_pct": 40 + }, + "pivots": [ + { + "day": "T+1", + "date": "2022-05-23", + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在上半区,下影 48%)", + "signal": "胜负手定格:低点稳守不破,T+1 反包突破 94.09 开启二波暴涨", + "verdict": "反例:强势洗盘后突破续涨", + "change_from_t0_pct": 0.0261, + "bullish_edge_score": 74, + "ai_position_pct": 30 + } + ], + "summary": "15 个交易日收盘累计 +21.2%(期间最高 +24.7% / 最低 -3.4%)。", + "confirm_rule": "跌破 T0 低点 90.73 且连续收阴走弱(真见顶)", + "invalidate_rule": "回调守住防守位并向上收阳突破 T0 高点 94.09(强势旗形二波主升)" + } + }, + { + "id": "300760.SZ|2024-10-08|climax_wedge_top", + "code": "300760.SZ", + "name": "迈瑞医疗", + "date": "2024-10-08", + "year": 2024, + "segment": "训练段", + "motif": "climax_wedge_top", + "motif_cn": "高位加速 · 抢购高潮逃顶 vs 旗形洗盘", + "outcome": "success", + "outcome_cn": "见顶派发成立:跌破高潮棒低点大回撤", + "thesis": "高位抢购高潮后跌破分歧棒低点,果断清掉 70% 老仓锁住利润。", + "initial_position_pct": 70, + "initial_position_note": "高位逃顶特训局:开局默认持有 70% 获利老仓(T0 当日即可减仓或清仓)", + "teaching_note": "高位持仓锁利铁律:大涨远离 20EMA 后出现放量长上影或高位巨震,先减仓 30%~40% 落袋;一旦次日跌破该分歧棒最低点,清掉剩余仓位果断逃顶。", + "atr": 14.927, + "close0": 308.093, + "levels": { + "box_high": 333.823, + "box_low": 209.771, + "ema20_t0": 239.039, + "support_20d": 210.453, + "resistance_20d": 333.823, + "support_60d": 209.771, + "resistance_60d": 333.823 + }, + "forward": { + "close0": 308.0932, + "atr": 14.92725193436719, + "ret15": -0.16412955560200615, + "max_up_pct": 0.013836722134730639, + "max_dn_pct": -0.22955326505096507, + "max_up_atr": 0.286, + "max_dn_atr": 4.738, + "fwd_range_atr": 5.023, + "fwd_range_pct": 0.2434, + "close_chg_15d": -0.1641, + "max_high": 312.356, + "min_low": 237.369 + }, + "quality": { + "score": 0.9647, + "structure_score": 0.9647, + "range_atr": 5.023, + "range_pct": 0.2434 + }, + "setup": { + "text": "近 25 日暴涨 +46.9% 极度远离 20EMA,T0 在高位爆出 3.7 倍量能与分歧影线(开局持有 70% 获利老仓)。", + "confirm_rule": "阴线收盘跌破 T0 高潮棒低点 292.90(见顶派发确认,应果断逃顶清仓)", + "invalidate_rule": "缩量守住 292.90 并放量向上突破 T0 高点 333.82(强势洗盘续涨)" + }, + "drawings": { + "lines": [ + { + "id": "climax_run", + "label": "前期急涨波段 (+47%)", + "color": "#D9383A", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 38, + "price": 209.771 + }, + { + "barIndex": 59, + "price": 333.823 + } + ] + }, + { + "id": "top_hi", + "label": "T0 高点(续涨突破位 333.82)", + "color": "#2C48CE", + "style": "dashed", + "width": 1, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 333.823 + }, + { + "barIndex": 74, + "price": 333.823 + } + ] + }, + { + "id": "top_lo", + "label": "T0 低点(派发破位线 292.90)", + "color": "#0FA070", + "style": "solid", + "width": 2, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 292.902 + }, + { + "barIndex": 74, + "price": 292.902 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "aboveBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 高位巨震分歧", + "step": 1 + }, + { + "barIndex": 60, + "pos": "aboveBar", + "color": "#0FA070", + "shape": "arrowDown", + "text": "② T+1 破颈线·派发确认", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "抢购高潮 / 高位分歧", + "skill_key": "climax_protect", + "frame1": { + "title": "战场定性:多头抢购高潮(Buy Climax)· 获利盘随时踩踏兑现", + "body": "本关开局你手握 70% 丰厚获利老仓。股价短期狂飙 +46.9% 后远远甩开蓝色 20EMA,T0 出现巨量上影/高位滞涨——在 Al Brooks 体系中这叫【抢购高潮衰竭】。此时最后一批散户正在疯狂追高,而机构主力开始借流动性分批派发。最佳策略是先减仓锁住部分利润,紧盯 T0 低点 292.90 得失。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "bars" + }, + "frame2": { + "title": "胜负手定格:T+1 阴棒击穿 T0 低点 292.90,顶部派发瀑布开启", + "body": "T+1 收出 大阴趋势棒(实体 1.5×ATR,收在最低点附近),直接跌穿高潮棒低点防线(292.90),宣告高位买盘枯竭、空头正式接管!随后股价一路回撤至 237.37(15 日下跌 -16.4%)。在 T0~T+1 及时分批减至空仓,就能完美保住前期胜利果实,拒绝满仓坐电梯。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 1, + "key_bar_index": 60, + "confirm_rule": "阴线收盘跌破 T0 高潮棒低点 292.90(见顶派发确认,应果断逃顶清仓)", + "invalidate_rule": "缩量守住 292.90 并放量向上突破 T0 高点 333.82(强势洗盘续涨)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "climax_protect", + "takeaway": "高位持仓锁利铁律:大涨远离 20EMA 后出现放量长上影或高位巨震,先减仓 30%~40% 落袋;一旦次日跌破该分歧棒最低点,清掉剩余仓位果断逃顶。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2024-07-08", + "2024-07-09", + "2024-07-10", + "2024-07-11", + "2024-07-12", + "2024-07-15", + "2024-07-16", + "2024-07-17", + "2024-07-18", + "2024-07-19", + "2024-07-22", + "2024-07-23", + "2024-07-24", + "2024-07-25", + "2024-07-26", + "2024-07-29", + "2024-07-30", + "2024-07-31", + "2024-08-01", + "2024-08-02", + "2024-08-05", + "2024-08-06", + "2024-08-07", + "2024-08-08", + "2024-08-09", + "2024-08-12", + "2024-08-13", + "2024-08-14", + "2024-08-15", + "2024-08-16", + "2024-08-19", + "2024-08-20", + "2024-08-21", + "2024-08-22", + "2024-08-23", + "2024-08-26", + "2024-08-27", + "2024-08-28", + "2024-08-29", + "2024-08-30", + "2024-09-02", + "2024-09-03", + "2024-09-04", + "2024-09-05", + "2024-09-06", + "2024-09-09", + "2024-09-10", + "2024-09-11", + "2024-09-12", + "2024-09-13", + "2024-09-18", + "2024-09-19", + "2024-09-20", + "2024-09-23", + "2024-09-24", + "2024-09-25", + "2024-09-26", + "2024-09-27", + "2024-09-30", + "2024-10-08" + ], + "o": [ + 266.967, + 261.665, + 262.132, + 261.301, + 265.156, + 260.918, + 257.856, + 253.45, + 262.225, + 266.053, + 266.193, + 265.007, + 256.904, + 252.237, + 252.965, + 250.136, + 239.457, + 230.579, + 241.473, + 238.047, + 242.715, + 243.555, + 243.938, + 245.469, + 247.205, + 241.781, + 243.536, + 238.327, + 234.677, + 235.256, + 236.927, + 238.047, + 234.313, + 232.913, + 230.598, + 229.216, + 217.519, + 219.843, + 211.815, + 224.044, + 232.922, + 227.974, + 231.363, + 231.867, + 232.567, + 225.492, + 227.856, + 227.856, + 227.894, + 221.229, + 220.071, + 219.321, + 220.84, + 216.434, + 215.314, + 225.967, + 223.213, + 233.562, + 266.793, + 333.823 + ], + "h": [ + 268.33, + 263.709, + 264.68, + 263.719, + 265.38, + 263.252, + 259.303, + 263.252, + 268.536, + 267.425, + 268.368, + 265.772, + 257.903, + 252.983, + 252.993, + 250.528, + 240.26, + 243.639, + 241.473, + 247.335, + 248.176, + 248.652, + 247.009, + 248.316, + 250.173, + 245.982, + 244.47, + 238.869, + 238.701, + 237.636, + 242.603, + 239.914, + 235.732, + 234.257, + 232.353, + 229.3, + 220.777, + 220.824, + 214.989, + 238.0, + 233.379, + 234.705, + 236.133, + 235.517, + 234.313, + 230.961, + 233.088, + 230.239, + 228.815, + 222.634, + 222.387, + 219.795, + 220.84, + 217.839, + 228.34, + 229.669, + 226.916, + 258.608, + 285.667, + 333.823 + ], + "l": [ + 260.722, + 257.838, + 259.144, + 256.531, + 255.784, + 258.211, + 253.618, + 251.396, + 261.152, + 263.812, + 263.588, + 258.118, + 251.583, + 248.68, + 248.484, + 239.475, + 227.06, + 230.579, + 236.647, + 237.571, + 241.79, + 242.976, + 240.409, + 242.789, + 242.173, + 240.409, + 234.78, + 233.501, + 234.322, + 233.193, + 236.18, + 233.576, + 232.147, + 231.139, + 227.778, + 216.119, + 216.642, + 210.154, + 209.771, + 222.681, + 226.854, + 226.854, + 229.477, + 229.869, + 225.641, + 225.378, + 227.059, + 225.691, + 219.9, + 219.321, + 216.52, + 213.035, + 213.985, + 210.453, + 214.232, + 222.359, + 210.785, + 233.562, + 255.532, + 292.902 + ], + "c": [ + 261.665, + 262.421, + 260.358, + 263.355, + 262.318, + 259.051, + 253.73, + 262.318, + 267.023, + 266.286, + 265.259, + 258.211, + 252.871, + 251.863, + 250.136, + 240.101, + 231.643, + 240.017, + 238.262, + 243.041, + 243.275, + 243.919, + 245.608, + 246.449, + 242.509, + 244.582, + 239.149, + 235.284, + 236.143, + 237.085, + 238.607, + 234.313, + 233.118, + 232.446, + 229.337, + 218.406, + 219.993, + 211.46, + 213.029, + 234.126, + 230.094, + 231.036, + 231.344, + 233.267, + 226.005, + 228.35, + 228.815, + 227.894, + 220.393, + 219.957, + 216.539, + 218.969, + 216.358, + 211.098, + 221.248, + 223.925, + 226.309, + 251.63, + 278.186, + 308.093 + ], + "v": [ + 2439251, + 2791249, + 2187903, + 3178970, + 3430354, + 2217978, + 4033888, + 4675736, + 3999947, + 3235215, + 2741085, + 3421842, + 3790030, + 3254071, + 3291544, + 5648287, + 9104148, + 8061530, + 4583897, + 4044507, + 4742216, + 3095222, + 3300168, + 2381822, + 2819543, + 2319565, + 4041296, + 3005083, + 2655323, + 3223479, + 2553348, + 2903770, + 3049220, + 3160456, + 4590669, + 7426650, + 3081687, + 7072891, + 5404019, + 11771692, + 5758414, + 3996480, + 3717008, + 3845948, + 3190943, + 4646028, + 4003558, + 2664472, + 5129140, + 3110763, + 3186039, + 6742190, + 6000721, + 5130692, + 13329434, + 14204023, + 16479768, + 22577930, + 23479673, + 29944452 + ], + "ema20": [ + 270.85, + 270.047, + 269.125, + 268.575, + 267.979, + 267.129, + 265.853, + 265.516, + 265.66, + 265.719, + 265.676, + 264.965, + 263.813, + 262.675, + 261.481, + 259.444, + 256.797, + 255.199, + 253.586, + 252.581, + 251.695, + 250.954, + 250.445, + 250.065, + 249.345, + 248.891, + 247.964, + 246.756, + 245.745, + 244.92, + 244.319, + 243.366, + 242.39, + 241.443, + 240.29, + 238.206, + 236.471, + 234.089, + 232.084, + 232.278, + 232.07, + 231.972, + 231.912, + 232.041, + 231.466, + 231.169, + 230.945, + 230.655, + 229.677, + 228.751, + 227.588, + 226.768, + 225.776, + 224.378, + 224.08, + 224.065, + 224.279, + 226.884, + 231.77, + 239.039 + ] + }, + "future": { + "dates": [ + "2024-10-09", + "2024-10-10", + "2024-10-11", + "2024-10-14", + "2024-10-15", + "2024-10-16", + "2024-10-17", + "2024-10-18", + "2024-10-21", + "2024-10-22", + "2024-10-23", + "2024-10-24", + "2024-10-25", + "2024-10-28", + "2024-10-29" + ], + "o": [ + 303.821, + 286.455, + 281.984, + 274.635, + 270.486, + 252.807, + 250.652, + 243.057, + 252.551, + 253.5, + 258.343, + 257.298, + 260.147, + 264.837, + 263.422 + ], + "h": [ + 312.356, + 295.95, + 281.984, + 275.727, + 270.486, + 256.216, + 251.127, + 265.843, + 260.593, + 260.441, + 262.52, + 264.229, + 270.116, + 265.729, + 265.796 + ], + "l": [ + 281.68, + 279.145, + 266.793, + 263.726, + 256.842, + 247.813, + 244.006, + 237.369, + 249.228, + 252.836, + 254.592, + 257.156, + 257.298, + 258.998, + 256.32 + ], + "c": [ + 281.68, + 282.952, + 270.059, + 270.495, + 257.203, + 248.753, + 244.006, + 255.589, + 254.545, + 258.2, + 259.339, + 260.621, + 265.758, + 264.201, + 257.526 + ], + "v": [ + 18448332, + 14113088, + 9060675, + 10172430, + 9571465, + 8544774, + 8373171, + 17322020, + 11544283, + 8301821, + 7684715, + 7460049, + 9121788, + 8033223, + 8383465 + ], + "ema20": [ + 243.1, + 246.895, + 249.101, + 251.139, + 251.716, + 251.434, + 250.727, + 251.19, + 251.509, + 252.147, + 252.832, + 253.573, + 254.734, + 255.635, + 255.816 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2024-10-08", + "open": 333.823, + "high": 333.823, + "low": 292.902, + "close": 308.093, + "volume": 29944452, + "ema20": 239.039, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 76, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "大阴趋势棒(实体 1.7×ATR,收在下半区,下影 37%)", + "top3_shap": [ + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0531, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.00 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.051, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA +7.23 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0299, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 0%(上方压力有限)" + } + ] + }, + { + "day": "T+1", + "date": "2024-10-09", + "open": 303.821, + "high": 312.356, + "low": 281.68, + "close": 281.68, + "volume": 18448332, + "ema20": 243.1, + "change_from_t0_pct": -0.0857, + "bullish_edge_score": 82, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "大阴趋势棒(实体 1.5×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0589, + "push": false, + "impact_pts": -3, + "text": "20EMA 斜率 +1.19 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0461, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA +3.54 倍 ATR(大盘顺风)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0276, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -1.636 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+2", + "date": "2024-10-10", + "open": 286.455, + "high": 295.95, + "low": 279.145, + "close": 282.952, + "volume": 14113088, + "ema20": 246.895, + "change_from_t0_pct": -0.0816, + "bullish_edge_score": 84, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在下半区,上影 56%)", + "top3_shap": [ + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0539, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.40 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0503, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA +3.39 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0234, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+3", + "date": "2024-10-11", + "open": 281.984, + "high": 281.984, + "low": 266.793, + "close": 270.059, + "volume": 9060675, + "ema20": 249.101, + "change_from_t0_pct": -0.1235, + "bullish_edge_score": 55, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阴棒(实体 0.8×ATR,收在下半区)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0282, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +2.25 倍 ATR(大盘顺风)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": -0.0254, + "push": false, + "impact_pts": -2, + "text": "距 20EMA +1.30 倍 ATR(站在 20EMA 之上,多头结构)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0192, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.38 倍 ATR/5日(中期趋势向上)" + } + ] + }, + { + "day": "T+4", + "date": "2024-10-14", + "open": 274.635, + "high": 275.727, + "low": 263.726, + "close": 270.495, + "volume": 10172430, + "ema20": 251.139, + "change_from_t0_pct": -0.122, + "bullish_edge_score": 58, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.3×ATR,收在中位犹豫,下影 56%)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0327, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 9%(上方压力有限)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0262, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +2.58 倍 ATR(大盘顺风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.022, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.22 倍 ATR/5日(中期趋势向上)" + } + ] + }, + { + "day": "T+5", + "date": "2024-10-15", + "open": 270.486, + "high": 270.486, + "low": 256.842, + "close": 257.203, + "volume": 9571465, + "ema20": 251.716, + "change_from_t0_pct": -0.1652, + "bullish_edge_score": 73, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 20, + "candle": "大阴趋势棒(实体 0.9×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": 0.0342, + "push": true, + "impact_pts": 2, + "text": "收盘位置强度 3%(收在当日最低附近,空方掌握收盘权)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0293, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 0%(上方压力有限)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": -0.0224, + "push": false, + "impact_pts": -2, + "text": "距 20EMA +0.35 倍 ATR(站在 20EMA 之上,多头结构)" + } + ] + }, + { + "day": "T+6", + "date": "2024-10-16", + "open": 252.807, + "high": 256.216, + "low": 247.813, + "close": 248.753, + "volume": 8544774, + "ema20": 251.434, + "change_from_t0_pct": -0.1926, + "bullish_edge_score": 83, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "小阴十字星(实体 0.3×ATR,收在最低点附近,上影 41%)", + "top3_shap": [ + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.0313, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 +0.09(无明显高潮)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0195, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 +0.23(量价背离度低)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.019, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+7", + "date": "2024-10-17", + "open": 250.652, + "high": 251.127, + "low": 244.006, + "close": 244.006, + "volume": 8373171, + "ema20": 250.727, + "change_from_t0_pct": -0.208, + "bullish_edge_score": 89, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "中阴棒(实体 0.4×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": 0.0375, + "push": true, + "impact_pts": 2, + "text": "收盘位置强度 0%(收在当日最低附近,空方掌握收盘权)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0359, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 0%(下方承接一般)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": 0.0328, + "push": true, + "impact_pts": 2, + "text": "推次斜率衰减 +1.270 ATR/日(推动力仍在增强)" + } + ] + }, + { + "day": "T+8", + "date": "2024-10-18", + "open": 243.057, + "high": 265.843, + "low": 237.369, + "close": 255.589, + "volume": 17322020, + "ema20": 251.19, + "change_from_t0_pct": -0.1704, + "bullish_edge_score": 93, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 80, + "candle": "中阳棒(实体 0.8×ATR,收在上半区,上影 36%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0848, + "push": true, + "impact_pts": 4, + "text": "量价实体匹配 +0.50(放量上涨,量价配合)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0324, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 36%(上方被明显拒绝,抛压重)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0223, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 +0.13 倍 ATR/5日(中期趋势向上)" + } + ] + }, + { + "day": "T+9", + "date": "2024-10-21", + "open": 252.551, + "high": 260.593, + "low": 249.228, + "close": 254.545, + "volume": 11544283, + "ema20": 251.509, + "change_from_t0_pct": -0.1738, + "bullish_edge_score": 88, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在中位犹豫,上影 53%、下影 29%)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0353, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 53%(上方被明显拒绝,抛压重)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0299, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +0.47 倍 ATR(有跟随)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0214, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+10", + "date": "2024-10-22", + "open": 253.5, + "high": 260.441, + "low": 252.836, + "close": 258.2, + "volume": 8301821, + "ema20": 252.147, + "change_from_t0_pct": -0.1619, + "bullish_edge_score": 62, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "小阳十字星(实体 0.3×ATR,收在上半区,上影 29%)", + "top3_shap": [ + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": -0.0277, + "push": false, + "impact_pts": -2, + "text": "近 2 日净多头实体 +0.22 倍 ATR(有跟随)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0233, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 +1.259 ATR/日(推动力仍在增强)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0224, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.66 倍(缩量)" + } + ] + }, + { + "day": "T+11", + "date": "2024-10-23", + "open": 258.343, + "high": 262.52, + "low": 254.592, + "close": 259.339, + "volume": 7684715, + "ema20": 252.832, + "change_from_t0_pct": -0.1582, + "bullish_edge_score": 69, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "长下影承接棒(Pin Bar)(实体 0.1×ATR,收在上半区,上影 40%、下影 47%)", + "top3_shap": [ + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0345, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 +0.10 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": -0.0263, + "push": false, + "impact_pts": -2, + "text": "近 2 日净多头实体 +0.19 倍 ATR(有跟随)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0245, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA +1.74 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+12", + "date": "2024-10-24", + "open": 257.298, + "high": 264.229, + "low": 257.156, + "close": 260.621, + "volume": 7460049, + "ema20": 253.573, + "change_from_t0_pct": -0.1541, + "bullish_edge_score": 45, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在中位犹豫,上影 51%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0475, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.28 倍 ATR(大盘顺风)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0299, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.57 倍(缩量)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0297, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +0.21 倍 ATR/5日(中期趋势向上)" + } + ] + }, + { + "day": "T+13", + "date": "2024-10-25", + "open": 260.147, + "high": 270.116, + "low": 257.298, + "close": 265.758, + "volume": 9121788, + "ema20": 254.734, + "change_from_t0_pct": -0.1374, + "bullish_edge_score": 42, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "小阳十字星(实体 0.4×ATR,收在上半区,上影 34%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0511, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.42 倍 ATR(大盘顺风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0302, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +0.26 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0254, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -0.621 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+14", + "date": "2024-10-28", + "open": 264.837, + "high": 265.729, + "low": 258.998, + "close": 264.201, + "volume": 8033223, + "ema20": 255.635, + "change_from_t0_pct": -0.1425, + "bullish_edge_score": 45, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.0×ATR,收在上半区,下影 77%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0439, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.40 倍 ATR(大盘顺风)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0235, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -0.644 ATR/日(推动力衰减,楔形/衰竭前兆)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.021, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+15", + "date": "2024-10-29", + "open": 263.422, + "high": 265.796, + "low": 256.32, + "close": 257.526, + "volume": 8383465, + "ema20": 255.816, + "change_from_t0_pct": -0.1641, + "bullish_edge_score": 55, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "小阴十字星(实体 0.4×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0474, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -0.657 ATR/日(推动力衰减,楔形/衰竭前兆)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0307, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.95 倍 ATR(大盘顺风)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0236, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.63 倍(缩量)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2024-10-08", + "candle": "大阴趋势棒(实体 1.7×ATR,收在下半区,下影 37%)", + "signal": "近 25 日暴涨 +46.9% 极度远离 20EMA,T0 在高位爆出 3.7 倍量能与分歧影线(开局持有 70% 获利老仓)。", + "hypothesis": "战场定性:多头抢购高潮(Buy Climax)· 获利盘随时踩踏兑现", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 76, + "ai_position_pct": 30 + }, + "pivots": [ + { + "day": "T+1", + "date": "2024-10-09", + "candle": "大阴趋势棒(实体 1.5×ATR,收在最低点附近)", + "signal": "胜负手定格:T+1 阴棒击穿 T0 低点 292.90,顶部派发瀑布开启", + "verdict": "原假设确认成立", + "change_from_t0_pct": -0.0857, + "bullish_edge_score": 82, + "ai_position_pct": 50 + } + ], + "summary": "15 个交易日收盘累计 -16.4%(期间最高 +1.4% / 最低 -23.0%)。", + "confirm_rule": "阴线收盘跌破 T0 高潮棒低点 292.90(见顶派发确认,应果断逃顶清仓)", + "invalidate_rule": "缩量守住 292.90 并放量向上突破 T0 高点 333.82(强势洗盘续涨)" + } + }, + { + "id": "600519.SH|2024-10-08|climax_wedge_top", + "code": "600519.SH", + "name": "贵州茅台", + "date": "2024-10-08", + "year": 2024, + "segment": "训练段", + "motif": "climax_wedge_top", + "motif_cn": "高位加速 · 抢购高潮逃顶 vs 旗形洗盘", + "outcome": "success", + "outcome_cn": "见顶派发成立:跌破高潮棒低点大回撤", + "thesis": "高位抢购高潮后跌破分歧棒低点,果断清掉 70% 老仓锁住利润。", + "initial_position_pct": 70, + "initial_position_note": "高位逃顶特训局:开局默认持有 70% 获利老仓(T0 当日即可减仓或清仓)", + "teaching_note": "高位持仓锁利铁律:大涨远离 20EMA 后出现放量长上影或高位巨震,先减仓 30%~40% 落袋;一旦次日跌破该分歧棒最低点,清掉剩余仓位果断逃顶。", + "atr": 61.522, + "close0": 1598.184, + "levels": { + "box_high": 1771.638, + "box_low": 1155.581, + "ema20_t0": 1351.567, + "support_20d": 1155.581, + "resistance_20d": 1771.638, + "support_60d": 1155.581, + "resistance_60d": 1771.638 + }, + "forward": { + "close0": 1598.1842, + "atr": 61.52226420658187, + "ret15": -0.11107367974229754, + "max_up_pct": -0.013348774190108936, + "max_dn_pct": -0.14163667742429187, + "max_up_atr": -0.347, + "max_dn_atr": 3.679, + "fwd_range_atr": 3.333, + "fwd_range_pct": 0.1283, + "close_chg_15d": -0.1111, + "max_high": 1576.85, + "min_low": 1371.823 + }, + "quality": { + "score": 0.8468, + "structure_score": 0.8468, + "range_atr": 3.333, + "range_pct": 0.1283 + }, + "setup": { + "text": "近 25 日暴涨 +38.3% 极度远离 20EMA,T0 在高位爆出 3.8 倍量能与分歧影线(开局持有 70% 获利老仓)。", + "confirm_rule": "阴线收盘跌破 T0 高潮棒低点 1558.47(见顶派发确认,应果断逃顶清仓)", + "invalidate_rule": "缩量守住 1558.47 并放量向上突破 T0 高点 1771.64(强势洗盘续涨)" + }, + "drawings": { + "lines": [ + { + "id": "climax_run", + "label": "前期急涨波段 (+38%)", + "color": "#D9383A", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 50, + "price": 1155.581 + }, + { + "barIndex": 59, + "price": 1771.638 + } + ] + }, + { + "id": "top_hi", + "label": "T0 高点(续涨突破位 1771.64)", + "color": "#2C48CE", + "style": "dashed", + "width": 1, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 1771.638 + }, + { + "barIndex": 74, + "price": 1771.638 + } + ] + }, + { + "id": "top_lo", + "label": "T0 低点(派发破位线 1558.47)", + "color": "#0FA070", + "style": "solid", + "width": 2, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 1558.466 + }, + { + "barIndex": 74, + "price": 1558.466 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "aboveBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 高位巨震分歧", + "step": 1 + }, + { + "barIndex": 60, + "pos": "aboveBar", + "color": "#0FA070", + "shape": "arrowDown", + "text": "② T+1 破颈线·派发确认", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "抢购高潮 / 高位分歧", + "skill_key": "climax_protect", + "frame1": { + "title": "战场定性:多头抢购高潮(Buy Climax)· 获利盘随时踩踏兑现", + "body": "本关开局你手握 70% 丰厚获利老仓。股价短期狂飙 +38.3% 后远远甩开蓝色 20EMA,T0 出现巨量上影/高位滞涨——在 Al Brooks 体系中这叫【抢购高潮衰竭】。此时最后一批散户正在疯狂追高,而机构主力开始借流动性分批派发。最佳策略是先减仓锁住部分利润,紧盯 T0 低点 1558.47 得失。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "bars" + }, + "frame2": { + "title": "胜负手定格:T+1 阴棒击穿 T0 低点 1558.47,顶部派发瀑布开启", + "body": "T+1 收出 大阴趋势棒(实体 1.6×ATR,收在最低点附近),直接跌穿高潮棒低点防线(1558.47),宣告高位买盘枯竭、空头正式接管!随后股价一路回撤至 1371.82(15 日下跌 -11.1%)。在 T0~T+1 及时分批减至空仓,就能完美保住前期胜利果实,拒绝满仓坐电梯。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 1, + "key_bar_index": 60, + "confirm_rule": "阴线收盘跌破 T0 高潮棒低点 1558.47(见顶派发确认,应果断逃顶清仓)", + "invalidate_rule": "缩量守住 1558.47 并放量向上突破 T0 高点 1771.64(强势洗盘续涨)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "climax_protect", + "takeaway": "高位持仓锁利铁律:大涨远离 20EMA 后出现放量长上影或高位巨震,先减仓 30%~40% 落袋;一旦次日跌破该分歧棒最低点,清掉剩余仓位果断逃顶。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2024-07-08", + "2024-07-09", + "2024-07-10", + "2024-07-11", + "2024-07-12", + "2024-07-15", + "2024-07-16", + "2024-07-17", + "2024-07-18", + "2024-07-19", + "2024-07-22", + "2024-07-23", + "2024-07-24", + "2024-07-25", + "2024-07-26", + "2024-07-29", + "2024-07-30", + "2024-07-31", + "2024-08-01", + "2024-08-02", + "2024-08-05", + "2024-08-06", + "2024-08-07", + "2024-08-08", + "2024-08-09", + "2024-08-12", + "2024-08-13", + "2024-08-14", + "2024-08-15", + "2024-08-16", + "2024-08-19", + "2024-08-20", + "2024-08-21", + "2024-08-22", + "2024-08-23", + "2024-08-26", + "2024-08-27", + "2024-08-28", + "2024-08-29", + "2024-08-30", + "2024-09-02", + "2024-09-03", + "2024-09-04", + "2024-09-05", + "2024-09-06", + "2024-09-09", + "2024-09-10", + "2024-09-11", + "2024-09-12", + "2024-09-13", + "2024-09-18", + "2024-09-19", + "2024-09-20", + "2024-09-23", + "2024-09-24", + "2024-09-25", + "2024-09-26", + "2024-09-27", + "2024-09-30", + "2024-10-08" + ], + "o": [ + 1338.468, + 1317.134, + 1334.989, + 1344.933, + 1366.304, + 1363.512, + 1369.077, + 1369.17, + 1390.875, + 1382.814, + 1414.555, + 1390.411, + 1345.146, + 1335.704, + 1326.864, + 1312.496, + 1285.578, + 1273.631, + 1315.279, + 1274.095, + 1288.268, + 1318.989, + 1303.684, + 1308.786, + 1354.264, + 1326.409, + 1329.192, + 1319.926, + 1303.248, + 1323.432, + 1328.264, + 1326.317, + 1317.134, + 1313.424, + 1306.003, + 1314.351, + 1309.713, + 1302.358, + 1280.032, + 1310.641, + 1326.409, + 1296.727, + 1300.438, + 1299.046, + 1303.22, + 1280.041, + 1270.774, + 1275.95, + 1280.032, + 1234.581, + 1205.827, + 1170.58, + 1170.116, + 1176.145, + 1191.997, + 1298.629, + 1298.546, + 1484.094, + 1569.43, + 1771.638 + ], + "h": [ + 1352.168, + 1349.496, + 1359.69, + 1362.584, + 1378.724, + 1380.208, + 1374.642, + 1394.121, + 1405.252, + 1418.405, + 1419.147, + 1392.266, + 1357.668, + 1343.105, + 1333.57, + 1318.98, + 1289.557, + 1323.877, + 1317.134, + 1295.772, + 1322.699, + 1320.844, + 1318.98, + 1343.272, + 1362.584, + 1338.468, + 1331.047, + 1321.679, + 1331.966, + 1331.901, + 1353.197, + 1326.344, + 1324.536, + 1317.134, + 1320.38, + 1320.714, + 1310.641, + 1304.148, + 1315.279, + 1352.446, + 1333.83, + 1312.477, + 1316.382, + 1305.076, + 1304.148, + 1292.748, + 1292.09, + 1285.486, + 1284.669, + 1235.509, + 1205.836, + 1199.223, + 1181.618, + 1199.798, + 1273.539, + 1323.627, + 1419.045, + 1511.179, + 1632.393, + 1771.638 + ], + "l": [ + 1316.336, + 1307.951, + 1331.047, + 1335.88, + 1359.291, + 1363.512, + 1358.92, + 1363.53, + 1384.41, + 1376.507, + 1383.593, + 1349.598, + 1331.047, + 1317.143, + 1308.693, + 1296.727, + 1262.686, + 1273.631, + 1284.391, + 1274.095, + 1285.152, + 1293.027, + 1297.006, + 1306.931, + 1332.717, + 1323.237, + 1309.723, + 1309.732, + 1302.246, + 1314.36, + 1321.772, + 1311.569, + 1313.136, + 1298.592, + 1304.259, + 1301.505, + 1299.612, + 1275.394, + 1280.032, + 1303.22, + 1293.945, + 1292.108, + 1298.341, + 1295.8, + 1296.727, + 1270.83, + 1270.774, + 1266.118, + 1238.208, + 1203.322, + 1174.902, + 1155.581, + 1159.477, + 1169.337, + 1173.446, + 1295.531, + 1294.872, + 1451.964, + 1532.328, + 1558.466 + ], + "c": [ + 1317.134, + 1333.858, + 1333.45, + 1356.175, + 1371.693, + 1368.057, + 1369.077, + 1392.637, + 1389.029, + 1415.103, + 1390.411, + 1349.598, + 1335.704, + 1326.864, + 1319.165, + 1296.746, + 1280.022, + 1318.321, + 1285.745, + 1285.087, + 1307.868, + 1302.942, + 1312.96, + 1327.049, + 1332.717, + 1332.068, + 1319.926, + 1310.919, + 1323.525, + 1327.523, + 1322.18, + 1319.657, + 1314.889, + 1307.905, + 1312.487, + 1309.713, + 1302.358, + 1288.38, + 1310.919, + 1338.644, + 1293.945, + 1307.858, + 1298.583, + 1303.109, + 1296.727, + 1275.394, + 1278.176, + 1280.032, + 1238.347, + 1209.658, + 1175.124, + 1169.652, + 1172.36, + 1170.153, + 1273.168, + 1297.655, + 1418.238, + 1511.179, + 1621.373, + 1598.184 + ], + "v": [ + 3952705, + 3362071, + 2376322, + 2902014, + 2338634, + 1917626, + 2031644, + 3431101, + 2887039, + 3894291, + 2854321, + 3094396, + 2412255, + 2834656, + 3235379, + 3086907, + 5177904, + 4327232, + 3203810, + 2192769, + 3773607, + 2744433, + 2062221, + 2513082, + 3013849, + 1363203, + 1630843, + 1341431, + 2303897, + 1645470, + 2043279, + 1859138, + 1509165, + 1952729, + 1532046, + 1562841, + 1365740, + 3166351, + 2747161, + 3873923, + 3413459, + 1788760, + 1421109, + 1450295, + 1032104, + 2863755, + 1980284, + 2099577, + 4794831, + 5600511, + 4618531, + 5998821, + 3998184, + 4554969, + 10041281, + 7395380, + 9727806, + 8792167, + 15729341, + 19470947 + ], + "ema20": [ + 1389.89, + 1384.553, + 1379.686, + 1377.447, + 1376.899, + 1376.057, + 1375.392, + 1377.035, + 1378.177, + 1381.694, + 1382.524, + 1379.388, + 1375.228, + 1370.622, + 1365.721, + 1359.152, + 1351.616, + 1348.445, + 1342.473, + 1337.008, + 1334.233, + 1331.253, + 1329.511, + 1329.276, + 1329.604, + 1329.838, + 1328.894, + 1327.182, + 1326.834, + 1326.9, + 1326.45, + 1325.803, + 1324.764, + 1323.158, + 1322.142, + 1320.958, + 1319.187, + 1316.253, + 1315.745, + 1317.926, + 1315.642, + 1314.9, + 1313.346, + 1312.371, + 1310.881, + 1307.502, + 1304.709, + 1302.359, + 1296.262, + 1288.014, + 1277.263, + 1267.014, + 1257.999, + 1249.633, + 1251.875, + 1256.235, + 1271.663, + 1294.474, + 1325.608, + 1351.567 + ] + }, + "future": { + "dates": [ + "2024-10-09", + "2024-10-10", + "2024-10-11", + "2024-10-14", + "2024-10-15", + "2024-10-16", + "2024-10-17", + "2024-10-18", + "2024-10-21", + "2024-10-22", + "2024-10-23", + "2024-10-24", + "2024-10-25", + "2024-10-28", + "2024-10-29" + ], + "o": [ + 1576.85, + 1504.742, + 1498.379, + 1496.153, + 1483.167, + 1429.257, + 1425.658, + 1384.846, + 1429.563, + 1415.975, + 1432.253, + 1447.92, + 1434.934, + 1446.992, + 1446.992 + ], + "h": [ + 1576.85, + 1547.243, + 1521.16, + 1503.23, + 1485.013, + 1437.531, + 1426.27, + 1454.264, + 1437.689, + 1447.159, + 1462.714, + 1460.906, + 1460.711, + 1451.63, + 1465.543 + ], + "l": [ + 1474.819, + 1475.746, + 1474.819, + 1466.629, + 1440.508, + 1400.614, + 1385.226, + 1371.823, + 1411.012, + 1413.785, + 1421.02, + 1433.088, + 1434.016, + 1411.958, + 1419.165 + ], + "c": [ + 1479.596, + 1521.197, + 1488.723, + 1485.94, + 1441.659, + 1412.209, + 1386.33, + 1429.369, + 1418.052, + 1431.224, + 1453.949, + 1439.757, + 1445.925, + 1451.63, + 1420.668 + ], + "v": [ + 12019684, + 7460342, + 4191471, + 4481202, + 4357143, + 4666440, + 3945955, + 6861930, + 4200790, + 3626913, + 4008846, + 2392280, + 2774508, + 3912140, + 4116578 + ], + "ema20": [ + 1363.761, + 1378.754, + 1389.228, + 1398.438, + 1402.555, + 1403.474, + 1401.841, + 1404.463, + 1405.757, + 1408.182, + 1412.541, + 1415.133, + 1418.066, + 1421.262, + 1421.206 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2024-10-08", + "open": 1771.638, + "high": 1771.638, + "low": 1558.466, + "close": 1598.184, + "volume": 19470947, + "ema20": 1351.567, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 76, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "大阴趋势棒(实体 2.8×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0615, + "push": false, + "impact_pts": -3, + "text": "20EMA 斜率 +1.62 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0519, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA +7.23 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0338, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 0%(上方压力有限)" + } + ] + }, + { + "day": "T+1", + "date": "2024-10-09", + "open": 1576.85, + "high": 1576.85, + "low": 1474.819, + "close": 1479.596, + "volume": 12019684, + "ema20": 1363.761, + "change_from_t0_pct": -0.0742, + "bullish_edge_score": 76, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "大阴趋势棒(实体 1.6×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0595, + "push": false, + "impact_pts": -3, + "text": "20EMA 斜率 +1.63 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0469, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA +3.54 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0244, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 0%(上方压力有限)" + } + ] + }, + { + "day": "T+2", + "date": "2024-10-10", + "open": 1504.742, + "high": 1547.243, + "low": 1475.746, + "close": 1521.197, + "volume": 7460342, + "ema20": 1378.754, + "change_from_t0_pct": -0.0482, + "bullish_edge_score": 79, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "小阳十字星(实体 0.3×ATR,收在上半区,上影 36%、下影 41%)", + "top3_shap": [ + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0536, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.61 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0443, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA +3.39 倍 ATR(大盘顺风)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": -0.0206, + "push": false, + "impact_pts": -2, + "text": "近 3 日净多头实体 -1.35 倍 ATR(空头主导)" + } + ] + }, + { + "day": "T+3", + "date": "2024-10-11", + "open": 1498.379, + "high": 1521.16, + "low": 1474.819, + "close": 1488.723, + "volume": 4191471, + "ema20": 1389.228, + "change_from_t0_pct": -0.0685, + "bullish_edge_score": 67, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 10, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在下半区,上影 49%、下影 30%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0207, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +2.25 倍 ATR(大盘顺风)" + }, + { + "name_cn": "距 20EMA 偏离", + "feature": "pa_ema20_dev_atr", + "shap": 0.0202, + "push": true, + "impact_pts": 2, + "text": "距 20EMA +1.53 倍 ATR(站在 20EMA 之上,多头结构)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0183, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.46 倍 ATR/5日(中期趋势向上)" + } + ] + }, + { + "day": "T+4", + "date": "2024-10-14", + "open": 1496.153, + "high": 1503.23, + "low": 1466.629, + "close": 1485.94, + "volume": 4481202, + "ema20": 1398.438, + "change_from_t0_pct": -0.0702, + "bullish_edge_score": 47, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.2×ATR,收在中位犹豫,下影 53%)", + "top3_shap": [ + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0305, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.16 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.024, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.67 倍(缩量)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0215, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +2.58 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+5", + "date": "2024-10-15", + "open": 1483.167, + "high": 1485.013, + "low": 1440.508, + "close": 1441.659, + "volume": 4357143, + "ema20": 1402.555, + "change_from_t0_pct": -0.0979, + "bullish_edge_score": 84, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "中阴棒(实体 0.7×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": 0.0324, + "push": true, + "impact_pts": 2, + "text": "收盘位置强度 3%(收在当日最低附近,空方掌握收盘权)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0322, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 4%(上方压力有限)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0301, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 3%(下方承接一般)" + } + ] + }, + { + "day": "T+6", + "date": "2024-10-16", + "open": 1429.257, + "high": 1437.531, + "low": 1400.614, + "close": 1412.209, + "volume": 4666440, + "ema20": 1403.474, + "change_from_t0_pct": -0.1164, + "bullish_edge_score": 55, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "小阴十字星(实体 0.3×ATR,收在下半区,下影 31%)", + "top3_shap": [ + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.025, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.67 倍(缩量)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0241, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.32 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0208, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+7", + "date": "2024-10-17", + "open": 1425.658, + "high": 1426.27, + "low": 1385.226, + "close": 1386.33, + "volume": 3945955, + "ema20": 1401.841, + "change_from_t0_pct": -0.1326, + "bullish_edge_score": 79, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "中阴棒(实体 0.6×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": -0.0291, + "push": false, + "impact_pts": -2, + "text": "近 3 日净多头实体 -0.54 倍 ATR(空头主导)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0258, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 1%(上方压力有限)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": 0.0257, + "push": true, + "impact_pts": 2, + "text": "收盘位置强度 3%(收在当日最低附近,空方掌握收盘权)" + } + ] + }, + { + "day": "T+8", + "date": "2024-10-18", + "open": 1384.846, + "high": 1454.264, + "low": 1371.823, + "close": 1429.369, + "volume": 6861930, + "ema20": 1404.463, + "change_from_t0_pct": -0.1056, + "bullish_edge_score": 76, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "中阳棒(实体 0.7×ATR,收在上半区,上影 30%)", + "top3_shap": [ + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0252, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 30%(上方压力有限)" + }, + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.0192, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 -0.21(抢购高潮,衰竭倾向)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0175, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.71 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+9", + "date": "2024-10-21", + "open": 1429.563, + "high": 1437.689, + "low": 1411.012, + "close": 1418.052, + "volume": 4200790, + "ema20": 1405.757, + "change_from_t0_pct": -0.1127, + "bullish_edge_score": 90, + "hist_win_rate": 0.5088, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "小阴十字星(实体 0.2×ATR,收在下半区,上影 30%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0634, + "push": true, + "impact_pts": 3, + "text": "量价实体匹配 +0.44(放量上涨,量价配合)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0344, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 30%(上方压力有限)" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0185, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.56 倍(缩量)" + } + ] + }, + { + "day": "T+10", + "date": "2024-10-22", + "open": 1415.975, + "high": 1447.159, + "low": 1413.785, + "close": 1431.224, + "volume": 3626913, + "ema20": 1408.182, + "change_from_t0_pct": -0.1045, + "bullish_edge_score": 79, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在中位犹豫,上影 48%)", + "top3_shap": [ + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": -0.0207, + "push": false, + "impact_pts": -2, + "text": "量能为前 20 日均量 0.49 倍(缩量)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0198, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 48%(上方被明显拒绝,抛压重)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0188, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA +1.74 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+11", + "date": "2024-10-23", + "open": 1432.253, + "high": 1462.714, + "low": 1421.02, + "close": 1453.949, + "volume": 4008846, + "ema20": 1412.541, + "change_from_t0_pct": -0.0902, + "bullish_edge_score": 65, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "小阳十字星(实体 0.4×ATR,收在上半区)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0252, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA +1.74 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": 0.0238, + "push": true, + "impact_pts": 2, + "text": "近 5 日 K 线重叠率 50%(重叠中等)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0227, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 21%(上方压力有限)" + } + ] + }, + { + "day": "T+12", + "date": "2024-10-24", + "open": 1447.92, + "high": 1460.906, + "low": 1433.088, + "close": 1439.757, + "volume": 2392280, + "ema20": 1415.133, + "change_from_t0_pct": -0.0991, + "bullish_edge_score": 78, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在下半区,上影 47%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0904, + "push": true, + "impact_pts": 4, + "text": "量价实体匹配 +0.67(放量上涨,量价配合)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0389, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.28 倍 ATR(大盘顺风)" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0315, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -0.507 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+13", + "date": "2024-10-25", + "open": 1434.934, + "high": 1460.711, + "low": 1434.016, + "close": 1445.925, + "volume": 2774508, + "ema20": 1418.066, + "change_from_t0_pct": -0.0953, + "bullish_edge_score": 62, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在中位犹豫,上影 55%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0289, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.42 倍 ATR(大盘顺风)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0217, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.019, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -0.526 ATR/日(推动力衰减,楔形/衰竭前兆)" + } + ] + }, + { + "day": "T+14", + "date": "2024-10-28", + "open": 1446.992, + "high": 1451.63, + "low": 1411.958, + "close": 1451.63, + "volume": 3912140, + "ema20": 1421.262, + "change_from_t0_pct": -0.0917, + "bullish_edge_score": 47, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长下影承接棒(Pin Bar)(实体 0.1×ATR,收在最高点附近,下影 88%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0297, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.40 倍 ATR(大盘顺风)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0217, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +0.31 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0192, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+15", + "date": "2024-10-29", + "open": 1446.992, + "high": 1465.543, + "low": 1419.165, + "close": 1420.668, + "volume": 4116578, + "ema20": 1421.206, + "change_from_t0_pct": -0.1111, + "bullish_edge_score": 82, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "中阴棒(实体 0.4×ATR,收在最低点附近,上影 40%)", + "top3_shap": [ + { + "name_cn": "推次斜率衰减", + "feature": "pa_wave_slope_decay", + "shap": -0.0399, + "push": false, + "impact_pts": -2, + "text": "推次斜率衰减 -0.391 ATR/日(推动力衰减,楔形/衰竭前兆)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": 0.0356, + "push": true, + "impact_pts": 2, + "text": "收盘位置强度 3%(收在当日最低附近,空方掌握收盘权)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.027, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 3%(下方承接一般)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2024-10-08", + "candle": "大阴趋势棒(实体 2.8×ATR,收在最低点附近)", + "signal": "近 25 日暴涨 +38.3% 极度远离 20EMA,T0 在高位爆出 3.8 倍量能与分歧影线(开局持有 70% 获利老仓)。", + "hypothesis": "战场定性:多头抢购高潮(Buy Climax)· 获利盘随时踩踏兑现", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 76, + "ai_position_pct": 30 + }, + "pivots": [ + { + "day": "T+1", + "date": "2024-10-09", + "candle": "大阴趋势棒(实体 1.6×ATR,收在最低点附近)", + "signal": "胜负手定格:T+1 阴棒击穿 T0 低点 1558.47,顶部派发瀑布开启", + "verdict": "原假设确认成立", + "change_from_t0_pct": -0.0742, + "bullish_edge_score": 76, + "ai_position_pct": 30 + } + ], + "summary": "15 个交易日收盘累计 -11.1%(期间最高 -1.3% / 最低 -14.2%)。", + "confirm_rule": "阴线收盘跌破 T0 高潮棒低点 1558.47(见顶派发确认,应果断逃顶清仓)", + "invalidate_rule": "缩量守住 1558.47 并放量向上突破 T0 高点 1771.64(强势洗盘续涨)" + } + }, + { + "id": "601318.SH|2026-01-06|climax_wedge_top", + "code": "601318.SH", + "name": "中国平安", + "date": "2026-01-06", + "year": 2026, + "segment": "样本外测试段", + "motif": "climax_wedge_top", + "motif_cn": "高位加速 · 抢购高潮逃顶 vs 旗形洗盘", + "outcome": "success", + "outcome_cn": "见顶派发成立:跌破高潮棒低点大回撤", + "thesis": "高位抢购高潮后跌破分歧棒低点,果断清掉 70% 老仓锁住利润。", + "initial_position_pct": 70, + "initial_position_note": "高位逃顶特训局:开局默认持有 70% 获利老仓(T0 当日即可减仓或清仓)", + "teaching_note": "高位持仓锁利铁律:大涨远离 20EMA 后出现放量长上影或高位巨震,先减仓 30%~40% 落袋;一旦次日跌破该分歧棒最低点,清掉剩余仓位果断逃顶。", + "atr": 1.736, + "close0": 70.656, + "levels": { + "box_high": 71.188, + "box_low": 55.283, + "ema20_t0": 64.667, + "support_20d": 58.943, + "resistance_20d": 71.188, + "support_60d": 50.984, + "resistance_60d": 71.188 + }, + "forward": { + "close0": 70.6558, + "atr": 1.7355547088308394, + "ret15": -0.12123279334463688, + "max_up_pct": 0.005112106861715482, + "max_dn_pct": -0.14343479233127365, + "max_up_atr": 0.208, + "max_dn_atr": 5.839, + "fwd_range_atr": 6.047, + "fwd_range_pct": 0.1485, + "close_chg_15d": -0.1212, + "max_high": 71.017, + "min_low": 60.521 + }, + "quality": { + "score": 0.7518, + "structure_score": 0.7518, + "range_atr": 6.047, + "range_pct": 0.1485 + }, + "setup": { + "text": "近 25 日暴涨 +27.8% 极度远离 20EMA,T0 在高位爆出 1.8 倍量能与分歧影线(开局持有 70% 获利老仓)。", + "confirm_rule": "阴线收盘跌破 T0 高潮棒低点 68.83(见顶派发确认,应果断逃顶清仓)", + "invalidate_rule": "缩量守住 68.83 并放量向上突破 T0 高点 71.19(强势洗盘续涨)" + }, + "drawings": { + "lines": [ + { + "id": "climax_run", + "label": "前期急涨波段 (+28%)", + "color": "#D9383A", + "style": "dashed", + "width": 2, + "step": 1, + "points": [ + { + "barIndex": 37, + "price": 55.283 + }, + { + "barIndex": 59, + "price": 71.188 + } + ] + }, + { + "id": "top_hi", + "label": "T0 高点(续涨突破位 71.19)", + "color": "#2C48CE", + "style": "dashed", + "width": 1, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 71.188 + }, + { + "barIndex": 74, + "price": 71.188 + } + ] + }, + { + "id": "top_lo", + "label": "T0 低点(派发破位线 68.83)", + "color": "#0FA070", + "style": "solid", + "width": 2, + "step": 2, + "points": [ + { + "barIndex": 57, + "price": 68.83 + }, + { + "barIndex": 74, + "price": 68.83 + } + ] + } + ], + "markers": [ + { + "barIndex": 59, + "pos": "aboveBar", + "color": "#B08125", + "shape": "circle", + "text": "① T0 高位巨震分歧", + "step": 1 + }, + { + "barIndex": 61, + "pos": "aboveBar", + "color": "#0FA070", + "shape": "arrowDown", + "text": "② T+2 破颈线·派发确认", + "step": 2 + } + ] + }, + "walkthrough": { + "cycle_tag": "抢购高潮 / 高位分歧", + "skill_key": "climax_protect", + "frame1": { + "title": "战场定性:多头抢购高潮(Buy Climax)· 获利盘随时踩踏兑现", + "body": "本关开局你手握 70% 丰厚获利老仓。股价短期狂飙 +27.8% 后远远甩开蓝色 20EMA,T0 出现巨量上影/高位滞涨——在 Al Brooks 体系中这叫【抢购高潮衰竭】。此时最后一批散户正在疯狂追高,而机构主力开始借流动性分批派发。最佳策略是先减仓锁住部分利润,紧盯 T0 低点 68.83 得失。", + "focus_range": [ + 18, + 60 + ], + "theory_key": "bars" + }, + "frame2": { + "title": "胜负手定格:T+2 阴棒击穿 T0 低点 68.83,顶部派发瀑布开启", + "body": "T+2 收出 大阴趋势棒(实体 1.6×ATR,收在最低点附近),直接跌穿高潮棒低点防线(68.83),宣告高位买盘枯竭、空头正式接管!随后股价一路回撤至 60.52(15 日下跌 -12.1%)。在 T0~T+2 及时分批减至空仓,就能完美保住前期胜利果实,拒绝满仓坐电梯。", + "focus_range": [ + 36, + 74 + ], + "key_day_index": 2, + "key_bar_index": 61, + "confirm_rule": "阴线收盘跌破 T0 高潮棒低点 68.83(见顶派发确认,应果断逃顶清仓)", + "invalidate_rule": "缩量守住 68.83 并放量向上突破 T0 高点 71.19(强势洗盘续涨)", + "theory_key": "follow" + }, + "frame4": { + "skill_key": "climax_protect", + "takeaway": "高位持仓锁利铁律:大涨远离 20EMA 后出现放量长上影或高位巨震,先减仓 30%~40% 落袋;一旦次日跌破该分歧棒最低点,清掉剩余仓位果断逃顶。", + "theory_key": "equation" + } + }, + "past": { + "dates": [ + "2025-10-13", + "2025-10-14", + "2025-10-15", + "2025-10-16", + "2025-10-17", + "2025-10-20", + "2025-10-21", + "2025-10-22", + "2025-10-23", + "2025-10-24", + "2025-10-27", + "2025-10-28", + "2025-10-29", + "2025-10-30", + "2025-10-31", + "2025-11-03", + "2025-11-04", + "2025-11-05", + "2025-11-06", + "2025-11-07", + "2025-11-10", + "2025-11-11", + "2025-11-12", + "2025-11-13", + "2025-11-14", + "2025-11-17", + "2025-11-18", + "2025-11-19", + "2025-11-20", + "2025-11-21", + "2025-11-24", + "2025-11-25", + "2025-11-26", + "2025-11-27", + "2025-11-28", + "2025-12-01", + "2025-12-02", + "2025-12-03", + "2025-12-04", + "2025-12-05", + "2025-12-08", + "2025-12-09", + "2025-12-10", + "2025-12-11", + "2025-12-12", + "2025-12-15", + "2025-12-16", + "2025-12-17", + "2025-12-18", + "2025-12-19", + "2025-12-22", + "2025-12-23", + "2025-12-24", + "2025-12-25", + "2025-12-26", + "2025-12-29", + "2025-12-30", + "2025-12-31", + "2026-01-05", + "2026-01-06" + ], + "o": [ + 50.984, + 51.985, + 52.827, + 53.95, + 54.249, + 54.557, + 54.183, + 54.249, + 54.455, + 55.273, + 55.14, + 54.941, + 55.711, + 56.376, + 56.082, + 55.397, + 55.473, + 55.521, + 55.473, + 55.882, + 55.949, + 56.376, + 56.376, + 57.318, + 57.85, + 57.698, + 56.728, + 56.852, + 57.612, + 57.042, + 56.243, + 55.787, + 56.719, + 56.566, + 56.291, + 56.005, + 55.901, + 55.853, + 55.473, + 55.758, + 58.981, + 60.274, + 59.571, + 59.704, + 59.476, + 60.54, + 63.421, + 63.744, + 64.533, + 64.79, + 65.313, + 65.18, + 65.76, + 65.598, + 66.967, + 67.499, + 66.311, + 65.389, + 65.788, + 68.83 + ], + "h": [ + 51.752, + 53.014, + 54.221, + 54.791, + 54.698, + 54.782, + 55.109, + 54.716, + 55.062, + 55.606, + 55.511, + 55.359, + 56.757, + 57.137, + 56.082, + 55.806, + 56.215, + 55.939, + 56.357, + 56.234, + 56.471, + 56.566, + 57.793, + 58.354, + 59.2, + 57.992, + 57.184, + 58.107, + 58.135, + 57.137, + 56.281, + 56.871, + 57.251, + 56.785, + 56.367, + 56.262, + 56.471, + 56.11, + 55.663, + 59.133, + 60.654, + 60.55, + 59.951, + 60.236, + 60.93, + 64.115, + 64.752, + 65.246, + 65.199, + 65.389, + 65.855, + 66.777, + 65.959, + 68.431, + 68.412, + 68.127, + 66.767, + 65.817, + 69.401, + 71.188 + ], + "l": [ + 50.984, + 51.929, + 52.659, + 53.884, + 53.472, + 53.734, + 54.183, + 54.183, + 54.333, + 54.903, + 54.665, + 54.779, + 55.606, + 55.692, + 54.95, + 55.007, + 55.331, + 55.064, + 55.464, + 55.768, + 55.559, + 55.91, + 56.376, + 57.318, + 57.66, + 56.528, + 56.547, + 56.766, + 57.07, + 55.977, + 55.473, + 55.359, + 56.395, + 55.806, + 55.625, + 55.53, + 55.568, + 55.283, + 55.34, + 55.663, + 58.943, + 59.343, + 59.067, + 59.105, + 59.333, + 60.388, + 62.898, + 63.364, + 64.258, + 64.267, + 64.838, + 64.98, + 64.98, + 65.579, + 66.958, + 66.349, + 65.018, + 64.79, + 65.788, + 68.83 + ], + "c": [ + 51.536, + 52.827, + 54.071, + 54.267, + 53.575, + 54.155, + 54.324, + 54.445, + 54.95, + 55.026, + 54.903, + 54.912, + 56.044, + 55.758, + 54.979, + 55.435, + 56.034, + 55.445, + 55.996, + 55.986, + 56.376, + 56.281, + 57.07, + 57.878, + 57.66, + 56.88, + 56.681, + 57.394, + 57.232, + 56.005, + 55.521, + 56.538, + 56.833, + 56.414, + 56.082, + 55.739, + 55.901, + 55.473, + 55.663, + 58.934, + 60.274, + 59.371, + 59.466, + 59.447, + 60.759, + 63.773, + 63.697, + 64.695, + 65.123, + 65.36, + 65.161, + 66.064, + 65.627, + 67.309, + 67.652, + 66.435, + 65.408, + 65.028, + 68.792, + 70.656 + ], + "v": [ + 60970000, + 102290000, + 83700000, + 68150000, + 67750000, + 52670000, + 76220000, + 37990000, + 50350000, + 55820000, + 68500000, + 49130000, + 104440000, + 74570000, + 57250000, + 41140000, + 51810000, + 40220000, + 54730000, + 37190000, + 52950000, + 36250000, + 149020000, + 89020000, + 75270000, + 56020000, + 44570000, + 70590000, + 39450000, + 68560000, + 53470000, + 48780000, + 43470000, + 50570000, + 43360000, + 44580000, + 37380000, + 33550000, + 21770000, + 137790000, + 103000000, + 48370000, + 44880000, + 47800000, + 109180000, + 154660000, + 105680000, + 96210000, + 56360000, + 63850000, + 55690000, + 76570000, + 51130000, + 77790000, + 65700000, + 65570000, + 104670000, + 45810000, + 122880000, + 146850000 + ], + "ema20": [ + 52.465, + 52.499, + 52.649, + 52.803, + 52.877, + 52.998, + 53.125, + 53.25, + 53.412, + 53.566, + 53.693, + 53.809, + 54.022, + 54.188, + 54.263, + 54.375, + 54.533, + 54.619, + 54.751, + 54.868, + 55.012, + 55.133, + 55.317, + 55.561, + 55.761, + 55.868, + 55.945, + 56.083, + 56.192, + 56.175, + 56.112, + 56.153, + 56.218, + 56.236, + 56.222, + 56.176, + 56.15, + 56.085, + 56.045, + 56.32, + 56.697, + 56.951, + 57.191, + 57.406, + 57.725, + 58.301, + 58.815, + 59.375, + 59.922, + 60.44, + 60.89, + 61.383, + 61.787, + 62.313, + 62.821, + 63.165, + 63.379, + 63.536, + 64.037, + 64.667 + ] + }, + "future": { + "dates": [ + "2026-01-07", + "2026-01-08", + "2026-01-09", + "2026-01-12", + "2026-01-13", + "2026-01-14", + "2026-01-15", + "2026-01-16", + "2026-01-19", + "2026-01-20", + "2026-01-21", + "2026-01-22", + "2026-01-23", + "2026-01-26", + "2026-01-27" + ], + "o": [ + 70.247, + 69.753, + 67.119, + 65.503, + 64.457, + 64.98, + 63.602, + 64.267, + 63.012, + 63.079, + 63.354, + 62.87, + 61.985, + 60.845, + 61.139 + ], + "h": [ + 71.017, + 69.781, + 67.766, + 65.598, + 66.53, + 65.531, + 65.009, + 64.59, + 63.649, + 64.429, + 63.868, + 63.297, + 62.252, + 62.984, + 63.079 + ], + "l": [ + 69.677, + 66.225, + 64.876, + 63.906, + 64.438, + 63.526, + 63.402, + 62.556, + 62.66, + 62.851, + 62.413, + 61.339, + 60.521, + 60.626, + 61.101 + ], + "c": [ + 69.829, + 66.91, + 65.598, + 64.22, + 64.838, + 63.697, + 64.087, + 63.06, + 63.031, + 63.316, + 62.603, + 61.605, + 60.749, + 60.978, + 62.09 + ], + "v": [ + 91970000, + 168540000, + 206330000, + 185170000, + 150220000, + 143110000, + 106660000, + 135610000, + 83870000, + 98850000, + 93540000, + 114390000, + 140770000, + 201380000, + 150880000 + ], + "ema20": [ + 65.159, + 65.325, + 65.351, + 65.244, + 65.205, + 65.061, + 64.968, + 64.787, + 64.619, + 64.495, + 64.315, + 64.057, + 63.742, + 63.479, + 63.347 + ] + }, + "daily": [ + { + "day": "T0", + "date": "2026-01-06", + "open": 68.83, + "high": 71.188, + "low": 68.83, + "close": 70.656, + "volume": 146850000, + "ema20": 64.667, + "change_from_t0_pct": 0.0, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "大阳趋势棒(实体 1.1×ATR,收在上半区)", + "top3_shap": [ + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": -0.0509, + "push": false, + "impact_pts": -2, + "text": "20EMA 斜率 +1.06 倍 ATR/5日(中期趋势向上)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": 0.0443, + "push": true, + "impact_pts": 2, + "text": "沪深300 相对 20EMA +2.94 倍 ATR(大盘顺风)" + }, + { + "name_cn": "2 日多头跟随", + "feature": "pa_ft2_bull", + "shap": 0.0374, + "push": true, + "impact_pts": 2, + "text": "近 2 日净多头实体 +1.42 倍 ATR(有跟随)" + } + ] + }, + { + "day": "T+1", + "date": "2026-01-07", + "open": 70.247, + "high": 71.017, + "low": 69.677, + "close": 69.829, + "volume": 91970000, + "ema20": 65.159, + "change_from_t0_pct": -0.0117, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在最低点附近,上影 57%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0278, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0261, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + }, + { + "name_cn": "量能倍数", + "feature": "pa_vol_ratio20", + "shap": 0.0224, + "push": true, + "impact_pts": 2, + "text": "量能为前 20 日均量 1.12 倍(量能平稳)" + } + ] + }, + { + "day": "T+2", + "date": "2026-01-08", + "open": 69.753, + "high": 69.781, + "low": 66.225, + "close": 66.91, + "volume": 168540000, + "ema20": 65.325, + "change_from_t0_pct": -0.053, + "bullish_edge_score": 84, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "大阴趋势棒(实体 1.6×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0403, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0401, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 1%(上方压力有限)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0208, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+3", + "date": "2026-01-09", + "open": 67.119, + "high": 67.766, + "low": 64.876, + "close": 65.598, + "volume": 206330000, + "ema20": 65.351, + "change_from_t0_pct": -0.0716, + "bullish_edge_score": 89, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 70, + "candle": "大阴趋势棒(实体 0.9×ATR,收在下半区)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": 0.0436, + "push": true, + "impact_pts": 2, + "text": "近 5 日强多头棒 2 根(买盘一般)" + }, + { + "name_cn": "高潮衰竭度", + "feature": "pa_climax_exhaustion", + "shap": 0.0234, + "push": true, + "impact_pts": 2, + "text": "高潮衰竭度 +0.58(恐慌抛售高潮,反转倾向)" + }, + { + "name_cn": "三推楔形", + "feature": "pa_three_push_wedge", + "shap": 0.0225, + "push": true, + "impact_pts": 2, + "text": "无三推楔形" + } + ] + }, + { + "day": "T+4", + "date": "2026-01-12", + "open": 65.503, + "high": 65.598, + "low": 63.906, + "close": 64.22, + "volume": 185170000, + "ema20": 65.244, + "change_from_t0_pct": -0.0911, + "bullish_edge_score": 50, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阴棒(实体 0.7×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0385, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +2.08 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0241, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 6%(上方压力有限)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0168, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 1 根(买盘一般)" + } + ] + }, + { + "day": "T+5", + "date": "2026-01-13", + "open": 64.457, + "high": 66.53, + "low": 64.438, + "close": 64.838, + "volume": 150220000, + "ema20": 65.205, + "change_from_t0_pct": -0.0823, + "bullish_edge_score": 83, + "hist_win_rate": 0.4874, + "base_win_rate": 0.47, + "ai_position_pct": 50, + "candle": "长上影拒绝棒(流星线)(实体 0.2×ATR,收在最低点附近,上影 81%)", + "top3_shap": [ + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.0475, + "push": true, + "impact_pts": 2, + "text": "量价实体匹配 +0.47(放量上涨,量价配合)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": -0.0356, + "push": false, + "impact_pts": -2, + "text": "近 3 日净多头实体 -0.42 倍 ATR(空头主导)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0332, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +1.34 倍 ATR(大盘顺风)" + } + ] + }, + { + "day": "T+6", + "date": "2026-01-14", + "open": 64.98, + "high": 65.531, + "low": 63.526, + "close": 63.697, + "volume": 143110000, + "ema20": 65.061, + "change_from_t0_pct": -0.0985, + "bullish_edge_score": 73, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 20, + "candle": "中阴棒(实体 0.7×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0243, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0231, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.87 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0224, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 27%(上方压力有限)" + } + ] + }, + { + "day": "T+7", + "date": "2026-01-15", + "open": 63.602, + "high": 65.009, + "low": 63.402, + "close": 64.087, + "volume": 106660000, + "ema20": 64.968, + "change_from_t0_pct": -0.093, + "bullish_edge_score": 65, + "hist_win_rate": 0.4709, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.3×ATR,收在中位犹豫,上影 57%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0236, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0214, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.94 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日 K 线重叠率", + "feature": "pa_overlap5", + "shap": -0.0143, + "push": false, + "impact_pts": -2, + "text": "近 5 日 K 线重叠率 42%(重叠中等)" + } + ] + }, + { + "day": "T+8", + "date": "2026-01-16", + "open": 64.267, + "high": 64.59, + "low": 62.556, + "close": 63.06, + "volume": 135610000, + "ema20": 64.787, + "change_from_t0_pct": -0.1075, + "bullish_edge_score": 62, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阴棒(实体 0.7×ATR,收在下半区)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0493, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.54 倍 ATR(大盘顺风)" + }, + { + "name_cn": "收盘位置强度", + "feature": "pa_close_pos", + "shap": 0.022, + "push": true, + "impact_pts": 2, + "text": "收盘位置强度 25%(收在当日最低附近,空方掌握收盘权)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0165, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 16%(上方压力有限)" + } + ] + }, + { + "day": "T+9", + "date": "2026-01-19", + "open": 63.012, + "high": 63.649, + "low": 62.66, + "close": 63.031, + "volume": 83870000, + "ema20": 64.619, + "change_from_t0_pct": -0.1079, + "bullish_edge_score": 55, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "长上影拒绝棒(流星线)(实体 0.0×ATR,收在下半区,上影 62%、下影 36%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0746, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +0.53 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0298, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0183, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 -0.21(量价背离度低)" + } + ] + }, + { + "day": "T+10", + "date": "2026-01-20", + "open": 63.079, + "high": 64.429, + "low": 62.851, + "close": 63.316, + "volume": 98850000, + "ema20": 64.495, + "change_from_t0_pct": -0.1039, + "bullish_edge_score": 78, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 40, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在下半区,上影 70%)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0308, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0298, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.25 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0185, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 70%(上方被明显拒绝,抛压重)" + } + ] + }, + { + "day": "T+11", + "date": "2026-01-21", + "open": 63.354, + "high": 63.868, + "low": 62.413, + "close": 62.603, + "volume": 93540000, + "ema20": 64.315, + "change_from_t0_pct": -0.114, + "bullish_edge_score": 56, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阴棒(实体 0.4×ATR,收在最低点附近,上影 35%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0617, + "push": false, + "impact_pts": -3, + "text": "沪深300 相对 20EMA +0.29 倍 ATR(大盘顺风)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0344, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": -0.0174, + "push": false, + "impact_pts": -2, + "text": "量价实体匹配 +0.14(量价背离度低)" + } + ] + }, + { + "day": "T+12", + "date": "2026-01-22", + "open": 62.87, + "high": 63.297, + "low": 61.339, + "close": 61.605, + "volume": 114390000, + "ema20": 64.057, + "change_from_t0_pct": -0.1281, + "bullish_edge_score": 60, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阴棒(实体 0.7×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0332, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA +0.27 倍 ATR(大盘顺风)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": -0.0264, + "push": false, + "impact_pts": -2, + "text": "上影线占振幅 22%(上方压力有限)" + }, + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0214, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + } + ] + }, + { + "day": "T+13", + "date": "2026-01-23", + "open": 61.985, + "high": 62.252, + "low": 60.521, + "close": 60.749, + "volume": 140770000, + "ema20": 63.742, + "change_from_t0_pct": -0.1402, + "bullish_edge_score": 52, + "hist_win_rate": 0.4676, + "base_win_rate": 0.47, + "ai_position_pct": 0, + "candle": "中阴棒(实体 0.7×ATR,收在最低点附近)", + "top3_shap": [ + { + "name_cn": "5 日强多头棒数", + "feature": "pa_bull_bar_count5", + "shap": -0.0243, + "push": false, + "impact_pts": -2, + "text": "近 5 日强多头棒 0 根(几乎无强多头棒)" + }, + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0205, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.08 倍 ATR(大盘逆风)" + }, + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": -0.0196, + "push": false, + "impact_pts": -2, + "text": "近 3 日净多头实体 -0.60 倍 ATR(空头主导)" + } + ] + }, + { + "day": "T+14", + "date": "2026-01-26", + "open": 60.845, + "high": 62.984, + "low": 60.626, + "close": 60.978, + "volume": 201380000, + "ema20": 63.479, + "change_from_t0_pct": -0.137, + "bullish_edge_score": 77, + "hist_win_rate": 0.4758, + "base_win_rate": 0.47, + "ai_position_pct": 30, + "candle": "长上影拒绝棒(流星线)(实体 0.1×ATR,收在最低点附近,上影 85%)", + "top3_shap": [ + { + "name_cn": "3 日多头跟随", + "feature": "pa_ft3_bull", + "shap": -0.0596, + "push": false, + "impact_pts": -3, + "text": "近 3 日净多头实体 -0.44 倍 ATR(空头主导)" + }, + { + "name_cn": "量价实体匹配", + "feature": "pa_vol_body_align", + "shap": 0.057, + "push": true, + "impact_pts": 3, + "text": "量价实体匹配 +0.72(放量上涨,量价配合)" + }, + { + "name_cn": "上影线抛压", + "feature": "pa_upper_shadow", + "shap": 0.0308, + "push": true, + "impact_pts": 2, + "text": "上影线占振幅 85%(上方被明显拒绝,抛压重)" + } + ] + }, + { + "day": "T+15", + "date": "2026-01-27", + "open": 61.139, + "high": 63.079, + "low": 61.101, + "close": 62.09, + "volume": 150880000, + "ema20": 63.347, + "change_from_t0_pct": -0.1212, + "bullish_edge_score": 85, + "hist_win_rate": 0.5046, + "base_win_rate": 0.47, + "ai_position_pct": 60, + "candle": "长上影拒绝棒(流星线)(实体 0.5×ATR,收在中位犹豫,上影 50%)", + "top3_shap": [ + { + "name_cn": "大盘顺逆风", + "feature": "pa_mkt_ema20_state", + "shap": -0.0301, + "push": false, + "impact_pts": -2, + "text": "沪深300 相对 20EMA -0.02 倍 ATR(大盘逆风)" + }, + { + "name_cn": "下影线承接", + "feature": "pa_lower_shadow", + "shap": 0.0296, + "push": true, + "impact_pts": 2, + "text": "下影线占振幅 2%(下方承接一般)" + }, + { + "name_cn": "20EMA 斜率", + "feature": "pa_ema20_slope_atr", + "shap": 0.0269, + "push": true, + "impact_pts": 2, + "text": "20EMA 斜率 -0.61 倍 ATR/5日(中期趋势走弱)" + } + ] + } + ], + "key_bars": { + "setup": { + "day": "T0", + "date": "2026-01-06", + "candle": "大阳趋势棒(实体 1.1×ATR,收在上半区)", + "signal": "近 25 日暴涨 +27.8% 极度远离 20EMA,T0 在高位爆出 1.8 倍量能与分歧影线(开局持有 70% 获利老仓)。", + "hypothesis": "战场定性:多头抢购高潮(Buy Climax)· 获利盘随时踩踏兑现", + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": 85, + "ai_position_pct": 60 + }, + "pivots": [ + { + "day": "T+2", + "date": "2026-01-08", + "candle": "大阴趋势棒(实体 1.6×ATR,收在最低点附近)", + "signal": "胜负手定格:T+2 阴棒击穿 T0 低点 68.83,顶部派发瀑布开启", + "verdict": "原假设确认成立", + "change_from_t0_pct": -0.053, + "bullish_edge_score": 84, + "ai_position_pct": 50 + } + ], + "summary": "15 个交易日收盘累计 -12.1%(期间最高 +0.5% / 最低 -14.3%)。", + "confirm_rule": "阴线收盘跌破 T0 高潮棒低点 68.83(见顶派发确认,应果断逃顶清仓)", + "invalidate_rule": "缩量守住 68.83 并放量向上突破 T0 高点 71.19(强势洗盘续涨)" + } + } + ] +} \ No newline at end of file diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/node/data/hs300.csv b/plugins/alphamao1/kline-intuition-lab/miniapp/node/data/hs300.csv new file mode 100644 index 00000000..30779b9d --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/node/data/hs300.csv @@ -0,0 +1,1232 @@ +日期,开盘价,最高价,最低价,收盘价,成交量(股),涨跌幅(%),成交额(元),复权因子 +2021-11-01,4878.1276,4908.2056,4858.2485,4890.6851,17158400000,-0.3684,379730770000, +2021-11-02,4886.1849,4911.2266,4797.8990,4839.8457,18543770000,-1.0395,385731880000, +2021-11-03,4835.8093,4858.7133,4804.3657,4821.1119,14276380000,-0.3871,302269930000, +2021-11-04,4841.0912,4873.9394,4834.7433,4868.7419,13259300000,0.9879,308688050000, +2021-11-05,4858.8999,4889.6835,4841.7442,4842.3458,14778940000,-0.5422,312070840000, +2021-11-08,4841.1527,4866.0822,4827.6892,4848.1795,13739830000,0.1205,295893820000, +2021-11-09,4858.2525,4870.7905,4818.5386,4846.7444,11837550000,-0.0296,261645070000, +2021-11-10,4832.8006,4832.8006,4753.9959,4821.1925,13511820000,-0.5272,301058970000, +2021-11-11,4814.7655,4898.6529,4809.1109,4898.6529,16048490000,1.6067,323624630000, +2021-11-12,4902.9289,4909.0839,4875.3492,4888.3749,13266300000,-0.2098,271773240000, +2021-11-15,4894.4119,4906.3301,4863.3960,4882.3777,12182310000,-0.1227,272997750000, +2021-11-16,4880.8964,4915.3717,4876.5004,4883.3206,12725440000,0.0193,284094590000, +2021-11-17,4883.2481,4891.5232,4864.5198,4885.7544,10845920000,0.0498,246177920000, +2021-11-18,4871.4216,4871.4216,4830.4123,4837.6185,11448060000,-0.9852,244484710000, +2021-11-19,4832.0595,4892.8093,4829.5665,4890.0575,12719830000,1.0840,266280680000, +2021-11-22,4895.3875,4918.9957,4893.2732,4912.3990,13809280000,0.4569,316148810000, +2021-11-23,4905.7587,4927.5211,4896.8781,4913.3457,15430440000,0.0193,301022150000, +2021-11-24,4914.0266,4935.4885,4899.6112,4916.6579,13715070000,0.0674,289707340000, +2021-11-25,4917.6055,4921.3333,4891.7280,4896.4416,11598400000,-0.4112,255450990000, +2021-11-26,4886.9516,4886.9516,4850.8114,4860.1265,12036900000,-0.7417,243041340000, +2021-11-29,4820.0053,4858.5322,4818.7058,4851.4230,13362690000,-0.1791,285995220000, +2021-11-30,4857.1830,4871.2528,4810.2192,4832.0260,12963060000,-0.3998,279268230000, +2021-12-01,4831.8885,4844.5242,4823.9254,4843.8510,12308680000,0.2447,255968910000, +2021-12-02,4839.9137,4866.8505,4830.3228,4856.1630,14808850000,0.2542,278051730000, +2021-12-03,4856.9802,4901.0175,4853.3505,4901.0175,14405960000,0.9237,300052700000, +2021-12-06,4909.4292,4943.9032,4888.6927,4892.6209,17361570000,-0.1713,333405790000, +2021-12-07,4930.8261,4934.0973,4895.2178,4922.1015,17905350000,0.6026,340617770000, +2021-12-08,4934.4056,4995.9298,4915.7898,4995.9298,15749060000,1.4999,329064830000, +2021-12-09,5000.6871,5114.5012,4999.4097,5078.6901,22056880000,1.6566,425680960000, +2021-12-10,5046.2677,5060.0554,5035.8087,5055.1172,19369520000,-0.4642,356917630000, +2021-12-13,5090.0207,5143.8410,5079.7276,5083.8007,21180160000,0.5674,426376530000, +2021-12-14,5066.3497,5075.2138,5038.8583,5049.6953,15910780000,-0.6709,318685540000, +2021-12-15,5036.2840,5060.3680,5003.7776,5005.8991,15052980000,-0.8673,291072570000, +2021-12-16,5006.6105,5034.7321,4987.2247,5034.7321,14405390000,0.5760,291474770000, +2021-12-17,5021.3385,5022.1067,4954.7592,4954.7599,14900540000,-1.5884,297943310000, +2021-12-20,4934.9662,4971.6727,4872.6846,4880.4178,16967570000,-1.5004,317536920000, +2021-12-21,4876.5141,4917.7994,4872.9491,4913.4853,14333990000,0.6776,259023180000, +2021-12-22,4924.5771,4936.6731,4903.1652,4914.4544,13325670000,0.0197,244642450000, +2021-12-23,4924.2912,4948.7389,4906.7473,4948.7389,13955540000,0.6976,263359750000, +2021-12-24,4953.0616,4964.9064,4905.9785,4921.3449,14267330000,-0.5536,290483660000, +2021-12-27,4918.1462,4939.6890,4894.1598,4919.3238,12410100000,-0.0411,254421530000, +2021-12-28,4923.6917,4959.1448,4913.5983,4955.9644,13045780000,0.7448,276316730000, +2021-12-29,4958.6455,4958.6455,4883.4804,4883.4804,11358700000,-1.4626,273225470000, +2021-12-30,4882.1561,4940.1780,4878.6478,4921.5109,12161720000,0.7788,268022480000, +2021-12-31,4937.4630,4950.3639,4923.1392,4940.3733,12131370000,0.3833,266975390000, +2022-01-04,4957.9835,4961.4527,4874.5337,4917.7653,15153480000,-0.4576,336516960000, +2022-01-05,4907.9347,4916.2822,4851.9835,4868.1202,17881610000,-1.0095,363944530000, +2022-01-06,4842.1560,4857.5596,4786.4330,4818.2318,15766580000,-1.0248,321750080000, +2022-01-07,4824.3181,4856.6522,4818.1931,4822.3689,18713940000,0.0859,332218950000, +2022-01-10,4812.2300,4844.3928,4780.8191,4844.0451,15621170000,0.4495,305033820000, +2022-01-11,4840.0087,4850.8790,4791.8854,4797.7735,14692800000,-0.9552,286445760000, +2022-01-12,4818.8902,4852.7314,4810.9190,4845.5787,14320020000,0.9964,293153040000, +2022-01-13,4853.0314,4853.0632,4765.2416,4765.9191,14251970000,-1.6440,288799120000, +2022-01-14,4743.9124,4764.0522,4723.9428,4726.7317,14686310000,-0.8222,281828450000, +2022-01-17,4728.7595,4775.2385,4726.7083,4767.2762,11529570000,0.8578,263788240000, +2022-01-18,4766.7811,4826.3003,4747.9200,4813.3472,15087080000,0.9664,282749390000, +2022-01-19,4815.8106,4828.7522,4755.9301,4780.3784,13392740000,-0.6849,275534560000, +2022-01-20,4778.2616,4845.0048,4777.5683,4823.5091,16497130000,0.9022,304344270000, +2022-01-21,4808.7733,4818.3052,4762.5641,4779.3142,13895260000,-0.9162,274699160000, +2022-01-24,4753.9413,4801.0976,4746.4479,4786.7377,11446390000,0.1553,246261590000, +2022-01-25,4761.9500,4781.3908,4678.2472,4678.4511,13366760000,-2.2622,250555770000, +2022-01-26,4697.0991,4718.9946,4648.1283,4712.3109,10707080000,0.7237,226553450000, +2022-01-27,4708.0989,4708.4364,4616.0273,4619.8765,12126380000,-1.9616,250535650000, +2022-01-28,4641.8137,4660.5190,4559.8331,4563.7720,12648010000,-1.2144,263967890000, +2022-02-07,4638.5754,4672.6535,4615.0052,4634.0899,14484970000,1.5408,266031790000, +2022-02-08,4626.4365,4626.4365,4522.4709,4608.7729,15583070000,-0.5463,281364870000, +2022-02-09,4608.1491,4659.4611,4595.2826,4652.0609,14833550000,0.9393,273771960000, +2022-02-10,4657.2107,4657.2107,4608.0905,4639.8625,15157670000,-0.2622,287224390000, +2022-02-11,4617.8741,4662.5963,4595.8751,4601.3953,15597460000,-0.8291,307938020000, +2022-02-14,4579.4202,4593.6324,4530.0566,4551.6878,14367390000,-1.0803,275737550000, +2022-02-15,4553.8112,4601.4530,4550.5430,4600.1025,11502560000,1.0637,249977010000, +2022-02-16,4619.8458,4643.1003,4607.2178,4617.9893,10725900000,0.3888,210190930000, +2022-02-17,4616.8955,4650.1591,4606.9522,4629.1649,11001460000,0.2420,227946250000, +2022-02-18,4604.5669,4651.3415,4598.1003,4651.2358,10455020000,0.4768,195825700000, +2022-02-21,4646.0522,4646.6724,4613.2971,4634.3141,11251650000,-0.3638,215039180000, +2022-02-22,4601.9184,4602.0660,4550.8040,4574.1527,12331720000,-1.2982,246872960000, +2022-02-23,4582.0064,4625.2979,4579.2945,4623.0465,12295290000,1.0689,259050150000, +2022-02-24,4592.0690,4610.8792,4488.4763,4529.3189,18440310000,-2.0274,342346670000, +2022-02-25,4564.6321,4611.8602,4561.8964,4573.4247,14972260000,0.9738,271727600000, +2022-02-28,4563.7427,4581.6459,4530.6764,4581.6459,13540700000,0.1798,248363730000, +2022-03-01,4597.8550,4623.4312,4583.9170,4619.6862,12313920000,0.8303,260431190000, +2022-03-02,4594.0170,4594.0170,4558.4416,4578.6007,11329830000,-0.8894,215299660000, +2022-03-03,4595.0249,4599.3973,4544.4313,4551.6283,13828590000,-0.5891,242701770000, +2022-03-04,4513.3636,4539.3925,4481.4927,4496.4301,12726680000,-1.2127,249970280000, +2022-03-07,4462.5174,4462.5174,4338.3042,4352.7775,16219770000,-3.1948,306898530000, +2022-03-08,4361.6424,4383.6467,4252.5386,4265.3910,16786330000,-2.0076,315176700000, +2022-03-09,4280.9789,4304.4820,4068.1930,4226.3463,19423290000,-0.9154,341009390000, +2022-03-10,4326.2035,4335.6731,4288.5078,4292.8374,14526640000,1.5733,301636180000, +2022-03-11,4231.1961,4316.0440,4176.4522,4306.5217,15239990000,0.3188,295008830000, +2022-03-14,4248.1526,4280.3609,4174.7577,4174.7577,13018720000,-3.0596,260691660000, +2022-03-15,4125.4866,4163.4176,3983.8120,3983.8120,20252470000,-4.5738,346988950000, +2022-03-16,4053.0990,4168.5853,3942.8610,4156.0810,19602200000,4.3242,378883590000, +2022-03-17,4237.6722,4302.7426,4217.8038,4237.6956,17940730000,1.9637,385039200000, +2022-03-18,4218.4736,4283.3679,4194.9402,4265.9017,14945830000,0.6656,275791290000, +2022-03-21,4280.1397,4287.8166,4223.0240,4258.7459,12703640000,-0.1677,251214540000, +2022-03-22,4252.5658,4283.3344,4236.6888,4255.2950,12638250000,-0.0810,226213530000, +2022-03-23,4269.6088,4287.5771,4241.9570,4276.5174,11708910000,0.4987,226390780000, +2022-03-24,4249.5328,4273.9568,4216.8506,4251.3061,10891830000,-0.5895,219594430000, +2022-03-25,4249.0731,4254.8449,4173.9300,4174.5742,10880800000,-1.8049,217013190000, +2022-03-28,4128.8379,4174.1206,4091.2978,4148.4663,11844900000,-0.6254,213468970000, +2022-03-29,4155.4182,4177.2134,4124.7179,4134.1441,10026700000,-0.3452,199463850000, +2022-03-30,4162.1666,4254.0989,4160.7351,4254.0989,13834600000,2.9016,268869180000, +2022-03-31,4234.7159,4247.3602,4214.5352,4222.5968,13402920000,-0.7405,238877220000, +2022-04-01,4198.8191,4290.6710,4190.0835,4276.1580,13380310000,1.2684,244758870000, +2022-04-06,4258.8325,4277.5238,4236.7283,4263.8411,15906220000,-0.2880,253690930000, +2022-04-07,4240.0237,4278.1127,4205.7430,4209.0998,13488040000,-1.2838,216996190000, +2022-04-08,4213.2107,4237.8126,4175.5287,4230.7669,14284380000,0.5148,229081760000, +2022-04-11,4203.7902,4203.7902,4089.0934,4100.0703,14819710000,-3.0892,265224930000, +2022-04-12,4102.9711,4179.9727,4075.7960,4179.9727,14428570000,1.9488,252830410000, +2022-04-13,4154.4121,4194.0374,4139.7370,4139.7370,12509750000,-0.9626,221281030000, +2022-04-14,4172.6443,4217.0612,4155.5509,4191.5684,12479130000,1.2520,245993820000, +2022-04-15,4162.3718,4211.3174,4152.9740,4188.7472,12476230000,-0.0673,226229740000, +2022-04-18,4152.9306,4171.7427,4119.9941,4166.3844,11750460000,-0.5339,212855330000, +2022-04-19,4161.9328,4186.9389,4115.4184,4134.9017,11021750000,-0.7556,208570580000, +2022-04-20,4130.5427,4136.1661,4060.5044,4070.7889,11733170000,-1.5505,216536640000, +2022-04-21,4048.7338,4086.4393,3978.3669,3995.8300,13278380000,-1.8414,227026680000, +2022-04-22,3967.2016,4037.0840,3953.7217,4013.2498,12210180000,0.4359,206371770000, +2022-04-25,3933.4459,3958.2102,3814.9127,3814.9127,16836450000,-4.9421,272889270000, +2022-04-26,3822.4887,3871.8498,3773.8986,3784.1198,15757760000,-0.8072,259626350000, +2022-04-27,3758.0835,3895.7310,3757.0859,3895.5361,17273400000,2.9443,296924100000, +2022-04-28,3883.4196,3943.4349,3873.5781,3921.1073,15305660000,0.6564,268502240000, +2022-04-29,3939.6238,4017.4281,3898.5701,4016.2410,17945840000,2.4262,321414880000, +2022-05-05,3995.3533,4039.7000,3988.9312,4010.2102,15417070000,-0.1502,290538230000, +2022-05-06,3928.8548,3947.2378,3902.0510,3908.8150,12300560000,-2.5284,214825170000, +2022-05-09,3883.9514,3914.1116,3854.9353,3877.4364,9293670000,-0.8028,171756500000, +2022-05-10,3820.6278,3932.6823,3808.5699,3919.8684,13641690000,1.0943,239060210000, +2022-05-11,3917.9322,4033.3026,3916.5249,3976.4231,16563230000,1.4428,309294910000, +2022-05-12,3949.9490,3985.9268,3935.5886,3958.7400,11337610000,-0.4447,202029160000, +2022-05-13,3983.8201,4003.8539,3957.1392,3988.6002,10996840000,0.7543,195727040000, +2022-05-16,4014.9955,4018.0283,3947.7461,3956.5378,11242530000,-0.8039,199717910000, +2022-05-17,3961.7605,4005.8934,3955.1018,4005.8934,10966150000,1.2474,210117540000, +2022-05-18,4015.0134,4017.3410,3964.7503,3991.9069,10807420000,-0.3491,201800670000, +2022-05-19,3938.2964,3999.5984,3933.7452,3999.5984,11629340000,0.1927,210206680000, +2022-05-20,4020.8162,4077.6016,4020.8162,4077.5998,14706920000,1.9502,265609090000, +2022-05-23,4080.9694,4080.9694,4029.0846,4053.9823,13047780000,-0.5792,225981540000, +2022-05-24,4052.8675,4055.7830,3959.1541,3959.1541,14555430000,-2.3391,247713040000, +2022-05-25,3959.7672,3983.6236,3946.8083,3983.1784,10773400000,0.6068,188700540000, +2022-05-26,3987.6815,4015.7468,3938.2389,3993.0446,12626370000,0.2477,216987030000, +2022-05-27,4022.7095,4051.1428,3983.3838,4001.2988,11276930000,0.2067,206944430000, +2022-05-30,4020.8584,4040.8190,4003.3768,4029.0179,11115220000,0.6928,211144720000, +2022-05-31,4031.7621,4096.1971,4020.3781,4091.5176,13541550000,1.5512,267770090000, +2022-06-01,4086.6177,4094.9008,4058.8468,4083.1772,11485090000,-0.2038,225416240000, +2022-06-02,4063.9996,4091.1520,4057.9135,4089.5682,11389360000,0.1565,222657540000, +2022-06-06,4090.5286,4166.6151,4063.9057,4166.0850,16787100000,1.8710,324075630000, +2022-06-07,4165.6899,4198.0863,4155.1683,4179.1285,14299290000,0.3131,285733720000, +2022-06-08,4187.1483,4224.8096,4158.0329,4219.8122,15737410000,0.9735,319480250000, +2022-06-09,4211.7225,4227.4484,4160.8814,4175.6747,16844920000,-1.0460,285172800000, +2022-06-10,4145.6505,4241.3541,4140.2203,4238.9936,18479620000,1.5164,324091440000, +2022-06-13,4194.4574,4218.2327,4156.7146,4189.3527,16847560000,-1.1711,336585670000, +2022-06-14,4143.2232,4224.0857,4102.9290,4222.3114,17138590000,0.7867,335418560000, +2022-06-15,4228.2926,4348.4226,4228.2926,4278.2178,25704660000,1.3241,459766820000, +2022-06-16,4282.0827,4302.9212,4241.0750,4250.0614,18407440000,-0.6581,337235910000, +2022-06-17,4219.2339,4318.7655,4218.6817,4309.0444,15864910000,1.3878,346675730000, +2022-06-20,4322.8324,4368.3555,4297.8912,4330.4328,16566640000,0.4964,359569300000, +2022-06-21,4327.9159,4357.3396,4287.1406,4325.5657,16466760000,-0.1124,317163320000, +2022-06-22,4331.9020,4333.1827,4269.2456,4270.6227,15856590000,-1.2702,298656260000, +2022-06-23,4277.9555,4343.8781,4260.9002,4343.8781,17088240000,1.7153,327144780000, +2022-06-24,4354.5530,4400.6852,4346.1221,4394.7723,16897220000,1.1716,356054750000, +2022-06-27,4414.3321,4472.6948,4414.3321,4444.2639,17738570000,1.1261,381432970000, +2022-06-28,4442.5811,4497.8949,4407.3519,4490.5166,17475650000,1.0407,361685970000, +2022-06-29,4472.7346,4503.1307,4413.9961,4421.3570,18727670000,-1.5401,395926110000, +2022-06-30,4418.0656,4514.9968,4418.0656,4485.0108,15666630000,1.4397,354343890000, +2022-07-01,4489.5204,4500.9853,4449.2914,4466.7179,14477960000,-0.4079,318492130000, +2022-07-04,4447.2159,4496.0338,4427.8232,4496.0303,14634570000,0.6562,356968520000, +2022-07-05,4505.4572,4530.3245,4439.4511,4489.5383,15496240000,-0.1444,361891850000, +2022-07-06,4475.4815,4484.3615,4393.4165,4423.9698,14980020000,-1.4605,344672710000, +2022-07-07,4425.2814,4457.3431,4391.1938,4443.4736,13266090000,0.4409,328133130000, +2022-07-08,4468.0627,4479.4937,4426.8856,4428.7810,12319570000,-0.3307,304031110000, +2022-07-11,4406.1476,4406.1476,4330.5819,4354.6167,13444860000,-1.6746,299195230000, +2022-07-12,4352.6456,4370.3411,4296.6215,4313.6184,13018780000,-0.9415,291072310000, +2022-07-13,4313.3589,4341.4663,4284.9419,4321.4617,13111320000,0.1818,286075550000, +2022-07-14,4308.8229,4352.0978,4292.7595,4322.0742,14525090000,0.0142,301569860000, +2022-07-15,4299.4714,4344.8572,4248.5273,4248.5273,15021450000,-1.7017,316793190000, +2022-07-18,4262.1539,4300.7777,4217.5064,4292.5858,12260120000,1.0370,281055130000, +2022-07-19,4288.4441,4288.4441,4238.8238,4269.3401,10380570000,-0.5415,231117730000, +2022-07-20,4291.2808,4303.3668,4269.9717,4283.8027,9449010000,0.3388,212301880000, +2022-07-21,4270.3624,4283.1471,4236.0499,4236.0578,11715630000,-1.1145,239228150000, +2022-07-22,4251.7867,4275.4696,4207.3135,4238.2341,10384060000,0.0514,224295330000, +2022-07-25,4233.9277,4234.8448,4201.9190,4212.6441,8363670000,-0.6038,188136430000, +2022-07-26,4220.0911,4259.9854,4214.5343,4245.9758,8582330000,0.7912,197601410000, +2022-07-27,4236.1540,4242.0951,4217.2809,4225.0357,7890490000,-0.4932,194245300000, +2022-07-28,4242.2743,4267.9181,4223.0290,4225.6733,10753190000,0.0151,243871490000, +2022-07-29,4226.4245,4243.5143,4160.8735,4170.1019,11417930000,-1.3151,, +2022-08-01,4160.6478,4196.5743,4129.4528,4188.6784,10774900000,0.4455,, +2022-08-02,4144.3765,4144.3765,4071.4310,4107.0240,14222440000,-1.9494,, +2022-08-03,4114.8251,4150.9804,4058.1792,4066.9754,11666610000,-0.9751,, +2022-08-04,4089.4419,4108.1591,4064.6594,4101.5367,8953260000,0.8498,, +2022-08-05,4109.6287,4159.4850,4097.8625,4156.9111,10257100000,1.3501,, +2022-08-08,4142.1111,4155.7301,4135.0809,4148.0746,9020810000,-0.2126,, +2022-08-09,4143.6660,4161.8086,4131.4252,4156.2907,8413700000,0.1981,, +2022-08-10,4149.2071,4160.7871,4092.5455,4109.7373,8556580000,-1.1201,, +2022-08-11,4130.7410,4193.8115,4116.0558,4193.5428,12138510000,2.0392,, +2022-08-12,4185.4203,4202.4663,4175.0501,4191.1520,10680830000,-0.0570,, +2022-08-15,4180.0006,4219.9183,4174.3000,4185.6794,10589850000,-0.1306,, +2022-08-16,4190.5269,4208.8006,4170.5197,4177.8370,9390610000,-0.1874,, +2022-08-17,4182.5668,4222.7866,4155.1734,4216.9586,11286470000,0.9364,, +2022-08-18,4205.7851,4211.9141,4173.5410,4180.0996,10105260000,-0.8741,, +2022-08-19,4174.5458,4185.6579,4151.0738,4151.0738,11740300000,-0.6944,, +2022-08-22,4135.1623,4183.6498,4134.2008,4181.3965,11244270000,0.7305,, +2022-08-23,4175.5314,4187.3875,4147.4127,4161.0823,10315350000,-0.4858,, +2022-08-24,4168.5764,4174.1565,4079.0934,4082.4195,11906970000,-1.8904,, +2022-08-25,4093.2949,4119.6196,4058.7454,4116.2396,11132070000,0.8284,, +2022-08-26,4127.8142,4139.7879,4102.6818,4107.5455,9900050000,-0.2112,, +2022-08-29,4063.8825,4092.9474,4059.5963,4089.5205,9435440000,-0.4388,, +2022-08-30,4088.5262,4093.1356,4048.5244,4075.7937,9330170000,-0.3357,, +2022-08-31,4057.1443,4112.8485,4046.6225,4078.8402,13244980000,0.0747,, +2022-09-01,4066.1869,4090.8852,4041.1281,4043.7395,9738710000,-0.8606,, +2022-09-02,4054.8423,4056.1805,4004.9110,4023.6131,8678930000,-0.4977,, +2022-09-05,4010.4052,4016.9986,3982.7395,4015.4264,9376710000,-0.2035,, +2022-09-06,4024.4726,4054.0040,4009.5826,4052.2802,11350630000,0.9178,, +2022-09-07,4032.7231,4067.5437,4028.3740,4054.9830,10767810000,0.0667,, +2022-09-08,4059.1689,4067.7580,4036.0226,4037.6839,10088600000,-0.4266,, +2022-09-09,4050.5853,4099.0081,4042.2498,4093.7874,11842710000,1.3895,, +2022-09-13,4112.0123,4128.1113,4097.1408,4111.1145,11178970000,0.4233,, +2022-09-14,4058.0441,4089.0583,4047.9187,4065.3590,9079370000,-1.1130,, +2022-09-15,4078.6495,4088.8078,3998.8564,4027.1186,12395120000,-0.9406,, +2022-09-16,4013.5829,4019.4104,3932.6826,3932.6826,13719370000,-2.3450,, +2022-09-19,3928.4239,3953.6494,3910.3106,3928.0001,9771960000,-0.1191,, +2022-09-20,3945.6467,3957.5538,3921.6884,3932.8361,8482410000,0.1231,, +2022-09-21,3921.3177,3924.3914,3884.2268,3903.7348,8645840000,-0.7400,, +2022-09-22,3875.1771,3900.2736,3860.2308,3869.3440,8094690000,-0.8810,, +2022-09-23,3865.1049,3888.3958,3829.6913,3856.0212,9434250000,-0.3443,, +2022-09-26,3829.5958,3893.3186,3827.9498,3836.6773,10452600000,-0.5017,, +2022-09-27,3844.0692,3893.0283,3827.9265,3892.2950,8886020000,1.4496,, +2022-09-28,3879.4398,3879.4398,3828.0545,3828.7098,8659220000,-1.6336,, +2022-09-29,3864.3160,3873.1823,3808.6496,3827.1434,8565410000,-0.0409,, +2022-09-30,3833.3504,3848.6018,3801.2798,3804.8853,7856000000,-0.5816,, +2022-10-10,3806.5596,3807.4574,3715.7142,3720.9365,10264760000,-2.2063,, +2022-10-11,3732.0191,3739.8084,3706.0629,3727.6867,8394460000,0.1814,, +2022-10-12,3722.8659,3784.3064,3661.5255,3784.3064,10808930000,1.5189,, +2022-10-13,3756.4176,3783.5960,3749.6393,3752.6729,9901890000,-0.8359,, +2022-10-14,3783.3160,3863.2265,3780.8415,3842.4698,11624230000,2.3929,, +2022-10-17,3822.2428,3849.6207,3809.1196,3846.4119,10419200000,0.1026,, +2022-10-18,3865.8258,3870.2155,3831.1723,3838.2667,8834690000,-0.2118,, +2022-10-19,3827.4658,3840.4870,3776.5335,3776.5335,8157480000,-1.6084,, +2022-10-20,3746.5793,3804.2468,3726.7925,3754.9269,9029090000,-0.5721,, +2022-10-21,3753.8903,3768.6895,3724.6900,3742.8929,9875000000,-0.3205,, +2022-10-24,3727.9150,3762.1580,3619.9876,3633.3733,13005690000,-2.9261,, +2022-10-25,3621.9356,3670.7327,3594.7011,3627.4542,11095390000,-0.1629,, +2022-10-26,3633.3107,3700.8797,3633.3107,3656.9027,12130150000,0.8118,, +2022-10-27,3667.6645,3685.0837,3631.0639,3631.1448,11799870000,-0.7044,257473320000, +2022-10-28,3605.1598,3618.8640,3533.4993,3541.3295,11877220000,-2.4735,245816450000, +2022-10-31,3504.5070,3553.3871,3495.9509,3508.7034,13846570000,-0.9213,256574820000, +2022-11-01,3519.8174,3634.1732,3517.6209,3634.1732,14928670000,3.5760,295089930000, +2022-11-02,3620.3693,3703.4650,3610.8029,3677.8051,14159290000,1.2006,291648250000, +2022-11-03,3645.0604,3670.1574,3628.4987,3647.8966,11056600000,-0.8132,215379300000, +2022-11-04,3646.7709,3782.8823,3646.7709,3767.1746,14973490000,3.2698,311145480000, +2022-11-07,3754.5227,3792.7942,3746.3715,3775.2971,12982640000,0.2156,251195700000, +2022-11-08,3773.6612,3779.1156,3723.3415,3749.3251,9901650000,-0.6879,193351320000, +2022-11-09,3750.7821,3760.4068,3711.2680,3714.2704,8943450000,-0.9350,172029530000, +2022-11-10,3685.8274,3701.5306,3665.0585,3685.6885,10350930000,-0.7695,183155310000, +2022-11-11,3787.7568,3828.9004,3747.0902,3788.4387,18968560000,2.7878,344471330000, +2022-11-14,3818.1447,3848.4116,3781.7778,3794.0171,16966500000,0.1472,315536860000, +2022-11-15,3788.9260,3871.6424,3775.4988,3865.9726,15151560000,1.8966,296268140000, +2022-11-16,3860.8110,3877.6781,3829.3126,3834.3899,12061100000,-0.8169,235844590000, +2022-11-17,3821.2709,3821.7419,3776.5739,3818.6640,10594060000,-0.4101,219540810000, +2022-11-18,3823.8207,3840.3018,3801.5686,3801.5686,11507880000,-0.4477,224276130000, +2022-11-21,3769.6270,3769.8731,3733.9954,3769.1269,9586700000,-0.8534,188230370000, +2022-11-22,3766.0817,3809.8582,3751.0448,3769.5727,14448630000,0.0118,203490830000, +2022-11-23,3760.2157,3791.1782,3753.2136,3773.5287,14452790000,0.1049,201070600000, +2022-11-24,3791.5399,3804.8987,3751.3818,3756.8082,10107340000,-0.4431,160698920000, +2022-11-25,3751.2822,3790.5660,3743.4138,3775.7764,14292970000,0.5049,191711040000, +2022-11-28,3701.9020,3736.0813,3672.1306,3733.2424,12782570000,-1.1265,196305560000, +2022-11-29,3766.5702,3854.7742,3766.5702,3848.4224,17870140000,3.0853,289062340000, +2022-11-30,3836.5598,3867.6591,3833.8272,3853.0365,15751140000,0.1199,250051470000, +2022-12-01,3921.2954,3944.5645,3893.8718,3894.7687,16996460000,1.0831,306678200000, +2022-12-02,3886.4034,3898.1146,3865.8844,3870.9478,11678640000,-0.6116,201253170000, +2022-12-05,3907.6375,3947.4760,3900.6742,3946.8759,20174720000,1.9615,296615510000, +2022-12-06,3929.0063,3988.9007,3922.9969,3968.1979,15510830000,0.5402,275583430000, +2022-12-07,3956.6722,3999.5864,3944.1831,3958.4409,14300140000,-0.2459,255490830000, +2022-12-08,3953.1990,3971.4927,3941.2966,3959.1798,11520000000,0.0187,198037690000, +2022-12-09,3961.9919,4003.3178,3944.4396,3998.2442,15377500000,0.9867,268166790000, +2022-12-12,3976.1722,3983.4332,3950.3203,3953.4433,12593540000,-1.1205,227606300000, +2022-12-13,3953.5482,3964.3957,3939.9795,3945.6813,10099410000,-0.1963,184020700000, +2022-12-14,3952.7885,3972.7381,3935.7668,3954.8857,9852800000,0.2333,196175110000, +2022-12-15,3954.6720,3963.5002,3926.4997,3951.9885,8886470000,-0.0733,181994890000, +2022-12-16,3931.2318,3960.4705,3929.4873,3954.2270,9317860000,0.0566,167488440000, +2022-12-19,3952.7707,3966.5679,3878.4367,3893.2207,10691910000,-1.5428,180801390000, +2022-12-20,3881.2257,3881.2729,3811.4759,3829.0173,8309680000,-1.6491,164046440000, +2022-12-21,3839.0009,3853.7272,3821.4037,3830.5384,6483920000,0.0397,123450040000, +2022-12-22,3859.2041,3882.1263,3821.3418,3836.0280,8370520000,0.1433,163970310000, +2022-12-23,3811.6164,3848.3436,3805.9487,3828.2188,6527810000,-0.2036,130559420000, +2022-12-26,3830.5682,3856.8066,3827.5186,3843.4887,7300570000,0.3989,148692830000, +2022-12-27,3860.9054,3891.8497,3856.5800,3887.8540,7751540000,1.1543,152032210000, +2022-12-28,3874.9132,3884.7205,3854.9406,3871.2644,8442470000,-0.4267,160671120000, +2022-12-29,3854.2363,3868.2933,3838.4803,3856.7007,7939480000,-0.3762,149011370000, +2022-12-30,3873.9358,3887.5527,3868.7569,3871.6338,7877330000,0.3872,148295050000, +2023-01-03,3864.8356,3893.9904,3831.2450,3887.8992,11505190000,0.4201,207540170000, +2023-01-04,3886.2504,3905.9032,3873.6549,3892.9477,11066070000,0.1299,198997710000, +2023-01-05,3913.4928,3974.8750,3912.2600,3968.5782,11650240000,1.9428,256312610000, +2023-01-06,3969.5493,4000.4143,3966.4696,3980.8888,11095300000,0.3102,235744310000, +2023-01-09,3998.5278,4023.0898,3990.7073,4013.1196,11705440000,0.8096,233212430000, +2023-01-10,4014.7125,4030.4574,4002.2297,4017.4737,10175110000,0.1085,214871170000, +2023-01-11,4019.8844,4043.3991,4008.0153,4010.0309,9999790000,-0.1853,203000260000, +2023-01-12,4021.7547,4030.2876,4003.5079,4017.8692,9055260000,0.1955,183686270000, +2023-01-13,4032.2906,4074.3772,4027.8864,4074.3772,9587190000,1.4064,212174000000, +2023-01-16,4077.8793,4177.1035,4076.6394,4137.9643,15139550000,1.5607,319007750000, +2023-01-17,4138.8433,4148.5838,4118.1570,4137.2422,9547900000,-0.0175,204381580000, +2023-01-18,4140.1019,4151.4577,4125.7687,4130.3143,8420060000,-0.1675,172126170000, +2023-01-19,4125.5772,4156.0077,4105.9797,4156.0077,9460840000,0.6221,192699590000, +2023-01-20,4166.8444,4189.8310,4161.6698,4181.5267,12355380000,0.6140,222342460000, +2023-01-30,4267.6248,4268.1522,4197.8596,4201.3450,16460710000,0.4739,330193320000, +2023-01-31,4200.5813,4212.7347,4153.0484,4156.8578,12455080000,-1.0589,249365320000, +2023-02-01,4170.1322,4195.9332,4137.7659,4195.9332,14100900000,0.9400,265553940000, +2023-02-02,4207.4123,4207.4123,4170.5565,4181.1493,13382370000,-0.3523,262497430000, +2023-02-03,4162.0258,4162.0258,4103.1654,4141.6319,11704120000,-0.9451,226914770000, +2023-02-06,4103.8307,4105.9445,4065.2224,4086.8779,11019270000,-1.3220,226345110000, +2023-02-07,4098.3117,4107.3438,4077.9623,4094.2335,9136010000,0.1800,183537350000, +2023-02-08,4099.8573,4111.4745,4072.6474,4076.1411,8478610000,-0.4419,170591750000, +2023-02-09,4067.5631,4130.8565,4064.7489,4130.8565,10229000000,1.3423,211722600000, +2023-02-10,4124.0986,4125.2893,4092.3472,4106.3097,9671670000,-0.5942,195348320000, +2023-02-13,4098.8795,4146.4500,4092.2729,4143.5740,12889260000,0.9075,251990180000, +2023-02-14,4151.2470,4152.0487,4125.2583,4145.2902,10249990000,0.0414,204915440000, +2023-02-15,4146.8547,4153.7159,4115.9671,4123.6893,12166450000,-0.5211,219855530000, +2023-02-16,4125.4087,4167.9003,4068.8591,4093.4876,15931060000,-0.7324,281315630000, +2023-02-17,4086.2237,4104.6398,4032.9285,4034.5070,11614260000,-1.4408,225737750000, +2023-02-20,4039.9623,4134.8623,4035.4762,4133.4896,16179450000,2.4534,280122960000, +2023-02-21,4130.0632,4151.7994,4116.2716,4144.3536,14577620000,0.2628,249674200000, +2023-02-22,4118.9669,4134.8759,4101.8596,4106.9506,10429030000,-0.9025,191586160000, +2023-02-23,4106.2136,4132.3896,4088.2073,4103.6463,10356490000,-0.0805,197193580000, +2023-02-24,4100.9897,4102.6094,4048.2374,4061.0457,10098940000,-1.0381,191210470000, +2023-02-27,4040.4571,4067.0296,4034.5237,4043.8444,9378760000,-0.4236,187959490000, +2023-02-28,4058.1298,4074.2639,4026.4476,4069.4587,11032360000,0.6334,198799710000, +2023-03-01,4068.7331,4135.4812,4061.2167,4126.9415,15601580000,1.4125,255374790000, +2023-03-02,4119.9919,4137.2525,4113.8264,4117.7377,14821760000,-0.2230,235953760000, +2023-03-03,4126.0183,4135.2116,4100.3827,4130.5513,16033170000,0.3112,226914550000, +2023-03-06,4131.1525,4132.8367,4088.4484,4109.0102,16297180000,-0.5215,283079860000, +2023-03-07,4103.6419,4124.9609,4046.5679,4048.8519,19591210000,-1.4641,272491990000, +2023-03-08,4030.7387,4037.2870,4011.5231,4034.1077,11793650000,-0.3642,191659660000, +2023-03-09,4035.8433,4043.8493,4000.8901,4019.8505,11653960000,-0.3534,201737990000, +2023-03-10,3991.7959,4004.3612,3966.4280,3967.1352,12385540000,-1.3114,218286960000, +2023-03-13,3962.6426,4008.6860,3962.6426,4008.6860,14356140000,1.0474,242865520000, +2023-03-14,3999.8803,4001.9415,3946.9405,3984.6956,15054420000,-0.5985,267224850000, +2023-03-15,4011.8444,4018.7495,3986.9020,3986.9020,14202600000,0.0554,232101090000, +2023-03-16,3958.1962,3981.3210,3936.4758,3939.1505,15251560000,-1.1977,246264290000, +2023-03-17,3971.1585,4004.2153,3945.2501,3958.8194,17743380000,0.4993,305541020000, +2023-03-20,3962.6625,3979.5485,3935.0161,3939.0770,20526500000,-0.4987,319760030000, +2023-03-21,3948.1573,3982.7047,3948.1573,3982.3782,14509070000,1.0993,251631990000, +2023-03-22,3993.7849,4016.4495,3986.7093,3999.4427,14922900000,0.4285,265180990000, +2023-03-23,3985.9928,4039.0895,3983.9986,4039.0895,15888740000,0.9913,296479530000, +2023-03-24,4035.1564,4037.8417,4017.0028,4027.0457,15944230000,-0.2982,295785590000, +2023-03-27,4023.3028,4023.3028,3987.0297,4012.4771,16848230000,-0.3618,315474700000, +2023-03-28,4015.6973,4023.7834,3994.5999,3999.5147,13189510000,-0.3231,248736920000, +2023-03-29,4013.5926,4017.7572,3992.6662,4006.1440,13374350000,0.1658,263866920000, +2023-03-30,4009.5573,4040.5023,3983.8958,4038.5257,14990100000,0.8083,280004720000, +2023-03-31,4045.4538,4063.5675,4039.9587,4050.9257,13884250000,0.3070,279863690000, +2023-04-03,4059.6227,4094.9376,4059.0607,4090.5676,18212430000,0.9786,382895560000, +2023-04-04,4089.2932,4103.1583,4080.0682,4103.1052,19714660000,0.3065,394443180000, +2023-04-06,4084.1320,4098.8332,4078.4048,4096.6400,15070340000,-0.1576,328981850000, +2023-04-07,4096.9009,4131.3126,4092.1848,4123.2799,12867670000,0.6503,286567770000, +2023-04-10,4132.0096,4132.2952,4099.0519,4104.8118,15245300000,-0.4479,340822560000, +2023-04-11,4108.5062,4116.1247,4083.4946,4100.1479,15390130000,-0.1136,324192950000, +2023-04-12,4102.3968,4108.2451,4090.2784,4097.2876,16596530000,-0.0698,325425230000, +2023-04-13,4081.3871,4088.8809,4059.5744,4068.9786,15644430000,-0.6909,300291020000, +2023-04-14,4078.9703,4098.2151,4075.2049,4091.9988,15069570000,0.5657,306201500000, +2023-04-17,4090.0719,4149.3836,4089.5090,4149.3836,18877310000,1.4024,341831270000, +2023-04-18,4139.3088,4169.6678,4138.4618,4162.0320,17018410000,0.3048,331545660000, +2023-04-19,4159.3938,4159.3938,4118.6261,4124.5589,16255460000,-0.9004,312219500000, +2023-04-20,4122.9461,4125.8231,4094.0022,4113.0192,16270670000,-0.2798,332172410000, +2023-04-21,4114.2642,4114.2642,4031.9123,4032.5672,18080240000,-1.9560,347852010000, +2023-04-24,4031.3030,4033.6367,3967.9070,3982.6429,17009920000,-1.2380,328375610000, +2023-04-25,3985.1055,3991.6868,3925.4360,3962.6658,17255540000,-0.5016,331110620000, +2023-04-26,3950.2553,3975.6562,3934.6625,3959.2323,16270200000,-0.0866,322062810000, +2023-04-27,3948.0313,3999.1302,3942.8152,3988.4185,15382820000,0.7372,304804000000, +2023-04-28,3993.2561,4030.4469,3993.2561,4029.0858,17950850000,1.0196,328936290000, +2023-05-04,4013.4713,4035.7832,4001.1259,4030.2471,22758280000,0.0288,345492510000, +2023-05-05,4031.0946,4047.6015,3998.3920,4016.8774,20662690000,-0.3317,307694490000, +2023-05-08,4028.1056,4070.7724,4018.9608,4062.6624,25558310000,1.1398,359539950000, +2023-05-09,4065.4390,4092.8501,4026.3886,4027.8754,27930600000,-0.8563,396422120000, +2023-05-10,4017.9358,4019.0587,3984.6287,3996.8695,20755270000,-0.7698,309484850000, +2023-05-11,4005.7823,4018.0579,3988.4816,3990.6637,14480460000,-0.1553,241052070000, +2023-05-12,3987.7690,3999.3831,3937.5274,3937.7622,14442170000,-1.3256,228992920000, +2023-05-15,3938.8300,3998.8872,3923.0317,3998.8872,17625740000,1.5523,279531160000, +2023-05-16,4002.5237,4005.0150,3966.9921,3978.2054,13683330000,-0.5172,234840650000, +2023-05-17,3971.7017,3982.6044,3945.7137,3960.1650,11844820000,-0.4535,205195690000, +2023-05-18,3965.5162,3982.7178,3939.5526,3956.0701,13653390000,-0.1034,229134180000, +2023-05-19,3946.2215,3967.2816,3928.3160,3944.5403,12021250000,-0.2914,207094940000, +2023-05-22,3941.0015,3985.4031,3935.8015,3969.3277,10911660000,0.6284,202185550000, +2023-05-23,3968.2346,3971.9390,3913.1882,3913.1882,11868510000,-1.4143,189955820000, +2023-05-24,3903.7818,3903.7818,3859.0935,3859.0935,13725830000,-1.3824,211768410000, +2023-05-25,3851.4053,3861.3815,3817.8365,3850.4996,12415080000,-0.2227,213313620000, +2023-05-26,3848.4174,3859.6291,3815.5701,3850.9511,10032640000,0.0117,191537810000, +2023-05-29,3862.0838,3866.7238,3819.1822,3833.9416,13186000000,-0.4417,230095600000, +2023-05-30,3827.7924,3844.0052,3789.2736,3837.7531,13761960000,0.0994,244566270000, +2023-05-31,3827.1634,3827.1634,3781.4034,3798.5434,12638740000,-1.0217,235606120000, +2023-06-01,3788.5902,3832.2051,3786.7344,3806.8679,13456190000,0.2191,241829550000, +2023-06-02,3821.6198,3865.2843,3821.6198,3861.8337,12501510000,1.4439,232696550000, +2023-06-05,3860.5557,3860.5557,3832.4578,3844.2492,11616400000,-0.4553,211144360000, +2023-06-06,3840.4587,3867.8452,3802.8449,3808.1629,12578130000,-0.9387,222091720000, +2023-06-07,3815.4823,3823.1124,3780.1021,3789.3418,9886240000,-0.4942,189879790000, +2023-06-08,3791.0826,3834.3888,3777.7752,3820.1867,11870090000,0.8140,199119300000, +2023-06-09,3822.4088,3836.7026,3811.2189,3836.7026,13431990000,0.4323,247296090000, +2023-06-12,3827.3253,3859.7156,3813.8577,3844.4324,12675850000,0.2015,240791270000, +2023-06-13,3838.1287,3867.3034,3833.4598,3864.9074,11092490000,0.5326,225435220000, +2023-06-14,3872.7155,3891.6656,3862.0609,3864.0247,12495580000,-0.0228,243932580000, +2023-06-15,3871.7746,3925.4994,3871.7746,3925.4994,12836990000,1.5909,282635910000, +2023-06-16,3932.2114,3968.0128,3928.5419,3963.3509,13976010000,0.9642,280374760000, +2023-06-19,3957.0327,3957.0327,3922.4742,3930.9079,13490580000,-0.8186,268213070000, +2023-06-20,3926.0940,3937.4945,3918.4730,3924.2377,12252030000,-0.1697,266274080000, +2023-06-21,3909.1044,3920.1276,3864.0323,3864.0323,11834660000,-1.5342,243630710000, +2023-06-26,3833.4436,3841.2862,3801.0537,3809.6962,13399040000,-1.4062,247713850000, +2023-06-27,3811.6872,3851.8957,3806.3242,3845.4334,11699270000,0.9381,210097710000, +2023-06-28,3836.6086,3846.8516,3808.1607,3840.7986,10702150000,-0.1205,206187960000, +2023-06-29,3836.7305,3840.7132,3817.3759,3821.8435,9828930000,-0.4935,204110030000, +2023-06-30,3816.3345,3860.0311,3813.5520,3842.4516,10126840000,0.5392,208146270000, +2023-07-03,3853.2919,3897.3273,3853.2919,3892.8821,13315810000,1.3125,256876520000, +2023-07-04,3888.0328,3899.9755,3878.3978,3899.0133,10949450000,0.1575,216335610000, +2023-07-05,3895.1945,3899.5188,3864.1301,3868.8054,9763640000,-0.7748,188400270000, +2023-07-06,3857.0304,3876.8901,3836.4573,3842.7547,10012180000,-0.6734,184742420000, +2023-07-07,3831.5955,3844.8438,3819.0772,3825.6988,10090690000,-0.4438,173918560000, +2023-07-10,3841.5591,3865.4566,3831.9200,3844.3269,9203340000,0.4869,185360810000, +2023-07-11,3853.7955,3870.6549,3844.5244,3869.4861,8651070000,0.6545,177585690000, +2023-07-12,3864.6013,3874.0403,3838.5632,3843.4369,11152200000,-0.6732,214046520000, +2023-07-13,3855.6620,3901.1023,3855.6620,3898.4229,12030020000,1.4306,235278710000, +2023-07-14,3904.6033,3908.4871,3893.7862,3899.1027,12236480000,0.0174,220230470000, +2023-07-17,3881.6225,3881.6225,3852.2626,3867.1749,9834010000,-0.8188,174623550000, +2023-07-18,3871.0444,3871.0444,3844.5129,3854.9393,9143860000,-0.3164,167104320000, +2023-07-19,3848.4826,3860.0092,3830.4073,3850.8663,7958570000,-0.1057,151311480000, +2023-07-20,3857.7725,3875.6241,3818.7134,3823.6946,9204210000,-0.7056,174320870000, +2023-07-21,3816.9835,3849.5109,3808.8030,3821.9100,7950760000,-0.0467,157144210000, +2023-07-24,3803.3492,3828.7853,3798.8048,3805.2210,7548350000,-0.4367,151448370000, +2023-07-25,3866.6445,3915.8148,3866.6445,3915.1153,16306630000,2.8880,299853560000, +2023-07-26,3908.1740,3912.9834,3893.3987,3907.0128,10788170000,-0.2070,192912600000, +2023-07-27,3914.2298,3935.3578,3894.6923,3902.3458,11066710000,-0.1195,196845430000, +2023-07-28,3889.7929,4000.9190,3886.5535,3992.7376,17973550000,2.3163,310092470000, +2023-07-31,4018.8895,4064.3621,4002.0784,4014.6301,19960680000,0.5483,366544120000, +2023-08-01,4009.1831,4031.7008,3983.0273,3998.0010,14228690000,-0.4142,255620770000, +2023-08-02,3985.6951,4008.3343,3958.5127,3969.8950,12585570000,-0.7030,204875690000, +2023-08-03,3962.1296,4004.9996,3962.1296,4004.9839,12900660000,0.8839,224809820000, +2023-08-04,4033.7239,4058.2431,4011.6202,4020.5792,17826720000,0.3894,316529730000, +2023-08-07,4002.9677,4002.9677,3977.0173,3990.1531,12131070000,-0.7568,227090570000, +2023-08-08,3980.0423,4002.2904,3963.4632,3979.7322,10987170000,-0.2612,202611340000, +2023-08-09,3967.3566,3982.1091,3961.8434,3967.5652,9464030000,-0.3057,174394240000, +2023-08-10,3962.8569,3976.4637,3945.3869,3975.7166,9717680000,0.2055,175646730000, +2023-08-11,3977.9834,3977.9834,3884.2538,3884.2538,12608290000,-2.3005,203546310000, +2023-08-14,3840.8872,3859.4718,3814.0711,3855.9061,11596630000,-0.7298,197623770000, +2023-08-15,3858.3662,3865.2840,3811.6839,3846.5357,10309710000,-0.2430,177437070000, +2023-08-16,3830.8274,3852.4198,3817.6324,3818.3338,9461690000,-0.7332,169323870000, +2023-08-17,3801.1969,3836.1507,3782.4967,3831.1008,9841550000,0.3344,174093850000, +2023-08-18,3832.4554,3844.1950,3784.0038,3784.0038,9554960000,-1.2293,168445690000, +2023-08-21,3773.2250,3782.1112,3729.5550,3729.5550,9870840000,-1.4389,173379940000, +2023-08-22,3748.0675,3770.0556,3704.6785,3758.2271,12031830000,0.7688,203463880000, +2023-08-23,3751.7736,3756.1659,3695.0309,3696.6339,9708160000,-1.6389,160476230000, +2023-08-24,3711.5403,3748.8567,3701.5717,3723.4293,11961450000,0.7249,196257390000, +2023-08-25,3703.5136,3734.2185,3695.8442,3709.1517,10518260000,-0.3835,175601440000, +2023-08-28,3911.5485,3911.5485,3740.5279,3752.6194,19799040000,1.1719,335047670000, +2023-08-29,3743.0534,3810.3772,3742.0758,3790.1067,15248610000,0.9990,262134940000, +2023-08-30,3803.1191,3813.7032,3780.2411,3788.5097,12967170000,-0.0421,226727480000, +2023-08-31,3786.9261,3793.9972,3762.0046,3765.2678,11896160000,-0.6135,193577000000, +2023-09-01,3778.9129,3808.5306,3778.9129,3791.4912,10531900000,0.6965,172219140000, +2023-09-04,3812.9873,3854.2605,3804.5886,3848.9517,14238520000,1.5155,237934730000, +2023-09-05,3839.5779,3839.5779,3814.3338,3820.3174,10405230000,-0.7440,181377880000, +2023-09-06,3808.1000,3817.5239,3790.8949,3812.0283,9344240000,-0.2170,166081520000, +2023-09-07,3802.2272,3802.2272,3756.8530,3758.4748,9510390000,-1.4049,164405750000, +2023-09-08,3747.6509,3753.2630,3724.9870,3739.9927,7163820000,-0.4917,129197660000, +2023-09-11,3740.5846,3788.3219,3734.7228,3767.5370,10535800000,0.7365,186871760000, +2023-09-12,3764.3331,3775.0930,3755.4162,3760.6048,7938540000,-0.1840,140117510000, +2023-09-13,3759.6091,3768.8162,3719.1114,3736.6513,8157690000,-0.6370,138238090000, +2023-09-14,3736.9355,3748.8177,3717.3107,3733.5077,10038610000,-0.0841,151578100000, +2023-09-15,3740.7853,3749.0247,3699.3806,3708.7766,10939570000,-0.6624,180398970000, +2023-09-18,3698.9344,3737.5306,3691.1107,3727.7110,8672770000,0.5105,156966970000, +2023-09-19,3723.4244,3724.0717,3702.6934,3720.5021,8319900000,-0.1934,135216900000, +2023-09-20,3715.9578,3718.5207,3705.1274,3705.6898,7544820000,-0.3981,117691810000, +2023-09-21,3698.3130,3708.4557,3672.4448,3672.4448,8303100000,-0.8971,135011800000, +2023-09-22,3672.6402,3740.4183,3664.7661,3738.9327,11023120000,1.8105,192236470000, +2023-09-25,3738.0622,3738.0622,3711.2049,3714.6037,9259650000,-0.6507,155793830000, +2023-09-26,3711.7106,3723.8481,3692.6172,3692.8928,7804450000,-0.5845,137808440000, +2023-09-27,3694.9607,3731.1405,3694.3938,3700.4950,9162920000,0.2059,164790440000, +2023-09-28,3711.2117,3716.0569,3685.3001,3689.5172,8522170000,-0.2967,153500420000, +2023-10-09,3678.9290,3694.1713,3641.9966,3684.7272,10214810000,-0.1298,178072370000, +2023-10-10,3696.2542,3701.2562,3655.5890,3657.1259,9916370000,-0.7491,161938960000, +2023-10-11,3674.7514,3689.5347,3658.3550,3667.5483,10209160000,0.2850,187667550000, +2023-10-12,3697.9337,3711.4985,3682.8418,3702.3824,11436320000,0.9498,194598220000, +2023-10-13,3677.9585,3678.1913,3652.3094,3663.4104,9828800000,-1.0526,170152310000, +2023-10-16,3664.0390,3664.0390,3615.7686,3626.5972,9185310000,-1.0049,159537970000, +2023-10-17,3635.2994,3645.5654,3619.1277,3639.4018,9074520000,0.3531,147056230000, +2023-10-18,3631.0671,3632.0579,3608.9768,3610.5767,9454590000,-0.7920,158982360000, +2023-10-19,3588.5154,3588.5154,3532.3059,3533.5445,11173750000,-2.1335,189194780000, +2023-10-20,3518.3464,3535.6623,3501.7250,3510.5889,9851860000,-0.6496,169591290000, +2023-10-23,3500.1990,3505.3468,3450.6456,3474.2438,9656170000,-1.0353,152054890000, +2023-10-24,3481.7644,3495.0039,3453.1016,3487.1302,11554730000,0.3709,186529200000, +2023-10-25,3524.2965,3531.8314,3500.9154,3504.4576,12800960000,0.4969,203691740000, +2023-10-26,3484.7807,3515.5716,3478.0503,3514.1448,10514360000,0.2764,176088470000, +2023-10-27,3501.1710,3576.5861,3494.5488,3562.3851,12022510000,1.3727,224301960000, +2023-10-30,3554.1055,3592.7188,3554.0238,3583.7718,14401040000,0.6003,242973330000, +2023-10-31,3581.6759,3581.6759,3554.5822,3572.5056,11258730000,-0.3144,196317660000, +2023-11-01,3605.7576,3606.4126,3564.6421,3571.0268,9764550000,-0.0414,182943570000, +2023-11-02,3580.0672,3597.1699,3553.7406,3554.1889,9035960000,-0.4715,149465060000, +2023-11-03,3558.5303,3596.1010,3558.5303,3584.1364,9754210000,0.8426,165865990000, +2023-11-06,3608.3187,3635.7897,3600.6304,3632.6084,15298250000,1.3524,254465950000, +2023-11-07,3623.7849,3628.4615,3606.2975,3619.7593,11028860000,-0.3537,190433610000, +2023-11-08,3610.6434,3627.0479,3591.8248,3611.0723,11059420000,-0.2400,192594370000, +2023-11-09,3603.1082,3624.4141,3601.3744,3612.8263,11187210000,0.0486,189355230000, +2023-11-10,3596.0688,3599.4519,3576.1011,3586.4893,10210700000,-0.7290,166924680000, +2023-11-13,3593.9109,3599.3897,3562.7682,3579.4141,9670760000,-0.1973,164821250000, +2023-11-14,3581.1034,3600.1483,3568.8820,3582.0584,10088420000,0.0739,165935160000, +2023-11-15,3616.8765,3620.6007,3596.9158,3607.2454,10492920000,0.7031,188932150000, +2023-11-16,3600.9813,3605.2898,3572.3636,3572.3641,8746480000,-0.9670,146629220000, +2023-11-17,3561.3112,3573.6819,3547.0287,3568.0685,8731920000,-0.1202,139621900000, +2023-11-20,3569.7314,3586.9731,3545.1038,3576.3233,9108040000,0.2314,157449630000, +2023-11-21,3587.8779,3615.0569,3575.6820,3581.0674,10859430000,0.1327,175922110000, +2023-11-22,3569.4389,3574.3782,3544.4162,3544.4162,8478440000,-1.0235,136041200000, +2023-11-23,3541.4416,3562.0675,3529.9390,3561.5204,8480020000,0.4826,141499810000, +2023-11-24,3560.6462,3560.6462,3533.9955,3538.0087,8501840000,-0.6602,140102000000, +2023-11-27,3534.4445,3534.4445,3492.8623,3511.9424,9910230000,-0.7368,155975440000, +2023-11-28,3510.6554,3521.0463,3501.1093,3518.5232,8933580000,0.1874,147740540000, +2023-11-29,3518.8836,3519.1980,3482.2444,3488.3073,9884140000,-0.8588,155948240000, +2023-11-30,3485.5171,3505.1273,3481.4515,3496.2028,10135080000,0.2263,153790180000, +2023-12-01,3494.2234,3494.2234,3452.1728,3482.8813,10853090000,-0.3810,176078320000, +2023-12-04,3481.0449,3488.1330,3459.6110,3460.1380,9715680000,-0.6530,164664400000, +2023-12-05,3450.0898,3450.0898,3393.8139,3394.2571,10047200000,-1.9040,164840690000, +2023-12-06,3387.8798,3420.2773,3382.9457,3399.5980,10580550000,0.1574,172142990000, +2023-12-07,3394.3064,3404.4074,3369.7675,3391.2823,9771320000,-0.2446,160949950000, +2023-12-08,3391.8585,3409.3845,3383.4479,3399.4618,12952210000,0.2412,203034220000, +2023-12-11,3378.0517,3426.6106,3346.8902,3419.4548,13962620000,0.5881,219761180000, +2023-12-12,3409.9976,3427.5456,3406.1013,3426.8030,10559000000,0.2149,166979960000, +2023-12-13,3418.6413,3418.6413,3369.6050,3369.6050,9528540000,-1.6691,165455930000, +2023-12-14,3387.3847,3399.1394,3350.7648,3351.9639,8365510000,-0.5235,150245780000, +2023-12-15,3365.9388,3388.5047,3339.5190,3341.5517,9778780000,-0.3106,164907020000, +2023-12-18,3329.1910,3352.3458,3314.9095,3329.3657,9052680000,-0.3647,142303320000, +2023-12-19,3325.6596,3345.7795,3313.1874,3334.0412,8380810000,0.1404,135293660000, +2023-12-20,3334.3320,3338.5434,3297.3652,3297.5022,9241290000,-1.0959,141290540000, +2023-12-21,3285.6049,3339.3552,3283.9883,3330.8698,10254620000,1.0119,171120780000, +2023-12-22,3329.4668,3359.0601,3315.8976,3337.2281,10522010000,0.1909,167336340000, +2023-12-25,3330.3333,3348.8820,3330.3333,3347.4508,7454270000,0.3063,121838330000, +2023-12-26,3345.3952,3345.4171,3315.9370,3324.7902,7473290000,-0.6770,121690000000, +2023-12-27,3326.9267,3341.2659,3309.6731,3336.3572,9440390000,0.3479,140924920000, +2023-12-28,3335.5572,3423.4018,3331.2082,3414.5403,14806490000,2.3434,245855630000, +2023-12-29,3411.1094,3432.5412,3409.5795,3431.1099,11492890000,0.4853,193573180000, +2024-01-02,3426.2684,3426.2684,3386.3522,3386.3522,11618070000,-1.3045,184096100000, +2024-01-03,3379.7501,3392.8504,3362.6617,3378.2971,10561390000,-0.2379,165099020000, +2024-01-04,3375.0207,3375.0207,3323.8647,3347.0519,10672100000,-0.9249,165512260000, +2024-01-05,3341.3061,3372.5444,3313.5542,3329.1114,12640060000,-0.5360,182251660000, +2024-01-08,3322.6051,3333.5160,3283.3421,3286.0564,11742950000,-1.2933,170761640000, +2024-01-09,3286.7083,3304.6008,3273.8431,3292.4994,10933050000,0.1961,172276320000, +2024-01-10,3281.6692,3312.9161,3268.2471,3277.1290,9419940000,-0.4668,159777650000, +2024-01-11,3275.3086,3311.1137,3266.7911,3295.6717,10878970000,0.5658,180978530000, +2024-01-12,3284.3580,3310.4704,3279.6987,3284.1667,9685360000,-0.3491,156536020000, +2024-01-15,3270.1029,3306.9217,3261.2687,3280.9195,8885150000,-0.0989,144331720000, +2024-01-16,3272.5710,3300.8762,3260.4362,3300.8762,11327670000,0.6083,175650590000, +2024-01-17,3291.1392,3291.1392,3229.0820,3229.0820,10876970000,-2.1750,173516390000, +2024-01-18,3214.2844,3279.2538,3171.6329,3274.7286,17490920000,1.4136,256784540000, +2024-01-19,3261.2393,3286.9415,3251.8136,3269.7763,11850140000,-0.1512,191261810000, +2024-01-22,3262.4685,3281.4205,3193.1776,3218.9016,14870560000,-1.5559,225510030000, +2024-01-23,3208.4316,3249.5306,3188.1259,3231.9329,12201200000,0.4048,193791170000, +2024-01-24,3245.9592,3281.4892,3190.4674,3277.1089,15437200000,1.3978,219036340000, +2024-01-25,3274.3391,3344.2426,3269.7943,3342.9189,19683360000,2.0082,265521110000, +2024-01-26,3326.6465,3351.9692,3315.1265,3333.8213,18066400000,-0.2721,238144900000, +2024-01-29,3335.3936,3351.3715,3303.9604,3303.9604,18416480000,-0.8957,244698010000, +2024-01-30,3283.8977,3300.2040,3244.9719,3245.0387,14364940000,-1.7834,199592930000, +2024-01-31,3231.5425,3252.1475,3201.9264,3215.3518,15314350000,-0.9148,215333350000, +2024-02-01,3202.2564,3251.7582,3191.8968,3217.7109,14551680000,0.0734,203815060000, +2024-02-02,3219.8734,3235.4079,3108.3515,3179.6276,17375810000,-1.1836,234495150000, +2024-02-05,3164.2500,3233.8485,3111.5184,3200.4218,20304300000,0.6540,279713140000, +2024-02-06,3185.2498,3314.5120,3182.8216,3311.6922,20271310000,3.4767,285042020000, +2024-02-07,3314.0306,3343.6303,3289.6704,3343.6303,21664790000,0.9644,297997660000, +2024-02-08,3351.4052,3367.2101,3336.9779,3364.9297,18997760000,0.6370,270239770000, +2024-02-19,3393.1916,3403.8078,3364.1418,3403.8078,18331980000,1.1554,267674150000, +2024-02-20,3395.1916,3415.8943,3380.1030,3410.8542,14073460000,0.2070,218459280000, +2024-02-21,3390.3619,3500.1338,3383.6911,3456.8713,18887940000,1.3491,291823540000, +2024-02-22,3450.3518,3486.6826,3448.4135,3486.6747,14102080000,0.8621,225098130000, +2024-02-23,3491.3367,3507.5592,3472.9680,3489.7416,14482130000,0.0880,232926060000, +2024-02-26,3485.5427,3492.6061,3445.3889,3453.3585,15124830000,-1.0426,238951640000, +2024-02-27,3440.0516,3494.7874,3437.4422,3494.7874,13952820000,1.1997,244488720000, +2024-02-28,3499.8257,3521.6574,3450.2598,3450.2598,18983750000,-1.2741,328300590000, +2024-02-29,3437.8984,3516.0826,3437.8984,3516.0826,15594450000,1.9078,281971900000, +2024-03-01,3515.0587,3544.3595,3503.4590,3537.8038,16270960000,0.6178,288575620000, +2024-03-04,3538.3660,3548.6901,3519.7599,3540.8686,16324460000,0.0866,297719930000, +2024-03-05,3524.9644,3570.6935,3519.0816,3565.5143,16642240000,0.6960,299895930000, +2024-03-06,3556.5323,3577.3883,3545.1013,3551.0481,14307660000,-0.4057,248294170000, +2024-03-07,3548.1007,3569.9185,3522.8964,3529.7195,14811050000,-0.6006,251839530000, +2024-03-08,3529.5509,3548.5055,3511.5770,3544.9099,12579270000,0.4304,225379100000, +2024-03-11,3545.9427,3589.2635,3542.2789,3589.2635,14820280000,1.2512,286418580000, +2024-03-12,3592.5826,3605.6976,3574.2117,3597.4939,18068560000,0.2293,339997040000, +2024-03-13,3594.4211,3594.4211,3563.3685,3572.3610,14459060000,-0.6986,266898760000, +2024-03-14,3571.7885,3597.4600,3545.6120,3562.2229,14096270000,-0.2838,263803610000, +2024-03-15,3554.9068,3572.8091,3533.6798,3569.9930,13831600000,0.2181,243991560000, +2024-03-18,3577.0564,3604.0519,3573.4040,3603.5280,16037940000,0.9394,295314840000, +2024-03-19,3593.3396,3610.7389,3577.1880,3577.6303,14557180000,-0.7187,259553450000, +2024-03-20,3568.7158,3589.5456,3568.4341,3585.3838,12952900000,0.2167,223752100000, +2024-03-21,3593.0700,3601.1145,3575.0331,3581.0902,13074340000,-0.1198,233162490000, +2024-03-22,3571.2736,3575.7171,3522.8404,3545.0023,13922740000,-1.0077,248850930000, +2024-03-25,3536.7136,3564.9604,3525.7634,3525.7634,13701570000,-0.5427,233747260000, +2024-03-26,3526.6818,3547.6461,3518.6018,3543.7467,12620950000,0.5101,226730730000, +2024-03-27,3538.7244,3542.9624,3502.7866,3502.7866,12862680000,-1.1558,216404730000, +2024-03-28,3498.4820,3551.2143,3489.3861,3520.9648,14333470000,0.5190,232530810000, +2024-03-29,3516.8830,3538.2378,3516.8830,3537.4843,12864330000,0.4692,201749380000, +2024-04-01,3551.5815,3600.9193,3551.5815,3595.6466,16277660000,1.6442,251637270000, +2024-04-02,3593.2206,3596.1903,3568.7539,3580.6759,14127300000,-0.4164,220207520000, +2024-04-03,3578.6835,3582.4324,3558.8740,3567.8031,13559230000,-0.3595,214222900000, +2024-04-08,3553.5554,3567.8200,3535.7688,3536.4077,15530430000,-0.8800,243249250000, +2024-04-09,3533.3849,3543.7141,3518.8601,3533.4871,12967090000,-0.0826,195893530000, +2024-04-10,3528.9679,3531.2295,3490.0525,3504.7086,12879030000,-0.8145,199754770000, +2024-04-11,3485.0294,3520.5893,3484.9252,3504.2447,12653440000,-0.0132,200293480000, +2024-04-12,3505.7499,3516.6988,3470.0611,3475.8389,12892110000,-0.8106,208566200000, +2024-04-15,3473.5047,3552.4125,3473.5047,3549.0759,18394120000,2.1070,267472480000, +2024-04-16,3533.3636,3545.5034,3503.6158,3511.1146,17615310000,-1.0696,253315970000, +2024-04-17,3509.1318,3565.9389,3498.0324,3565.4030,16846640000,1.5462,244987810000, +2024-04-18,3550.5562,3602.7902,3547.5996,3569.8018,17857410000,0.1234,261329930000, +2024-04-19,3550.6087,3560.9492,3529.3237,3541.6619,14728150000,-0.7883,226229520000, +2024-04-22,3536.1844,3558.1642,3528.0186,3530.9045,15057900000,-0.3037,229511180000, +2024-04-23,3525.6681,3533.7584,3499.9838,3506.2249,14311350000,-0.6990,213257230000, +2024-04-24,3514.0108,3524.5370,3495.6494,3521.6219,12173990000,0.4391,195299920000, +2024-04-25,3510.6396,3543.9699,3505.1999,3530.2813,11518770000,0.2459,184524620000, +2024-04-26,3531.9647,3588.4003,3531.9647,3584.2686,19721610000,1.5293,308045060000, +2024-04-29,3584.5427,3645.8229,3578.7597,3623.9124,22272140000,1.1060,358709710000, +2024-04-30,3619.2586,3630.7092,3604.3943,3604.3943,19129690000,-0.5386,286674160000, +2024-05-06,3654.0485,3668.2565,3645.7380,3657.8767,20801800000,1.4838,333270470000, +2024-05-07,3657.0007,3665.6840,3648.3760,3659.0076,16483430000,0.0309,247368350000, +2024-05-08,3650.7484,3650.9355,3628.6984,3630.2233,13003530000,-0.7867,199923460000, +2024-05-09,3630.4142,3669.7593,3630.4142,3664.5610,14655900000,0.9459,232694930000, +2024-05-10,3669.0869,3674.6088,3641.7639,3666.2771,15072050000,0.0468,233730560000, +2024-05-13,3646.3491,3673.6211,3634.6049,3664.6907,15726750000,-0.0433,249688470000, +2024-05-14,3668.2254,3675.7760,3646.7092,3657.0454,13340650000,-0.2086,214643550000, +2024-05-15,3651.0536,3656.5277,3624.0020,3626.0559,12352280000,-0.8474,191480970000, +2024-05-16,3636.6007,3657.4831,3626.3340,3640.3592,15463050000,0.3945,240288950000, +2024-05-17,3638.5613,3677.9696,3627.4470,3677.9696,16457040000,1.0332,247729530000, +2024-05-20,3682.0615,3703.0287,3677.4426,3690.9623,18460940000,0.3533,279971340000, +2024-05-21,3682.2868,3684.6106,3665.1524,3676.1611,13067830000,-0.4010,196575350000, +2024-05-22,3675.6471,3691.8804,3667.0885,3684.4510,15191460000,0.2255,230839370000, +2024-05-23,3672.8403,3674.3654,3633.5051,3641.7917,14257300000,-1.1578,214205040000, +2024-05-24,3630.8270,3650.8734,3599.6678,3601.4754,12479120000,-1.1070,195344740000, +2024-05-27,3606.6450,3638.1514,3603.7131,3635.7079,13127260000,0.9505,206143740000, +2024-05-28,3633.2535,3638.9703,3605.9213,3609.1724,12353220000,-0.7299,184381270000, +2024-05-29,3609.0708,3633.1971,3602.8198,3613.5223,11590630000,0.1205,179072810000, +2024-05-30,3607.0522,3624.0352,3586.7543,3594.3121,12260300000,-0.5316,193069650000, +2024-05-31,3599.8196,3614.6439,3579.9247,3579.9247,11246200000,-0.4003,180707600000, +2024-06-03,3577.3798,3600.6044,3567.8713,3588.7483,14105460000,0.2465,222756930000, +2024-06-04,3583.8104,3622.5012,3580.2771,3615.6714,12454510000,0.7502,195790970000, +2024-06-05,3610.3601,3623.3232,3594.1056,3594.7936,11090680000,-0.5774,182639600000, +2024-06-06,3602.1554,3625.0109,3584.1710,3592.2454,13789350000,-0.0709,226764070000, +2024-06-07,3594.6335,3603.0698,3552.0853,3574.1143,13110300000,-0.5047,213001530000, +2024-06-11,3555.8186,3565.3113,3525.8945,3542.8771,13452230000,-0.8740,219282340000, +2024-06-12,3539.0947,3551.1706,3531.5657,3544.1225,12281370000,0.0352,200722600000, +2024-06-13,3548.2162,3551.0771,3520.1802,3526.1306,12324550000,-0.5077,214792340000, +2024-06-14,3514.7998,3547.1473,3503.5233,3541.5331,17151690000,0.4368,283768820000, +2024-06-17,3521.4365,3540.7932,3520.7381,3536.1986,13743340000,-0.1506,232293850000, +2024-06-18,3533.4875,3551.7085,3532.7845,3545.5902,12367180000,0.2656,208824120000, +2024-06-19,3543.3599,3543.3599,3524.8449,3528.7490,10664280000,-0.4750,184790300000, +2024-06-20,3525.1687,3533.9865,3500.1310,3503.2817,11161740000,-0.7217,186515780000, +2024-06-21,3496.3428,3505.5123,3473.8283,3495.6198,10918660000,-0.2187,182736740000, +2024-06-24,3473.6392,3505.7752,3471.2164,3476.8102,11799020000,-0.5381,195787550000, +2024-06-25,3475.1648,3483.2189,3440.6464,3457.9023,11844810000,-0.5438,190886340000, +2024-06-26,3451.5389,3487.3964,3442.2982,3480.2648,10589890000,0.6467,171538110000, +2024-06-27,3467.2888,3471.1423,3452.5775,3454.1175,11491810000,-0.7513,174112510000, +2024-06-28,3443.6744,3484.6780,3443.6744,3461.6570,13540920000,0.2183,205118810000, +2024-07-01,3458.2636,3479.9548,3443.8086,3478.1827,12182980000,0.4774,188018230000, +2024-07-02,3472.4527,3488.3189,3464.5237,3471.7857,12165010000,-0.1839,186104750000, +2024-07-03,3471.5556,3478.7047,3454.9942,3463.4141,10385710000,-0.2411,163035360000, +2024-07-04,3468.2958,3483.3098,3444.9280,3445.8128,10442990000,-0.5082,159477150000, +2024-07-05,3443.3588,3451.0386,3399.6693,3431.0605,11660970000,-0.4281,181416570000, +2024-07-08,3420.8033,3428.0418,3395.9123,3401.7604,11552820000,-0.8540,177559770000, +2024-07-09,3396.8044,3448.9279,3384.8086,3439.8111,13162940000,1.1186,215048840000, +2024-07-10,3425.8818,3447.5050,3423.6483,3428.9657,12720350000,-0.3153,198149480000, +2024-07-11,3451.0442,3473.9837,3438.1180,3468.1690,14589250000,1.1433,237551300000, +2024-07-12,3459.9564,3479.0958,3457.3633,3472.4014,13087460000,0.1220,205055550000, +2024-07-15,3462.6113,3481.4613,3460.7915,3476.2467,11851710000,0.1107,171584920000, +2024-07-16,3466.8523,3500.2943,3464.3655,3498.2827,12065900000,0.6339,200456290000, +2024-07-17,3494.2090,3514.4753,3486.2229,3501.5836,13180210000,0.0944,222830800000, +2024-07-18,3483.2975,3522.7995,3475.7236,3520.9310,12376820000,0.5525,215800000000, +2024-07-19,3500.8052,3545.3383,3493.0734,3539.0156,13244800000,0.5136,228100000000, +2024-07-22,3538.4012,3540.1874,3494.0143,3514.9249,13212630000,-0.6807,217500000000, +2024-07-23,3509.7887,3509.7887,3439.8779,3439.8779,12889770000,-2.1351,202900000000, +2024-07-24,3432.3459,3451.4196,3408.4129,3418.1663,12703630000,-0.6312,184900000000, +2024-07-25,3404.6110,3415.8557,3383.7991,3399.2716,13102220000,-0.5528,190100000000, +2024-07-26,3403.7084,3420.8201,3388.6601,3409.2931,12419560000,0.2948,187900000000, +2024-07-29,3404.3663,3408.5024,3388.8444,3390.7420,10978780000,-0.5441,166700000000, +2024-07-30,3380.6893,3380.6893,3352.8043,3369.3821,10495220000,-0.6299,165400000000, +2024-07-31,3364.0268,3445.0042,3364.0268,3442.0844,17195920000,2.1577,258200000000, +2024-08-01,3443.1397,3448.3361,3419.1872,3419.2666,13632350000,-0.6629,206000000000, +2024-08-02,3393.9167,3419.1023,3380.9645,3384.3919,11661530000,-1.0199,179700000000, +2024-08-05,3362.1117,3409.0314,3343.3205,3343.3205,14281250000,-1.2136,223600000000, +2024-08-06,3367.3517,3376.7956,3318.6251,3342.9789,11934030000,-0.0102,181700000000, +2024-08-07,3338.5909,3362.3839,3329.9658,3341.4890,9508440000,-0.0446,145100000000, +2024-08-08,3332.4281,3364.7855,3320.8432,3342.9369,9249570000,0.0433,149500000000, +2024-08-09,3358.1280,3366.6688,3331.6274,3331.6274,9151160000,-0.3383,142900000000, +2024-08-12,3327.5561,3338.0771,3319.8908,3325.8645,7993880000,-0.1730,117500000000, +2024-08-13,3328.0138,3335.0140,3310.1909,3334.3903,8448970000,0.2563,125300000000, +2024-08-14,3332.7866,3332.7866,3309.1000,3309.2389,7874240000,-0.7543,118200000000, +2024-08-15,3301.4455,3356.7644,3297.9711,3341.9530,10476640000,0.9886,149200000000, +2024-08-16,3342.0346,3356.9071,3335.6239,3345.6340,9651910000,0.1101,135900000000, +2024-08-19,3344.2614,3375.9621,3343.7116,3356.9677,10557110000,0.3388,143400000000, +2024-08-20,3361.6394,3362.3338,3321.6397,3332.7034,10166830000,-0.7228,137900000000, +2024-08-21,3322.9134,3339.4430,3307.9917,3321.6350,8995480000,-0.3321,130000000000, +2024-08-22,3322.8723,3327.6962,3305.2453,3313.1357,10036650000,-0.2559,147700000000, +2024-08-23,3305.9307,3336.2414,3305.6403,3327.1905,8952580000,0.4242,132700000000, +2024-08-26,3330.7184,3336.5271,3311.5701,3324.2231,9399080000,-0.0892,139100000000, +2024-08-27,3315.6860,3320.5667,3299.5635,3305.3338,9580820000,-0.5682,129800000000, +2024-08-28,3298.9089,3305.3496,3274.5881,3286.4956,9269660000,-0.5699,136000000000, +2024-08-29,3273.5410,3290.7857,3269.5288,3277.6812,13070230000,-0.2682,174300000000, +2024-08-30,3273.7532,3351.6254,3273.6496,3321.4323,18869540000,1.3348,268400000000, +2024-09-02,3307.5432,3307.7627,3264.7565,3265.0110,14761240000,-1.6987,194400000000, +2024-09-03,3261.7410,3281.5935,3261.1877,3273.4282,12289730000,0.2578,155100000000, +2024-09-04,3253.8980,3272.9861,3249.9809,3252.1649,10483250000,-0.6496,140100000000, +2024-09-05,3252.9600,3266.8820,3247.1725,3257.7578,9710940000,0.1720,134600000000, +2024-09-06,3261.1542,3274.8144,3231.0685,3231.3457,8840040000,-0.8107,121500000000, +2024-09-09,3214.7996,3222.9278,3180.9277,3192.9516,10867310000,-1.1882,146500000000, +2024-09-10,3193.4557,3205.0972,3171.7932,3195.7552,9729010000,0.0878,133600000000, +2024-09-11,3187.0508,3197.3363,3174.0343,3186.1299,10248210000,-0.3012,141500000000, +2024-09-12,3189.4271,3201.5544,3171.8775,3172.4747,9286870000,-0.4286,136400000000, +2024-09-13,3174.0344,3188.9145,3159.2470,3159.2470,8833670000,-0.4170,137400000000, +2024-09-18,3158.8179,3179.9012,3145.7908,3171.0102,8472280000,0.3723,123500000000, +2024-09-19,3178.3959,3213.8378,3149.7925,3196.0357,12543930000,0.7892,181800000000, +2024-09-20,3192.4322,3207.9875,3173.2238,3201.0497,11806410000,0.1569,164000000000, +2024-09-23,3200.8678,3230.1613,3198.0248,3212.7639,9534490000,0.3659,143900000000, +2024-09-24,3244.6468,3351.9684,3222.4885,3351.9090,20407220000,4.3310,307900000000, +2024-09-25,3403.7021,3465.4882,3393.4380,3401.5330,24156430000,1.4805,356900000000, +2024-09-26,3399.3188,3545.3249,3391.6772,3545.3204,24313400000,4.2271,374000000000, +2024-09-27,3617.9203,3708.4951,3596.5833,3703.6849,26548780000,4.4669,466700000000, +2024-09-30,3846.6515,4038.6968,3796.5045,4017.8545,51021770000,8.4826,862500000000, +2024-10-08,4450.3675,4450.3675,4094.3519,4256.0962,58986790000,5.9296,1130400000000, +2024-10-09,4168.8436,4197.6000,3942.5118,3955.9839,48226930000,-7.0514,1029000000000, +2024-10-10,3979.6116,4098.4967,3912.7708,3997.7879,39505310000,1.0567,718000000000, +2024-10-11,3969.7576,3978.2389,3847.1228,3887.1670,27409650000,-2.7671,485000000000, +2024-10-14,3915.2186,3979.5431,3868.7790,3961.3424,30757900000,1.9082,534100000000, +2024-10-15,3942.5342,3967.8712,3855.9949,3855.9949,24248640000,-2.6594,434400000000, +2024-10-16,3806.1373,3877.7483,3805.0868,3831.5890,21886640000,-0.6329,377301320000, +2024-10-17,3853.8410,3882.0733,3787.7498,3788.2217,21231380000,-1.1318,369170520000, +2024-10-18,3780.3143,3998.2140,3765.1615,3925.2340,31295880000,3.6168,620673700000, +2024-10-21,3946.9016,3979.2638,3896.1650,3935.1974,29118560000,0.2538,600109600000, +2024-10-22,3923.7443,3965.9084,3917.5218,3957.7755,22343340000,0.5737,442881850000, +2024-10-23,3955.3191,4012.1795,3939.0986,3973.2089,24587390000,0.3900,469120810000, +2024-10-24,3950.8987,3957.9832,3914.0887,3928.8334,17472410000,-1.1169,340486880000, +2024-10-25,3931.3205,3992.8918,3921.9396,3956.4210,21069490000,0.7022,412231380000, +2024-10-28,3953.1063,3964.1569,3917.2042,3964.1569,21616040000,0.1955,390450180000, +2024-10-29,3970.0080,3991.3091,3921.5795,3924.6490,21729400000,-0.9966,429625020000, +2024-10-30,3904.1595,3926.0581,3864.3051,3889.4487,21943660000,-0.8969,385010580000, +2024-10-31,3888.4229,3923.8997,3859.1079,3891.0396,30063670000,0.0409,515533820000, +2024-11-01,3882.4579,3933.2204,3879.9588,3890.0203,30798650000,-0.0262,476472950000, +2024-11-04,3897.7144,3944.7619,3891.2109,3944.7619,22923910000,1.4072,381048610000, +2024-11-05,3937.6228,4046.6977,3925.4138,4044.5725,31686280000,2.5302,580971850000, +2024-11-06,4051.2891,4091.7031,4002.5027,4024.2831,33580790000,-0.5016,639124090000, +2024-11-07,3987.2665,4146.1510,3984.6652,4145.6952,34143640000,3.0170,658145920000, +2024-11-08,4192.0794,4200.9080,4094.1631,4104.0470,33235040000,-1.0046,688446560000, +2024-11-11,4066.9336,4132.5111,4048.0390,4131.1312,28959420000,0.6599,625605940000, +2024-11-12,4133.3528,4181.7096,4060.7936,4085.7430,29777810000,-1.0987,660380520000, +2024-11-13,4059.5898,4121.0735,4059.5898,4110.8901,24048410000,0.6155,512734300000, +2024-11-14,4101.2228,4118.1686,4034.9441,4039.6191,23015280000,-1.7337,464157560000, +2024-11-15,4025.6482,4049.0710,3968.8308,3968.8308,24739950000,-1.7524,474079690000, +2024-11-18,3982.1036,4034.0596,3931.1872,3950.3806,30677790000,-0.4649,472408050000, +2024-11-19,3954.6038,3979.1505,3896.7493,3976.8912,24294650000,0.6711,402610970000, +2024-11-20,3966.1238,4001.0847,3958.3383,3985.7727,18459940000,0.2233,347577690000, +2024-11-21,3979.4554,3999.5693,3966.0658,3989.2979,16612590000,0.0884,324235010000, +2024-11-22,3984.2435,3990.2647,3865.6989,3865.6989,21628580000,-3.0983,397566830000, +2024-11-25,3875.6126,3889.7069,3812.3179,3848.0909,19070300000,-0.4555,349006770000, +2024-11-26,3836.2590,3875.2290,3833.2842,3840.1847,14989240000,-0.2055,264403250000, +2024-11-27,3829.3442,3907.1640,3817.9125,3907.0447,17413610000,1.7411,320632360000, +2024-11-28,3904.2525,3908.3918,3866.0136,3872.5505,15011730000,-0.8829,286432870000, +2024-11-29,3869.8903,3962.7002,3869.8903,3916.5832,18765670000,1.1370,375262020000, +2024-12-02,3909.7029,3955.1252,3902.1697,3947.6320,19728980000,0.7928,368591240000, +2024-12-03,3946.7034,3963.9474,3922.8425,3951.8912,18249690000,0.1079,327295050000, +2024-12-04,3948.1300,3957.3650,3917.7467,3930.5568,17462630000,-0.5399,312040420000, +2024-12-05,3916.5638,3936.3358,3910.0834,3921.5881,13853400000,-0.2282,257716300000, +2024-12-06,3923.8954,3995.1168,3923.8954,3973.1405,19205790000,1.3146,351751740000, +2024-12-09,3970.6628,3995.5116,3948.4206,3966.5708,17596000000,-0.1654,308227220000, +2024-12-10,4094.0500,4098.3804,3988.9676,3995.6369,25346380000,0.7328,487278040000, +2024-12-11,3988.0179,4005.3253,3977.3522,3988.8308,17725280000,-0.1703,310713320000, +2024-12-12,3987.1525,4031.7441,3981.3485,4028.5048,18162180000,0.9946,333667520000, +2024-12-13,4000.9854,4000.9854,3931.7392,3933.1808,23035310000,-2.3662,421478610000, +2024-12-16,3930.7807,3938.7595,3901.6465,3911.8416,17851130000,-0.5425,327619080000, +2024-12-17,3908.1263,3955.9450,3908.1263,3922.0334,16093910000,0.2605,306037370000, +2024-12-18,3934.5425,3956.1441,3933.9693,3941.8900,15773830000,0.5063,276825380000, +2024-12-19,3911.8901,3954.3491,3899.7479,3945.4635,16108100000,0.0907,321771610000, +2024-12-20,3937.4722,3958.6336,3923.2562,3927.7441,15498650000,-0.4491,332143280000, +2024-12-23,3928.1493,3965.8502,3928.1493,3933.5718,19006740000,0.1484,354063430000, +2024-12-24,3934.9422,3985.8588,3934.7338,3983.6882,16149460000,1.2741,310384870000, +2024-12-25,3987.9557,4007.7626,3969.4766,3985.6291,15939070000,0.0487,299295150000, +2024-12-26,3981.7317,3991.5331,3965.5461,3987.4801,14342530000,0.0464,305769930000, +2024-12-27,3987.0189,4007.1314,3970.9365,3981.0307,16926870000,-0.1617,345011080000, +2024-12-30,3976.7004,4005.7780,3976.7004,3999.0549,16461250000,0.4528,322699390000, +2024-12-31,3995.8705,4004.3462,3934.9109,3934.9109,18392840000,-1.6040,347880440000, +2025-01-02,3931.8155,3934.2034,3796.3389,3820.3952,21789870000,-2.9102,388636590000, +2025-01-03,3825.2426,3835.9353,3767.6653,3775.1648,17534270000,-1.1839,304322760000, +2025-01-06,3775.9902,3788.8489,3743.0727,3768.9697,15094670000,-0.1641,262803540000, +2025-01-07,3760.8660,3797.6020,3749.0581,3796.1055,14645580000,0.7200,266855800000, +2025-01-08,3781.2610,3810.7355,3731.1887,3789.2153,16916700000,-0.1815,300965730000, +2025-01-09,3780.7341,3795.2608,3768.6810,3779.8773,12979400000,-0.2464,251486000000, +2025-01-10,3778.8928,3786.8069,3732.4806,3732.4806,13752320000,-1.2539,275354210000, +2025-01-13,3704.4442,3737.8852,3704.1073,3722.5130,13644620000,-0.2671,247861950000, +2025-01-14,3728.5561,3826.6399,3718.8768,3820.5395,17066470000,2.6333,345461480000, +2025-01-15,3810.0353,3816.8284,3790.1655,3796.0260,14147550000,-0.6416,278850600000, +2025-01-16,3812.1935,3842.9470,3776.2861,3800.3836,14450590000,0.1148,305734630000, +2025-01-17,3788.3729,3831.6404,3780.2133,3812.3429,12662200000,0.3147,265437490000, +2025-01-20,3835.3042,3858.6677,3821.9815,3829.6764,13958130000,0.4547,292175450000, +2025-01-21,3850.3563,3850.9106,3817.1214,3832.6145,14121840000,0.0767,285073350000, +2025-01-22,3823.9447,3823.9447,3783.1438,3797.0166,13725510000,-0.9288,298745640000, +2025-01-23,3829.0462,3864.2585,3801.8531,3803.7439,18056960000,0.1772,345198070000, +2025-01-24,3793.8498,3847.6003,3793.4836,3832.8637,14897170000,0.7656,296474380000, +2025-01-27,3836.9578,3851.9969,3817.0802,3817.0802,14667080000,-0.4118,282940130000, +2025-02-05,3844.6998,3844.6998,3785.1620,3795.0848,15716830000,-0.5762,346016200000, +2025-02-06,3789.6086,3843.4942,3788.3196,3842.8314,16728820000,1.2581,371891970000, +2025-02-07,3844.0574,3919.3499,3833.8685,3892.7028,22185770000,1.2978,487381560000, +2025-02-10,3898.1023,3906.3678,3878.8314,3901.0618,18890300000,0.2147,384968340000, +2025-02-11,3905.1594,3905.1594,3872.9087,3883.1352,16657490000,-0.4595,337866060000, +2025-02-12,3875.9596,3920.7229,3867.3538,3919.8617,16422850000,0.9458,354830600000, +2025-02-13,3913.9044,3939.1978,3904.9845,3905.1398,17248590000,-0.3756,376473450000, +2025-02-14,3900.8274,3942.0356,3900.8274,3939.0085,17297650000,0.8673,360974240000, +2025-02-17,3954.4147,3955.8959,3921.7017,3947.3983,21358820000,0.2130,430929580000, +2025-02-18,3942.5761,3965.4232,3901.8675,3912.7829,20942510000,-0.8769,400186230000, +2025-02-19,3906.2201,3943.6742,3904.1455,3940.1602,18282950000,0.6997,363680370000, +2025-02-20,3934.6503,3940.6780,3916.1772,3928.8959,16389520000,-0.2859,325972430000, +2025-02-21,3938.0518,3981.0480,3927.7874,3978.4440,22740030000,1.2611,504645490000, +2025-02-24,3972.4831,3995.9456,3949.2309,3969.7169,22081060000,-0.2194,455088750000, +2025-02-25,3933.6360,3955.4336,3915.6527,3925.6505,17810860000,-1.1101,377981450000, +2025-02-26,3931.8420,3960.3298,3925.3664,3959.9413,19106250000,0.8735,386458190000, +2025-02-27,3961.0635,3973.9323,3933.4611,3968.1159,20288800000,0.2064,428272790000, +2025-02-28,3950.1866,3972.4813,3886.3994,3890.0487,19810410000,-1.9674,420308040000, +2025-03-03,3899.6962,3930.0048,3872.5872,3888.4738,17762320000,-0.0405,356057740000, +2025-03-04,3865.9939,3890.4235,3855.7254,3885.2208,14985100000,-0.0837,297739250000, +2025-03-05,3887.7992,3906.4214,3877.0188,3902.5706,15865280000,0.4466,290860480000, +2025-03-06,3923.3827,3964.4942,3917.0833,3956.2369,19396090000,1.3752,397419430000, +2025-03-07,3944.9145,3967.0743,3935.0464,3944.0143,16673240000,-0.3089,340626700000, +2025-03-10,3945.5795,3949.1448,3905.1270,3928.8018,15276520000,-0.3857,292574990000, +2025-03-11,3890.4305,3941.4157,3889.4298,3941.4157,14475440000,0.3211,287480450000, +2025-03-12,3946.8623,3953.6125,3921.4736,3927.2315,15673220000,-0.3599,309627270000, +2025-03-13,3925.7439,3939.2854,3897.3758,3911.5793,15653640000,-0.3986,295173110000, +2025-03-14,3919.6159,4014.1586,3919.6159,4006.5567,21613900000,2.4281,450895280000, +2025-03-17,4020.6402,4021.7278,3992.2563,3996.7876,16220290000,-0.2438,318904420000, +2025-03-18,4011.7794,4016.8730,3995.9602,4007.7229,14020850000,0.2736,292739320000, +2025-03-19,4004.8251,4025.2990,3989.5120,4010.1680,14441940000,0.0610,286075300000, +2025-03-20,4011.0588,4012.0416,3969.9259,3974.9918,13375470000,-0.8772,260020680000, +2025-03-21,3966.5146,3983.1476,3904.7674,3914.6956,16590530000,-1.5169,309348610000, +2025-03-24,3916.1136,3938.1826,3907.1999,3934.8486,15223470000,0.5148,266051440000, +2025-03-25,3937.8975,3946.3574,3921.5287,3932.2951,14047540000,-0.0649,239246310000, +2025-03-26,3930.2073,3942.0260,3916.8607,3919.3566,13116420000,-0.3290,220943160000, +2025-03-27,3911.3841,3952.9852,3903.6520,3932.4117,12679370000,0.3331,232173610000, +2025-03-28,3930.7763,3934.2336,3907.3840,3915.1662,12635620000,-0.4385,213379190000, +2025-03-31,3905.9815,3928.4482,3872.4030,3887.3056,16679850000,-0.7116,268480320000, +2025-04-01,3892.7794,3905.2622,3882.4045,3887.6841,14038030000,0.0097,246041670000, +2025-04-02,3884.4181,3900.4949,3877.1599,3884.3858,11304320000,-0.0848,198267520000, +2025-04-03,3843.4177,3883.7025,3843.4177,3861.5034,14259980000,-0.5891,263684680000, +2025-04-07,3675.2017,3707.7771,3514.1165,3589.4406,31257860000,-7.0455,512971790000, +2025-04-08,3597.9859,3650.7590,3583.8746,3650.7590,28019730000,1.7083,464021090000, +2025-04-09,3606.1036,3686.7943,3587.3368,3686.7943,26230570000,0.9871,455031070000, +2025-04-10,3749.1262,3756.1386,3708.8194,3735.1151,22725220000,1.3106,403842560000, +2025-04-11,3730.3148,3762.3653,3708.4617,3750.5167,16875970000,0.4123,318535140000, +2025-04-14,3772.0407,3776.6344,3754.0330,3759.1422,16446240000,0.2300,292571300000, +2025-04-15,3756.4788,3764.4860,3737.8495,3761.2348,13400600000,0.0557,228604620000, +2025-04-16,3757.8757,3775.1661,3721.6025,3772.8204,15635900000,0.3080,261711090000, +2025-04-17,3755.0862,3779.1253,3749.5040,3772.2221,12237100000,-0.0159,209012320000, +2025-04-18,3760.0425,3782.0443,3754.4072,3772.5230,10294850000,0.0080,173109380000, +2025-04-21,3768.1421,3790.1782,3763.1383,3784.8806,12135570000,0.3276,208085680000, +2025-04-22,3780.1122,3799.2295,3778.0791,3783.9522,12568830000,-0.0245,210200700000, +2025-04-23,3803.4295,3807.9536,3780.5183,3786.8824,13198690000,0.0774,247117390000, +2025-04-24,3787.4590,3807.2599,3775.2070,3784.3574,11716460000,-0.0667,205483050000, +2025-04-25,3792.0838,3801.5765,3780.7772,3786.9937,12459110000,0.0697,220535050000, +2025-04-28,3786.3867,3792.0082,3772.8029,3781.6188,12514510000,-0.1419,210635320000, +2025-04-29,3776.0025,3785.3157,3768.0311,3775.0767,11151470000,-0.1730,197462740000, +2025-04-30,3775.8306,3787.5639,3768.7573,3770.5705,14368170000,-0.1194,244820460000, +2025-05-06,3794.3757,3809.0939,3782.7770,3808.5424,15852050000,1.0071,267937090000, +2025-05-07,3861.5767,3863.6776,3814.9868,3831.6270,16117230000,0.6061,286010740000, +2025-05-08,3820.5481,3867.3313,3816.2642,3852.8963,12495980000,0.5551,246987280000, +2025-05-09,3848.6187,3853.6632,3836.5349,3846.1566,11938950000,-0.1749,216697940000, +2025-05-12,3866.5305,3890.7342,3859.0346,3890.6096,15333250000,1.1558,296122950000, +2025-05-13,3915.5924,3915.5924,3890.6855,3896.2583,14732030000,0.1452,267586400000, +2025-05-14,3894.8386,3960.5228,3890.6504,3943.2108,17203380000,1.2051,319465230000, +2025-05-15,3934.0273,3936.4653,3904.9068,3907.1992,13808170000,-0.9133,241464940000, +2025-05-16,3898.6662,3903.8528,3874.8619,3889.0854,11840530000,-0.4636,208835660000, +2025-05-19,3882.5677,3885.5889,3866.5695,3877.1453,9864340000,-0.3070,184888170000, +2025-05-20,3883.1024,3911.4737,3881.7436,3898.1705,10488520000,0.5423,201636700000, +2025-05-21,3899.4365,3928.6339,3899.4365,3916.3807,10979130000,0.4671,217037740000, +2025-05-22,3912.6007,3923.0195,3903.0898,3913.8651,10759710000,-0.0642,197511410000, +2025-05-23,3910.3739,3931.5514,3882.2741,3882.2741,12027740000,-0.8072,232945380000, +2025-05-26,3875.7891,3884.5370,3849.0384,3860.1067,10960120000,-0.5710,208876790000, +2025-05-27,3857.6271,3865.4291,3834.8455,3839.3969,9857240000,-0.5365,178466760000, +2025-05-28,3843.0747,3849.7360,3833.9582,3836.2366,8903100000,-0.0823,162496370000, +2025-05-29,3838.0092,3869.7909,3831.4577,3858.6998,10847190000,0.5856,209459600000, +2025-05-30,3850.4930,3858.6128,3829.2542,3840.2323,11167220000,-0.4786,199389750000, +2025-06-03,3833.4584,3863.2952,3832.7202,3852.0127,13140310000,0.3068,226782770000, +2025-06-04,3855.4878,3875.8569,3855.4878,3868.7429,11680390000,0.4343,211736180000, +2025-06-05,3872.6373,3883.1345,3861.2720,3877.5557,12287820000,0.2278,231749280000, +2025-06-06,3878.1027,3889.4557,3869.3871,3873.9841,11098800000,-0.0921,202034740000, +2025-06-09,3877.7977,3894.6517,3871.9917,3885.2459,13630630000,0.2907,262023670000, +2025-06-10,3887.5512,3897.4573,3850.4663,3865.4652,14556390000,-0.5091,263647550000, +2025-06-11,3870.6719,3911.6107,3870.6719,3894.6252,14241480000,0.7544,257217700000, +2025-06-12,3885.5196,3900.0408,3870.3838,3892.1992,13399870000,-0.0623,260239580000, +2025-06-13,3881.4923,3889.1602,3853.8186,3864.1822,17253950000,-0.7198,309172350000, +2025-06-16,3853.6193,3876.1704,3853.6193,3873.7951,13734180000,0.2488,246860980000, +2025-06-17,3875.1768,3880.4156,3860.4090,3870.3786,12234250000,-0.0882,220399820000, +2025-06-18,3871.6502,3881.3460,3854.6575,3874.9708,12752860000,0.1186,230553860000, +2025-06-19,3870.0490,3872.9425,3834.9512,3843.0912,13028070000,-0.8227,234840180000, +2025-06-20,3839.7833,3856.4799,3839.7833,3846.6443,11815100000,0.0925,213522820000, +2025-06-23,3831.1703,3867.5896,3827.0829,3857.9016,13380090000,0.2927,232482220000, +2025-06-24,3862.3876,3914.1579,3862.3876,3904.0342,16365620000,1.1958,294228720000, +2025-06-25,3907.0682,3963.0371,3902.1771,3960.0662,18721370000,1.4352,361727250000, +2025-06-26,3953.1603,3964.4820,3945.2589,3946.0195,16531630000,-0.3547,328102850000, +2025-06-27,3949.7879,3969.2626,3918.2041,3921.7578,19455790000,-0.6148,343468230000, +2025-06-30,3920.3149,3940.3611,3911.6044,3936.0791,14517020000,0.3652,288821430000, +2025-07-01,3935.9078,3946.2451,3924.7219,3942.7620,12895940000,0.1698,236070340000, +2025-07-02,3943.3232,3952.1378,3929.6956,3943.6849,14706310000,0.0234,246637850000, +2025-07-03,3949.3998,3971.6160,3945.1380,3968.0676,14100400000,0.6183,269609570000, +2025-07-04,3967.4637,4013.8478,3958.3762,3982.2034,15719710000,0.3562,290512990000, +2025-07-07,3977.2881,3979.7481,3956.5663,3965.1746,13113530000,-0.4276,225106990000, +2025-07-08,3965.4260,4002.2690,3965.4260,3998.4527,15640290000,0.8393,292089830000, +2025-07-09,3997.5044,4016.7434,3987.4267,3991.4006,17329380000,-0.1764,305398800000, +2025-07-10,3993.4196,4032.9829,3992.5242,4010.0243,20977890000,0.4666,347836700000, +2025-07-11,4011.4652,4065.9419,4010.1052,4014.8070,26205280000,0.1193,443780790000, +2025-07-14,4021.2135,4034.9198,4017.6678,4017.6678,20791720000,0.0713,321415950000, +2025-07-15,4023.9896,4042.6574,3994.2628,4019.0644,19104290000,0.0348,353524570000, +2025-07-16,4019.3925,4027.8567,3993.9209,4007.2019,15102730000,-0.2952,300656800000, +2025-07-17,4005.0670,4034.5935,4005.0670,4034.4910,16124900000,0.6810,325516870000, +2025-07-18,4039.8712,4064.6378,4039.3181,4058.5486,18621110000,0.5963,354244440000, +2025-07-21,4069.7685,4086.1171,4063.4427,4085.6072,22326850000,0.6667,377938560000, +2025-07-22,4087.3354,4119.2021,4068.3383,4118.9582,25759700000,0.8163,450874010000, +2025-07-23,4129.1476,4155.6783,4113.9085,4119.7685,30050620000,0.0197,470330900000, +2025-07-24,4116.8312,4152.4265,4111.8849,4149.0368,31963240000,0.7104,487000040000, +2025-07-25,4145.3195,4150.4994,4117.8005,4127.1634,27359500000,-0.5272,430445510000, +2025-07-28,4128.1993,4146.1200,4112.9677,4135.8242,22275980000,0.2098,406792870000, +2025-07-29,4132.6833,4153.3307,4117.5772,4152.0247,23080790000,0.3917,428764310000, +2025-07-30,4148.9405,4185.2064,4127.4301,4151.2379,24985300000,-0.0189,445168470000, +2025-07-31,4141.5612,4141.8243,4063.6662,4075.5912,26708740000,-1.8223,492142570000, +2025-08-01,4069.9254,4085.3543,4040.4620,4054.9286,19622180000,-0.5070,359685160000, +2025-08-04,4037.9378,4070.7023,4037.9378,4070.7023,16227590000,0.3890,295976830000, +2025-08-05,4080.3877,4106.2969,4075.5836,4103.4500,17885200000,0.8045,306934260000, +2025-08-06,4100.4283,4116.7085,4098.3544,4113.4852,17667620000,0.2446,307674630000, +2025-08-07,4120.2822,4129.7382,4094.8214,4114.6660,19864190000,0.0287,358108370000, +2025-08-08,4109.2734,4122.2104,4097.4157,4104.9669,17317120000,-0.2357,308507690000, +2025-08-11,4110.2939,4134.2462,4103.6050,4122.5106,19044370000,0.4274,360685830000, +2025-08-12,4123.5762,4153.2948,4121.2243,4143.8252,17728780000,0.5170,383088420000, +2025-08-13,4150.5037,4186.7480,4147.1991,4176.5776,21393500000,0.7904,462776750000, +2025-08-14,4179.9650,4220.3109,4165.9376,4173.3131,22110360000,-0.0782,485075640000, +2025-08-15,4162.4205,4214.7291,4157.4950,4202.3533,26132760000,0.6959,518686870000, +2025-08-18,4218.2471,4272.9602,4203.4191,4239.4125,30147910000,0.8819,635365870000, +2025-08-19,4241.7651,4264.2303,4215.2075,4223.3741,25081880000,-0.3783,553536200000, +2025-08-20,4208.4005,4272.1463,4190.5559,4271.3958,24648180000,1.1370,538815310000, +2025-08-21,4284.3712,4308.4472,4273.6523,4288.0707,25903000000,0.3904,558521270000, +2025-08-22,4287.3633,4378.3881,4287.3633,4377.9977,29043490000,2.0971,675935080000, +2025-08-25,4416.2924,4472.6525,4404.7761,4469.2217,35809000000,2.0837,823681960000, +2025-08-26,4453.3526,4476.8030,4435.5275,4452.5905,27062140000,-0.3721,627950450000, +2025-08-27,4458.8399,4494.9126,4386.1266,4386.1266,33313390000,-1.4927,785098480000, +2025-08-28,4378.0351,4464.8028,4364.1710,4463.7820,29683450000,1.7705,739423600000, +2025-08-29,4455.8034,4516.8395,4452.3632,4496.7591,35193890000,0.7388,831194070000, +2025-09-01,4516.8787,4528.1342,4487.5304,4523.7111,32036670000,0.5994,770378290000, +2025-09-02,4521.9828,4548.8937,4454.4169,4490.4528,30393260000,-0.7352,777999300000, +2025-09-03,4501.3388,4510.7303,4427.5176,4459.8296,25432020000,-0.6820,655697120000, +2025-09-04,4461.2503,4465.4967,4327.5068,4365.2085,30793460000,-2.1216,773124600000, +2025-09-05,4365.6083,4466.5603,4350.2974,4460.3249,24962570000,2.1790,664166970000, +2025-09-08,4467.1693,4482.7630,4438.0698,4467.5733,26763840000,0.1625,683630880000, +2025-09-09,4448.7390,4472.0930,4412.6914,4436.2584,22137550000,-0.7009,562861100000, +2025-09-10,4438.2998,4466.6325,4414.5937,4445.3649,20359760000,0.2053,535539350000, +2025-09-11,4438.8390,4548.0345,4427.9242,4548.0345,25326410000,2.3096,693156670000, +2025-09-12,4544.5905,4564.6665,4517.7897,4521.9980,26644200000,-0.5725,689576080000, +2025-09-15,4534.8866,4566.9053,4522.4958,4533.0557,23188570000,0.2445,613314650000, +2025-09-16,4539.9217,4552.4190,4494.7875,4523.3367,24926920000,-0.2144,613728330000, +2025-09-17,4517.2855,4556.0296,4503.7959,4551.0230,23571650000,0.6121,608454200000, +2025-09-18,4546.0319,4573.8331,4454.9886,4498.1090,30985980000,-1.1627,839987130000, +2025-09-19,4499.0906,4533.0919,4491.8437,4501.9195,22504400000,0.0847,603887060000, +2025-09-22,4512.0251,4523.8695,4487.1299,4522.6080,19646000000,0.4595,563149160000, +2025-09-23,4536.7569,4560.7319,4459.7281,4519.7781,25282710000,-0.0626,680513630000, +2025-09-24,4495.2659,4567.4948,4494.1133,4566.0708,22048260000,1.0242,629161500000, +2025-09-25,4563.9827,4613.9486,4558.8424,4593.4875,22982330000,0.6004,669866990000, +2025-09-26,4576.9142,4597.8472,4550.0487,4550.0487,20848210000,-0.9457,598723900000, +2025-09-29,4555.0342,4647.5691,4541.4252,4620.0528,27435890000,1.5385,693395230000, +2025-09-30,4629.8987,4647.5031,4616.2243,4640.6935,24798040000,0.4468,664624100000, +2025-10-09,4662.1133,4726.3449,4651.9895,4709.4820,34767870000,1.4823,862208010000, +2025-10-10,4679.4983,4692.5858,4600.9646,4616.8341,31902090000,-1.9673,792743050000, +2025-10-13,4490.8661,4601.8072,4490.8661,4593.9785,31501040000,-0.4950,714001630000, +2025-10-14,4634.0543,4641.4492,4520.9258,4539.0644,37295400000,-1.1953,808959000000, +2025-10-15,4544.2431,4608.8239,4526.8340,4606.2879,28477190000,1.4810,607326350000, +2025-10-16,4588.9206,4645.0959,4586.2801,4618.4218,24823550000,0.2634,560567190000, +2025-10-17,4610.6967,4618.5621,4509.3289,4514.2345,25690560000,-2.2559,559085970000, +2025-10-20,4558.2421,4570.4376,4520.5024,4538.2201,21842040000,0.5313,505798830000, +2025-10-21,4556.1224,4615.4630,4547.9283,4607.8715,21571120000,1.5348,551390250000, +2025-10-22,4576.0277,4603.4884,4567.2361,4592.5700,18533400000,-0.3321,440935300000, +2025-10-23,4578.7018,4611.3409,4541.6944,4606.3447,20046390000,0.2999,420800210000, +2025-10-24,4622.7873,4660.6835,4622.7873,4660.6835,20881450000,1.1797,551986650000, +2025-10-27,4699.3819,4720.4288,4687.6876,4716.0186,26220070000,1.1873,672670370000, +2025-10-28,4697.7277,4734.3218,4679.2288,4691.9730,22090660000,-0.5099,571563260000, +2025-10-29,4701.0362,4747.8378,4697.2680,4747.8378,24621130000,1.1906,645898690000, +2025-10-30,4735.9807,4761.8339,4706.4520,4709.9110,27328910000,-0.7988,719956290000, +2025-10-31,4702.4946,4706.1395,4640.6676,4640.6676,28146470000,-1.4702,680712250000, +2025-11-03,4636.7323,4653.4028,4595.7339,4653.4028,23986980000,0.2744,557602940000, +2025-11-04,4649.3481,4665.3230,4595.0660,4618.6990,23322400000,-0.7458,505177700000, +2025-11-05,4562.1117,4642.6101,4558.7647,4627.2570,20304590000,0.1853,468361160000, +2025-11-06,4642.0112,4698.0935,4642.0112,4693.4032,22424100000,1.4295,553641780000, +2025-11-07,4673.7616,4701.3743,4666.0405,4678.7944,21249740000,-0.3113,507573850000, +2025-11-10,4688.1240,4695.1794,4654.2103,4695.0507,23602680000,0.3474,593977130000, +2025-11-11,4706.3374,4707.1275,4648.4896,4652.1655,18663890000,-0.9134,477629080000, +2025-11-12,4643.5592,4669.6073,4620.9897,4645.9079,20946060000,-0.1345,492308870000, +2025-11-13,4643.7862,4703.4897,4643.7862,4702.0738,20736750000,1.2089,510060680000, +2025-11-14,4663.3175,4684.2578,4628.0242,4628.1398,19209270000,-1.5724,444720430000, +2025-11-17,4616.8058,4624.8976,4580.2613,4598.0525,18895550000,-0.6501,438940100000, +2025-11-18,4584.7896,4606.6167,4552.8038,4568.1928,17771320000,-0.6494,420150130000, +2025-11-19,4568.0365,4607.8627,4568.0365,4588.2922,17292500000,0.4400,385230480000, +2025-11-20,4619.5401,4620.6529,4560.1814,4564.9483,19456260000,-0.5088,415064820000, +2025-11-21,4513.3858,4527.0436,4453.1819,4453.6076,22285100000,-2.4390,481295810000, +2025-11-24,4473.1563,4478.8081,4421.8123,4448.0478,18583370000,-0.1248,425807470000, +2025-11-25,4475.8359,4510.7729,4467.3529,4490.4047,16957190000,0.9523,411523800000, +2025-11-26,4490.2021,4538.1361,4485.6984,4517.6255,15620040000,0.6062,427361380000, +2025-11-27,4520.0140,4559.2183,4509.8635,4515.4027,15031180000,-0.0492,417789840000, +2025-11-28,4511.4972,4531.7219,4492.4256,4526.6616,14290210000,0.2493,341832320000, +2025-12-01,4539.1877,4576.9654,4531.2917,4576.4856,20038230000,1.1007,463861590000, +2025-12-02,4571.9098,4575.4945,4539.4312,4554.3347,14849310000,-0.4840,364366430000, +2025-12-03,4554.5894,4569.8210,4523.5017,4531.0486,16976280000,-0.5113,374486170000, +2025-12-04,4533.6004,4557.4228,4514.1878,4546.5664,14719810000,0.3425,348767400000, +2025-12-05,4547.9056,4593.8279,4535.0195,4584.5368,19680000000,0.8351,412146810000, +2025-12-08,4593.1399,4640.6256,4592.7414,4621.7545,19962100000,0.8118,496716200000, +2025-12-09,4611.3790,4628.7049,4584.2540,4598.2232,18416030000,-0.5091,452113880000, +2025-12-10,4586.2540,4598.5366,4549.0798,4591.8273,16911110000,-0.1391,401452780000, +2025-12-11,4597.1901,4610.2787,4547.1372,4552.1848,16841940000,-0.8633,432431090000, +2025-12-12,4558.7375,4583.6753,4530.7841,4580.9500,21282650000,0.6319,523863220000, +2025-12-15,4550.0028,4595.0463,4548.4382,4552.0596,16759000000,-0.6307,424383390000, +2025-12-16,4542.4226,4553.0806,4484.2700,4497.5545,16516520000,-1.1974,390500130000, +2025-12-17,4499.7729,4594.6556,4498.9304,4579.8750,17842480000,1.8303,452504740000, +2025-12-18,4553.9788,4571.9683,4544.1416,4552.7926,15168130000,-0.5913,382102400000, +2025-12-19,4561.3729,4591.0931,4546.8465,4568.1781,15487620000,0.3379,371577140000, +2025-12-22,4587.6683,4615.8721,4587.6683,4611.6235,16525290000,0.9510,448240600000, +2025-12-23,4616.0260,4644.5347,4607.7992,4620.7341,16925640000,0.1976,433141330000, +2025-12-24,4623.6831,4639.4278,4602.1444,4634.0586,15371120000,0.2884,406375640000, +2025-12-25,4629.3195,4651.1535,4621.9208,4642.5357,13943420000,0.1829,385356060000, +2025-12-26,4639.7895,4676.1310,4635.1052,4657.2400,17539660000,0.3167,460426930000, +2025-12-29,4658.2654,4672.0352,4629.0567,4639.3721,20039710000,-0.3837,482613540000, +2025-12-30,4617.3163,4664.3305,4616.6323,4651.2818,18037500000,0.2567,457185490000, +2025-12-31,4656.4800,4667.0467,4622.0988,4629.9395,17076020000,-0.4588,444491550000, +2026-01-05,4661.6160,4721.6378,4661.6160,4717.7457,23414480000,1.8965,630577350000, +2026-01-06,4719.2088,4790.6938,4718.0099,4790.6938,29697070000,1.5462,725414570000, +2026-01-07,4796.9335,4802.6028,4751.0713,4776.6658,25909560000,-0.2928,664897930000, +2026-01-08,4761.0105,4765.4863,4717.0091,4737.6536,23880500000,-0.8167,630655640000, +2026-01-09,4725.9571,4771.4276,4719.1340,4758.9221,25468800000,0.4489,668788810000, +2026-01-12,4769.6501,4795.9327,4737.5702,4789.9155,29483320000,0.6513,799954080000, +2026-01-13,4798.0488,4836.9549,4745.5154,4761.0324,30144950000,-0.6030,801054980000, +2026-01-14,4767.6956,4818.1008,4720.2460,4741.9306,36495100000,-0.4012,891334220000, +2026-01-15,4721.7966,4769.5478,4720.9368,4751.4293,25400360000,0.2003,674058680000, +2026-01-16,4778.4302,4792.5514,4715.3646,4731.8728,32527890000,-0.4116,785624170000, +2026-01-19,4720.1945,4761.6317,4715.0867,4734.4556,26761250000,0.0546,655149260000, +2026-01-20,4736.9096,4748.2297,4684.9684,4718.8782,28271960000,-0.3290,671960690000, +2026-01-21,4714.5541,4758.2793,4714.2366,4723.0692,26635330000,0.0888,665330510000, +2026-01-22,4741.7548,4757.7637,4700.4482,4723.7091,27419990000,0.0135,690235250000, +2026-01-23,4729.5850,4734.7942,4684.6172,4702.4966,31463540000,-0.4491,755617740000, +2026-01-26,4715.3753,4754.1777,4693.1577,4706.9640,36300450000,0.0950,796832970000, +2026-01-27,4705.1744,4736.9857,4675.6409,4705.6918,30147570000,-0.0270,715267910000, +2026-01-28,4725.6014,4739.6257,4697.9063,4717.9914,38225560000,0.2614,829414070000, +2026-01-29,4733.0879,4770.9599,4696.0536,4753.8697,41551310000,0.7605,917966160000, +2026-01-30,4723.0810,4738.8711,4645.4706,4706.3401,31978650000,-0.9998,750564890000, +2026-02-02,4674.2759,4716.6069,4601.7603,4605.9799,30477350000,-2.1324,725920380000, +2026-02-03,4648.3574,4662.1264,4578.2087,4660.1074,26554940000,1.1752,666626840000, +2026-02-04,4647.9671,4701.4768,4641.8424,4698.6832,26488100000,0.8278,636018590000, +2026-02-05,4664.7478,4687.0213,4639.4300,4670.4188,23785640000,-0.6015,550433170000, +2026-02-06,4622.9747,4678.2618,4606.6379,4643.5959,20271650000,-0.5743,505759810000, +2026-02-09,4693.6715,4719.9642,4679.9037,4719.0559,20725190000,1.6250,522757270000, +2026-02-10,4718.2552,4732.0871,4713.8684,4724.2956,18700100000,0.1110,450339580000, +2026-02-11,4715.6697,4723.7043,4703.6873,4713.8185,17339170000,-0.2218,433428610000, +2026-02-12,4720.0085,4726.0426,4707.7359,4719.5780,19784140000,0.1222,490473850000, +2026-02-13,4693.4106,4703.6332,4658.4038,4660.4056,18916780000,-1.2538,452878590000, +2026-02-24,4727.2961,4727.3730,4698.3488,4707.5440,21848890000,1.0115,526084240000, +2026-02-25,4713.5754,4766.5587,4713.3438,4735.8858,28426840000,0.6021,596903870000, +2026-02-26,4741.3896,4742.1476,4706.6943,4726.8739,23484760000,-0.1903,599848920000, +2026-02-27,4698.3000,4721.0141,4692.8910,4710.6469,26142090000,-0.3433,578820990000, +2026-03-02,4681.0141,4735.4055,4667.2752,4728.6688,34926080000,0.3826,752681940000, +2026-03-03,4737.3164,4744.5987,4651.4047,4655.8962,37062430000,-1.5390,801659240000, +2026-03-04,4609.1918,4639.4204,4575.8249,4602.6247,30303570000,-1.1442,608923130000, +2026-03-05,4651.9415,4671.5268,4630.3024,4647.6921,25931780000,0.9792,570443780000, +2026-03-06,4621.4939,4671.7126,4612.7943,4660.4390,23852790000,0.2743,487807080000, +2026-03-09,4600.2535,4625.9814,4548.9690,4615.4551,32278760000,-0.9652,665821510000, +2026-03-10,4648.7851,4677.5958,4648.7851,4674.7562,26390370000,1.2848,557607880000, +2026-03-11,4681.0316,4711.8671,4674.7088,4704.4959,27017540000,0.6362,579564400000, +2026-03-12,4700.7205,4704.3791,4654.3147,4687.5601,30298680000,-0.3600,572105480000, +2026-03-13,4669.0619,4707.4194,4659.4979,4669.1400,31077200000,-0.3930,580305610000, +2026-03-16,4669.2241,4673.6929,4621.8118,4671.5591,29621510000,0.0518,598799100000, +2026-03-17,4685.5697,4720.8608,4637.3680,4637.4392,26302190000,-0.7304,578501510000, +2026-03-18,4648.7517,4662.2936,4604.5163,4658.3324,23469070000,0.4505,524173910000, +2026-03-19,4611.4399,4634.5468,4570.3920,4583.2511,25413040000,-1.6118,547850300000, +2026-03-20,4602.8205,4628.7118,4563.0687,4567.0179,25787370000,-0.3542,615463090000, +2026-03-23,4499.1004,4514.7182,4397.5661,4417.9971,32808190000,-3.2630,671719760000, +2026-03-24,4458.9074,4474.8250,4394.2943,4474.7224,25553250000,1.2840,530149390000, +2026-03-25,4506.6247,4542.1806,4502.0265,4537.4656,26263930000,1.4022,550428160000, +2026-03-26,4525.3291,4541.0502,4468.9571,4477.5343,21373680000,-1.3208,471127500000, +2026-03-27,4431.5034,4519.8903,4431.4205,4502.5698,19240040000,0.5591,440517560000, +2026-03-30,4461.7367,4496.4109,4447.1373,4491.9500,20929310000,-0.2359,444629520000, +2026-03-31,4491.9209,4523.1745,4450.0493,4450.0493,22454160000,-0.9328,484558110000, +2026-04-01,4517.2717,4532.1093,4492.0544,4526.0668,21648320000,1.7082,503744060000, +2026-04-02,4514.4416,4519.6931,4459.6095,4478.9141,19099220000,-1.0418,429949130000, +2026-04-03,4492.8461,4494.4571,4437.5952,4440.7889,16832170000,-0.8512,373234910000, +2026-04-07,4445.8613,4458.9264,4420.6939,4440.6162,16263880000,-0.0039,378261700000, +2026-04-08,4517.3403,4595.5560,4513.7705,4595.5560,25333920000,3.4892,641779180000, +2026-04-09,4562.6696,4579.1970,4552.4244,4566.2237,18493980000,-0.6383,, +2026-04-10,4594.9467,4655.0988,4590.1089,4636.5655,20867860000,1.5405,, +2026-04-13,4615.1330,4653.3983,4615.1330,4646.1546,19671230000,0.2068,, +2026-04-14,4676.1235,4701.2837,4654.8526,4701.2837,20470030000,1.1866,, +2026-04-15,4726.6381,4731.2729,4672.5560,4685.2464,20168850000,-0.3411,, +2026-04-16,4694.4309,4739.2208,4689.4140,4736.6077,19205760000,1.0962,, +2026-04-17,4728.9951,4738.3236,4714.4669,4728.6716,18291530000,-0.1675,, +2026-04-20,4727.1661,4763.0427,4720.6853,4757.4419,22163350000,0.6084,, +2026-04-21,4750.5149,4776.8258,4722.0074,4767.9970,20561410000,0.2219,, +2026-04-22,4751.2794,4801.4465,4750.3502,4799.6270,20448180000,0.6634,, +2026-04-23,4816.0267,4823.4704,4759.8600,4786.3273,23286570000,-0.2771,, +2026-04-24,4771.7348,4786.4440,4735.6060,4769.3688,19379830000,-0.3543,, +2026-04-27,4776.3351,4795.1682,4762.6441,4770.9469,19279660000,0.0331,, +2026-04-28,4757.0766,4778.1891,4743.4355,4758.2083,21672420000,-0.2670,, +2026-04-29,4737.5755,4813.6104,4737.1139,4810.3468,23329810000,1.0958,, +2026-04-30,4820.9716,4829.2715,4797.5445,4807.3069,25063340000,-0.0632,, +2026-05-06,4857.6537,4892.7957,4834.2807,4877.0932,27444390000,1.4517,, +2026-05-07,4895.8001,4901.8575,4866.8749,4900.5098,25783400000,0.4801,, +2026-05-08,4871.1185,4887.2129,4849.9871,4871.9122,25172100000,-0.5836,, +2026-05-11,4902.2775,4960.3975,4889.5659,4951.8366,30573480000,1.6405,, +2026-05-12,4965.0175,4971.3026,4926.7897,4948.0465,27381200000,-0.0765,, +2026-05-13,4919.4248,5001.1201,4919.4248,4998.3417,26845450000,1.0165,, +2026-05-14,5027.6405,5030.5187,4913.6037,4914.5971,28069540000,-1.6754,, +2026-05-15,4911.6223,4935.6173,4832.6899,4859.5927,27696780000,-1.1192,, +2026-05-18,4836.3286,4868.6008,4806.1455,4833.5237,23907760000,-0.5364,, +2026-05-19,4818.7051,4854.5247,4773.5340,4852.8832,23228090000,0.4005,, +2026-05-20,4829.6129,4866.2121,4825.6430,4850.7000,22002320000,-0.0450,, +2026-05-21,4886.2389,4937.9327,4780.7107,4783.0976,28734250000,-1.3937,, +2026-05-22,4818.8435,4851.3489,4785.3486,4845.0956,28694040000,1.2962,, +2026-05-25,4873.1962,4922.4375,4857.1345,4921.5974,26474320000,1.5790,, +2026-05-26,4900.1152,4952.7412,4892.6830,4947.8493,30279950000,0.5334,, +2026-05-27,4940.9454,4974.2108,4891.3428,4908.1714,30170920000,-0.8019,, +2026-05-28,4889.2659,4922.3297,4843.2265,4914.2133,26743270000,0.1231,, +2026-05-29,4937.5119,4954.0703,4878.7869,4892.1213,33251860000,-0.4496,, +2026-06-01,4897.8968,4918.7935,4836.6851,4844.2556,29613410000,-0.9784,, +2026-06-02,4860.6119,4930.2776,4831.9972,4914.5591,28173170000,1.4513,, +2026-06-03,4921.3445,4991.8525,4904.8969,4938.8091,30403590000,0.4934,, +2026-06-04,4897.3164,4938.7814,4889.7456,4904.7454,26480890000,-0.6897,, +2026-06-05,4886.9645,4924.3438,4798.9103,4816.9199,30192930000,-1.7906,, +2026-06-08,4703.7730,4779.8623,4677.5682,4713.6358,29964760000,-2.1442,, +2026-06-09,4743.4505,4802.5047,4715.3907,4801.8106,25839160000,1.8706,, +2026-06-10,4753.1154,4786.5162,4718.9946,4748.5932,25929710000,-1.1083,, +2026-06-11,4730.0720,4766.1728,4685.5014,4722.4122,24717710000,-0.5513,, +2026-06-12,4784.6396,4809.8606,4757.5574,4777.3206,33592210000,1.1627,, +2026-06-15,4829.2886,4892.5502,4803.1836,4891.7126,33131610000,2.3945,, +2026-06-16,4894.8785,4908.2817,4866.0613,4884.2322,28258470000,-0.1529,, +2026-06-17,4859.7012,4933.9288,4859.7012,4931.3861,27605400000,0.9654,, +2026-06-18,4916.0442,4976.8909,4916.0442,4941.5986,33445990000,0.2071,, +2026-06-22,4949.3457,5061.5105,4928.4582,5059.6582,37510010000,2.3891,, +2026-06-23,5048.0255,5064.2654,4892.0944,4919.3860,34271930000,-2.7724,, +2026-06-24,4900.3838,4953.2321,4892.2676,4943.0197,31224900000,0.4804,, +2026-06-25,4950.9753,5031.9994,4944.8760,5020.1038,34666430000,1.5595,, +2026-06-26,4981.8251,4981.9830,4845.1921,4868.2205,34117920000,-3.0255,, +2026-06-29,4866.0432,4928.5987,4827.1490,4926.9210,32321610000,1.2058,, +2026-06-30,4914.4934,4987.5599,4914.4934,4979.4328,30615020000,1.0658,, +2026-07-01,4972.6923,5017.3754,4925.6309,4958.9773,34293470000,-0.4108,, +2026-07-02,4865.1713,4896.9934,4800.4842,4812.2957,34324380000,-2.9579,, +2026-07-03,4809.4988,4890.9652,4809.4988,4842.1737,30106760000,0.6209,, +2026-07-06,4868.5422,4878.3231,4789.7956,4841.9980,29405050000,-0.0036,, +2026-07-07,4813.8707,4839.5098,4756.7250,4792.2624,24630600000,-1.0272,, +2026-07-08,4804.4837,4830.0464,4751.4045,4755.5338,24392870000,-0.7664,783200000000, +2026-07-09,4774.4021,4882.8477,4734.8666,4876.3125,28162770000,2.5398,947100000000, +2026-07-10,4887.5355,4906.4898,4780.7468,4780.7867,30413030000,-1.9590,1083900000000, +2026-07-13,4745.4383,4775.2355,4670.2496,4695.3830,27863490000,-1.7864,907900000000, +2026-07-14,4691.1224,4796.5020,4649.0444,4796.5020,28325100000,2.1536,924100000000, +2026-07-15,4797.9430,4826.8637,4772.0415,4786.7828,27869270000,-0.2026,858300000000, +2026-07-16,4711.5320,4771.0573,4673.3503,4698.4344,25156100000,-1.8457,798800000000, +2026-07-17,4661.6218,4663.5311,4492.0850,4529.0953,30262990000,-3.6042,920800000000, +2026-07-20,4575.6712,4628.7985,4521.1808,4598.3208,33311610000,1.5285,933400000000, +2026-07-21,4630.8532,4739.2326,4566.2810,4739.2287,34540360000,3.0643,1016700000000, +2026-07-22,4710.6602,4772.0815,4692.8330,4717.2442,28555640000,-0.4639,921500000000, +2026-07-23,4735.1706,4737.5092,4698.8717,4728.0018,24733170000,0.2280,741800000000, +2026-07-24,4685.4082,4704.0843,4642.9387,4649.1917,22126120000,-1.6669,626400000000, +2026-07-27,4656.0272,4702.5249,4615.5310,4702.4272,20478690000,1.1450,604600000000, +2026-07-28,4623.7986,4646.4870,4552.2287,4569.5235,21570500000,-2.8263,652000000000, +2026-07-29,4582.0949,4626.7058,4516.3162,4600.2624,24808240000,0.6727,751500000000, +2026-07-30,4566.0467,4596.2056,4478.2093,4549.7201,27465110000,-1.0987,803700000000, +2026-07-31,4623.8536,4635.5888,4588.1968,4588.1968,27924370000,0.8457,832900000000, +2026-08-03,4561.8170,4572.5880,4529.1862,4543.1781,23204260000,-0.9812,615800000000, +2026-08-04,4566.9425,4613.6937,4555.2465,4600.9304,24207360000,1.2712,698800000000, +2026-08-05,4550.1888,4679.8585,4550.1888,4658.1549,27692190000,1.2438,879200000000, +2026-08-06,4621.8030,4675.6455,4611.0655,4651.3098,24751070000,-0.1469,747800000000, +2026-08-07,4656.0976,4706.7288,4649.5763,4694.4365,23907200000,0.9272,788400000000, +2026-08-10,4698.8162,4714.4648,4659.4700,4702.0247,21307600000,0.1616,733100000000, +2026-08-11,4689.4493,4715.8812,4660.4742,4663.7887,20969910000,-0.8132,645400000000, +2026-08-12,4660.4658,4700.4347,4657.6933,4690.9165,18493910000,0.5817,575300000000, +2026-08-13,4716.9748,4727.2344,4661.8816,4663.9513,21549960000,-0.5748,690700000000, +2026-08-14,4672.9752,4676.7124,4637.1282,4665.8812,17843070000,0.0414,549800000000, +2026-08-17,4672.2756,4742.4043,4662.7150,4741.0981,19056930000,1.6121,657600000000, +2026-08-18,4734.0733,4744.0054,4687.5259,4725.8134,20424550000,-0.3224,619800000000, +2026-08-19,4660.0550,4674.3751,4568.0659,4588.6955,24407010000,-2.9015,705300000000, +2026-08-20,4613.2975,4631.1260,4569.2282,4592.7504,20087420000,0.0884,554000000000, +2026-08-21,4585.4354,4628.9996,4579.2608,4618.8952,17107590000,0.5693,505500000000, +2026-08-24,4620.9489,4621.3893,4527.4871,4563.1266,20661690000,-1.2074,590400000000, +2026-08-25,4542.2438,4573.3777,4523.0229,4552.0326,17151020000,-0.2431,480400000000, +2026-08-26,4549.4321,4612.0375,4542.8425,4590.7935,18457820000,0.8515,489100000000, +2026-08-27,4594.4794,4631.3486,4584.9931,4630.2770,20201720000,0.8601,587100000000, +2026-08-28,4615.8393,4643.3351,4608.4617,4609.1764,18098950000,-0.4557,549800000000, +2026-08-31,4561.9861,4625.0862,4557.3457,4625.0862,23744760000,0.3452,583400000000, +2026-09-01,4618.7337,4640.0810,4604.7695,4611.4394,21486960000,-0.2951,535700000000, +2026-09-02,4581.5140,4583.2709,4534.3894,4547.9559,18699190000,-1.3767,474700000000, +2026-09-03,4570.9115,4585.9873,4536.9247,4552.5784,18224410000,0.1016,439900000000, +2026-09-04,4575.3163,4602.1963,4530.7624,4548.0499,19699740000,-0.0995,517500000000, +2026-09-07,4567.8945,4580.7022,4545.4107,4575.0245,18321850000,0.5931,535800000000, +2026-09-08,4575.9905,4587.7257,4546.3055,4558.7371,17356670000,-0.3560,492100000000, +2026-09-09,4578.5125,4581.9039,4548.3630,4572.5995,15800440000,0.3041,440000000000, +2026-09-10,4550.1865,4569.8328,4533.6586,4548.3898,14692260000,-0.5295,390600000000, +2026-09-11,4514.2954,4520.1695,4461.5695,4510.1554,20423000000,-0.8406,522200000000, +2026-09-14,4474.9474,4504.4894,4473.2745,4480.0821,14948840000,-0.6668,398700000000, +2026-09-15,4473.8050,4496.9558,4444.6281,4450.0402,14271810000,-0.6706,394800000000, +2026-09-16,4449.8833,4483.3564,4417.5974,4480.2683,16349450000,0.6793,476500000000, +2026-09-17,4463.6206,4495.8348,4453.9186,4460.1557,17002560000,-0.4489,448300000000, +2026-09-18,4492.3233,4523.0915,4480.5856,4507.3926,18992420000,1.0591,537700000000, +2026-09-21,4524.3430,4540.5541,4512.1503,4539.5654,18636150000,0.7138,495400000000, +2026-09-22,4569.8738,4583.3835,4537.0370,4544.5875,17786390000,0.1106,523600000000, +2026-09-23,4547.6106,4547.6929,4513.4492,4517.2785,15714380000,-0.6009,378300000000, +2026-09-24,4499.8574,4500.2017,4439.1443,4439.1443,15196580000,-1.7297,375500000000, +2026-09-28,4423.8156,4423.8156,4323.5694,4340.7550,17127740000,-2.2164,428600000000, +2026-09-29,4335.8085,4359.3015,4324.5292,4345.2088,14812950000,0.1026,335000000000, +2026-09-30,4356.7955,4368.6139,4341.8791,4357.6155,16294960000,0.2855,356500000000, +2026-10-08,4354.9293,4383.5676,4289.7944,4310.2765,19155270000,-1.0864,446208260000, +2026-10-09,4297.2513,4330.7431,4239.7425,4317.2549,19918740000,0.1619,496179130000, +2026-10-12,4305.9149,4334.2904,4279.7066,4287.9798,18071730000,-0.6781,405573720000, +2026-10-13,4236.9492,4310.3330,4216.8602,4275.6800,18043410000,-0.2868,442037720000, +2026-10-14,4259.3328,4281.4619,4214.0065,4217.6801,16921980000,-1.3565,368451240000, +2026-10-15,4145.9473,4176.0948,4115.0718,4166.0124,21277630000,-1.2250,483519690000, +2026-10-16,4189.2597,4206.8899,4127.9422,4170.6131,18470520000,0.1104,413749300000, +2026-10-19,4148.3471,4192.0248,4143.6580,4174.5349,15108500000,0.0940,363447750000, +2026-10-20,4157.9331,4175.2096,4113.1354,4152.1076,16695610000,-0.5372,396228660000, +2026-10-21,4161.2572,4161.2572,4098.9606,4111.9325,14430350000,-0.9676,387929790000, +2026-10-22,4110.6489,4110.6489,4022.8685,4036.2966,17804390000,-1.8394,435084140000, +2026-10-23,3992.9041,4109.5184,3958.1375,4105.3286,23132520000,1.7103,558204980000, +2026-10-26,4078.5695,4107.7939,4057.5628,4103.5432,19214720000,-0.0435,456246630000, +2026-10-27,4105.4807,4110.0018,4049.5420,4049.5516,16868850000,-1.3157,383125560000, +2026-10-28,4084.6154,4088.0226,4054.1117,4083.8702,16656020000,0.8475,419279470000, +2026-10-29,4075.4727,4075.4727,4030.2296,4041.8376,17143070000,-1.0292,411892970000, +2026-10-30,3985.2357,4046.8679,3968.8562,3985.5010,19209170000,-1.3938,456855790000, +2026-11-02,4005.9395,4038.8150,3988.1681,4016.9179,24440110000,0.7883,528847290000, +2026-11-03,4005.2511,4028.7367,3969.5471,4008.8748,24878000000,-0.2002,553053600000, +2026-11-04,4007.3506,4105.8575,3987.1516,4101.3350,24637200000,2.3064,597260470000, +2026-11-05,4065.7238,4136.7983,4065.7238,4113.4112,24197990000,0.2944,622088650000, +2026-11-06,4017.9403,4069.0717,4013.7925,4054.2769,19215200000,-1.4376,478840400000, +2026-11-09,4066.2798,4081.0868,4053.9961,4056.1081,15837490000,0.0452,395205080000, +2026-11-10,4089.0521,4090.3793,4054.6502,4059.1105,15038550000,0.0740,380089550000, +2026-11-11,4049.4288,4085.0004,4035.3967,4075.7093,16119930000,0.4089,442127610000, +2026-11-12,4063.2518,4100.0469,4034.5242,4043.9254,17546460000,-0.7798,508194730000, +2026-11-13,4047.7696,4052.0599,4004.4974,4016.2897,17934200000,-0.6834,460245660000, +2026-11-16,3984.7731,3997.4042,3959.9321,3979.8035,18543920000,-0.9085,430554180000, +2026-11-17,3965.9032,3985.9884,3942.3756,3976.4629,17926290000,-0.0839,409477160000, +2026-11-18,3991.1643,3991.1643,3948.4952,3983.7667,16731830000,0.1837,389913840000, +2026-11-19,3972.4346,3995.5469,3937.7507,3984.8399,16335780000,0.0269,395441170000, +2026-11-20,3925.7389,3961.0671,3894.4725,3954.5650,21074490000,-0.7598,441107730000, +2026-11-23,3931.4651,3968.4476,3901.4927,3958.2938,20394330000,0.0943,458279260000, +2026-11-24,4004.0355,4011.6853,3957.9221,3963.8232,19738120000,0.1397,506865910000, +2026-11-25,3929.8401,3937.3286,3886.9179,3898.2356,18177350000,-1.6547,410985200000, +2026-11-26,3918.0219,3922.2949,3877.8242,3900.5483,15994720000,0.0593,371397580000, diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/node/data_v2/000300.SH_hs300.csv b/plugins/alphamao1/kline-intuition-lab/miniapp/node/data_v2/000300.SH_hs300.csv new file mode 100644 index 00000000..30779b9d --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/node/data_v2/000300.SH_hs300.csv @@ -0,0 +1,1232 @@ +日期,开盘价,最高价,最低价,收盘价,成交量(股),涨跌幅(%),成交额(元),复权因子 +2021-11-01,4878.1276,4908.2056,4858.2485,4890.6851,17158400000,-0.3684,379730770000, +2021-11-02,4886.1849,4911.2266,4797.8990,4839.8457,18543770000,-1.0395,385731880000, +2021-11-03,4835.8093,4858.7133,4804.3657,4821.1119,14276380000,-0.3871,302269930000, +2021-11-04,4841.0912,4873.9394,4834.7433,4868.7419,13259300000,0.9879,308688050000, +2021-11-05,4858.8999,4889.6835,4841.7442,4842.3458,14778940000,-0.5422,312070840000, +2021-11-08,4841.1527,4866.0822,4827.6892,4848.1795,13739830000,0.1205,295893820000, +2021-11-09,4858.2525,4870.7905,4818.5386,4846.7444,11837550000,-0.0296,261645070000, +2021-11-10,4832.8006,4832.8006,4753.9959,4821.1925,13511820000,-0.5272,301058970000, +2021-11-11,4814.7655,4898.6529,4809.1109,4898.6529,16048490000,1.6067,323624630000, +2021-11-12,4902.9289,4909.0839,4875.3492,4888.3749,13266300000,-0.2098,271773240000, +2021-11-15,4894.4119,4906.3301,4863.3960,4882.3777,12182310000,-0.1227,272997750000, +2021-11-16,4880.8964,4915.3717,4876.5004,4883.3206,12725440000,0.0193,284094590000, +2021-11-17,4883.2481,4891.5232,4864.5198,4885.7544,10845920000,0.0498,246177920000, +2021-11-18,4871.4216,4871.4216,4830.4123,4837.6185,11448060000,-0.9852,244484710000, +2021-11-19,4832.0595,4892.8093,4829.5665,4890.0575,12719830000,1.0840,266280680000, +2021-11-22,4895.3875,4918.9957,4893.2732,4912.3990,13809280000,0.4569,316148810000, +2021-11-23,4905.7587,4927.5211,4896.8781,4913.3457,15430440000,0.0193,301022150000, +2021-11-24,4914.0266,4935.4885,4899.6112,4916.6579,13715070000,0.0674,289707340000, +2021-11-25,4917.6055,4921.3333,4891.7280,4896.4416,11598400000,-0.4112,255450990000, +2021-11-26,4886.9516,4886.9516,4850.8114,4860.1265,12036900000,-0.7417,243041340000, +2021-11-29,4820.0053,4858.5322,4818.7058,4851.4230,13362690000,-0.1791,285995220000, +2021-11-30,4857.1830,4871.2528,4810.2192,4832.0260,12963060000,-0.3998,279268230000, +2021-12-01,4831.8885,4844.5242,4823.9254,4843.8510,12308680000,0.2447,255968910000, +2021-12-02,4839.9137,4866.8505,4830.3228,4856.1630,14808850000,0.2542,278051730000, +2021-12-03,4856.9802,4901.0175,4853.3505,4901.0175,14405960000,0.9237,300052700000, +2021-12-06,4909.4292,4943.9032,4888.6927,4892.6209,17361570000,-0.1713,333405790000, +2021-12-07,4930.8261,4934.0973,4895.2178,4922.1015,17905350000,0.6026,340617770000, +2021-12-08,4934.4056,4995.9298,4915.7898,4995.9298,15749060000,1.4999,329064830000, +2021-12-09,5000.6871,5114.5012,4999.4097,5078.6901,22056880000,1.6566,425680960000, +2021-12-10,5046.2677,5060.0554,5035.8087,5055.1172,19369520000,-0.4642,356917630000, +2021-12-13,5090.0207,5143.8410,5079.7276,5083.8007,21180160000,0.5674,426376530000, +2021-12-14,5066.3497,5075.2138,5038.8583,5049.6953,15910780000,-0.6709,318685540000, +2021-12-15,5036.2840,5060.3680,5003.7776,5005.8991,15052980000,-0.8673,291072570000, +2021-12-16,5006.6105,5034.7321,4987.2247,5034.7321,14405390000,0.5760,291474770000, +2021-12-17,5021.3385,5022.1067,4954.7592,4954.7599,14900540000,-1.5884,297943310000, +2021-12-20,4934.9662,4971.6727,4872.6846,4880.4178,16967570000,-1.5004,317536920000, +2021-12-21,4876.5141,4917.7994,4872.9491,4913.4853,14333990000,0.6776,259023180000, +2021-12-22,4924.5771,4936.6731,4903.1652,4914.4544,13325670000,0.0197,244642450000, +2021-12-23,4924.2912,4948.7389,4906.7473,4948.7389,13955540000,0.6976,263359750000, +2021-12-24,4953.0616,4964.9064,4905.9785,4921.3449,14267330000,-0.5536,290483660000, +2021-12-27,4918.1462,4939.6890,4894.1598,4919.3238,12410100000,-0.0411,254421530000, +2021-12-28,4923.6917,4959.1448,4913.5983,4955.9644,13045780000,0.7448,276316730000, +2021-12-29,4958.6455,4958.6455,4883.4804,4883.4804,11358700000,-1.4626,273225470000, +2021-12-30,4882.1561,4940.1780,4878.6478,4921.5109,12161720000,0.7788,268022480000, +2021-12-31,4937.4630,4950.3639,4923.1392,4940.3733,12131370000,0.3833,266975390000, +2022-01-04,4957.9835,4961.4527,4874.5337,4917.7653,15153480000,-0.4576,336516960000, +2022-01-05,4907.9347,4916.2822,4851.9835,4868.1202,17881610000,-1.0095,363944530000, +2022-01-06,4842.1560,4857.5596,4786.4330,4818.2318,15766580000,-1.0248,321750080000, +2022-01-07,4824.3181,4856.6522,4818.1931,4822.3689,18713940000,0.0859,332218950000, +2022-01-10,4812.2300,4844.3928,4780.8191,4844.0451,15621170000,0.4495,305033820000, +2022-01-11,4840.0087,4850.8790,4791.8854,4797.7735,14692800000,-0.9552,286445760000, +2022-01-12,4818.8902,4852.7314,4810.9190,4845.5787,14320020000,0.9964,293153040000, +2022-01-13,4853.0314,4853.0632,4765.2416,4765.9191,14251970000,-1.6440,288799120000, +2022-01-14,4743.9124,4764.0522,4723.9428,4726.7317,14686310000,-0.8222,281828450000, +2022-01-17,4728.7595,4775.2385,4726.7083,4767.2762,11529570000,0.8578,263788240000, +2022-01-18,4766.7811,4826.3003,4747.9200,4813.3472,15087080000,0.9664,282749390000, +2022-01-19,4815.8106,4828.7522,4755.9301,4780.3784,13392740000,-0.6849,275534560000, +2022-01-20,4778.2616,4845.0048,4777.5683,4823.5091,16497130000,0.9022,304344270000, +2022-01-21,4808.7733,4818.3052,4762.5641,4779.3142,13895260000,-0.9162,274699160000, +2022-01-24,4753.9413,4801.0976,4746.4479,4786.7377,11446390000,0.1553,246261590000, +2022-01-25,4761.9500,4781.3908,4678.2472,4678.4511,13366760000,-2.2622,250555770000, +2022-01-26,4697.0991,4718.9946,4648.1283,4712.3109,10707080000,0.7237,226553450000, +2022-01-27,4708.0989,4708.4364,4616.0273,4619.8765,12126380000,-1.9616,250535650000, +2022-01-28,4641.8137,4660.5190,4559.8331,4563.7720,12648010000,-1.2144,263967890000, +2022-02-07,4638.5754,4672.6535,4615.0052,4634.0899,14484970000,1.5408,266031790000, +2022-02-08,4626.4365,4626.4365,4522.4709,4608.7729,15583070000,-0.5463,281364870000, +2022-02-09,4608.1491,4659.4611,4595.2826,4652.0609,14833550000,0.9393,273771960000, +2022-02-10,4657.2107,4657.2107,4608.0905,4639.8625,15157670000,-0.2622,287224390000, +2022-02-11,4617.8741,4662.5963,4595.8751,4601.3953,15597460000,-0.8291,307938020000, +2022-02-14,4579.4202,4593.6324,4530.0566,4551.6878,14367390000,-1.0803,275737550000, +2022-02-15,4553.8112,4601.4530,4550.5430,4600.1025,11502560000,1.0637,249977010000, +2022-02-16,4619.8458,4643.1003,4607.2178,4617.9893,10725900000,0.3888,210190930000, +2022-02-17,4616.8955,4650.1591,4606.9522,4629.1649,11001460000,0.2420,227946250000, +2022-02-18,4604.5669,4651.3415,4598.1003,4651.2358,10455020000,0.4768,195825700000, +2022-02-21,4646.0522,4646.6724,4613.2971,4634.3141,11251650000,-0.3638,215039180000, +2022-02-22,4601.9184,4602.0660,4550.8040,4574.1527,12331720000,-1.2982,246872960000, +2022-02-23,4582.0064,4625.2979,4579.2945,4623.0465,12295290000,1.0689,259050150000, +2022-02-24,4592.0690,4610.8792,4488.4763,4529.3189,18440310000,-2.0274,342346670000, +2022-02-25,4564.6321,4611.8602,4561.8964,4573.4247,14972260000,0.9738,271727600000, +2022-02-28,4563.7427,4581.6459,4530.6764,4581.6459,13540700000,0.1798,248363730000, +2022-03-01,4597.8550,4623.4312,4583.9170,4619.6862,12313920000,0.8303,260431190000, +2022-03-02,4594.0170,4594.0170,4558.4416,4578.6007,11329830000,-0.8894,215299660000, +2022-03-03,4595.0249,4599.3973,4544.4313,4551.6283,13828590000,-0.5891,242701770000, +2022-03-04,4513.3636,4539.3925,4481.4927,4496.4301,12726680000,-1.2127,249970280000, +2022-03-07,4462.5174,4462.5174,4338.3042,4352.7775,16219770000,-3.1948,306898530000, +2022-03-08,4361.6424,4383.6467,4252.5386,4265.3910,16786330000,-2.0076,315176700000, +2022-03-09,4280.9789,4304.4820,4068.1930,4226.3463,19423290000,-0.9154,341009390000, +2022-03-10,4326.2035,4335.6731,4288.5078,4292.8374,14526640000,1.5733,301636180000, +2022-03-11,4231.1961,4316.0440,4176.4522,4306.5217,15239990000,0.3188,295008830000, +2022-03-14,4248.1526,4280.3609,4174.7577,4174.7577,13018720000,-3.0596,260691660000, +2022-03-15,4125.4866,4163.4176,3983.8120,3983.8120,20252470000,-4.5738,346988950000, +2022-03-16,4053.0990,4168.5853,3942.8610,4156.0810,19602200000,4.3242,378883590000, +2022-03-17,4237.6722,4302.7426,4217.8038,4237.6956,17940730000,1.9637,385039200000, +2022-03-18,4218.4736,4283.3679,4194.9402,4265.9017,14945830000,0.6656,275791290000, +2022-03-21,4280.1397,4287.8166,4223.0240,4258.7459,12703640000,-0.1677,251214540000, +2022-03-22,4252.5658,4283.3344,4236.6888,4255.2950,12638250000,-0.0810,226213530000, +2022-03-23,4269.6088,4287.5771,4241.9570,4276.5174,11708910000,0.4987,226390780000, +2022-03-24,4249.5328,4273.9568,4216.8506,4251.3061,10891830000,-0.5895,219594430000, +2022-03-25,4249.0731,4254.8449,4173.9300,4174.5742,10880800000,-1.8049,217013190000, +2022-03-28,4128.8379,4174.1206,4091.2978,4148.4663,11844900000,-0.6254,213468970000, +2022-03-29,4155.4182,4177.2134,4124.7179,4134.1441,10026700000,-0.3452,199463850000, +2022-03-30,4162.1666,4254.0989,4160.7351,4254.0989,13834600000,2.9016,268869180000, +2022-03-31,4234.7159,4247.3602,4214.5352,4222.5968,13402920000,-0.7405,238877220000, +2022-04-01,4198.8191,4290.6710,4190.0835,4276.1580,13380310000,1.2684,244758870000, +2022-04-06,4258.8325,4277.5238,4236.7283,4263.8411,15906220000,-0.2880,253690930000, +2022-04-07,4240.0237,4278.1127,4205.7430,4209.0998,13488040000,-1.2838,216996190000, +2022-04-08,4213.2107,4237.8126,4175.5287,4230.7669,14284380000,0.5148,229081760000, +2022-04-11,4203.7902,4203.7902,4089.0934,4100.0703,14819710000,-3.0892,265224930000, +2022-04-12,4102.9711,4179.9727,4075.7960,4179.9727,14428570000,1.9488,252830410000, +2022-04-13,4154.4121,4194.0374,4139.7370,4139.7370,12509750000,-0.9626,221281030000, +2022-04-14,4172.6443,4217.0612,4155.5509,4191.5684,12479130000,1.2520,245993820000, +2022-04-15,4162.3718,4211.3174,4152.9740,4188.7472,12476230000,-0.0673,226229740000, +2022-04-18,4152.9306,4171.7427,4119.9941,4166.3844,11750460000,-0.5339,212855330000, +2022-04-19,4161.9328,4186.9389,4115.4184,4134.9017,11021750000,-0.7556,208570580000, +2022-04-20,4130.5427,4136.1661,4060.5044,4070.7889,11733170000,-1.5505,216536640000, +2022-04-21,4048.7338,4086.4393,3978.3669,3995.8300,13278380000,-1.8414,227026680000, +2022-04-22,3967.2016,4037.0840,3953.7217,4013.2498,12210180000,0.4359,206371770000, +2022-04-25,3933.4459,3958.2102,3814.9127,3814.9127,16836450000,-4.9421,272889270000, +2022-04-26,3822.4887,3871.8498,3773.8986,3784.1198,15757760000,-0.8072,259626350000, +2022-04-27,3758.0835,3895.7310,3757.0859,3895.5361,17273400000,2.9443,296924100000, +2022-04-28,3883.4196,3943.4349,3873.5781,3921.1073,15305660000,0.6564,268502240000, +2022-04-29,3939.6238,4017.4281,3898.5701,4016.2410,17945840000,2.4262,321414880000, +2022-05-05,3995.3533,4039.7000,3988.9312,4010.2102,15417070000,-0.1502,290538230000, +2022-05-06,3928.8548,3947.2378,3902.0510,3908.8150,12300560000,-2.5284,214825170000, +2022-05-09,3883.9514,3914.1116,3854.9353,3877.4364,9293670000,-0.8028,171756500000, +2022-05-10,3820.6278,3932.6823,3808.5699,3919.8684,13641690000,1.0943,239060210000, +2022-05-11,3917.9322,4033.3026,3916.5249,3976.4231,16563230000,1.4428,309294910000, +2022-05-12,3949.9490,3985.9268,3935.5886,3958.7400,11337610000,-0.4447,202029160000, +2022-05-13,3983.8201,4003.8539,3957.1392,3988.6002,10996840000,0.7543,195727040000, +2022-05-16,4014.9955,4018.0283,3947.7461,3956.5378,11242530000,-0.8039,199717910000, +2022-05-17,3961.7605,4005.8934,3955.1018,4005.8934,10966150000,1.2474,210117540000, +2022-05-18,4015.0134,4017.3410,3964.7503,3991.9069,10807420000,-0.3491,201800670000, +2022-05-19,3938.2964,3999.5984,3933.7452,3999.5984,11629340000,0.1927,210206680000, +2022-05-20,4020.8162,4077.6016,4020.8162,4077.5998,14706920000,1.9502,265609090000, +2022-05-23,4080.9694,4080.9694,4029.0846,4053.9823,13047780000,-0.5792,225981540000, +2022-05-24,4052.8675,4055.7830,3959.1541,3959.1541,14555430000,-2.3391,247713040000, +2022-05-25,3959.7672,3983.6236,3946.8083,3983.1784,10773400000,0.6068,188700540000, +2022-05-26,3987.6815,4015.7468,3938.2389,3993.0446,12626370000,0.2477,216987030000, +2022-05-27,4022.7095,4051.1428,3983.3838,4001.2988,11276930000,0.2067,206944430000, +2022-05-30,4020.8584,4040.8190,4003.3768,4029.0179,11115220000,0.6928,211144720000, +2022-05-31,4031.7621,4096.1971,4020.3781,4091.5176,13541550000,1.5512,267770090000, +2022-06-01,4086.6177,4094.9008,4058.8468,4083.1772,11485090000,-0.2038,225416240000, +2022-06-02,4063.9996,4091.1520,4057.9135,4089.5682,11389360000,0.1565,222657540000, +2022-06-06,4090.5286,4166.6151,4063.9057,4166.0850,16787100000,1.8710,324075630000, +2022-06-07,4165.6899,4198.0863,4155.1683,4179.1285,14299290000,0.3131,285733720000, +2022-06-08,4187.1483,4224.8096,4158.0329,4219.8122,15737410000,0.9735,319480250000, +2022-06-09,4211.7225,4227.4484,4160.8814,4175.6747,16844920000,-1.0460,285172800000, +2022-06-10,4145.6505,4241.3541,4140.2203,4238.9936,18479620000,1.5164,324091440000, +2022-06-13,4194.4574,4218.2327,4156.7146,4189.3527,16847560000,-1.1711,336585670000, +2022-06-14,4143.2232,4224.0857,4102.9290,4222.3114,17138590000,0.7867,335418560000, +2022-06-15,4228.2926,4348.4226,4228.2926,4278.2178,25704660000,1.3241,459766820000, +2022-06-16,4282.0827,4302.9212,4241.0750,4250.0614,18407440000,-0.6581,337235910000, +2022-06-17,4219.2339,4318.7655,4218.6817,4309.0444,15864910000,1.3878,346675730000, +2022-06-20,4322.8324,4368.3555,4297.8912,4330.4328,16566640000,0.4964,359569300000, +2022-06-21,4327.9159,4357.3396,4287.1406,4325.5657,16466760000,-0.1124,317163320000, +2022-06-22,4331.9020,4333.1827,4269.2456,4270.6227,15856590000,-1.2702,298656260000, +2022-06-23,4277.9555,4343.8781,4260.9002,4343.8781,17088240000,1.7153,327144780000, +2022-06-24,4354.5530,4400.6852,4346.1221,4394.7723,16897220000,1.1716,356054750000, +2022-06-27,4414.3321,4472.6948,4414.3321,4444.2639,17738570000,1.1261,381432970000, +2022-06-28,4442.5811,4497.8949,4407.3519,4490.5166,17475650000,1.0407,361685970000, +2022-06-29,4472.7346,4503.1307,4413.9961,4421.3570,18727670000,-1.5401,395926110000, +2022-06-30,4418.0656,4514.9968,4418.0656,4485.0108,15666630000,1.4397,354343890000, +2022-07-01,4489.5204,4500.9853,4449.2914,4466.7179,14477960000,-0.4079,318492130000, +2022-07-04,4447.2159,4496.0338,4427.8232,4496.0303,14634570000,0.6562,356968520000, +2022-07-05,4505.4572,4530.3245,4439.4511,4489.5383,15496240000,-0.1444,361891850000, +2022-07-06,4475.4815,4484.3615,4393.4165,4423.9698,14980020000,-1.4605,344672710000, +2022-07-07,4425.2814,4457.3431,4391.1938,4443.4736,13266090000,0.4409,328133130000, +2022-07-08,4468.0627,4479.4937,4426.8856,4428.7810,12319570000,-0.3307,304031110000, +2022-07-11,4406.1476,4406.1476,4330.5819,4354.6167,13444860000,-1.6746,299195230000, +2022-07-12,4352.6456,4370.3411,4296.6215,4313.6184,13018780000,-0.9415,291072310000, +2022-07-13,4313.3589,4341.4663,4284.9419,4321.4617,13111320000,0.1818,286075550000, +2022-07-14,4308.8229,4352.0978,4292.7595,4322.0742,14525090000,0.0142,301569860000, +2022-07-15,4299.4714,4344.8572,4248.5273,4248.5273,15021450000,-1.7017,316793190000, +2022-07-18,4262.1539,4300.7777,4217.5064,4292.5858,12260120000,1.0370,281055130000, +2022-07-19,4288.4441,4288.4441,4238.8238,4269.3401,10380570000,-0.5415,231117730000, +2022-07-20,4291.2808,4303.3668,4269.9717,4283.8027,9449010000,0.3388,212301880000, +2022-07-21,4270.3624,4283.1471,4236.0499,4236.0578,11715630000,-1.1145,239228150000, +2022-07-22,4251.7867,4275.4696,4207.3135,4238.2341,10384060000,0.0514,224295330000, +2022-07-25,4233.9277,4234.8448,4201.9190,4212.6441,8363670000,-0.6038,188136430000, +2022-07-26,4220.0911,4259.9854,4214.5343,4245.9758,8582330000,0.7912,197601410000, +2022-07-27,4236.1540,4242.0951,4217.2809,4225.0357,7890490000,-0.4932,194245300000, +2022-07-28,4242.2743,4267.9181,4223.0290,4225.6733,10753190000,0.0151,243871490000, +2022-07-29,4226.4245,4243.5143,4160.8735,4170.1019,11417930000,-1.3151,, +2022-08-01,4160.6478,4196.5743,4129.4528,4188.6784,10774900000,0.4455,, +2022-08-02,4144.3765,4144.3765,4071.4310,4107.0240,14222440000,-1.9494,, +2022-08-03,4114.8251,4150.9804,4058.1792,4066.9754,11666610000,-0.9751,, +2022-08-04,4089.4419,4108.1591,4064.6594,4101.5367,8953260000,0.8498,, +2022-08-05,4109.6287,4159.4850,4097.8625,4156.9111,10257100000,1.3501,, +2022-08-08,4142.1111,4155.7301,4135.0809,4148.0746,9020810000,-0.2126,, +2022-08-09,4143.6660,4161.8086,4131.4252,4156.2907,8413700000,0.1981,, +2022-08-10,4149.2071,4160.7871,4092.5455,4109.7373,8556580000,-1.1201,, +2022-08-11,4130.7410,4193.8115,4116.0558,4193.5428,12138510000,2.0392,, +2022-08-12,4185.4203,4202.4663,4175.0501,4191.1520,10680830000,-0.0570,, +2022-08-15,4180.0006,4219.9183,4174.3000,4185.6794,10589850000,-0.1306,, +2022-08-16,4190.5269,4208.8006,4170.5197,4177.8370,9390610000,-0.1874,, +2022-08-17,4182.5668,4222.7866,4155.1734,4216.9586,11286470000,0.9364,, +2022-08-18,4205.7851,4211.9141,4173.5410,4180.0996,10105260000,-0.8741,, +2022-08-19,4174.5458,4185.6579,4151.0738,4151.0738,11740300000,-0.6944,, +2022-08-22,4135.1623,4183.6498,4134.2008,4181.3965,11244270000,0.7305,, +2022-08-23,4175.5314,4187.3875,4147.4127,4161.0823,10315350000,-0.4858,, +2022-08-24,4168.5764,4174.1565,4079.0934,4082.4195,11906970000,-1.8904,, +2022-08-25,4093.2949,4119.6196,4058.7454,4116.2396,11132070000,0.8284,, +2022-08-26,4127.8142,4139.7879,4102.6818,4107.5455,9900050000,-0.2112,, +2022-08-29,4063.8825,4092.9474,4059.5963,4089.5205,9435440000,-0.4388,, +2022-08-30,4088.5262,4093.1356,4048.5244,4075.7937,9330170000,-0.3357,, +2022-08-31,4057.1443,4112.8485,4046.6225,4078.8402,13244980000,0.0747,, +2022-09-01,4066.1869,4090.8852,4041.1281,4043.7395,9738710000,-0.8606,, +2022-09-02,4054.8423,4056.1805,4004.9110,4023.6131,8678930000,-0.4977,, +2022-09-05,4010.4052,4016.9986,3982.7395,4015.4264,9376710000,-0.2035,, +2022-09-06,4024.4726,4054.0040,4009.5826,4052.2802,11350630000,0.9178,, +2022-09-07,4032.7231,4067.5437,4028.3740,4054.9830,10767810000,0.0667,, +2022-09-08,4059.1689,4067.7580,4036.0226,4037.6839,10088600000,-0.4266,, +2022-09-09,4050.5853,4099.0081,4042.2498,4093.7874,11842710000,1.3895,, +2022-09-13,4112.0123,4128.1113,4097.1408,4111.1145,11178970000,0.4233,, +2022-09-14,4058.0441,4089.0583,4047.9187,4065.3590,9079370000,-1.1130,, +2022-09-15,4078.6495,4088.8078,3998.8564,4027.1186,12395120000,-0.9406,, +2022-09-16,4013.5829,4019.4104,3932.6826,3932.6826,13719370000,-2.3450,, +2022-09-19,3928.4239,3953.6494,3910.3106,3928.0001,9771960000,-0.1191,, +2022-09-20,3945.6467,3957.5538,3921.6884,3932.8361,8482410000,0.1231,, +2022-09-21,3921.3177,3924.3914,3884.2268,3903.7348,8645840000,-0.7400,, +2022-09-22,3875.1771,3900.2736,3860.2308,3869.3440,8094690000,-0.8810,, +2022-09-23,3865.1049,3888.3958,3829.6913,3856.0212,9434250000,-0.3443,, +2022-09-26,3829.5958,3893.3186,3827.9498,3836.6773,10452600000,-0.5017,, +2022-09-27,3844.0692,3893.0283,3827.9265,3892.2950,8886020000,1.4496,, +2022-09-28,3879.4398,3879.4398,3828.0545,3828.7098,8659220000,-1.6336,, +2022-09-29,3864.3160,3873.1823,3808.6496,3827.1434,8565410000,-0.0409,, +2022-09-30,3833.3504,3848.6018,3801.2798,3804.8853,7856000000,-0.5816,, +2022-10-10,3806.5596,3807.4574,3715.7142,3720.9365,10264760000,-2.2063,, +2022-10-11,3732.0191,3739.8084,3706.0629,3727.6867,8394460000,0.1814,, +2022-10-12,3722.8659,3784.3064,3661.5255,3784.3064,10808930000,1.5189,, +2022-10-13,3756.4176,3783.5960,3749.6393,3752.6729,9901890000,-0.8359,, +2022-10-14,3783.3160,3863.2265,3780.8415,3842.4698,11624230000,2.3929,, +2022-10-17,3822.2428,3849.6207,3809.1196,3846.4119,10419200000,0.1026,, +2022-10-18,3865.8258,3870.2155,3831.1723,3838.2667,8834690000,-0.2118,, +2022-10-19,3827.4658,3840.4870,3776.5335,3776.5335,8157480000,-1.6084,, +2022-10-20,3746.5793,3804.2468,3726.7925,3754.9269,9029090000,-0.5721,, +2022-10-21,3753.8903,3768.6895,3724.6900,3742.8929,9875000000,-0.3205,, +2022-10-24,3727.9150,3762.1580,3619.9876,3633.3733,13005690000,-2.9261,, +2022-10-25,3621.9356,3670.7327,3594.7011,3627.4542,11095390000,-0.1629,, +2022-10-26,3633.3107,3700.8797,3633.3107,3656.9027,12130150000,0.8118,, +2022-10-27,3667.6645,3685.0837,3631.0639,3631.1448,11799870000,-0.7044,257473320000, +2022-10-28,3605.1598,3618.8640,3533.4993,3541.3295,11877220000,-2.4735,245816450000, +2022-10-31,3504.5070,3553.3871,3495.9509,3508.7034,13846570000,-0.9213,256574820000, +2022-11-01,3519.8174,3634.1732,3517.6209,3634.1732,14928670000,3.5760,295089930000, +2022-11-02,3620.3693,3703.4650,3610.8029,3677.8051,14159290000,1.2006,291648250000, +2022-11-03,3645.0604,3670.1574,3628.4987,3647.8966,11056600000,-0.8132,215379300000, +2022-11-04,3646.7709,3782.8823,3646.7709,3767.1746,14973490000,3.2698,311145480000, +2022-11-07,3754.5227,3792.7942,3746.3715,3775.2971,12982640000,0.2156,251195700000, +2022-11-08,3773.6612,3779.1156,3723.3415,3749.3251,9901650000,-0.6879,193351320000, +2022-11-09,3750.7821,3760.4068,3711.2680,3714.2704,8943450000,-0.9350,172029530000, +2022-11-10,3685.8274,3701.5306,3665.0585,3685.6885,10350930000,-0.7695,183155310000, +2022-11-11,3787.7568,3828.9004,3747.0902,3788.4387,18968560000,2.7878,344471330000, +2022-11-14,3818.1447,3848.4116,3781.7778,3794.0171,16966500000,0.1472,315536860000, +2022-11-15,3788.9260,3871.6424,3775.4988,3865.9726,15151560000,1.8966,296268140000, +2022-11-16,3860.8110,3877.6781,3829.3126,3834.3899,12061100000,-0.8169,235844590000, +2022-11-17,3821.2709,3821.7419,3776.5739,3818.6640,10594060000,-0.4101,219540810000, +2022-11-18,3823.8207,3840.3018,3801.5686,3801.5686,11507880000,-0.4477,224276130000, +2022-11-21,3769.6270,3769.8731,3733.9954,3769.1269,9586700000,-0.8534,188230370000, +2022-11-22,3766.0817,3809.8582,3751.0448,3769.5727,14448630000,0.0118,203490830000, +2022-11-23,3760.2157,3791.1782,3753.2136,3773.5287,14452790000,0.1049,201070600000, +2022-11-24,3791.5399,3804.8987,3751.3818,3756.8082,10107340000,-0.4431,160698920000, +2022-11-25,3751.2822,3790.5660,3743.4138,3775.7764,14292970000,0.5049,191711040000, +2022-11-28,3701.9020,3736.0813,3672.1306,3733.2424,12782570000,-1.1265,196305560000, +2022-11-29,3766.5702,3854.7742,3766.5702,3848.4224,17870140000,3.0853,289062340000, +2022-11-30,3836.5598,3867.6591,3833.8272,3853.0365,15751140000,0.1199,250051470000, +2022-12-01,3921.2954,3944.5645,3893.8718,3894.7687,16996460000,1.0831,306678200000, +2022-12-02,3886.4034,3898.1146,3865.8844,3870.9478,11678640000,-0.6116,201253170000, +2022-12-05,3907.6375,3947.4760,3900.6742,3946.8759,20174720000,1.9615,296615510000, +2022-12-06,3929.0063,3988.9007,3922.9969,3968.1979,15510830000,0.5402,275583430000, +2022-12-07,3956.6722,3999.5864,3944.1831,3958.4409,14300140000,-0.2459,255490830000, +2022-12-08,3953.1990,3971.4927,3941.2966,3959.1798,11520000000,0.0187,198037690000, +2022-12-09,3961.9919,4003.3178,3944.4396,3998.2442,15377500000,0.9867,268166790000, +2022-12-12,3976.1722,3983.4332,3950.3203,3953.4433,12593540000,-1.1205,227606300000, +2022-12-13,3953.5482,3964.3957,3939.9795,3945.6813,10099410000,-0.1963,184020700000, +2022-12-14,3952.7885,3972.7381,3935.7668,3954.8857,9852800000,0.2333,196175110000, +2022-12-15,3954.6720,3963.5002,3926.4997,3951.9885,8886470000,-0.0733,181994890000, +2022-12-16,3931.2318,3960.4705,3929.4873,3954.2270,9317860000,0.0566,167488440000, +2022-12-19,3952.7707,3966.5679,3878.4367,3893.2207,10691910000,-1.5428,180801390000, +2022-12-20,3881.2257,3881.2729,3811.4759,3829.0173,8309680000,-1.6491,164046440000, +2022-12-21,3839.0009,3853.7272,3821.4037,3830.5384,6483920000,0.0397,123450040000, +2022-12-22,3859.2041,3882.1263,3821.3418,3836.0280,8370520000,0.1433,163970310000, +2022-12-23,3811.6164,3848.3436,3805.9487,3828.2188,6527810000,-0.2036,130559420000, +2022-12-26,3830.5682,3856.8066,3827.5186,3843.4887,7300570000,0.3989,148692830000, +2022-12-27,3860.9054,3891.8497,3856.5800,3887.8540,7751540000,1.1543,152032210000, +2022-12-28,3874.9132,3884.7205,3854.9406,3871.2644,8442470000,-0.4267,160671120000, +2022-12-29,3854.2363,3868.2933,3838.4803,3856.7007,7939480000,-0.3762,149011370000, +2022-12-30,3873.9358,3887.5527,3868.7569,3871.6338,7877330000,0.3872,148295050000, +2023-01-03,3864.8356,3893.9904,3831.2450,3887.8992,11505190000,0.4201,207540170000, +2023-01-04,3886.2504,3905.9032,3873.6549,3892.9477,11066070000,0.1299,198997710000, +2023-01-05,3913.4928,3974.8750,3912.2600,3968.5782,11650240000,1.9428,256312610000, +2023-01-06,3969.5493,4000.4143,3966.4696,3980.8888,11095300000,0.3102,235744310000, +2023-01-09,3998.5278,4023.0898,3990.7073,4013.1196,11705440000,0.8096,233212430000, +2023-01-10,4014.7125,4030.4574,4002.2297,4017.4737,10175110000,0.1085,214871170000, +2023-01-11,4019.8844,4043.3991,4008.0153,4010.0309,9999790000,-0.1853,203000260000, +2023-01-12,4021.7547,4030.2876,4003.5079,4017.8692,9055260000,0.1955,183686270000, +2023-01-13,4032.2906,4074.3772,4027.8864,4074.3772,9587190000,1.4064,212174000000, +2023-01-16,4077.8793,4177.1035,4076.6394,4137.9643,15139550000,1.5607,319007750000, +2023-01-17,4138.8433,4148.5838,4118.1570,4137.2422,9547900000,-0.0175,204381580000, +2023-01-18,4140.1019,4151.4577,4125.7687,4130.3143,8420060000,-0.1675,172126170000, +2023-01-19,4125.5772,4156.0077,4105.9797,4156.0077,9460840000,0.6221,192699590000, +2023-01-20,4166.8444,4189.8310,4161.6698,4181.5267,12355380000,0.6140,222342460000, +2023-01-30,4267.6248,4268.1522,4197.8596,4201.3450,16460710000,0.4739,330193320000, +2023-01-31,4200.5813,4212.7347,4153.0484,4156.8578,12455080000,-1.0589,249365320000, +2023-02-01,4170.1322,4195.9332,4137.7659,4195.9332,14100900000,0.9400,265553940000, +2023-02-02,4207.4123,4207.4123,4170.5565,4181.1493,13382370000,-0.3523,262497430000, +2023-02-03,4162.0258,4162.0258,4103.1654,4141.6319,11704120000,-0.9451,226914770000, +2023-02-06,4103.8307,4105.9445,4065.2224,4086.8779,11019270000,-1.3220,226345110000, +2023-02-07,4098.3117,4107.3438,4077.9623,4094.2335,9136010000,0.1800,183537350000, +2023-02-08,4099.8573,4111.4745,4072.6474,4076.1411,8478610000,-0.4419,170591750000, +2023-02-09,4067.5631,4130.8565,4064.7489,4130.8565,10229000000,1.3423,211722600000, +2023-02-10,4124.0986,4125.2893,4092.3472,4106.3097,9671670000,-0.5942,195348320000, +2023-02-13,4098.8795,4146.4500,4092.2729,4143.5740,12889260000,0.9075,251990180000, +2023-02-14,4151.2470,4152.0487,4125.2583,4145.2902,10249990000,0.0414,204915440000, +2023-02-15,4146.8547,4153.7159,4115.9671,4123.6893,12166450000,-0.5211,219855530000, +2023-02-16,4125.4087,4167.9003,4068.8591,4093.4876,15931060000,-0.7324,281315630000, +2023-02-17,4086.2237,4104.6398,4032.9285,4034.5070,11614260000,-1.4408,225737750000, +2023-02-20,4039.9623,4134.8623,4035.4762,4133.4896,16179450000,2.4534,280122960000, +2023-02-21,4130.0632,4151.7994,4116.2716,4144.3536,14577620000,0.2628,249674200000, +2023-02-22,4118.9669,4134.8759,4101.8596,4106.9506,10429030000,-0.9025,191586160000, +2023-02-23,4106.2136,4132.3896,4088.2073,4103.6463,10356490000,-0.0805,197193580000, +2023-02-24,4100.9897,4102.6094,4048.2374,4061.0457,10098940000,-1.0381,191210470000, +2023-02-27,4040.4571,4067.0296,4034.5237,4043.8444,9378760000,-0.4236,187959490000, +2023-02-28,4058.1298,4074.2639,4026.4476,4069.4587,11032360000,0.6334,198799710000, +2023-03-01,4068.7331,4135.4812,4061.2167,4126.9415,15601580000,1.4125,255374790000, +2023-03-02,4119.9919,4137.2525,4113.8264,4117.7377,14821760000,-0.2230,235953760000, +2023-03-03,4126.0183,4135.2116,4100.3827,4130.5513,16033170000,0.3112,226914550000, +2023-03-06,4131.1525,4132.8367,4088.4484,4109.0102,16297180000,-0.5215,283079860000, +2023-03-07,4103.6419,4124.9609,4046.5679,4048.8519,19591210000,-1.4641,272491990000, +2023-03-08,4030.7387,4037.2870,4011.5231,4034.1077,11793650000,-0.3642,191659660000, +2023-03-09,4035.8433,4043.8493,4000.8901,4019.8505,11653960000,-0.3534,201737990000, +2023-03-10,3991.7959,4004.3612,3966.4280,3967.1352,12385540000,-1.3114,218286960000, +2023-03-13,3962.6426,4008.6860,3962.6426,4008.6860,14356140000,1.0474,242865520000, +2023-03-14,3999.8803,4001.9415,3946.9405,3984.6956,15054420000,-0.5985,267224850000, +2023-03-15,4011.8444,4018.7495,3986.9020,3986.9020,14202600000,0.0554,232101090000, +2023-03-16,3958.1962,3981.3210,3936.4758,3939.1505,15251560000,-1.1977,246264290000, +2023-03-17,3971.1585,4004.2153,3945.2501,3958.8194,17743380000,0.4993,305541020000, +2023-03-20,3962.6625,3979.5485,3935.0161,3939.0770,20526500000,-0.4987,319760030000, +2023-03-21,3948.1573,3982.7047,3948.1573,3982.3782,14509070000,1.0993,251631990000, +2023-03-22,3993.7849,4016.4495,3986.7093,3999.4427,14922900000,0.4285,265180990000, +2023-03-23,3985.9928,4039.0895,3983.9986,4039.0895,15888740000,0.9913,296479530000, +2023-03-24,4035.1564,4037.8417,4017.0028,4027.0457,15944230000,-0.2982,295785590000, +2023-03-27,4023.3028,4023.3028,3987.0297,4012.4771,16848230000,-0.3618,315474700000, +2023-03-28,4015.6973,4023.7834,3994.5999,3999.5147,13189510000,-0.3231,248736920000, +2023-03-29,4013.5926,4017.7572,3992.6662,4006.1440,13374350000,0.1658,263866920000, +2023-03-30,4009.5573,4040.5023,3983.8958,4038.5257,14990100000,0.8083,280004720000, +2023-03-31,4045.4538,4063.5675,4039.9587,4050.9257,13884250000,0.3070,279863690000, +2023-04-03,4059.6227,4094.9376,4059.0607,4090.5676,18212430000,0.9786,382895560000, +2023-04-04,4089.2932,4103.1583,4080.0682,4103.1052,19714660000,0.3065,394443180000, +2023-04-06,4084.1320,4098.8332,4078.4048,4096.6400,15070340000,-0.1576,328981850000, +2023-04-07,4096.9009,4131.3126,4092.1848,4123.2799,12867670000,0.6503,286567770000, +2023-04-10,4132.0096,4132.2952,4099.0519,4104.8118,15245300000,-0.4479,340822560000, +2023-04-11,4108.5062,4116.1247,4083.4946,4100.1479,15390130000,-0.1136,324192950000, +2023-04-12,4102.3968,4108.2451,4090.2784,4097.2876,16596530000,-0.0698,325425230000, +2023-04-13,4081.3871,4088.8809,4059.5744,4068.9786,15644430000,-0.6909,300291020000, +2023-04-14,4078.9703,4098.2151,4075.2049,4091.9988,15069570000,0.5657,306201500000, +2023-04-17,4090.0719,4149.3836,4089.5090,4149.3836,18877310000,1.4024,341831270000, +2023-04-18,4139.3088,4169.6678,4138.4618,4162.0320,17018410000,0.3048,331545660000, +2023-04-19,4159.3938,4159.3938,4118.6261,4124.5589,16255460000,-0.9004,312219500000, +2023-04-20,4122.9461,4125.8231,4094.0022,4113.0192,16270670000,-0.2798,332172410000, +2023-04-21,4114.2642,4114.2642,4031.9123,4032.5672,18080240000,-1.9560,347852010000, +2023-04-24,4031.3030,4033.6367,3967.9070,3982.6429,17009920000,-1.2380,328375610000, +2023-04-25,3985.1055,3991.6868,3925.4360,3962.6658,17255540000,-0.5016,331110620000, +2023-04-26,3950.2553,3975.6562,3934.6625,3959.2323,16270200000,-0.0866,322062810000, +2023-04-27,3948.0313,3999.1302,3942.8152,3988.4185,15382820000,0.7372,304804000000, +2023-04-28,3993.2561,4030.4469,3993.2561,4029.0858,17950850000,1.0196,328936290000, +2023-05-04,4013.4713,4035.7832,4001.1259,4030.2471,22758280000,0.0288,345492510000, +2023-05-05,4031.0946,4047.6015,3998.3920,4016.8774,20662690000,-0.3317,307694490000, +2023-05-08,4028.1056,4070.7724,4018.9608,4062.6624,25558310000,1.1398,359539950000, +2023-05-09,4065.4390,4092.8501,4026.3886,4027.8754,27930600000,-0.8563,396422120000, +2023-05-10,4017.9358,4019.0587,3984.6287,3996.8695,20755270000,-0.7698,309484850000, +2023-05-11,4005.7823,4018.0579,3988.4816,3990.6637,14480460000,-0.1553,241052070000, +2023-05-12,3987.7690,3999.3831,3937.5274,3937.7622,14442170000,-1.3256,228992920000, +2023-05-15,3938.8300,3998.8872,3923.0317,3998.8872,17625740000,1.5523,279531160000, +2023-05-16,4002.5237,4005.0150,3966.9921,3978.2054,13683330000,-0.5172,234840650000, +2023-05-17,3971.7017,3982.6044,3945.7137,3960.1650,11844820000,-0.4535,205195690000, +2023-05-18,3965.5162,3982.7178,3939.5526,3956.0701,13653390000,-0.1034,229134180000, +2023-05-19,3946.2215,3967.2816,3928.3160,3944.5403,12021250000,-0.2914,207094940000, +2023-05-22,3941.0015,3985.4031,3935.8015,3969.3277,10911660000,0.6284,202185550000, +2023-05-23,3968.2346,3971.9390,3913.1882,3913.1882,11868510000,-1.4143,189955820000, +2023-05-24,3903.7818,3903.7818,3859.0935,3859.0935,13725830000,-1.3824,211768410000, +2023-05-25,3851.4053,3861.3815,3817.8365,3850.4996,12415080000,-0.2227,213313620000, +2023-05-26,3848.4174,3859.6291,3815.5701,3850.9511,10032640000,0.0117,191537810000, +2023-05-29,3862.0838,3866.7238,3819.1822,3833.9416,13186000000,-0.4417,230095600000, +2023-05-30,3827.7924,3844.0052,3789.2736,3837.7531,13761960000,0.0994,244566270000, +2023-05-31,3827.1634,3827.1634,3781.4034,3798.5434,12638740000,-1.0217,235606120000, +2023-06-01,3788.5902,3832.2051,3786.7344,3806.8679,13456190000,0.2191,241829550000, +2023-06-02,3821.6198,3865.2843,3821.6198,3861.8337,12501510000,1.4439,232696550000, +2023-06-05,3860.5557,3860.5557,3832.4578,3844.2492,11616400000,-0.4553,211144360000, +2023-06-06,3840.4587,3867.8452,3802.8449,3808.1629,12578130000,-0.9387,222091720000, +2023-06-07,3815.4823,3823.1124,3780.1021,3789.3418,9886240000,-0.4942,189879790000, +2023-06-08,3791.0826,3834.3888,3777.7752,3820.1867,11870090000,0.8140,199119300000, +2023-06-09,3822.4088,3836.7026,3811.2189,3836.7026,13431990000,0.4323,247296090000, +2023-06-12,3827.3253,3859.7156,3813.8577,3844.4324,12675850000,0.2015,240791270000, +2023-06-13,3838.1287,3867.3034,3833.4598,3864.9074,11092490000,0.5326,225435220000, +2023-06-14,3872.7155,3891.6656,3862.0609,3864.0247,12495580000,-0.0228,243932580000, +2023-06-15,3871.7746,3925.4994,3871.7746,3925.4994,12836990000,1.5909,282635910000, +2023-06-16,3932.2114,3968.0128,3928.5419,3963.3509,13976010000,0.9642,280374760000, +2023-06-19,3957.0327,3957.0327,3922.4742,3930.9079,13490580000,-0.8186,268213070000, +2023-06-20,3926.0940,3937.4945,3918.4730,3924.2377,12252030000,-0.1697,266274080000, +2023-06-21,3909.1044,3920.1276,3864.0323,3864.0323,11834660000,-1.5342,243630710000, +2023-06-26,3833.4436,3841.2862,3801.0537,3809.6962,13399040000,-1.4062,247713850000, +2023-06-27,3811.6872,3851.8957,3806.3242,3845.4334,11699270000,0.9381,210097710000, +2023-06-28,3836.6086,3846.8516,3808.1607,3840.7986,10702150000,-0.1205,206187960000, +2023-06-29,3836.7305,3840.7132,3817.3759,3821.8435,9828930000,-0.4935,204110030000, +2023-06-30,3816.3345,3860.0311,3813.5520,3842.4516,10126840000,0.5392,208146270000, +2023-07-03,3853.2919,3897.3273,3853.2919,3892.8821,13315810000,1.3125,256876520000, +2023-07-04,3888.0328,3899.9755,3878.3978,3899.0133,10949450000,0.1575,216335610000, +2023-07-05,3895.1945,3899.5188,3864.1301,3868.8054,9763640000,-0.7748,188400270000, +2023-07-06,3857.0304,3876.8901,3836.4573,3842.7547,10012180000,-0.6734,184742420000, +2023-07-07,3831.5955,3844.8438,3819.0772,3825.6988,10090690000,-0.4438,173918560000, +2023-07-10,3841.5591,3865.4566,3831.9200,3844.3269,9203340000,0.4869,185360810000, +2023-07-11,3853.7955,3870.6549,3844.5244,3869.4861,8651070000,0.6545,177585690000, +2023-07-12,3864.6013,3874.0403,3838.5632,3843.4369,11152200000,-0.6732,214046520000, +2023-07-13,3855.6620,3901.1023,3855.6620,3898.4229,12030020000,1.4306,235278710000, +2023-07-14,3904.6033,3908.4871,3893.7862,3899.1027,12236480000,0.0174,220230470000, +2023-07-17,3881.6225,3881.6225,3852.2626,3867.1749,9834010000,-0.8188,174623550000, +2023-07-18,3871.0444,3871.0444,3844.5129,3854.9393,9143860000,-0.3164,167104320000, +2023-07-19,3848.4826,3860.0092,3830.4073,3850.8663,7958570000,-0.1057,151311480000, +2023-07-20,3857.7725,3875.6241,3818.7134,3823.6946,9204210000,-0.7056,174320870000, +2023-07-21,3816.9835,3849.5109,3808.8030,3821.9100,7950760000,-0.0467,157144210000, +2023-07-24,3803.3492,3828.7853,3798.8048,3805.2210,7548350000,-0.4367,151448370000, +2023-07-25,3866.6445,3915.8148,3866.6445,3915.1153,16306630000,2.8880,299853560000, +2023-07-26,3908.1740,3912.9834,3893.3987,3907.0128,10788170000,-0.2070,192912600000, +2023-07-27,3914.2298,3935.3578,3894.6923,3902.3458,11066710000,-0.1195,196845430000, +2023-07-28,3889.7929,4000.9190,3886.5535,3992.7376,17973550000,2.3163,310092470000, +2023-07-31,4018.8895,4064.3621,4002.0784,4014.6301,19960680000,0.5483,366544120000, +2023-08-01,4009.1831,4031.7008,3983.0273,3998.0010,14228690000,-0.4142,255620770000, +2023-08-02,3985.6951,4008.3343,3958.5127,3969.8950,12585570000,-0.7030,204875690000, +2023-08-03,3962.1296,4004.9996,3962.1296,4004.9839,12900660000,0.8839,224809820000, +2023-08-04,4033.7239,4058.2431,4011.6202,4020.5792,17826720000,0.3894,316529730000, +2023-08-07,4002.9677,4002.9677,3977.0173,3990.1531,12131070000,-0.7568,227090570000, +2023-08-08,3980.0423,4002.2904,3963.4632,3979.7322,10987170000,-0.2612,202611340000, +2023-08-09,3967.3566,3982.1091,3961.8434,3967.5652,9464030000,-0.3057,174394240000, +2023-08-10,3962.8569,3976.4637,3945.3869,3975.7166,9717680000,0.2055,175646730000, +2023-08-11,3977.9834,3977.9834,3884.2538,3884.2538,12608290000,-2.3005,203546310000, +2023-08-14,3840.8872,3859.4718,3814.0711,3855.9061,11596630000,-0.7298,197623770000, +2023-08-15,3858.3662,3865.2840,3811.6839,3846.5357,10309710000,-0.2430,177437070000, +2023-08-16,3830.8274,3852.4198,3817.6324,3818.3338,9461690000,-0.7332,169323870000, +2023-08-17,3801.1969,3836.1507,3782.4967,3831.1008,9841550000,0.3344,174093850000, +2023-08-18,3832.4554,3844.1950,3784.0038,3784.0038,9554960000,-1.2293,168445690000, +2023-08-21,3773.2250,3782.1112,3729.5550,3729.5550,9870840000,-1.4389,173379940000, +2023-08-22,3748.0675,3770.0556,3704.6785,3758.2271,12031830000,0.7688,203463880000, +2023-08-23,3751.7736,3756.1659,3695.0309,3696.6339,9708160000,-1.6389,160476230000, +2023-08-24,3711.5403,3748.8567,3701.5717,3723.4293,11961450000,0.7249,196257390000, +2023-08-25,3703.5136,3734.2185,3695.8442,3709.1517,10518260000,-0.3835,175601440000, +2023-08-28,3911.5485,3911.5485,3740.5279,3752.6194,19799040000,1.1719,335047670000, +2023-08-29,3743.0534,3810.3772,3742.0758,3790.1067,15248610000,0.9990,262134940000, +2023-08-30,3803.1191,3813.7032,3780.2411,3788.5097,12967170000,-0.0421,226727480000, +2023-08-31,3786.9261,3793.9972,3762.0046,3765.2678,11896160000,-0.6135,193577000000, +2023-09-01,3778.9129,3808.5306,3778.9129,3791.4912,10531900000,0.6965,172219140000, +2023-09-04,3812.9873,3854.2605,3804.5886,3848.9517,14238520000,1.5155,237934730000, +2023-09-05,3839.5779,3839.5779,3814.3338,3820.3174,10405230000,-0.7440,181377880000, +2023-09-06,3808.1000,3817.5239,3790.8949,3812.0283,9344240000,-0.2170,166081520000, +2023-09-07,3802.2272,3802.2272,3756.8530,3758.4748,9510390000,-1.4049,164405750000, +2023-09-08,3747.6509,3753.2630,3724.9870,3739.9927,7163820000,-0.4917,129197660000, +2023-09-11,3740.5846,3788.3219,3734.7228,3767.5370,10535800000,0.7365,186871760000, +2023-09-12,3764.3331,3775.0930,3755.4162,3760.6048,7938540000,-0.1840,140117510000, +2023-09-13,3759.6091,3768.8162,3719.1114,3736.6513,8157690000,-0.6370,138238090000, +2023-09-14,3736.9355,3748.8177,3717.3107,3733.5077,10038610000,-0.0841,151578100000, +2023-09-15,3740.7853,3749.0247,3699.3806,3708.7766,10939570000,-0.6624,180398970000, +2023-09-18,3698.9344,3737.5306,3691.1107,3727.7110,8672770000,0.5105,156966970000, +2023-09-19,3723.4244,3724.0717,3702.6934,3720.5021,8319900000,-0.1934,135216900000, +2023-09-20,3715.9578,3718.5207,3705.1274,3705.6898,7544820000,-0.3981,117691810000, +2023-09-21,3698.3130,3708.4557,3672.4448,3672.4448,8303100000,-0.8971,135011800000, +2023-09-22,3672.6402,3740.4183,3664.7661,3738.9327,11023120000,1.8105,192236470000, +2023-09-25,3738.0622,3738.0622,3711.2049,3714.6037,9259650000,-0.6507,155793830000, +2023-09-26,3711.7106,3723.8481,3692.6172,3692.8928,7804450000,-0.5845,137808440000, +2023-09-27,3694.9607,3731.1405,3694.3938,3700.4950,9162920000,0.2059,164790440000, +2023-09-28,3711.2117,3716.0569,3685.3001,3689.5172,8522170000,-0.2967,153500420000, +2023-10-09,3678.9290,3694.1713,3641.9966,3684.7272,10214810000,-0.1298,178072370000, +2023-10-10,3696.2542,3701.2562,3655.5890,3657.1259,9916370000,-0.7491,161938960000, +2023-10-11,3674.7514,3689.5347,3658.3550,3667.5483,10209160000,0.2850,187667550000, +2023-10-12,3697.9337,3711.4985,3682.8418,3702.3824,11436320000,0.9498,194598220000, +2023-10-13,3677.9585,3678.1913,3652.3094,3663.4104,9828800000,-1.0526,170152310000, +2023-10-16,3664.0390,3664.0390,3615.7686,3626.5972,9185310000,-1.0049,159537970000, +2023-10-17,3635.2994,3645.5654,3619.1277,3639.4018,9074520000,0.3531,147056230000, +2023-10-18,3631.0671,3632.0579,3608.9768,3610.5767,9454590000,-0.7920,158982360000, +2023-10-19,3588.5154,3588.5154,3532.3059,3533.5445,11173750000,-2.1335,189194780000, +2023-10-20,3518.3464,3535.6623,3501.7250,3510.5889,9851860000,-0.6496,169591290000, +2023-10-23,3500.1990,3505.3468,3450.6456,3474.2438,9656170000,-1.0353,152054890000, +2023-10-24,3481.7644,3495.0039,3453.1016,3487.1302,11554730000,0.3709,186529200000, +2023-10-25,3524.2965,3531.8314,3500.9154,3504.4576,12800960000,0.4969,203691740000, +2023-10-26,3484.7807,3515.5716,3478.0503,3514.1448,10514360000,0.2764,176088470000, +2023-10-27,3501.1710,3576.5861,3494.5488,3562.3851,12022510000,1.3727,224301960000, +2023-10-30,3554.1055,3592.7188,3554.0238,3583.7718,14401040000,0.6003,242973330000, +2023-10-31,3581.6759,3581.6759,3554.5822,3572.5056,11258730000,-0.3144,196317660000, +2023-11-01,3605.7576,3606.4126,3564.6421,3571.0268,9764550000,-0.0414,182943570000, +2023-11-02,3580.0672,3597.1699,3553.7406,3554.1889,9035960000,-0.4715,149465060000, +2023-11-03,3558.5303,3596.1010,3558.5303,3584.1364,9754210000,0.8426,165865990000, +2023-11-06,3608.3187,3635.7897,3600.6304,3632.6084,15298250000,1.3524,254465950000, +2023-11-07,3623.7849,3628.4615,3606.2975,3619.7593,11028860000,-0.3537,190433610000, +2023-11-08,3610.6434,3627.0479,3591.8248,3611.0723,11059420000,-0.2400,192594370000, +2023-11-09,3603.1082,3624.4141,3601.3744,3612.8263,11187210000,0.0486,189355230000, +2023-11-10,3596.0688,3599.4519,3576.1011,3586.4893,10210700000,-0.7290,166924680000, +2023-11-13,3593.9109,3599.3897,3562.7682,3579.4141,9670760000,-0.1973,164821250000, +2023-11-14,3581.1034,3600.1483,3568.8820,3582.0584,10088420000,0.0739,165935160000, +2023-11-15,3616.8765,3620.6007,3596.9158,3607.2454,10492920000,0.7031,188932150000, +2023-11-16,3600.9813,3605.2898,3572.3636,3572.3641,8746480000,-0.9670,146629220000, +2023-11-17,3561.3112,3573.6819,3547.0287,3568.0685,8731920000,-0.1202,139621900000, +2023-11-20,3569.7314,3586.9731,3545.1038,3576.3233,9108040000,0.2314,157449630000, +2023-11-21,3587.8779,3615.0569,3575.6820,3581.0674,10859430000,0.1327,175922110000, +2023-11-22,3569.4389,3574.3782,3544.4162,3544.4162,8478440000,-1.0235,136041200000, +2023-11-23,3541.4416,3562.0675,3529.9390,3561.5204,8480020000,0.4826,141499810000, +2023-11-24,3560.6462,3560.6462,3533.9955,3538.0087,8501840000,-0.6602,140102000000, +2023-11-27,3534.4445,3534.4445,3492.8623,3511.9424,9910230000,-0.7368,155975440000, +2023-11-28,3510.6554,3521.0463,3501.1093,3518.5232,8933580000,0.1874,147740540000, +2023-11-29,3518.8836,3519.1980,3482.2444,3488.3073,9884140000,-0.8588,155948240000, +2023-11-30,3485.5171,3505.1273,3481.4515,3496.2028,10135080000,0.2263,153790180000, +2023-12-01,3494.2234,3494.2234,3452.1728,3482.8813,10853090000,-0.3810,176078320000, +2023-12-04,3481.0449,3488.1330,3459.6110,3460.1380,9715680000,-0.6530,164664400000, +2023-12-05,3450.0898,3450.0898,3393.8139,3394.2571,10047200000,-1.9040,164840690000, +2023-12-06,3387.8798,3420.2773,3382.9457,3399.5980,10580550000,0.1574,172142990000, +2023-12-07,3394.3064,3404.4074,3369.7675,3391.2823,9771320000,-0.2446,160949950000, +2023-12-08,3391.8585,3409.3845,3383.4479,3399.4618,12952210000,0.2412,203034220000, +2023-12-11,3378.0517,3426.6106,3346.8902,3419.4548,13962620000,0.5881,219761180000, +2023-12-12,3409.9976,3427.5456,3406.1013,3426.8030,10559000000,0.2149,166979960000, +2023-12-13,3418.6413,3418.6413,3369.6050,3369.6050,9528540000,-1.6691,165455930000, +2023-12-14,3387.3847,3399.1394,3350.7648,3351.9639,8365510000,-0.5235,150245780000, +2023-12-15,3365.9388,3388.5047,3339.5190,3341.5517,9778780000,-0.3106,164907020000, +2023-12-18,3329.1910,3352.3458,3314.9095,3329.3657,9052680000,-0.3647,142303320000, +2023-12-19,3325.6596,3345.7795,3313.1874,3334.0412,8380810000,0.1404,135293660000, +2023-12-20,3334.3320,3338.5434,3297.3652,3297.5022,9241290000,-1.0959,141290540000, +2023-12-21,3285.6049,3339.3552,3283.9883,3330.8698,10254620000,1.0119,171120780000, +2023-12-22,3329.4668,3359.0601,3315.8976,3337.2281,10522010000,0.1909,167336340000, +2023-12-25,3330.3333,3348.8820,3330.3333,3347.4508,7454270000,0.3063,121838330000, +2023-12-26,3345.3952,3345.4171,3315.9370,3324.7902,7473290000,-0.6770,121690000000, +2023-12-27,3326.9267,3341.2659,3309.6731,3336.3572,9440390000,0.3479,140924920000, +2023-12-28,3335.5572,3423.4018,3331.2082,3414.5403,14806490000,2.3434,245855630000, +2023-12-29,3411.1094,3432.5412,3409.5795,3431.1099,11492890000,0.4853,193573180000, +2024-01-02,3426.2684,3426.2684,3386.3522,3386.3522,11618070000,-1.3045,184096100000, +2024-01-03,3379.7501,3392.8504,3362.6617,3378.2971,10561390000,-0.2379,165099020000, +2024-01-04,3375.0207,3375.0207,3323.8647,3347.0519,10672100000,-0.9249,165512260000, +2024-01-05,3341.3061,3372.5444,3313.5542,3329.1114,12640060000,-0.5360,182251660000, +2024-01-08,3322.6051,3333.5160,3283.3421,3286.0564,11742950000,-1.2933,170761640000, +2024-01-09,3286.7083,3304.6008,3273.8431,3292.4994,10933050000,0.1961,172276320000, +2024-01-10,3281.6692,3312.9161,3268.2471,3277.1290,9419940000,-0.4668,159777650000, +2024-01-11,3275.3086,3311.1137,3266.7911,3295.6717,10878970000,0.5658,180978530000, +2024-01-12,3284.3580,3310.4704,3279.6987,3284.1667,9685360000,-0.3491,156536020000, +2024-01-15,3270.1029,3306.9217,3261.2687,3280.9195,8885150000,-0.0989,144331720000, +2024-01-16,3272.5710,3300.8762,3260.4362,3300.8762,11327670000,0.6083,175650590000, +2024-01-17,3291.1392,3291.1392,3229.0820,3229.0820,10876970000,-2.1750,173516390000, +2024-01-18,3214.2844,3279.2538,3171.6329,3274.7286,17490920000,1.4136,256784540000, +2024-01-19,3261.2393,3286.9415,3251.8136,3269.7763,11850140000,-0.1512,191261810000, +2024-01-22,3262.4685,3281.4205,3193.1776,3218.9016,14870560000,-1.5559,225510030000, +2024-01-23,3208.4316,3249.5306,3188.1259,3231.9329,12201200000,0.4048,193791170000, +2024-01-24,3245.9592,3281.4892,3190.4674,3277.1089,15437200000,1.3978,219036340000, +2024-01-25,3274.3391,3344.2426,3269.7943,3342.9189,19683360000,2.0082,265521110000, +2024-01-26,3326.6465,3351.9692,3315.1265,3333.8213,18066400000,-0.2721,238144900000, +2024-01-29,3335.3936,3351.3715,3303.9604,3303.9604,18416480000,-0.8957,244698010000, +2024-01-30,3283.8977,3300.2040,3244.9719,3245.0387,14364940000,-1.7834,199592930000, +2024-01-31,3231.5425,3252.1475,3201.9264,3215.3518,15314350000,-0.9148,215333350000, +2024-02-01,3202.2564,3251.7582,3191.8968,3217.7109,14551680000,0.0734,203815060000, +2024-02-02,3219.8734,3235.4079,3108.3515,3179.6276,17375810000,-1.1836,234495150000, +2024-02-05,3164.2500,3233.8485,3111.5184,3200.4218,20304300000,0.6540,279713140000, +2024-02-06,3185.2498,3314.5120,3182.8216,3311.6922,20271310000,3.4767,285042020000, +2024-02-07,3314.0306,3343.6303,3289.6704,3343.6303,21664790000,0.9644,297997660000, +2024-02-08,3351.4052,3367.2101,3336.9779,3364.9297,18997760000,0.6370,270239770000, +2024-02-19,3393.1916,3403.8078,3364.1418,3403.8078,18331980000,1.1554,267674150000, +2024-02-20,3395.1916,3415.8943,3380.1030,3410.8542,14073460000,0.2070,218459280000, +2024-02-21,3390.3619,3500.1338,3383.6911,3456.8713,18887940000,1.3491,291823540000, +2024-02-22,3450.3518,3486.6826,3448.4135,3486.6747,14102080000,0.8621,225098130000, +2024-02-23,3491.3367,3507.5592,3472.9680,3489.7416,14482130000,0.0880,232926060000, +2024-02-26,3485.5427,3492.6061,3445.3889,3453.3585,15124830000,-1.0426,238951640000, +2024-02-27,3440.0516,3494.7874,3437.4422,3494.7874,13952820000,1.1997,244488720000, +2024-02-28,3499.8257,3521.6574,3450.2598,3450.2598,18983750000,-1.2741,328300590000, +2024-02-29,3437.8984,3516.0826,3437.8984,3516.0826,15594450000,1.9078,281971900000, +2024-03-01,3515.0587,3544.3595,3503.4590,3537.8038,16270960000,0.6178,288575620000, +2024-03-04,3538.3660,3548.6901,3519.7599,3540.8686,16324460000,0.0866,297719930000, +2024-03-05,3524.9644,3570.6935,3519.0816,3565.5143,16642240000,0.6960,299895930000, +2024-03-06,3556.5323,3577.3883,3545.1013,3551.0481,14307660000,-0.4057,248294170000, +2024-03-07,3548.1007,3569.9185,3522.8964,3529.7195,14811050000,-0.6006,251839530000, +2024-03-08,3529.5509,3548.5055,3511.5770,3544.9099,12579270000,0.4304,225379100000, +2024-03-11,3545.9427,3589.2635,3542.2789,3589.2635,14820280000,1.2512,286418580000, +2024-03-12,3592.5826,3605.6976,3574.2117,3597.4939,18068560000,0.2293,339997040000, +2024-03-13,3594.4211,3594.4211,3563.3685,3572.3610,14459060000,-0.6986,266898760000, +2024-03-14,3571.7885,3597.4600,3545.6120,3562.2229,14096270000,-0.2838,263803610000, +2024-03-15,3554.9068,3572.8091,3533.6798,3569.9930,13831600000,0.2181,243991560000, +2024-03-18,3577.0564,3604.0519,3573.4040,3603.5280,16037940000,0.9394,295314840000, +2024-03-19,3593.3396,3610.7389,3577.1880,3577.6303,14557180000,-0.7187,259553450000, +2024-03-20,3568.7158,3589.5456,3568.4341,3585.3838,12952900000,0.2167,223752100000, +2024-03-21,3593.0700,3601.1145,3575.0331,3581.0902,13074340000,-0.1198,233162490000, +2024-03-22,3571.2736,3575.7171,3522.8404,3545.0023,13922740000,-1.0077,248850930000, +2024-03-25,3536.7136,3564.9604,3525.7634,3525.7634,13701570000,-0.5427,233747260000, +2024-03-26,3526.6818,3547.6461,3518.6018,3543.7467,12620950000,0.5101,226730730000, +2024-03-27,3538.7244,3542.9624,3502.7866,3502.7866,12862680000,-1.1558,216404730000, +2024-03-28,3498.4820,3551.2143,3489.3861,3520.9648,14333470000,0.5190,232530810000, +2024-03-29,3516.8830,3538.2378,3516.8830,3537.4843,12864330000,0.4692,201749380000, +2024-04-01,3551.5815,3600.9193,3551.5815,3595.6466,16277660000,1.6442,251637270000, +2024-04-02,3593.2206,3596.1903,3568.7539,3580.6759,14127300000,-0.4164,220207520000, +2024-04-03,3578.6835,3582.4324,3558.8740,3567.8031,13559230000,-0.3595,214222900000, +2024-04-08,3553.5554,3567.8200,3535.7688,3536.4077,15530430000,-0.8800,243249250000, +2024-04-09,3533.3849,3543.7141,3518.8601,3533.4871,12967090000,-0.0826,195893530000, +2024-04-10,3528.9679,3531.2295,3490.0525,3504.7086,12879030000,-0.8145,199754770000, +2024-04-11,3485.0294,3520.5893,3484.9252,3504.2447,12653440000,-0.0132,200293480000, +2024-04-12,3505.7499,3516.6988,3470.0611,3475.8389,12892110000,-0.8106,208566200000, +2024-04-15,3473.5047,3552.4125,3473.5047,3549.0759,18394120000,2.1070,267472480000, +2024-04-16,3533.3636,3545.5034,3503.6158,3511.1146,17615310000,-1.0696,253315970000, +2024-04-17,3509.1318,3565.9389,3498.0324,3565.4030,16846640000,1.5462,244987810000, +2024-04-18,3550.5562,3602.7902,3547.5996,3569.8018,17857410000,0.1234,261329930000, +2024-04-19,3550.6087,3560.9492,3529.3237,3541.6619,14728150000,-0.7883,226229520000, +2024-04-22,3536.1844,3558.1642,3528.0186,3530.9045,15057900000,-0.3037,229511180000, +2024-04-23,3525.6681,3533.7584,3499.9838,3506.2249,14311350000,-0.6990,213257230000, +2024-04-24,3514.0108,3524.5370,3495.6494,3521.6219,12173990000,0.4391,195299920000, +2024-04-25,3510.6396,3543.9699,3505.1999,3530.2813,11518770000,0.2459,184524620000, +2024-04-26,3531.9647,3588.4003,3531.9647,3584.2686,19721610000,1.5293,308045060000, +2024-04-29,3584.5427,3645.8229,3578.7597,3623.9124,22272140000,1.1060,358709710000, +2024-04-30,3619.2586,3630.7092,3604.3943,3604.3943,19129690000,-0.5386,286674160000, +2024-05-06,3654.0485,3668.2565,3645.7380,3657.8767,20801800000,1.4838,333270470000, +2024-05-07,3657.0007,3665.6840,3648.3760,3659.0076,16483430000,0.0309,247368350000, +2024-05-08,3650.7484,3650.9355,3628.6984,3630.2233,13003530000,-0.7867,199923460000, +2024-05-09,3630.4142,3669.7593,3630.4142,3664.5610,14655900000,0.9459,232694930000, +2024-05-10,3669.0869,3674.6088,3641.7639,3666.2771,15072050000,0.0468,233730560000, +2024-05-13,3646.3491,3673.6211,3634.6049,3664.6907,15726750000,-0.0433,249688470000, +2024-05-14,3668.2254,3675.7760,3646.7092,3657.0454,13340650000,-0.2086,214643550000, +2024-05-15,3651.0536,3656.5277,3624.0020,3626.0559,12352280000,-0.8474,191480970000, +2024-05-16,3636.6007,3657.4831,3626.3340,3640.3592,15463050000,0.3945,240288950000, +2024-05-17,3638.5613,3677.9696,3627.4470,3677.9696,16457040000,1.0332,247729530000, +2024-05-20,3682.0615,3703.0287,3677.4426,3690.9623,18460940000,0.3533,279971340000, +2024-05-21,3682.2868,3684.6106,3665.1524,3676.1611,13067830000,-0.4010,196575350000, +2024-05-22,3675.6471,3691.8804,3667.0885,3684.4510,15191460000,0.2255,230839370000, +2024-05-23,3672.8403,3674.3654,3633.5051,3641.7917,14257300000,-1.1578,214205040000, +2024-05-24,3630.8270,3650.8734,3599.6678,3601.4754,12479120000,-1.1070,195344740000, +2024-05-27,3606.6450,3638.1514,3603.7131,3635.7079,13127260000,0.9505,206143740000, +2024-05-28,3633.2535,3638.9703,3605.9213,3609.1724,12353220000,-0.7299,184381270000, +2024-05-29,3609.0708,3633.1971,3602.8198,3613.5223,11590630000,0.1205,179072810000, +2024-05-30,3607.0522,3624.0352,3586.7543,3594.3121,12260300000,-0.5316,193069650000, +2024-05-31,3599.8196,3614.6439,3579.9247,3579.9247,11246200000,-0.4003,180707600000, +2024-06-03,3577.3798,3600.6044,3567.8713,3588.7483,14105460000,0.2465,222756930000, +2024-06-04,3583.8104,3622.5012,3580.2771,3615.6714,12454510000,0.7502,195790970000, +2024-06-05,3610.3601,3623.3232,3594.1056,3594.7936,11090680000,-0.5774,182639600000, +2024-06-06,3602.1554,3625.0109,3584.1710,3592.2454,13789350000,-0.0709,226764070000, +2024-06-07,3594.6335,3603.0698,3552.0853,3574.1143,13110300000,-0.5047,213001530000, +2024-06-11,3555.8186,3565.3113,3525.8945,3542.8771,13452230000,-0.8740,219282340000, +2024-06-12,3539.0947,3551.1706,3531.5657,3544.1225,12281370000,0.0352,200722600000, +2024-06-13,3548.2162,3551.0771,3520.1802,3526.1306,12324550000,-0.5077,214792340000, +2024-06-14,3514.7998,3547.1473,3503.5233,3541.5331,17151690000,0.4368,283768820000, +2024-06-17,3521.4365,3540.7932,3520.7381,3536.1986,13743340000,-0.1506,232293850000, +2024-06-18,3533.4875,3551.7085,3532.7845,3545.5902,12367180000,0.2656,208824120000, +2024-06-19,3543.3599,3543.3599,3524.8449,3528.7490,10664280000,-0.4750,184790300000, +2024-06-20,3525.1687,3533.9865,3500.1310,3503.2817,11161740000,-0.7217,186515780000, +2024-06-21,3496.3428,3505.5123,3473.8283,3495.6198,10918660000,-0.2187,182736740000, +2024-06-24,3473.6392,3505.7752,3471.2164,3476.8102,11799020000,-0.5381,195787550000, +2024-06-25,3475.1648,3483.2189,3440.6464,3457.9023,11844810000,-0.5438,190886340000, +2024-06-26,3451.5389,3487.3964,3442.2982,3480.2648,10589890000,0.6467,171538110000, +2024-06-27,3467.2888,3471.1423,3452.5775,3454.1175,11491810000,-0.7513,174112510000, +2024-06-28,3443.6744,3484.6780,3443.6744,3461.6570,13540920000,0.2183,205118810000, +2024-07-01,3458.2636,3479.9548,3443.8086,3478.1827,12182980000,0.4774,188018230000, +2024-07-02,3472.4527,3488.3189,3464.5237,3471.7857,12165010000,-0.1839,186104750000, +2024-07-03,3471.5556,3478.7047,3454.9942,3463.4141,10385710000,-0.2411,163035360000, +2024-07-04,3468.2958,3483.3098,3444.9280,3445.8128,10442990000,-0.5082,159477150000, +2024-07-05,3443.3588,3451.0386,3399.6693,3431.0605,11660970000,-0.4281,181416570000, +2024-07-08,3420.8033,3428.0418,3395.9123,3401.7604,11552820000,-0.8540,177559770000, +2024-07-09,3396.8044,3448.9279,3384.8086,3439.8111,13162940000,1.1186,215048840000, +2024-07-10,3425.8818,3447.5050,3423.6483,3428.9657,12720350000,-0.3153,198149480000, +2024-07-11,3451.0442,3473.9837,3438.1180,3468.1690,14589250000,1.1433,237551300000, +2024-07-12,3459.9564,3479.0958,3457.3633,3472.4014,13087460000,0.1220,205055550000, +2024-07-15,3462.6113,3481.4613,3460.7915,3476.2467,11851710000,0.1107,171584920000, +2024-07-16,3466.8523,3500.2943,3464.3655,3498.2827,12065900000,0.6339,200456290000, +2024-07-17,3494.2090,3514.4753,3486.2229,3501.5836,13180210000,0.0944,222830800000, +2024-07-18,3483.2975,3522.7995,3475.7236,3520.9310,12376820000,0.5525,215800000000, +2024-07-19,3500.8052,3545.3383,3493.0734,3539.0156,13244800000,0.5136,228100000000, +2024-07-22,3538.4012,3540.1874,3494.0143,3514.9249,13212630000,-0.6807,217500000000, +2024-07-23,3509.7887,3509.7887,3439.8779,3439.8779,12889770000,-2.1351,202900000000, +2024-07-24,3432.3459,3451.4196,3408.4129,3418.1663,12703630000,-0.6312,184900000000, +2024-07-25,3404.6110,3415.8557,3383.7991,3399.2716,13102220000,-0.5528,190100000000, +2024-07-26,3403.7084,3420.8201,3388.6601,3409.2931,12419560000,0.2948,187900000000, +2024-07-29,3404.3663,3408.5024,3388.8444,3390.7420,10978780000,-0.5441,166700000000, +2024-07-30,3380.6893,3380.6893,3352.8043,3369.3821,10495220000,-0.6299,165400000000, +2024-07-31,3364.0268,3445.0042,3364.0268,3442.0844,17195920000,2.1577,258200000000, +2024-08-01,3443.1397,3448.3361,3419.1872,3419.2666,13632350000,-0.6629,206000000000, +2024-08-02,3393.9167,3419.1023,3380.9645,3384.3919,11661530000,-1.0199,179700000000, +2024-08-05,3362.1117,3409.0314,3343.3205,3343.3205,14281250000,-1.2136,223600000000, +2024-08-06,3367.3517,3376.7956,3318.6251,3342.9789,11934030000,-0.0102,181700000000, +2024-08-07,3338.5909,3362.3839,3329.9658,3341.4890,9508440000,-0.0446,145100000000, +2024-08-08,3332.4281,3364.7855,3320.8432,3342.9369,9249570000,0.0433,149500000000, +2024-08-09,3358.1280,3366.6688,3331.6274,3331.6274,9151160000,-0.3383,142900000000, +2024-08-12,3327.5561,3338.0771,3319.8908,3325.8645,7993880000,-0.1730,117500000000, +2024-08-13,3328.0138,3335.0140,3310.1909,3334.3903,8448970000,0.2563,125300000000, +2024-08-14,3332.7866,3332.7866,3309.1000,3309.2389,7874240000,-0.7543,118200000000, +2024-08-15,3301.4455,3356.7644,3297.9711,3341.9530,10476640000,0.9886,149200000000, +2024-08-16,3342.0346,3356.9071,3335.6239,3345.6340,9651910000,0.1101,135900000000, +2024-08-19,3344.2614,3375.9621,3343.7116,3356.9677,10557110000,0.3388,143400000000, +2024-08-20,3361.6394,3362.3338,3321.6397,3332.7034,10166830000,-0.7228,137900000000, +2024-08-21,3322.9134,3339.4430,3307.9917,3321.6350,8995480000,-0.3321,130000000000, +2024-08-22,3322.8723,3327.6962,3305.2453,3313.1357,10036650000,-0.2559,147700000000, +2024-08-23,3305.9307,3336.2414,3305.6403,3327.1905,8952580000,0.4242,132700000000, +2024-08-26,3330.7184,3336.5271,3311.5701,3324.2231,9399080000,-0.0892,139100000000, +2024-08-27,3315.6860,3320.5667,3299.5635,3305.3338,9580820000,-0.5682,129800000000, +2024-08-28,3298.9089,3305.3496,3274.5881,3286.4956,9269660000,-0.5699,136000000000, +2024-08-29,3273.5410,3290.7857,3269.5288,3277.6812,13070230000,-0.2682,174300000000, +2024-08-30,3273.7532,3351.6254,3273.6496,3321.4323,18869540000,1.3348,268400000000, +2024-09-02,3307.5432,3307.7627,3264.7565,3265.0110,14761240000,-1.6987,194400000000, +2024-09-03,3261.7410,3281.5935,3261.1877,3273.4282,12289730000,0.2578,155100000000, +2024-09-04,3253.8980,3272.9861,3249.9809,3252.1649,10483250000,-0.6496,140100000000, +2024-09-05,3252.9600,3266.8820,3247.1725,3257.7578,9710940000,0.1720,134600000000, +2024-09-06,3261.1542,3274.8144,3231.0685,3231.3457,8840040000,-0.8107,121500000000, +2024-09-09,3214.7996,3222.9278,3180.9277,3192.9516,10867310000,-1.1882,146500000000, +2024-09-10,3193.4557,3205.0972,3171.7932,3195.7552,9729010000,0.0878,133600000000, +2024-09-11,3187.0508,3197.3363,3174.0343,3186.1299,10248210000,-0.3012,141500000000, +2024-09-12,3189.4271,3201.5544,3171.8775,3172.4747,9286870000,-0.4286,136400000000, +2024-09-13,3174.0344,3188.9145,3159.2470,3159.2470,8833670000,-0.4170,137400000000, +2024-09-18,3158.8179,3179.9012,3145.7908,3171.0102,8472280000,0.3723,123500000000, +2024-09-19,3178.3959,3213.8378,3149.7925,3196.0357,12543930000,0.7892,181800000000, +2024-09-20,3192.4322,3207.9875,3173.2238,3201.0497,11806410000,0.1569,164000000000, +2024-09-23,3200.8678,3230.1613,3198.0248,3212.7639,9534490000,0.3659,143900000000, +2024-09-24,3244.6468,3351.9684,3222.4885,3351.9090,20407220000,4.3310,307900000000, +2024-09-25,3403.7021,3465.4882,3393.4380,3401.5330,24156430000,1.4805,356900000000, +2024-09-26,3399.3188,3545.3249,3391.6772,3545.3204,24313400000,4.2271,374000000000, +2024-09-27,3617.9203,3708.4951,3596.5833,3703.6849,26548780000,4.4669,466700000000, +2024-09-30,3846.6515,4038.6968,3796.5045,4017.8545,51021770000,8.4826,862500000000, +2024-10-08,4450.3675,4450.3675,4094.3519,4256.0962,58986790000,5.9296,1130400000000, +2024-10-09,4168.8436,4197.6000,3942.5118,3955.9839,48226930000,-7.0514,1029000000000, +2024-10-10,3979.6116,4098.4967,3912.7708,3997.7879,39505310000,1.0567,718000000000, +2024-10-11,3969.7576,3978.2389,3847.1228,3887.1670,27409650000,-2.7671,485000000000, +2024-10-14,3915.2186,3979.5431,3868.7790,3961.3424,30757900000,1.9082,534100000000, +2024-10-15,3942.5342,3967.8712,3855.9949,3855.9949,24248640000,-2.6594,434400000000, +2024-10-16,3806.1373,3877.7483,3805.0868,3831.5890,21886640000,-0.6329,377301320000, +2024-10-17,3853.8410,3882.0733,3787.7498,3788.2217,21231380000,-1.1318,369170520000, +2024-10-18,3780.3143,3998.2140,3765.1615,3925.2340,31295880000,3.6168,620673700000, +2024-10-21,3946.9016,3979.2638,3896.1650,3935.1974,29118560000,0.2538,600109600000, +2024-10-22,3923.7443,3965.9084,3917.5218,3957.7755,22343340000,0.5737,442881850000, +2024-10-23,3955.3191,4012.1795,3939.0986,3973.2089,24587390000,0.3900,469120810000, +2024-10-24,3950.8987,3957.9832,3914.0887,3928.8334,17472410000,-1.1169,340486880000, +2024-10-25,3931.3205,3992.8918,3921.9396,3956.4210,21069490000,0.7022,412231380000, +2024-10-28,3953.1063,3964.1569,3917.2042,3964.1569,21616040000,0.1955,390450180000, +2024-10-29,3970.0080,3991.3091,3921.5795,3924.6490,21729400000,-0.9966,429625020000, +2024-10-30,3904.1595,3926.0581,3864.3051,3889.4487,21943660000,-0.8969,385010580000, +2024-10-31,3888.4229,3923.8997,3859.1079,3891.0396,30063670000,0.0409,515533820000, +2024-11-01,3882.4579,3933.2204,3879.9588,3890.0203,30798650000,-0.0262,476472950000, +2024-11-04,3897.7144,3944.7619,3891.2109,3944.7619,22923910000,1.4072,381048610000, +2024-11-05,3937.6228,4046.6977,3925.4138,4044.5725,31686280000,2.5302,580971850000, +2024-11-06,4051.2891,4091.7031,4002.5027,4024.2831,33580790000,-0.5016,639124090000, +2024-11-07,3987.2665,4146.1510,3984.6652,4145.6952,34143640000,3.0170,658145920000, +2024-11-08,4192.0794,4200.9080,4094.1631,4104.0470,33235040000,-1.0046,688446560000, +2024-11-11,4066.9336,4132.5111,4048.0390,4131.1312,28959420000,0.6599,625605940000, +2024-11-12,4133.3528,4181.7096,4060.7936,4085.7430,29777810000,-1.0987,660380520000, +2024-11-13,4059.5898,4121.0735,4059.5898,4110.8901,24048410000,0.6155,512734300000, +2024-11-14,4101.2228,4118.1686,4034.9441,4039.6191,23015280000,-1.7337,464157560000, +2024-11-15,4025.6482,4049.0710,3968.8308,3968.8308,24739950000,-1.7524,474079690000, +2024-11-18,3982.1036,4034.0596,3931.1872,3950.3806,30677790000,-0.4649,472408050000, +2024-11-19,3954.6038,3979.1505,3896.7493,3976.8912,24294650000,0.6711,402610970000, +2024-11-20,3966.1238,4001.0847,3958.3383,3985.7727,18459940000,0.2233,347577690000, +2024-11-21,3979.4554,3999.5693,3966.0658,3989.2979,16612590000,0.0884,324235010000, +2024-11-22,3984.2435,3990.2647,3865.6989,3865.6989,21628580000,-3.0983,397566830000, +2024-11-25,3875.6126,3889.7069,3812.3179,3848.0909,19070300000,-0.4555,349006770000, +2024-11-26,3836.2590,3875.2290,3833.2842,3840.1847,14989240000,-0.2055,264403250000, +2024-11-27,3829.3442,3907.1640,3817.9125,3907.0447,17413610000,1.7411,320632360000, +2024-11-28,3904.2525,3908.3918,3866.0136,3872.5505,15011730000,-0.8829,286432870000, +2024-11-29,3869.8903,3962.7002,3869.8903,3916.5832,18765670000,1.1370,375262020000, +2024-12-02,3909.7029,3955.1252,3902.1697,3947.6320,19728980000,0.7928,368591240000, +2024-12-03,3946.7034,3963.9474,3922.8425,3951.8912,18249690000,0.1079,327295050000, +2024-12-04,3948.1300,3957.3650,3917.7467,3930.5568,17462630000,-0.5399,312040420000, +2024-12-05,3916.5638,3936.3358,3910.0834,3921.5881,13853400000,-0.2282,257716300000, +2024-12-06,3923.8954,3995.1168,3923.8954,3973.1405,19205790000,1.3146,351751740000, +2024-12-09,3970.6628,3995.5116,3948.4206,3966.5708,17596000000,-0.1654,308227220000, +2024-12-10,4094.0500,4098.3804,3988.9676,3995.6369,25346380000,0.7328,487278040000, +2024-12-11,3988.0179,4005.3253,3977.3522,3988.8308,17725280000,-0.1703,310713320000, +2024-12-12,3987.1525,4031.7441,3981.3485,4028.5048,18162180000,0.9946,333667520000, +2024-12-13,4000.9854,4000.9854,3931.7392,3933.1808,23035310000,-2.3662,421478610000, +2024-12-16,3930.7807,3938.7595,3901.6465,3911.8416,17851130000,-0.5425,327619080000, +2024-12-17,3908.1263,3955.9450,3908.1263,3922.0334,16093910000,0.2605,306037370000, +2024-12-18,3934.5425,3956.1441,3933.9693,3941.8900,15773830000,0.5063,276825380000, +2024-12-19,3911.8901,3954.3491,3899.7479,3945.4635,16108100000,0.0907,321771610000, +2024-12-20,3937.4722,3958.6336,3923.2562,3927.7441,15498650000,-0.4491,332143280000, +2024-12-23,3928.1493,3965.8502,3928.1493,3933.5718,19006740000,0.1484,354063430000, +2024-12-24,3934.9422,3985.8588,3934.7338,3983.6882,16149460000,1.2741,310384870000, +2024-12-25,3987.9557,4007.7626,3969.4766,3985.6291,15939070000,0.0487,299295150000, +2024-12-26,3981.7317,3991.5331,3965.5461,3987.4801,14342530000,0.0464,305769930000, +2024-12-27,3987.0189,4007.1314,3970.9365,3981.0307,16926870000,-0.1617,345011080000, +2024-12-30,3976.7004,4005.7780,3976.7004,3999.0549,16461250000,0.4528,322699390000, +2024-12-31,3995.8705,4004.3462,3934.9109,3934.9109,18392840000,-1.6040,347880440000, +2025-01-02,3931.8155,3934.2034,3796.3389,3820.3952,21789870000,-2.9102,388636590000, +2025-01-03,3825.2426,3835.9353,3767.6653,3775.1648,17534270000,-1.1839,304322760000, +2025-01-06,3775.9902,3788.8489,3743.0727,3768.9697,15094670000,-0.1641,262803540000, +2025-01-07,3760.8660,3797.6020,3749.0581,3796.1055,14645580000,0.7200,266855800000, +2025-01-08,3781.2610,3810.7355,3731.1887,3789.2153,16916700000,-0.1815,300965730000, +2025-01-09,3780.7341,3795.2608,3768.6810,3779.8773,12979400000,-0.2464,251486000000, +2025-01-10,3778.8928,3786.8069,3732.4806,3732.4806,13752320000,-1.2539,275354210000, +2025-01-13,3704.4442,3737.8852,3704.1073,3722.5130,13644620000,-0.2671,247861950000, +2025-01-14,3728.5561,3826.6399,3718.8768,3820.5395,17066470000,2.6333,345461480000, +2025-01-15,3810.0353,3816.8284,3790.1655,3796.0260,14147550000,-0.6416,278850600000, +2025-01-16,3812.1935,3842.9470,3776.2861,3800.3836,14450590000,0.1148,305734630000, +2025-01-17,3788.3729,3831.6404,3780.2133,3812.3429,12662200000,0.3147,265437490000, +2025-01-20,3835.3042,3858.6677,3821.9815,3829.6764,13958130000,0.4547,292175450000, +2025-01-21,3850.3563,3850.9106,3817.1214,3832.6145,14121840000,0.0767,285073350000, +2025-01-22,3823.9447,3823.9447,3783.1438,3797.0166,13725510000,-0.9288,298745640000, +2025-01-23,3829.0462,3864.2585,3801.8531,3803.7439,18056960000,0.1772,345198070000, +2025-01-24,3793.8498,3847.6003,3793.4836,3832.8637,14897170000,0.7656,296474380000, +2025-01-27,3836.9578,3851.9969,3817.0802,3817.0802,14667080000,-0.4118,282940130000, +2025-02-05,3844.6998,3844.6998,3785.1620,3795.0848,15716830000,-0.5762,346016200000, +2025-02-06,3789.6086,3843.4942,3788.3196,3842.8314,16728820000,1.2581,371891970000, +2025-02-07,3844.0574,3919.3499,3833.8685,3892.7028,22185770000,1.2978,487381560000, +2025-02-10,3898.1023,3906.3678,3878.8314,3901.0618,18890300000,0.2147,384968340000, +2025-02-11,3905.1594,3905.1594,3872.9087,3883.1352,16657490000,-0.4595,337866060000, +2025-02-12,3875.9596,3920.7229,3867.3538,3919.8617,16422850000,0.9458,354830600000, +2025-02-13,3913.9044,3939.1978,3904.9845,3905.1398,17248590000,-0.3756,376473450000, +2025-02-14,3900.8274,3942.0356,3900.8274,3939.0085,17297650000,0.8673,360974240000, +2025-02-17,3954.4147,3955.8959,3921.7017,3947.3983,21358820000,0.2130,430929580000, +2025-02-18,3942.5761,3965.4232,3901.8675,3912.7829,20942510000,-0.8769,400186230000, +2025-02-19,3906.2201,3943.6742,3904.1455,3940.1602,18282950000,0.6997,363680370000, +2025-02-20,3934.6503,3940.6780,3916.1772,3928.8959,16389520000,-0.2859,325972430000, +2025-02-21,3938.0518,3981.0480,3927.7874,3978.4440,22740030000,1.2611,504645490000, +2025-02-24,3972.4831,3995.9456,3949.2309,3969.7169,22081060000,-0.2194,455088750000, +2025-02-25,3933.6360,3955.4336,3915.6527,3925.6505,17810860000,-1.1101,377981450000, +2025-02-26,3931.8420,3960.3298,3925.3664,3959.9413,19106250000,0.8735,386458190000, +2025-02-27,3961.0635,3973.9323,3933.4611,3968.1159,20288800000,0.2064,428272790000, +2025-02-28,3950.1866,3972.4813,3886.3994,3890.0487,19810410000,-1.9674,420308040000, +2025-03-03,3899.6962,3930.0048,3872.5872,3888.4738,17762320000,-0.0405,356057740000, +2025-03-04,3865.9939,3890.4235,3855.7254,3885.2208,14985100000,-0.0837,297739250000, +2025-03-05,3887.7992,3906.4214,3877.0188,3902.5706,15865280000,0.4466,290860480000, +2025-03-06,3923.3827,3964.4942,3917.0833,3956.2369,19396090000,1.3752,397419430000, +2025-03-07,3944.9145,3967.0743,3935.0464,3944.0143,16673240000,-0.3089,340626700000, +2025-03-10,3945.5795,3949.1448,3905.1270,3928.8018,15276520000,-0.3857,292574990000, +2025-03-11,3890.4305,3941.4157,3889.4298,3941.4157,14475440000,0.3211,287480450000, +2025-03-12,3946.8623,3953.6125,3921.4736,3927.2315,15673220000,-0.3599,309627270000, +2025-03-13,3925.7439,3939.2854,3897.3758,3911.5793,15653640000,-0.3986,295173110000, +2025-03-14,3919.6159,4014.1586,3919.6159,4006.5567,21613900000,2.4281,450895280000, +2025-03-17,4020.6402,4021.7278,3992.2563,3996.7876,16220290000,-0.2438,318904420000, +2025-03-18,4011.7794,4016.8730,3995.9602,4007.7229,14020850000,0.2736,292739320000, +2025-03-19,4004.8251,4025.2990,3989.5120,4010.1680,14441940000,0.0610,286075300000, +2025-03-20,4011.0588,4012.0416,3969.9259,3974.9918,13375470000,-0.8772,260020680000, +2025-03-21,3966.5146,3983.1476,3904.7674,3914.6956,16590530000,-1.5169,309348610000, +2025-03-24,3916.1136,3938.1826,3907.1999,3934.8486,15223470000,0.5148,266051440000, +2025-03-25,3937.8975,3946.3574,3921.5287,3932.2951,14047540000,-0.0649,239246310000, +2025-03-26,3930.2073,3942.0260,3916.8607,3919.3566,13116420000,-0.3290,220943160000, +2025-03-27,3911.3841,3952.9852,3903.6520,3932.4117,12679370000,0.3331,232173610000, +2025-03-28,3930.7763,3934.2336,3907.3840,3915.1662,12635620000,-0.4385,213379190000, +2025-03-31,3905.9815,3928.4482,3872.4030,3887.3056,16679850000,-0.7116,268480320000, +2025-04-01,3892.7794,3905.2622,3882.4045,3887.6841,14038030000,0.0097,246041670000, +2025-04-02,3884.4181,3900.4949,3877.1599,3884.3858,11304320000,-0.0848,198267520000, +2025-04-03,3843.4177,3883.7025,3843.4177,3861.5034,14259980000,-0.5891,263684680000, +2025-04-07,3675.2017,3707.7771,3514.1165,3589.4406,31257860000,-7.0455,512971790000, +2025-04-08,3597.9859,3650.7590,3583.8746,3650.7590,28019730000,1.7083,464021090000, +2025-04-09,3606.1036,3686.7943,3587.3368,3686.7943,26230570000,0.9871,455031070000, +2025-04-10,3749.1262,3756.1386,3708.8194,3735.1151,22725220000,1.3106,403842560000, +2025-04-11,3730.3148,3762.3653,3708.4617,3750.5167,16875970000,0.4123,318535140000, +2025-04-14,3772.0407,3776.6344,3754.0330,3759.1422,16446240000,0.2300,292571300000, +2025-04-15,3756.4788,3764.4860,3737.8495,3761.2348,13400600000,0.0557,228604620000, +2025-04-16,3757.8757,3775.1661,3721.6025,3772.8204,15635900000,0.3080,261711090000, +2025-04-17,3755.0862,3779.1253,3749.5040,3772.2221,12237100000,-0.0159,209012320000, +2025-04-18,3760.0425,3782.0443,3754.4072,3772.5230,10294850000,0.0080,173109380000, +2025-04-21,3768.1421,3790.1782,3763.1383,3784.8806,12135570000,0.3276,208085680000, +2025-04-22,3780.1122,3799.2295,3778.0791,3783.9522,12568830000,-0.0245,210200700000, +2025-04-23,3803.4295,3807.9536,3780.5183,3786.8824,13198690000,0.0774,247117390000, +2025-04-24,3787.4590,3807.2599,3775.2070,3784.3574,11716460000,-0.0667,205483050000, +2025-04-25,3792.0838,3801.5765,3780.7772,3786.9937,12459110000,0.0697,220535050000, +2025-04-28,3786.3867,3792.0082,3772.8029,3781.6188,12514510000,-0.1419,210635320000, +2025-04-29,3776.0025,3785.3157,3768.0311,3775.0767,11151470000,-0.1730,197462740000, +2025-04-30,3775.8306,3787.5639,3768.7573,3770.5705,14368170000,-0.1194,244820460000, +2025-05-06,3794.3757,3809.0939,3782.7770,3808.5424,15852050000,1.0071,267937090000, +2025-05-07,3861.5767,3863.6776,3814.9868,3831.6270,16117230000,0.6061,286010740000, +2025-05-08,3820.5481,3867.3313,3816.2642,3852.8963,12495980000,0.5551,246987280000, +2025-05-09,3848.6187,3853.6632,3836.5349,3846.1566,11938950000,-0.1749,216697940000, +2025-05-12,3866.5305,3890.7342,3859.0346,3890.6096,15333250000,1.1558,296122950000, +2025-05-13,3915.5924,3915.5924,3890.6855,3896.2583,14732030000,0.1452,267586400000, +2025-05-14,3894.8386,3960.5228,3890.6504,3943.2108,17203380000,1.2051,319465230000, +2025-05-15,3934.0273,3936.4653,3904.9068,3907.1992,13808170000,-0.9133,241464940000, +2025-05-16,3898.6662,3903.8528,3874.8619,3889.0854,11840530000,-0.4636,208835660000, +2025-05-19,3882.5677,3885.5889,3866.5695,3877.1453,9864340000,-0.3070,184888170000, +2025-05-20,3883.1024,3911.4737,3881.7436,3898.1705,10488520000,0.5423,201636700000, +2025-05-21,3899.4365,3928.6339,3899.4365,3916.3807,10979130000,0.4671,217037740000, +2025-05-22,3912.6007,3923.0195,3903.0898,3913.8651,10759710000,-0.0642,197511410000, +2025-05-23,3910.3739,3931.5514,3882.2741,3882.2741,12027740000,-0.8072,232945380000, +2025-05-26,3875.7891,3884.5370,3849.0384,3860.1067,10960120000,-0.5710,208876790000, +2025-05-27,3857.6271,3865.4291,3834.8455,3839.3969,9857240000,-0.5365,178466760000, +2025-05-28,3843.0747,3849.7360,3833.9582,3836.2366,8903100000,-0.0823,162496370000, +2025-05-29,3838.0092,3869.7909,3831.4577,3858.6998,10847190000,0.5856,209459600000, +2025-05-30,3850.4930,3858.6128,3829.2542,3840.2323,11167220000,-0.4786,199389750000, +2025-06-03,3833.4584,3863.2952,3832.7202,3852.0127,13140310000,0.3068,226782770000, +2025-06-04,3855.4878,3875.8569,3855.4878,3868.7429,11680390000,0.4343,211736180000, +2025-06-05,3872.6373,3883.1345,3861.2720,3877.5557,12287820000,0.2278,231749280000, +2025-06-06,3878.1027,3889.4557,3869.3871,3873.9841,11098800000,-0.0921,202034740000, +2025-06-09,3877.7977,3894.6517,3871.9917,3885.2459,13630630000,0.2907,262023670000, +2025-06-10,3887.5512,3897.4573,3850.4663,3865.4652,14556390000,-0.5091,263647550000, +2025-06-11,3870.6719,3911.6107,3870.6719,3894.6252,14241480000,0.7544,257217700000, +2025-06-12,3885.5196,3900.0408,3870.3838,3892.1992,13399870000,-0.0623,260239580000, +2025-06-13,3881.4923,3889.1602,3853.8186,3864.1822,17253950000,-0.7198,309172350000, +2025-06-16,3853.6193,3876.1704,3853.6193,3873.7951,13734180000,0.2488,246860980000, +2025-06-17,3875.1768,3880.4156,3860.4090,3870.3786,12234250000,-0.0882,220399820000, +2025-06-18,3871.6502,3881.3460,3854.6575,3874.9708,12752860000,0.1186,230553860000, +2025-06-19,3870.0490,3872.9425,3834.9512,3843.0912,13028070000,-0.8227,234840180000, +2025-06-20,3839.7833,3856.4799,3839.7833,3846.6443,11815100000,0.0925,213522820000, +2025-06-23,3831.1703,3867.5896,3827.0829,3857.9016,13380090000,0.2927,232482220000, +2025-06-24,3862.3876,3914.1579,3862.3876,3904.0342,16365620000,1.1958,294228720000, +2025-06-25,3907.0682,3963.0371,3902.1771,3960.0662,18721370000,1.4352,361727250000, +2025-06-26,3953.1603,3964.4820,3945.2589,3946.0195,16531630000,-0.3547,328102850000, +2025-06-27,3949.7879,3969.2626,3918.2041,3921.7578,19455790000,-0.6148,343468230000, +2025-06-30,3920.3149,3940.3611,3911.6044,3936.0791,14517020000,0.3652,288821430000, +2025-07-01,3935.9078,3946.2451,3924.7219,3942.7620,12895940000,0.1698,236070340000, +2025-07-02,3943.3232,3952.1378,3929.6956,3943.6849,14706310000,0.0234,246637850000, +2025-07-03,3949.3998,3971.6160,3945.1380,3968.0676,14100400000,0.6183,269609570000, +2025-07-04,3967.4637,4013.8478,3958.3762,3982.2034,15719710000,0.3562,290512990000, +2025-07-07,3977.2881,3979.7481,3956.5663,3965.1746,13113530000,-0.4276,225106990000, +2025-07-08,3965.4260,4002.2690,3965.4260,3998.4527,15640290000,0.8393,292089830000, +2025-07-09,3997.5044,4016.7434,3987.4267,3991.4006,17329380000,-0.1764,305398800000, +2025-07-10,3993.4196,4032.9829,3992.5242,4010.0243,20977890000,0.4666,347836700000, +2025-07-11,4011.4652,4065.9419,4010.1052,4014.8070,26205280000,0.1193,443780790000, +2025-07-14,4021.2135,4034.9198,4017.6678,4017.6678,20791720000,0.0713,321415950000, +2025-07-15,4023.9896,4042.6574,3994.2628,4019.0644,19104290000,0.0348,353524570000, +2025-07-16,4019.3925,4027.8567,3993.9209,4007.2019,15102730000,-0.2952,300656800000, +2025-07-17,4005.0670,4034.5935,4005.0670,4034.4910,16124900000,0.6810,325516870000, +2025-07-18,4039.8712,4064.6378,4039.3181,4058.5486,18621110000,0.5963,354244440000, +2025-07-21,4069.7685,4086.1171,4063.4427,4085.6072,22326850000,0.6667,377938560000, +2025-07-22,4087.3354,4119.2021,4068.3383,4118.9582,25759700000,0.8163,450874010000, +2025-07-23,4129.1476,4155.6783,4113.9085,4119.7685,30050620000,0.0197,470330900000, +2025-07-24,4116.8312,4152.4265,4111.8849,4149.0368,31963240000,0.7104,487000040000, +2025-07-25,4145.3195,4150.4994,4117.8005,4127.1634,27359500000,-0.5272,430445510000, +2025-07-28,4128.1993,4146.1200,4112.9677,4135.8242,22275980000,0.2098,406792870000, +2025-07-29,4132.6833,4153.3307,4117.5772,4152.0247,23080790000,0.3917,428764310000, +2025-07-30,4148.9405,4185.2064,4127.4301,4151.2379,24985300000,-0.0189,445168470000, +2025-07-31,4141.5612,4141.8243,4063.6662,4075.5912,26708740000,-1.8223,492142570000, +2025-08-01,4069.9254,4085.3543,4040.4620,4054.9286,19622180000,-0.5070,359685160000, +2025-08-04,4037.9378,4070.7023,4037.9378,4070.7023,16227590000,0.3890,295976830000, +2025-08-05,4080.3877,4106.2969,4075.5836,4103.4500,17885200000,0.8045,306934260000, +2025-08-06,4100.4283,4116.7085,4098.3544,4113.4852,17667620000,0.2446,307674630000, +2025-08-07,4120.2822,4129.7382,4094.8214,4114.6660,19864190000,0.0287,358108370000, +2025-08-08,4109.2734,4122.2104,4097.4157,4104.9669,17317120000,-0.2357,308507690000, +2025-08-11,4110.2939,4134.2462,4103.6050,4122.5106,19044370000,0.4274,360685830000, +2025-08-12,4123.5762,4153.2948,4121.2243,4143.8252,17728780000,0.5170,383088420000, +2025-08-13,4150.5037,4186.7480,4147.1991,4176.5776,21393500000,0.7904,462776750000, +2025-08-14,4179.9650,4220.3109,4165.9376,4173.3131,22110360000,-0.0782,485075640000, +2025-08-15,4162.4205,4214.7291,4157.4950,4202.3533,26132760000,0.6959,518686870000, +2025-08-18,4218.2471,4272.9602,4203.4191,4239.4125,30147910000,0.8819,635365870000, +2025-08-19,4241.7651,4264.2303,4215.2075,4223.3741,25081880000,-0.3783,553536200000, +2025-08-20,4208.4005,4272.1463,4190.5559,4271.3958,24648180000,1.1370,538815310000, +2025-08-21,4284.3712,4308.4472,4273.6523,4288.0707,25903000000,0.3904,558521270000, +2025-08-22,4287.3633,4378.3881,4287.3633,4377.9977,29043490000,2.0971,675935080000, +2025-08-25,4416.2924,4472.6525,4404.7761,4469.2217,35809000000,2.0837,823681960000, +2025-08-26,4453.3526,4476.8030,4435.5275,4452.5905,27062140000,-0.3721,627950450000, +2025-08-27,4458.8399,4494.9126,4386.1266,4386.1266,33313390000,-1.4927,785098480000, +2025-08-28,4378.0351,4464.8028,4364.1710,4463.7820,29683450000,1.7705,739423600000, +2025-08-29,4455.8034,4516.8395,4452.3632,4496.7591,35193890000,0.7388,831194070000, +2025-09-01,4516.8787,4528.1342,4487.5304,4523.7111,32036670000,0.5994,770378290000, +2025-09-02,4521.9828,4548.8937,4454.4169,4490.4528,30393260000,-0.7352,777999300000, +2025-09-03,4501.3388,4510.7303,4427.5176,4459.8296,25432020000,-0.6820,655697120000, +2025-09-04,4461.2503,4465.4967,4327.5068,4365.2085,30793460000,-2.1216,773124600000, +2025-09-05,4365.6083,4466.5603,4350.2974,4460.3249,24962570000,2.1790,664166970000, +2025-09-08,4467.1693,4482.7630,4438.0698,4467.5733,26763840000,0.1625,683630880000, +2025-09-09,4448.7390,4472.0930,4412.6914,4436.2584,22137550000,-0.7009,562861100000, +2025-09-10,4438.2998,4466.6325,4414.5937,4445.3649,20359760000,0.2053,535539350000, +2025-09-11,4438.8390,4548.0345,4427.9242,4548.0345,25326410000,2.3096,693156670000, +2025-09-12,4544.5905,4564.6665,4517.7897,4521.9980,26644200000,-0.5725,689576080000, +2025-09-15,4534.8866,4566.9053,4522.4958,4533.0557,23188570000,0.2445,613314650000, +2025-09-16,4539.9217,4552.4190,4494.7875,4523.3367,24926920000,-0.2144,613728330000, +2025-09-17,4517.2855,4556.0296,4503.7959,4551.0230,23571650000,0.6121,608454200000, +2025-09-18,4546.0319,4573.8331,4454.9886,4498.1090,30985980000,-1.1627,839987130000, +2025-09-19,4499.0906,4533.0919,4491.8437,4501.9195,22504400000,0.0847,603887060000, +2025-09-22,4512.0251,4523.8695,4487.1299,4522.6080,19646000000,0.4595,563149160000, +2025-09-23,4536.7569,4560.7319,4459.7281,4519.7781,25282710000,-0.0626,680513630000, +2025-09-24,4495.2659,4567.4948,4494.1133,4566.0708,22048260000,1.0242,629161500000, +2025-09-25,4563.9827,4613.9486,4558.8424,4593.4875,22982330000,0.6004,669866990000, +2025-09-26,4576.9142,4597.8472,4550.0487,4550.0487,20848210000,-0.9457,598723900000, +2025-09-29,4555.0342,4647.5691,4541.4252,4620.0528,27435890000,1.5385,693395230000, +2025-09-30,4629.8987,4647.5031,4616.2243,4640.6935,24798040000,0.4468,664624100000, +2025-10-09,4662.1133,4726.3449,4651.9895,4709.4820,34767870000,1.4823,862208010000, +2025-10-10,4679.4983,4692.5858,4600.9646,4616.8341,31902090000,-1.9673,792743050000, +2025-10-13,4490.8661,4601.8072,4490.8661,4593.9785,31501040000,-0.4950,714001630000, +2025-10-14,4634.0543,4641.4492,4520.9258,4539.0644,37295400000,-1.1953,808959000000, +2025-10-15,4544.2431,4608.8239,4526.8340,4606.2879,28477190000,1.4810,607326350000, +2025-10-16,4588.9206,4645.0959,4586.2801,4618.4218,24823550000,0.2634,560567190000, +2025-10-17,4610.6967,4618.5621,4509.3289,4514.2345,25690560000,-2.2559,559085970000, +2025-10-20,4558.2421,4570.4376,4520.5024,4538.2201,21842040000,0.5313,505798830000, +2025-10-21,4556.1224,4615.4630,4547.9283,4607.8715,21571120000,1.5348,551390250000, +2025-10-22,4576.0277,4603.4884,4567.2361,4592.5700,18533400000,-0.3321,440935300000, +2025-10-23,4578.7018,4611.3409,4541.6944,4606.3447,20046390000,0.2999,420800210000, +2025-10-24,4622.7873,4660.6835,4622.7873,4660.6835,20881450000,1.1797,551986650000, +2025-10-27,4699.3819,4720.4288,4687.6876,4716.0186,26220070000,1.1873,672670370000, +2025-10-28,4697.7277,4734.3218,4679.2288,4691.9730,22090660000,-0.5099,571563260000, +2025-10-29,4701.0362,4747.8378,4697.2680,4747.8378,24621130000,1.1906,645898690000, +2025-10-30,4735.9807,4761.8339,4706.4520,4709.9110,27328910000,-0.7988,719956290000, +2025-10-31,4702.4946,4706.1395,4640.6676,4640.6676,28146470000,-1.4702,680712250000, +2025-11-03,4636.7323,4653.4028,4595.7339,4653.4028,23986980000,0.2744,557602940000, +2025-11-04,4649.3481,4665.3230,4595.0660,4618.6990,23322400000,-0.7458,505177700000, +2025-11-05,4562.1117,4642.6101,4558.7647,4627.2570,20304590000,0.1853,468361160000, +2025-11-06,4642.0112,4698.0935,4642.0112,4693.4032,22424100000,1.4295,553641780000, +2025-11-07,4673.7616,4701.3743,4666.0405,4678.7944,21249740000,-0.3113,507573850000, +2025-11-10,4688.1240,4695.1794,4654.2103,4695.0507,23602680000,0.3474,593977130000, +2025-11-11,4706.3374,4707.1275,4648.4896,4652.1655,18663890000,-0.9134,477629080000, +2025-11-12,4643.5592,4669.6073,4620.9897,4645.9079,20946060000,-0.1345,492308870000, +2025-11-13,4643.7862,4703.4897,4643.7862,4702.0738,20736750000,1.2089,510060680000, +2025-11-14,4663.3175,4684.2578,4628.0242,4628.1398,19209270000,-1.5724,444720430000, +2025-11-17,4616.8058,4624.8976,4580.2613,4598.0525,18895550000,-0.6501,438940100000, +2025-11-18,4584.7896,4606.6167,4552.8038,4568.1928,17771320000,-0.6494,420150130000, +2025-11-19,4568.0365,4607.8627,4568.0365,4588.2922,17292500000,0.4400,385230480000, +2025-11-20,4619.5401,4620.6529,4560.1814,4564.9483,19456260000,-0.5088,415064820000, +2025-11-21,4513.3858,4527.0436,4453.1819,4453.6076,22285100000,-2.4390,481295810000, +2025-11-24,4473.1563,4478.8081,4421.8123,4448.0478,18583370000,-0.1248,425807470000, +2025-11-25,4475.8359,4510.7729,4467.3529,4490.4047,16957190000,0.9523,411523800000, +2025-11-26,4490.2021,4538.1361,4485.6984,4517.6255,15620040000,0.6062,427361380000, +2025-11-27,4520.0140,4559.2183,4509.8635,4515.4027,15031180000,-0.0492,417789840000, +2025-11-28,4511.4972,4531.7219,4492.4256,4526.6616,14290210000,0.2493,341832320000, +2025-12-01,4539.1877,4576.9654,4531.2917,4576.4856,20038230000,1.1007,463861590000, +2025-12-02,4571.9098,4575.4945,4539.4312,4554.3347,14849310000,-0.4840,364366430000, +2025-12-03,4554.5894,4569.8210,4523.5017,4531.0486,16976280000,-0.5113,374486170000, +2025-12-04,4533.6004,4557.4228,4514.1878,4546.5664,14719810000,0.3425,348767400000, +2025-12-05,4547.9056,4593.8279,4535.0195,4584.5368,19680000000,0.8351,412146810000, +2025-12-08,4593.1399,4640.6256,4592.7414,4621.7545,19962100000,0.8118,496716200000, +2025-12-09,4611.3790,4628.7049,4584.2540,4598.2232,18416030000,-0.5091,452113880000, +2025-12-10,4586.2540,4598.5366,4549.0798,4591.8273,16911110000,-0.1391,401452780000, +2025-12-11,4597.1901,4610.2787,4547.1372,4552.1848,16841940000,-0.8633,432431090000, +2025-12-12,4558.7375,4583.6753,4530.7841,4580.9500,21282650000,0.6319,523863220000, +2025-12-15,4550.0028,4595.0463,4548.4382,4552.0596,16759000000,-0.6307,424383390000, +2025-12-16,4542.4226,4553.0806,4484.2700,4497.5545,16516520000,-1.1974,390500130000, +2025-12-17,4499.7729,4594.6556,4498.9304,4579.8750,17842480000,1.8303,452504740000, +2025-12-18,4553.9788,4571.9683,4544.1416,4552.7926,15168130000,-0.5913,382102400000, +2025-12-19,4561.3729,4591.0931,4546.8465,4568.1781,15487620000,0.3379,371577140000, +2025-12-22,4587.6683,4615.8721,4587.6683,4611.6235,16525290000,0.9510,448240600000, +2025-12-23,4616.0260,4644.5347,4607.7992,4620.7341,16925640000,0.1976,433141330000, +2025-12-24,4623.6831,4639.4278,4602.1444,4634.0586,15371120000,0.2884,406375640000, +2025-12-25,4629.3195,4651.1535,4621.9208,4642.5357,13943420000,0.1829,385356060000, +2025-12-26,4639.7895,4676.1310,4635.1052,4657.2400,17539660000,0.3167,460426930000, +2025-12-29,4658.2654,4672.0352,4629.0567,4639.3721,20039710000,-0.3837,482613540000, +2025-12-30,4617.3163,4664.3305,4616.6323,4651.2818,18037500000,0.2567,457185490000, +2025-12-31,4656.4800,4667.0467,4622.0988,4629.9395,17076020000,-0.4588,444491550000, +2026-01-05,4661.6160,4721.6378,4661.6160,4717.7457,23414480000,1.8965,630577350000, +2026-01-06,4719.2088,4790.6938,4718.0099,4790.6938,29697070000,1.5462,725414570000, +2026-01-07,4796.9335,4802.6028,4751.0713,4776.6658,25909560000,-0.2928,664897930000, +2026-01-08,4761.0105,4765.4863,4717.0091,4737.6536,23880500000,-0.8167,630655640000, +2026-01-09,4725.9571,4771.4276,4719.1340,4758.9221,25468800000,0.4489,668788810000, +2026-01-12,4769.6501,4795.9327,4737.5702,4789.9155,29483320000,0.6513,799954080000, +2026-01-13,4798.0488,4836.9549,4745.5154,4761.0324,30144950000,-0.6030,801054980000, +2026-01-14,4767.6956,4818.1008,4720.2460,4741.9306,36495100000,-0.4012,891334220000, +2026-01-15,4721.7966,4769.5478,4720.9368,4751.4293,25400360000,0.2003,674058680000, +2026-01-16,4778.4302,4792.5514,4715.3646,4731.8728,32527890000,-0.4116,785624170000, +2026-01-19,4720.1945,4761.6317,4715.0867,4734.4556,26761250000,0.0546,655149260000, +2026-01-20,4736.9096,4748.2297,4684.9684,4718.8782,28271960000,-0.3290,671960690000, +2026-01-21,4714.5541,4758.2793,4714.2366,4723.0692,26635330000,0.0888,665330510000, +2026-01-22,4741.7548,4757.7637,4700.4482,4723.7091,27419990000,0.0135,690235250000, +2026-01-23,4729.5850,4734.7942,4684.6172,4702.4966,31463540000,-0.4491,755617740000, +2026-01-26,4715.3753,4754.1777,4693.1577,4706.9640,36300450000,0.0950,796832970000, +2026-01-27,4705.1744,4736.9857,4675.6409,4705.6918,30147570000,-0.0270,715267910000, +2026-01-28,4725.6014,4739.6257,4697.9063,4717.9914,38225560000,0.2614,829414070000, +2026-01-29,4733.0879,4770.9599,4696.0536,4753.8697,41551310000,0.7605,917966160000, +2026-01-30,4723.0810,4738.8711,4645.4706,4706.3401,31978650000,-0.9998,750564890000, +2026-02-02,4674.2759,4716.6069,4601.7603,4605.9799,30477350000,-2.1324,725920380000, +2026-02-03,4648.3574,4662.1264,4578.2087,4660.1074,26554940000,1.1752,666626840000, +2026-02-04,4647.9671,4701.4768,4641.8424,4698.6832,26488100000,0.8278,636018590000, +2026-02-05,4664.7478,4687.0213,4639.4300,4670.4188,23785640000,-0.6015,550433170000, +2026-02-06,4622.9747,4678.2618,4606.6379,4643.5959,20271650000,-0.5743,505759810000, +2026-02-09,4693.6715,4719.9642,4679.9037,4719.0559,20725190000,1.6250,522757270000, +2026-02-10,4718.2552,4732.0871,4713.8684,4724.2956,18700100000,0.1110,450339580000, +2026-02-11,4715.6697,4723.7043,4703.6873,4713.8185,17339170000,-0.2218,433428610000, +2026-02-12,4720.0085,4726.0426,4707.7359,4719.5780,19784140000,0.1222,490473850000, +2026-02-13,4693.4106,4703.6332,4658.4038,4660.4056,18916780000,-1.2538,452878590000, +2026-02-24,4727.2961,4727.3730,4698.3488,4707.5440,21848890000,1.0115,526084240000, +2026-02-25,4713.5754,4766.5587,4713.3438,4735.8858,28426840000,0.6021,596903870000, +2026-02-26,4741.3896,4742.1476,4706.6943,4726.8739,23484760000,-0.1903,599848920000, +2026-02-27,4698.3000,4721.0141,4692.8910,4710.6469,26142090000,-0.3433,578820990000, +2026-03-02,4681.0141,4735.4055,4667.2752,4728.6688,34926080000,0.3826,752681940000, +2026-03-03,4737.3164,4744.5987,4651.4047,4655.8962,37062430000,-1.5390,801659240000, +2026-03-04,4609.1918,4639.4204,4575.8249,4602.6247,30303570000,-1.1442,608923130000, +2026-03-05,4651.9415,4671.5268,4630.3024,4647.6921,25931780000,0.9792,570443780000, +2026-03-06,4621.4939,4671.7126,4612.7943,4660.4390,23852790000,0.2743,487807080000, +2026-03-09,4600.2535,4625.9814,4548.9690,4615.4551,32278760000,-0.9652,665821510000, +2026-03-10,4648.7851,4677.5958,4648.7851,4674.7562,26390370000,1.2848,557607880000, +2026-03-11,4681.0316,4711.8671,4674.7088,4704.4959,27017540000,0.6362,579564400000, +2026-03-12,4700.7205,4704.3791,4654.3147,4687.5601,30298680000,-0.3600,572105480000, +2026-03-13,4669.0619,4707.4194,4659.4979,4669.1400,31077200000,-0.3930,580305610000, +2026-03-16,4669.2241,4673.6929,4621.8118,4671.5591,29621510000,0.0518,598799100000, +2026-03-17,4685.5697,4720.8608,4637.3680,4637.4392,26302190000,-0.7304,578501510000, +2026-03-18,4648.7517,4662.2936,4604.5163,4658.3324,23469070000,0.4505,524173910000, +2026-03-19,4611.4399,4634.5468,4570.3920,4583.2511,25413040000,-1.6118,547850300000, +2026-03-20,4602.8205,4628.7118,4563.0687,4567.0179,25787370000,-0.3542,615463090000, +2026-03-23,4499.1004,4514.7182,4397.5661,4417.9971,32808190000,-3.2630,671719760000, +2026-03-24,4458.9074,4474.8250,4394.2943,4474.7224,25553250000,1.2840,530149390000, +2026-03-25,4506.6247,4542.1806,4502.0265,4537.4656,26263930000,1.4022,550428160000, +2026-03-26,4525.3291,4541.0502,4468.9571,4477.5343,21373680000,-1.3208,471127500000, +2026-03-27,4431.5034,4519.8903,4431.4205,4502.5698,19240040000,0.5591,440517560000, +2026-03-30,4461.7367,4496.4109,4447.1373,4491.9500,20929310000,-0.2359,444629520000, +2026-03-31,4491.9209,4523.1745,4450.0493,4450.0493,22454160000,-0.9328,484558110000, +2026-04-01,4517.2717,4532.1093,4492.0544,4526.0668,21648320000,1.7082,503744060000, +2026-04-02,4514.4416,4519.6931,4459.6095,4478.9141,19099220000,-1.0418,429949130000, +2026-04-03,4492.8461,4494.4571,4437.5952,4440.7889,16832170000,-0.8512,373234910000, +2026-04-07,4445.8613,4458.9264,4420.6939,4440.6162,16263880000,-0.0039,378261700000, +2026-04-08,4517.3403,4595.5560,4513.7705,4595.5560,25333920000,3.4892,641779180000, +2026-04-09,4562.6696,4579.1970,4552.4244,4566.2237,18493980000,-0.6383,, +2026-04-10,4594.9467,4655.0988,4590.1089,4636.5655,20867860000,1.5405,, +2026-04-13,4615.1330,4653.3983,4615.1330,4646.1546,19671230000,0.2068,, +2026-04-14,4676.1235,4701.2837,4654.8526,4701.2837,20470030000,1.1866,, +2026-04-15,4726.6381,4731.2729,4672.5560,4685.2464,20168850000,-0.3411,, +2026-04-16,4694.4309,4739.2208,4689.4140,4736.6077,19205760000,1.0962,, +2026-04-17,4728.9951,4738.3236,4714.4669,4728.6716,18291530000,-0.1675,, +2026-04-20,4727.1661,4763.0427,4720.6853,4757.4419,22163350000,0.6084,, +2026-04-21,4750.5149,4776.8258,4722.0074,4767.9970,20561410000,0.2219,, +2026-04-22,4751.2794,4801.4465,4750.3502,4799.6270,20448180000,0.6634,, +2026-04-23,4816.0267,4823.4704,4759.8600,4786.3273,23286570000,-0.2771,, +2026-04-24,4771.7348,4786.4440,4735.6060,4769.3688,19379830000,-0.3543,, +2026-04-27,4776.3351,4795.1682,4762.6441,4770.9469,19279660000,0.0331,, +2026-04-28,4757.0766,4778.1891,4743.4355,4758.2083,21672420000,-0.2670,, +2026-04-29,4737.5755,4813.6104,4737.1139,4810.3468,23329810000,1.0958,, +2026-04-30,4820.9716,4829.2715,4797.5445,4807.3069,25063340000,-0.0632,, +2026-05-06,4857.6537,4892.7957,4834.2807,4877.0932,27444390000,1.4517,, +2026-05-07,4895.8001,4901.8575,4866.8749,4900.5098,25783400000,0.4801,, +2026-05-08,4871.1185,4887.2129,4849.9871,4871.9122,25172100000,-0.5836,, +2026-05-11,4902.2775,4960.3975,4889.5659,4951.8366,30573480000,1.6405,, +2026-05-12,4965.0175,4971.3026,4926.7897,4948.0465,27381200000,-0.0765,, +2026-05-13,4919.4248,5001.1201,4919.4248,4998.3417,26845450000,1.0165,, +2026-05-14,5027.6405,5030.5187,4913.6037,4914.5971,28069540000,-1.6754,, +2026-05-15,4911.6223,4935.6173,4832.6899,4859.5927,27696780000,-1.1192,, +2026-05-18,4836.3286,4868.6008,4806.1455,4833.5237,23907760000,-0.5364,, +2026-05-19,4818.7051,4854.5247,4773.5340,4852.8832,23228090000,0.4005,, +2026-05-20,4829.6129,4866.2121,4825.6430,4850.7000,22002320000,-0.0450,, +2026-05-21,4886.2389,4937.9327,4780.7107,4783.0976,28734250000,-1.3937,, +2026-05-22,4818.8435,4851.3489,4785.3486,4845.0956,28694040000,1.2962,, +2026-05-25,4873.1962,4922.4375,4857.1345,4921.5974,26474320000,1.5790,, +2026-05-26,4900.1152,4952.7412,4892.6830,4947.8493,30279950000,0.5334,, +2026-05-27,4940.9454,4974.2108,4891.3428,4908.1714,30170920000,-0.8019,, +2026-05-28,4889.2659,4922.3297,4843.2265,4914.2133,26743270000,0.1231,, +2026-05-29,4937.5119,4954.0703,4878.7869,4892.1213,33251860000,-0.4496,, +2026-06-01,4897.8968,4918.7935,4836.6851,4844.2556,29613410000,-0.9784,, +2026-06-02,4860.6119,4930.2776,4831.9972,4914.5591,28173170000,1.4513,, +2026-06-03,4921.3445,4991.8525,4904.8969,4938.8091,30403590000,0.4934,, +2026-06-04,4897.3164,4938.7814,4889.7456,4904.7454,26480890000,-0.6897,, +2026-06-05,4886.9645,4924.3438,4798.9103,4816.9199,30192930000,-1.7906,, +2026-06-08,4703.7730,4779.8623,4677.5682,4713.6358,29964760000,-2.1442,, +2026-06-09,4743.4505,4802.5047,4715.3907,4801.8106,25839160000,1.8706,, +2026-06-10,4753.1154,4786.5162,4718.9946,4748.5932,25929710000,-1.1083,, +2026-06-11,4730.0720,4766.1728,4685.5014,4722.4122,24717710000,-0.5513,, +2026-06-12,4784.6396,4809.8606,4757.5574,4777.3206,33592210000,1.1627,, +2026-06-15,4829.2886,4892.5502,4803.1836,4891.7126,33131610000,2.3945,, +2026-06-16,4894.8785,4908.2817,4866.0613,4884.2322,28258470000,-0.1529,, +2026-06-17,4859.7012,4933.9288,4859.7012,4931.3861,27605400000,0.9654,, +2026-06-18,4916.0442,4976.8909,4916.0442,4941.5986,33445990000,0.2071,, +2026-06-22,4949.3457,5061.5105,4928.4582,5059.6582,37510010000,2.3891,, +2026-06-23,5048.0255,5064.2654,4892.0944,4919.3860,34271930000,-2.7724,, +2026-06-24,4900.3838,4953.2321,4892.2676,4943.0197,31224900000,0.4804,, +2026-06-25,4950.9753,5031.9994,4944.8760,5020.1038,34666430000,1.5595,, +2026-06-26,4981.8251,4981.9830,4845.1921,4868.2205,34117920000,-3.0255,, +2026-06-29,4866.0432,4928.5987,4827.1490,4926.9210,32321610000,1.2058,, +2026-06-30,4914.4934,4987.5599,4914.4934,4979.4328,30615020000,1.0658,, +2026-07-01,4972.6923,5017.3754,4925.6309,4958.9773,34293470000,-0.4108,, +2026-07-02,4865.1713,4896.9934,4800.4842,4812.2957,34324380000,-2.9579,, +2026-07-03,4809.4988,4890.9652,4809.4988,4842.1737,30106760000,0.6209,, +2026-07-06,4868.5422,4878.3231,4789.7956,4841.9980,29405050000,-0.0036,, +2026-07-07,4813.8707,4839.5098,4756.7250,4792.2624,24630600000,-1.0272,, +2026-07-08,4804.4837,4830.0464,4751.4045,4755.5338,24392870000,-0.7664,783200000000, +2026-07-09,4774.4021,4882.8477,4734.8666,4876.3125,28162770000,2.5398,947100000000, +2026-07-10,4887.5355,4906.4898,4780.7468,4780.7867,30413030000,-1.9590,1083900000000, +2026-07-13,4745.4383,4775.2355,4670.2496,4695.3830,27863490000,-1.7864,907900000000, +2026-07-14,4691.1224,4796.5020,4649.0444,4796.5020,28325100000,2.1536,924100000000, +2026-07-15,4797.9430,4826.8637,4772.0415,4786.7828,27869270000,-0.2026,858300000000, +2026-07-16,4711.5320,4771.0573,4673.3503,4698.4344,25156100000,-1.8457,798800000000, +2026-07-17,4661.6218,4663.5311,4492.0850,4529.0953,30262990000,-3.6042,920800000000, +2026-07-20,4575.6712,4628.7985,4521.1808,4598.3208,33311610000,1.5285,933400000000, +2026-07-21,4630.8532,4739.2326,4566.2810,4739.2287,34540360000,3.0643,1016700000000, +2026-07-22,4710.6602,4772.0815,4692.8330,4717.2442,28555640000,-0.4639,921500000000, +2026-07-23,4735.1706,4737.5092,4698.8717,4728.0018,24733170000,0.2280,741800000000, +2026-07-24,4685.4082,4704.0843,4642.9387,4649.1917,22126120000,-1.6669,626400000000, +2026-07-27,4656.0272,4702.5249,4615.5310,4702.4272,20478690000,1.1450,604600000000, +2026-07-28,4623.7986,4646.4870,4552.2287,4569.5235,21570500000,-2.8263,652000000000, +2026-07-29,4582.0949,4626.7058,4516.3162,4600.2624,24808240000,0.6727,751500000000, +2026-07-30,4566.0467,4596.2056,4478.2093,4549.7201,27465110000,-1.0987,803700000000, +2026-07-31,4623.8536,4635.5888,4588.1968,4588.1968,27924370000,0.8457,832900000000, +2026-08-03,4561.8170,4572.5880,4529.1862,4543.1781,23204260000,-0.9812,615800000000, +2026-08-04,4566.9425,4613.6937,4555.2465,4600.9304,24207360000,1.2712,698800000000, +2026-08-05,4550.1888,4679.8585,4550.1888,4658.1549,27692190000,1.2438,879200000000, +2026-08-06,4621.8030,4675.6455,4611.0655,4651.3098,24751070000,-0.1469,747800000000, +2026-08-07,4656.0976,4706.7288,4649.5763,4694.4365,23907200000,0.9272,788400000000, +2026-08-10,4698.8162,4714.4648,4659.4700,4702.0247,21307600000,0.1616,733100000000, +2026-08-11,4689.4493,4715.8812,4660.4742,4663.7887,20969910000,-0.8132,645400000000, +2026-08-12,4660.4658,4700.4347,4657.6933,4690.9165,18493910000,0.5817,575300000000, +2026-08-13,4716.9748,4727.2344,4661.8816,4663.9513,21549960000,-0.5748,690700000000, +2026-08-14,4672.9752,4676.7124,4637.1282,4665.8812,17843070000,0.0414,549800000000, +2026-08-17,4672.2756,4742.4043,4662.7150,4741.0981,19056930000,1.6121,657600000000, +2026-08-18,4734.0733,4744.0054,4687.5259,4725.8134,20424550000,-0.3224,619800000000, +2026-08-19,4660.0550,4674.3751,4568.0659,4588.6955,24407010000,-2.9015,705300000000, +2026-08-20,4613.2975,4631.1260,4569.2282,4592.7504,20087420000,0.0884,554000000000, +2026-08-21,4585.4354,4628.9996,4579.2608,4618.8952,17107590000,0.5693,505500000000, +2026-08-24,4620.9489,4621.3893,4527.4871,4563.1266,20661690000,-1.2074,590400000000, +2026-08-25,4542.2438,4573.3777,4523.0229,4552.0326,17151020000,-0.2431,480400000000, +2026-08-26,4549.4321,4612.0375,4542.8425,4590.7935,18457820000,0.8515,489100000000, +2026-08-27,4594.4794,4631.3486,4584.9931,4630.2770,20201720000,0.8601,587100000000, +2026-08-28,4615.8393,4643.3351,4608.4617,4609.1764,18098950000,-0.4557,549800000000, +2026-08-31,4561.9861,4625.0862,4557.3457,4625.0862,23744760000,0.3452,583400000000, +2026-09-01,4618.7337,4640.0810,4604.7695,4611.4394,21486960000,-0.2951,535700000000, +2026-09-02,4581.5140,4583.2709,4534.3894,4547.9559,18699190000,-1.3767,474700000000, +2026-09-03,4570.9115,4585.9873,4536.9247,4552.5784,18224410000,0.1016,439900000000, +2026-09-04,4575.3163,4602.1963,4530.7624,4548.0499,19699740000,-0.0995,517500000000, +2026-09-07,4567.8945,4580.7022,4545.4107,4575.0245,18321850000,0.5931,535800000000, +2026-09-08,4575.9905,4587.7257,4546.3055,4558.7371,17356670000,-0.3560,492100000000, +2026-09-09,4578.5125,4581.9039,4548.3630,4572.5995,15800440000,0.3041,440000000000, +2026-09-10,4550.1865,4569.8328,4533.6586,4548.3898,14692260000,-0.5295,390600000000, +2026-09-11,4514.2954,4520.1695,4461.5695,4510.1554,20423000000,-0.8406,522200000000, +2026-09-14,4474.9474,4504.4894,4473.2745,4480.0821,14948840000,-0.6668,398700000000, +2026-09-15,4473.8050,4496.9558,4444.6281,4450.0402,14271810000,-0.6706,394800000000, +2026-09-16,4449.8833,4483.3564,4417.5974,4480.2683,16349450000,0.6793,476500000000, +2026-09-17,4463.6206,4495.8348,4453.9186,4460.1557,17002560000,-0.4489,448300000000, +2026-09-18,4492.3233,4523.0915,4480.5856,4507.3926,18992420000,1.0591,537700000000, +2026-09-21,4524.3430,4540.5541,4512.1503,4539.5654,18636150000,0.7138,495400000000, +2026-09-22,4569.8738,4583.3835,4537.0370,4544.5875,17786390000,0.1106,523600000000, +2026-09-23,4547.6106,4547.6929,4513.4492,4517.2785,15714380000,-0.6009,378300000000, +2026-09-24,4499.8574,4500.2017,4439.1443,4439.1443,15196580000,-1.7297,375500000000, +2026-09-28,4423.8156,4423.8156,4323.5694,4340.7550,17127740000,-2.2164,428600000000, +2026-09-29,4335.8085,4359.3015,4324.5292,4345.2088,14812950000,0.1026,335000000000, +2026-09-30,4356.7955,4368.6139,4341.8791,4357.6155,16294960000,0.2855,356500000000, +2026-10-08,4354.9293,4383.5676,4289.7944,4310.2765,19155270000,-1.0864,446208260000, +2026-10-09,4297.2513,4330.7431,4239.7425,4317.2549,19918740000,0.1619,496179130000, +2026-10-12,4305.9149,4334.2904,4279.7066,4287.9798,18071730000,-0.6781,405573720000, +2026-10-13,4236.9492,4310.3330,4216.8602,4275.6800,18043410000,-0.2868,442037720000, +2026-10-14,4259.3328,4281.4619,4214.0065,4217.6801,16921980000,-1.3565,368451240000, +2026-10-15,4145.9473,4176.0948,4115.0718,4166.0124,21277630000,-1.2250,483519690000, +2026-10-16,4189.2597,4206.8899,4127.9422,4170.6131,18470520000,0.1104,413749300000, +2026-10-19,4148.3471,4192.0248,4143.6580,4174.5349,15108500000,0.0940,363447750000, +2026-10-20,4157.9331,4175.2096,4113.1354,4152.1076,16695610000,-0.5372,396228660000, +2026-10-21,4161.2572,4161.2572,4098.9606,4111.9325,14430350000,-0.9676,387929790000, +2026-10-22,4110.6489,4110.6489,4022.8685,4036.2966,17804390000,-1.8394,435084140000, +2026-10-23,3992.9041,4109.5184,3958.1375,4105.3286,23132520000,1.7103,558204980000, +2026-10-26,4078.5695,4107.7939,4057.5628,4103.5432,19214720000,-0.0435,456246630000, +2026-10-27,4105.4807,4110.0018,4049.5420,4049.5516,16868850000,-1.3157,383125560000, +2026-10-28,4084.6154,4088.0226,4054.1117,4083.8702,16656020000,0.8475,419279470000, +2026-10-29,4075.4727,4075.4727,4030.2296,4041.8376,17143070000,-1.0292,411892970000, +2026-10-30,3985.2357,4046.8679,3968.8562,3985.5010,19209170000,-1.3938,456855790000, +2026-11-02,4005.9395,4038.8150,3988.1681,4016.9179,24440110000,0.7883,528847290000, +2026-11-03,4005.2511,4028.7367,3969.5471,4008.8748,24878000000,-0.2002,553053600000, +2026-11-04,4007.3506,4105.8575,3987.1516,4101.3350,24637200000,2.3064,597260470000, +2026-11-05,4065.7238,4136.7983,4065.7238,4113.4112,24197990000,0.2944,622088650000, +2026-11-06,4017.9403,4069.0717,4013.7925,4054.2769,19215200000,-1.4376,478840400000, +2026-11-09,4066.2798,4081.0868,4053.9961,4056.1081,15837490000,0.0452,395205080000, +2026-11-10,4089.0521,4090.3793,4054.6502,4059.1105,15038550000,0.0740,380089550000, +2026-11-11,4049.4288,4085.0004,4035.3967,4075.7093,16119930000,0.4089,442127610000, +2026-11-12,4063.2518,4100.0469,4034.5242,4043.9254,17546460000,-0.7798,508194730000, +2026-11-13,4047.7696,4052.0599,4004.4974,4016.2897,17934200000,-0.6834,460245660000, +2026-11-16,3984.7731,3997.4042,3959.9321,3979.8035,18543920000,-0.9085,430554180000, +2026-11-17,3965.9032,3985.9884,3942.3756,3976.4629,17926290000,-0.0839,409477160000, +2026-11-18,3991.1643,3991.1643,3948.4952,3983.7667,16731830000,0.1837,389913840000, +2026-11-19,3972.4346,3995.5469,3937.7507,3984.8399,16335780000,0.0269,395441170000, +2026-11-20,3925.7389,3961.0671,3894.4725,3954.5650,21074490000,-0.7598,441107730000, +2026-11-23,3931.4651,3968.4476,3901.4927,3958.2938,20394330000,0.0943,458279260000, +2026-11-24,4004.0355,4011.6853,3957.9221,3963.8232,19738120000,0.1397,506865910000, +2026-11-25,3929.8401,3937.3286,3886.9179,3898.2356,18177350000,-1.6547,410985200000, +2026-11-26,3918.0219,3922.2949,3877.8242,3900.5483,15994720000,0.0593,371397580000, diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/node/engine.mjs b/plugins/alphamao1/kline-intuition-lab/miniapp/node/engine.mjs new file mode 100644 index 00000000..f2b16d95 --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/node/engine.mjs @@ -0,0 +1,553 @@ +/** + * 价格行为实战台 · 游戏引擎(玩学分离架构 + 四维基本功量化评估) + */ +import { RULES } from './rules.mjs'; + +export const BUY = 'buy'; +export const SELL = 'sell'; +export const HOLD = 'hold'; + +export function snapWeight(w) { + const n = Number(w); + if (!Number.isFinite(n)) return 0; + const steps = Math.round(n / RULES.step) * RULES.step; + return Math.min(1, Math.max(0, Math.round(steps * 1000) / 1000)); +} + +function pivotDayIndex(keyBars) { + const out = []; + for (const p of (keyBars && keyBars.pivots) || []) { + const m = /^T\+(\d+)$/.exec(p.day || ''); + if (m) out.push(Number(m[1])); + } + return out; +} + +export function createSide(capital, price, legacyWeight) { + const shares = legacyWeight > 0 ? Math.floor((capital * legacyWeight) / price) : 0; + const cost = shares * price; + return { + capital, + cash: capital - cost, + shares, + sellable: shares, + frozen: 0, + weight: legacyWeight, + equity: capital, + curve: [{ day: -1, equity: capital, weight: legacyWeight, cash: capital - cost }], + trades: [], + }; +} + +export function tradeToWeight(side, targetWeight, price, dayIndex, label) { + const equity = side.cash + side.shares * price; + const desired = targetWeight * equity; + const current = side.shares * price; + const delta = desired - current; + const before = { weight: side.weight, shares: side.shares, cash: side.cash }; + + if (Math.abs(delta) < Math.max(1, equity * 0.04)) { + return { side: HOLD, weightBefore: before.weight, weightAfter: before.weight, qty: 0, price }; + } + if (delta > 0) { + const maxAfford = side.cash / (price * (1 + RULES.fee)); + const qty = Math.min(Math.floor(delta / price), Math.floor(maxAfford)); + if (qty <= 0) { + return { side: HOLD, weightBefore: before.weight, weightAfter: before.weight, qty: 0, price, note: '现金不足,无法加仓' }; + } + const gross = qty * price; + const fee = gross * RULES.fee; + side.cash -= gross + fee; + side.shares += qty; + side.frozen += qty; + side.weight = (side.shares * price) / Math.max(equity, 1e-9); + side.trades.push({ day: dayIndex, label, side: BUY, qty, price, fee, weightBefore: before.weight, weightAfter: side.weight }); + return { side: BUY, weightBefore: before.weight, weightAfter: side.weight, qty, price, fee }; + } + const qty = Math.min(Math.floor(-delta / price), side.sellable); + if (qty <= 0) { + return { + side: HOLD, + weightBefore: before.weight, + weightAfter: before.weight, + qty: 0, + price, + note: side.sellable <= 0 ? 'T+1 锁定:当日新买份额次日才能卖出' : '无足够可卖份额', + }; + } + const gross = qty * price; + const fee = gross * RULES.fee; + side.cash += gross - fee; + side.shares -= qty; + side.sellable -= qty; + side.weight = (side.shares * price) / Math.max(equity, 1e-9); + side.trades.push({ day: dayIndex, label, side: SELL, qty, price, fee, weightBefore: before.weight, weightAfter: side.weight }); + return { side: SELL, weightBefore: before.weight, weightAfter: side.weight, qty, price, fee }; +} + +export function unlockT1(side) { + if (side.frozen > 0) { + side.sellable += side.frozen; + side.frozen = 0; + } +} + +export function aiDecision(dailyEntry, aiWeight) { + const score = Number(dailyEntry.bullish_edge_score); + const modelTarget = Number(dailyEntry.ai_position_pct) / 100; + const diff = Math.abs(modelTarget - aiWeight); + + if (score < RULES.aiClearScore) { + if (Math.abs(aiWeight) < 1e-9) { + return { target: 0, action: HOLD, reason: `多头温度 ${score} 低于风控阈值,机器保持空仓观望` }; + } + return { target: 0, action: SELL, reason: `多头温度跌至 ${score},机器触发风控清仓离场` }; + } + if (diff < RULES.aiMinTradeDelta) { + return { target: aiWeight, action: HOLD, reason: `多头温度 ${score},机器维持 ${Math.round(aiWeight * 100)}% 仓位不变` }; + } + return { + target: modelTarget, + action: modelTarget > aiWeight ? BUY : SELL, + reason: modelTarget > aiWeight + ? `多头温度升至 ${score},机器加仓至 ${(modelTarget * 100).toFixed(0)}%` + : `多头温度回落至 ${score},机器减仓至 ${(modelTarget * 100).toFixed(0)}%`, + }; +} + +export function legacyWeightFor(level) { + if (level.motif === 'climax_wedge_top') return RULES.legacyWeight; + return 0; +} + +export function buildBars(level) { + const bars = []; + const past = level.past || {}; + const fut = level.future || {}; + const n = (past.dates || []).length; + for (let i = 0; i < n; i++) { + bars.push({ + idx: i, + date: past.dates[i], + open: past.o[i], high: past.h[i], low: past.l[i], close: past.c[i], + volume: past.v[i], ema20: past.ema20 ? past.ema20[i] : null, + label: i === n - 1 ? 'T0' : `T${i - (n - 1)}`, + }); + } + const m = (fut.dates || []).length; + for (let i = 0; i < m; i++) { + bars.push({ + idx: n + i, + date: fut.dates[i], + open: fut.o[i], high: fut.h[i], low: fut.l[i], close: fut.c[i], + volume: fut.v[i], ema20: fut.ema20 ? fut.ema20[i] : null, + label: `T+${i + 1}`, + }); + } + return bars; +} + +/** 盘中纯粹实战视图:只给裸 K + 20EMA + 量能,不提前剧透画线与文案 */ +export function blindLevel(level, opts = {}) { + const bars = buildBars(level); + const legacy = legacyWeightFor(level); + const visible = bars.slice(0, 60); + return { + key: opts.key, + index: opts.index, + total: opts.total, + bars: visible.map((b) => ({ + t: b.idx, o: b.open, h: b.high, l: b.low, c: b.close, v: b.volume, + ema: b.ema20, label: b.label, + })), + atr: level.atr, + close0: level.close0, + levels: level.levels, + initialPosition: legacy > 0 + ? { + type: 'legacy', + weight: legacy, + cash: RULES.capital * (1 - legacy), + note: '高位持仓特训:开局持有 70% 获利老仓,T0 当日即可随时减仓或清仓', + } + : { + type: 'flat', + weight: 0, + cash: RULES.capital, + note: '空仓实战开局:由你在 T0 信号棒收盘处自主决定首笔仓位', + }, + rules: RULES, + }; +} + +/** 结算后的完整教学真相视图(含几何画线 drawings 与 4 帧带教讲稿 walkthrough) */ +export function fullLevel(level) { + return { + id: level.id, code: level.code, name: level.name, date: level.date, + year: level.year, segment: level.segment, + motif: level.motif, motif_cn: level.motif_cn, + outcome: level.outcome, outcome_cn: level.outcome_cn, thesis: level.thesis, + teaching_note: level.teaching_note, + setup: level.setup, + drawings: level.drawings || { lines: [], markers: [] }, + walkthrough: level.walkthrough || null, + key_bars: level.key_bars, + forward: level.forward, + levels: level.levels, + atr: level.atr, close0: level.close0, + quality: level.quality, + daily: level.daily, + }; +} + +export function newMatch(cfg, levels, meta, id) { + return { + id, + cfg, + createdAt: Date.now(), + index: 0, + levelIds: levels.map((l) => l.id), + levelData: levels, + meta, + player: { capital: RULES.capital, side: null }, + model: { capital: RULES.capital, side: null }, + quiz: [], + results: [], + curve: [], + finished: false, + }; +} + +export function startLevel(m, level) { + const price = Number(level.close0); + const legacy = legacyWeightFor(level); + m.player.side = createSide(m.player.capital, price, legacy); + m.model.side = createSide(m.model.capital, price, legacy); + m.levelStart = { + playerCapital: m.player.capital, + modelCapital: m.model.capital, + legacy, + }; + return m.levelStart; +} + +export function decideDay(m, level, dayIndex, targetWeight) { + const bars = buildBars(level); + const bar = bars[59 + dayIndex]; + const price = Number(bar.close); + const snap = snapWeight(targetWeight); + + if (dayIndex > 0) { + unlockT1(m.player.side); + unlockT1(m.model.side); + } + + const playerTrade = tradeToWeight(m.player.side, snap, price, dayIndex, '你'); + + const dailyEntry = level.daily[dayIndex] || {}; + const aiSide = m.model.side; + const decision = aiDecision(dailyEntry, aiSide.weight); + const aiTrade = decision.action === HOLD + ? { side: HOLD, weightBefore: aiSide.weight, weightAfter: aiSide.weight, qty: 0, price } + : tradeToWeight(aiSide, decision.target, price, dayIndex, 'AI'); + + const playerEquity = m.player.side.cash + m.player.side.shares * price; + const aiEquity = m.model.side.cash + m.model.side.shares * price; + m.player.side.equity = playerEquity; + m.model.side.equity = aiEquity; + m.player.side.curve.push({ day: dayIndex, equity: playerEquity, weight: m.player.side.weight, cash: m.player.side.cash }); + m.model.side.curve.push({ day: dayIndex, equity: aiEquity, weight: m.model.side.weight, cash: m.model.side.cash }); + + return { + dayIndex, + day: bar.label, + barIndex: 59 + dayIndex, + price, + player: { + targetWeight: snap, + trade: playerTrade, + weight: m.player.side.weight, + shares: m.player.side.shares, + sellable: m.player.side.sellable, + frozen: m.player.side.frozen, + cash: m.player.side.cash, + equity: playerEquity, + sellableValue: m.player.side.sellable * price, + }, + ai: { + score: dailyEntry.bullish_edge_score, + winRate: dailyEntry.hist_win_rate, + baseWinRate: dailyEntry.base_win_rate ?? 0.47, + suggested: dailyEntry.ai_position_pct, + action: aiTrade.side, + reason: decision.reason, + trade: aiTrade, + weight: m.model.side.weight, + shares: m.model.side.shares, + cash: m.model.side.cash, + equity: aiEquity, + candle: dailyEntry.candle, + top3: dailyEntry.top3_shap || [], + }, + curve: buildCurve(m), + }; +} + +export function fastForward(m, level, dayIndex, steps) { + const out = []; + for (let i = 0; i < steps; i++) { + const t = dayIndex + i; + if (t > RULES.decisionDays - 1) break; + const bars = buildBars(level); + const price = Number(bars[59 + t].close); + if (t > 0) { + unlockT1(m.player.side); + unlockT1(m.model.side); + } + const playerBefore = m.player.side.weight; + const dailyEntry = level.daily[t] || {}; + const decision = aiDecision(dailyEntry, m.model.side.weight); + const aiTrade = decision.action === HOLD + ? { side: HOLD, weightBefore: m.model.side.weight, weightAfter: m.model.side.weight, qty: 0, price } + : tradeToWeight(m.model.side, decision.target, price, t, 'AI'); + const playerEquity = m.player.side.cash + m.player.side.shares * price; + const aiEquity = m.model.side.cash + m.model.side.shares * price; + m.player.side.equity = playerEquity; + m.model.side.equity = aiEquity; + m.player.side.curve.push({ day: t, equity: playerEquity, weight: m.player.side.weight, cash: m.player.side.cash }); + m.model.side.curve.push({ day: t, equity: aiEquity, weight: m.model.side.weight, cash: m.model.side.cash }); + out.push({ + dayIndex: t, + day: bars[59 + t].label, + barIndex: 59 + t, + price, + player: { + weight: m.player.side.weight, + equity: playerEquity, + cash: m.player.side.cash, + held: true, + trade: { side: HOLD, weightBefore: playerBefore, weightAfter: m.player.side.weight, qty: 0, price }, + }, + ai: { + score: dailyEntry.bullish_edge_score, + winRate: dailyEntry.hist_win_rate, + baseWinRate: dailyEntry.base_win_rate ?? 0.47, + suggested: dailyEntry.ai_position_pct, + action: aiTrade.side, + trade: aiTrade, + reason: decision.reason, + weight: m.model.side.weight, + equity: aiEquity, + candle: dailyEntry.candle, + top3: dailyEntry.top3_shap || [], + }, + }); + } + return { steps: out, curve: buildCurve(m) }; +} + +/** 计算本关的四维基本功表现评分(0~100) */ +function evaluateSkills(level, curve, playerReturn, quizCorrect) { + const m = level.motif; + const o = level.outcome; + const pts = curve.filter((p) => p.day >= 0); + const wAt = (d) => { + const found = pts.find((p) => p.day === d); + return found ? found.weight : (pts.length ? pts[pts.length - 1].weight : 0); + }; + const trigDay = level.walkthrough?.frame2?.key_day_index ?? (pivotDayIndex(level.key_bars)[0] || 2); + const w0 = wAt(0); + const wAfterTrig = Math.min(wAt(trigDay), wAt(Math.min(14, trigDay + 1))); + const avgAfterTrig = (() => { + const tail = pts.filter((p) => p.day >= trigDay); + if (!tail.length) return w0; + return tail.reduce((s, x) => s + x.weight, 0) / tail.length; + })(); + + const scores = {}; + + // 1. 周期与位置辨识力:盘前识别 + T0 起手不过度赌命 + let cycleScore = 65; + if (quizCorrect === true) cycleScore += 22; + else if (quizCorrect === false) cycleScore -= 18; + if (m === 'breakout_follow' || m === 'wedge_climax_low') { + // 区间突破首日或左侧摸底不宜 90%+ 盲目梭哈 + if (w0 <= 0.6) cycleScore += 13; + else if (w0 >= 0.9) cycleScore -= 15; + } else if (m === 'climax_wedge_top') { + if (w0 <= 0.7) cycleScore += 10; + else cycleScore -= 15; + } + scores.cycle_read = Math.max(15, Math.min(100, Math.round(cycleScore))); + + // 2. 右侧跟随力(仅在多头成真或强势续涨局重点考核) + if ((m !== 'climax_wedge_top' && o === 'success') || (m === 'climax_wedge_top' && o === 'failure')) { + const base = 35 + avgAfterTrig * 55 + (playerReturn > 0.04 ? 12 : playerReturn < 0 ? -15 : 0); + scores.follow_add = Math.max(15, Math.min(100, Math.round(base))); + } + + // 3. 前提证伪止损力(仅在多头证伪杀跌局重点考核) + if (m !== 'climax_wedge_top' && o === 'failure') { + const cutBonus = (1 - wAfterTrig) * 65 + (1 - avgAfterTrig) * 25 + (playerReturn > -0.03 ? 10 : -10); + scores.invalid_cut = Math.max(10, Math.min(100, Math.round(cutBonus))); + } + + // 4. 高潮派发锁利力(仅在高位高潮局考核) + if (m === 'climax_wedge_top') { + if (o === 'success') { + // 真见顶:破位后越快减至低仓分数越高 + const protect = (1 - avgAfterTrig) * 75 + (playerReturn > -0.025 ? 20 : 0); + scores.climax_protect = Math.max(15, Math.min(100, Math.round(protect))); + } else { + // 强势旗形洗盘:未被震出局拿住主升 + const hold = avgAfterTrig * 70 + (playerReturn > 0.05 ? 25 : 0); + scores.climax_protect = Math.max(20, Math.min(100, Math.round(hold))); + } + } + + return { trigDay, w0, wAfterTrig, avgAfterTrig, scores }; +} + +export function settleLevel(m, level) { + const bars = buildBars(level); + const price = Number(bars[bars.length - 1].close); + unlockT1(m.player.side); + unlockT1(m.model.side); + + // 计算截至 T+15 收盘的真实终值后再平仓结算(不额外收清盘强平虚拟费以免扭曲空仓/持仓对比,或保持同等规则) + const playerTrade = tradeToWeight(m.player.side, 0, price, RULES.horizon, '结算平仓'); + const aiTrade = tradeToWeight(m.model.side, 0, price, RULES.horizon, 'AI结算平仓'); + + const playerEquity = m.player.side.cash; + const aiEquity = m.model.side.cash; + const start = m.levelStart || { playerCapital: RULES.capital, modelCapital: RULES.capital }; + const playerPnl = playerEquity - start.playerCapital; + const aiPnl = aiEquity - start.modelCapital; + const playerReturn = start.playerCapital ? playerPnl / start.playerCapital : 0; + + const pc = m.player.side.curve.filter((x) => x.day >= 0); + const mc = m.model.side.curve.filter((x) => x.day >= 0); + let divergence = null; + for (let i = 0; i < Math.min(pc.length, mc.length); i++) { + const diff = Math.abs((pc[i].weight || 0) - (mc[i].weight || 0)); + if (!divergence || diff > divergence.diff) { + divergence = { dayIndex: pc[i].day, diff, playerWeight: pc[i].weight, aiWeight: mc[i].weight }; + } + } + const divDay = divergence ? divergence.dayIndex : (level.walkthrough?.frame2?.key_day_index ?? 0); + const divEntry = level.daily[divDay] || level.daily[0] || {}; + + const quiz = m.quiz[m.index] || null; + const quizCorrect = quiz ? quiz.motif === level.motif : null; + const skillEval = evaluateSkills(level, m.player.side.curve, playerReturn, quizCorrect); + + const result = { + levelId: level.id, + motif: level.motif, + motifCn: level.motif_cn, + outcome: level.outcome, + outcomeCn: level.outcome_cn, + startCapital: start.playerCapital, + playerEquity, + playerPnl, + playerReturn, + playerTrades: m.player.side.trades.filter((t) => t.day < RULES.horizon), + playerCurve: m.player.side.curve, + aiEquity, + aiPnl, + aiReturn: start.modelCapital ? aiPnl / start.modelCapital : 0, + aiTrades: m.model.side.trades.filter((t) => t.day < RULES.horizon), + aiCurve: m.model.side.curve, + finalTrade: { player: playerTrade, ai: aiTrade }, + divergence: divergence + ? { + ...divergence, + day: divEntry.day || `T+${divDay}`, + candle: divEntry.candle || '', + score: divEntry.bullish_edge_score, + winRate: divEntry.hist_win_rate, + baseWinRate: divEntry.base_win_rate ?? 0.47, + top3: divEntry.top3_shap || [], + } + : null, + skillEval, + quiz, + quizCorrect, + at: new Date().toISOString(), + }; + + m.player.capital = playerEquity; + m.model.capital = aiEquity; + m.results.push(result); + m.curve.push({ + levelIndex: m.index, + playerEquity, + aiEquity, + playerPnl, + aiPnl, + }); + return result; +} + +export function buildCurve(m) { + return { + levels: m.curve.map((c) => ({ + levelIndex: c.levelIndex, + playerEquity: Math.round(c.playerEquity * 100) / 100, + aiEquity: Math.round(c.aiEquity * 100) / 100, + })), + player: (m.player.side ? m.player.side.curve : []).map((p) => ({ + day: p.day, equity: Math.round(p.equity * 100) / 100, weight: p.weight, + })), + ai: (m.model.side ? m.model.side.curve : []).map((p) => ({ + day: p.day, equity: Math.round(p.equity * 100) / 100, weight: p.weight, + })), + }; +} + +export function summarize(m) { + const playerEquity = m.player.capital; + const aiEquity = m.model.capital; + const playerPnl = playerEquity - RULES.capital; + const aiPnl = aiEquity - RULES.capital; + const ret = playerPnl / RULES.capital; + const beatAi = playerPnl > aiPnl; + const won = playerPnl > 0; + const quizRight = m.quiz.filter((q) => q && q.correct).length; + const quizTotal = m.quiz.filter(Boolean).length; + + let rank = '见习读图员'; + if (ret >= 0.18 && beatAi) rank = '价格行为宗师'; + else if (ret >= 0.10) rank = '资深盘感交易员'; + else if (ret >= 0.03) rank = '顺势纪律猎手'; + else if (ret >= -0.03) rank = '稳健控仓学徒'; + else rank = '逆势扛单新手'; + + return { + id: m.id, + at: new Date().toISOString(), + cfg: m.cfg, + levels: m.results.length, + playerEquity: Math.round(playerEquity * 100) / 100, + aiEquity: Math.round(aiEquity * 100) / 100, + playerPnl: Math.round(playerPnl * 100) / 100, + aiPnl: Math.round(aiPnl * 100) / 100, + playerReturn: ret, + aiReturn: aiPnl / RULES.capital, + beatAi, + won, + rank, + quizRight, + quizTotal, + curve: m.curve.map((c) => ({ + levelIndex: c.levelIndex, + playerEquity: Math.round(c.playerEquity * 100) / 100, + aiEquity: Math.round(c.aiEquity * 100) / 100, + })), + levelDetails: m.results, + }; +} + +export function keyBarDays(level) { + return pivotDayIndex(level.key_bars); +} diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/node/pa_levels.mjs b/plugins/alphamao1/kline-intuition-lab/miniapp/node/pa_levels.mjs new file mode 100644 index 00000000..e92950e4 --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/node/pa_levels.mjs @@ -0,0 +1,96 @@ +/** + * 关卡库:读取随包的 curated_levels.json(精选 24 关:4 大核心课题 × 6 关), + * 并合并玩家通过同花顺 iFinD 动态生成的本地关卡。 + */ +import { readFileSync, existsSync } from 'node:fs'; +import { dirname, join } from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { MOTIF_ORDER } from './rules.mjs'; + +const HERE = dirname(fileURLToPath(import.meta.url)); +const DATA_DIR = join(HERE, 'data'); +const BUILTIN_PATH = join(DATA_DIR, 'curated_levels.json'); + +let builtin = null; + +function loadBuiltin() { + if (builtin) return builtin; + if (!existsSync(BUILTIN_PATH)) { + builtin = { meta: { motifs: [] }, levels: [] }; + return builtin; + } + const raw = JSON.parse(readFileSync(BUILTIN_PATH, 'utf8')); + builtin = { meta: raw.meta || {}, levels: raw.levels || [] }; + return builtin; +} + +export function motifs() { + const b = loadBuiltin(); + const list = (b.meta && b.meta.motifs) || []; + return list.map((m) => ({ + key: m.key, + cn: m.cn, + short_cn: m.short_cn || m.cn, + cycle: m.cycle || '', + skill: m.skill || '', + bullets: m.bullets || [], + count: b.levels.filter((l) => l.motif === m.key).length, + })); +} + +export function builtinLevels() { + return loadBuiltin().levels; +} + +export function builtinMeta() { + return loadBuiltin().meta; +} + +export function allLevels(store) { + const b = loadBuiltin(); + const custom = store ? store.readCustomLevels() : []; + const levels = b.levels.concat(custom.map((l) => ({ ...l, custom: true }))); + return { meta: b.meta, levels }; +} + +export function findLevel(levels, id) { + return levels.find((l) => l.id === id) || null; +} + +/** + * 闯关模式抽题:4 大核心课题各随机抽 1 关,且保证 2 正 + 2 反随机混排! + * 每次开新闯关都有新鲜感,不会每次都抽到固定同一组。 + */ +export function pickMatchLevels(levels, count = 4) { + const shuffle = (arr) => { + const a = arr.slice(); + for (let i = a.length - 1; i > 0; i--) { + const j = Math.floor(Math.random() * (i + 1)); + [a[i], a[j]] = [a[j], a[i]]; + } + return a; + }; + + const motifKeys = shuffle(MOTIF_ORDER); + const outcomes = shuffle(['success', 'failure', 'success', 'failure']); + const picked = []; + + for (let i = 0; i < Math.min(count, motifKeys.length); i++) { + const m = motifKeys[i]; + const targetOut = outcomes[i % outcomes.length]; + let pool = shuffle(levels.filter((l) => l.motif === m && l.outcome === targetOut)); + if (!pool.length) pool = shuffle(levels.filter((l) => l.motif === m)); + if (pool.length) picked.push(pool[0]); + } + + while (picked.length < count) { + const rest = shuffle(levels.filter((l) => !picked.includes(l))); + if (!rest.length) break; + picked.push(rest[0]); + } + return shuffle(picked).slice(0, count); +} + +export function pickByMotif(levels, motif) { + return levels.filter((l) => l.motif === motif); +} diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/node/py/pa_curator_core.py b/plugins/alphamao1/kline-intuition-lab/miniapp/node/py/pa_curator_core.py new file mode 100644 index 00000000..e3f2e612 --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/node/py/pa_curator_core.py @@ -0,0 +1,728 @@ +# -*- coding: utf-8 -*- +"""价格行为学(Al Brooks Price Action)精品关卡筛选、几何画线坐标与 4 帧带教生成器。 + +核心原则: +1. 4 大实战课题 × 每课题 6 关(3 正 + 3 反)= 24 个 100% 名副其实、结局干净利落的教科书关卡: + - breakout_follow 箱体突破:真主升 vs 假突破杀猪盘 + - ema20_pullback 强趋势通道:回踩 20EMA 二次上车 vs 破位转势 + - wedge_climax_low 急跌衰竭:三推楔形底反转 vs 盲目抄底接飞刀 + - climax_wedge_top 高位加速:抢购高潮逃顶 vs 强势旗形洗盘(开局默认持仓 70%) +2. 严禁“指鹿为马”:正例必须走出扎实顺向主浪且回撤受控;反例必须走出真实反向杀跌/逼空且不反转创新高。 +3. 为赛后「4 帧动态画线回放带教」预生成精确到 barIndex(0..74) 的几何辅助线(drawings)与四层理论讲稿(walkthrough)。 +""" +from __future__ import annotations + +from typing import Dict, List, Optional, Tuple +import numpy as np +import pandas as pd + +from pa_engine import FEATURES, TRAIN_END, PALightGBM, detect_pivots, pivot_legs + +PAST_BARS = 60 # 索引 0..59,其中 59 为 T0 +FUTURE_BARS = 15 # 索引 60..74,对应 T+1..T+15 +T0_IDX = PAST_BARS - 1 + +MOTIFS: List[dict] = [ + { + "key": "breakout_follow", + "cn": "箱体突破 · 真主升 vs 假突破陷阱", + "short_cn": "箱体突破真伪", + "cycle": "交易区间突破尝试", + "skill": "invalid_cut", + "bullets": ["突破首日仅作假设,次日跟随定真伪", "跌回箱体上沿即触发 80% 区间陷阱法则"], + }, + { + "key": "ema20_pullback", + "cn": "强趋势通道 · 回踩 20EMA vs 破位转势", + "short_cn": "趋势回踩 20EMA", + "cycle": "上升趋势通道", + "skill": "follow_add", + "bullets": ["上升通道不追高,等回踩 20EMA 二次入场(H2)", "放量阴线击穿均线且反抽受阻则通道终结"], + }, + { + "key": "wedge_climax_low", + "cn": "急跌衰竭 · 楔形底反转 vs 抄底接飞刀", + "short_cn": "急跌楔形反转", + "cycle": "抛售高潮 / 三推楔形底", + "skill": "cycle_read", + "bullets": ["三推斜率衰减或长下影承接仅可轻仓试探", "跌穿 T0 反转棒最低点说明是下跌中继"], + }, + { + "key": "climax_wedge_top", + "cn": "高位加速 · 抢购高潮逃顶 vs 旗形洗盘", + "short_cn": "高位高潮逃顶", + "cycle": "抢购高潮 / 高位分歧", + "skill": "climax_protect", + "bullets": ["开局持 70% 获利老仓,练高位分批锁利", "区分放量破低派发与缩量窄旗形空中加油"], + }, +] +MOTIF_MAP = {m["key"]: m for m in MOTIFS} +MOTIF_CN = {m["key"]: m["cn"] for m in MOTIFS} + + +def r3(x) -> float: + try: + v = float(x) + except (TypeError, ValueError): + return 0.0 + return round(v, 3) if np.isfinite(v) else 0.0 + + +def candle_sentence(o: float, h: float, l: float, c: float, atr: float) -> str: + rng = max(h - l, 1e-9) + body = c - o + body_atr = abs(body) / max(atr, 1e-9) + close_pos = (c - l) / rng + up_sh = (h - max(o, c)) / rng + low_sh = (min(o, c) - l) / rng + + if body >= 0: + base = "大阳趋势棒" if body_atr >= 0.85 else ("中阳棒" if body_atr >= 0.40 else "小阳十字星") + else: + base = "大阴趋势棒" if body_atr >= 0.85 else ("中阴棒" if body_atr >= 0.40 else "小阴十字星") + + if body_atr < 0.55 and up_sh >= 0.42: + base = "长上影拒绝棒(流星线)" + elif body_atr < 0.55 and low_sh >= 0.42: + base = "长下影承接棒(Pin Bar)" + + pos = ( + "收在最高点附近" if close_pos >= 0.80 else + "收在上半区" if close_pos >= 0.58 else + "收在中位犹豫" if close_pos >= 0.42 else + "收在下半区" if close_pos >= 0.20 else "收在最低点附近" + ) + extra = [] + if up_sh >= 0.28: + extra.append(f"上影 {up_sh:.0%}") + if low_sh >= 0.28: + extra.append(f"下影 {low_sh:.0%}") + tail = ("," + "、".join(extra)) if extra else "" + return f"{base}(实体 {body_atr:.1f}×ATR,{pos}{tail})" + + +def clean_shap_item(t: dict) -> dict: + """将 SHAP 条目清理为直白易懂的因果短句,去除生硬术语。""" + raw_text = str(t.get("text", "")) + clean_desc = raw_text.split("→")[0].strip() + impact = min(18, max(2, int(round(abs(float(t.get("shap", 0.0))) * 45)))) + return { + "name_cn": t["name_cn"], + "feature": t["feature"], + "shap": round(float(t["shap"]), 4), + "push": bool(t["push"]), + "impact_pts": impact if t["push"] else -impact, + "text": clean_desc, + } + + +def fwd_metrics(d: pd.DataFrame, i: int) -> Optional[Dict]: + if i < PAST_BARS or i + FUTURE_BARS >= len(d): + return None + c = d["close"].to_numpy(float) + h = d["high"].to_numpy(float) + l = d["low"].to_numpy(float) + atr = float(d["atr14"].iloc[i]) + if not np.isfinite(atr) or atr <= 0: + return None + c0 = float(c[i]) + fut_c = c[i + 1:i + 1 + FUTURE_BARS] + fut_h = h[i + 1:i + 1 + FUTURE_BARS] + fut_l = l[i + 1:i + 1 + FUTURE_BARS] + hi = float(fut_h.max()) + lo = float(fut_l.min()) + return { + "close0": c0, + "atr": atr, + "ret15": float(fut_c[-1] / c0 - 1.0), + "max_up_pct": float(hi / c0 - 1.0), + "max_dn_pct": float(lo / c0 - 1.0), # <= 0 typically + "max_up_atr": round((hi - c0) / atr, 3), + "max_dn_atr": round((c0 - lo) / atr, 3), + "fwd_range_atr": round((hi - lo) / atr, 3), + "fwd_range_pct": round((hi - lo) / c0, 4), + "close_chg_15d": round(float(fut_c[-1] / c0 - 1.0), 4), + "max_high": r3(hi), + "min_low": r3(lo), + } + + +# ============================================================== 四大课题严选扫描 +def scan_candidates_for_stock(d: pd.DataFrame, code: str, name: str, + strict: bool = True) -> List[dict]: + cands: List[dict] = [] + n = len(d) + o = d["open"].to_numpy(float) + h = d["high"].to_numpy(float) + l = d["low"].to_numpy(float) + c = d["close"].to_numpy(float) + ema = d["ema20"].to_numpy(float) + atr = d["atr14"].to_numpy(float) + vol_r = d["pa_vol_ratio20"].to_numpy(float) + ov5 = d["pa_overlap5"].to_numpy(float) + + for i in range(PAST_BARS, n - FUTURE_BARS): + fm = fwd_metrics(d, i) + if not fm: + continue + a = fm["atr"] + c0 = fm["close0"] + ret15 = fm["ret15"] + max_up = fm["max_up_pct"] + max_dn = fm["max_dn_pct"] + fut_c = c[i + 1:i + 1 + FUTURE_BARS] + fut_h = h[i + 1:i + 1 + FUTURE_BARS] + fut_l = l[i + 1:i + 1 + FUTURE_BARS] + + rng = max(h[i] - l[i], 1e-9) + cpos = (c[i] - l[i]) / rng + body_a = abs(c[i] - o[i]) / a + up_sh = (h[i] - max(o[i], c[i])) / rng + lo_sh = (min(o[i], c[i]) - l[i]) / rng + vr = float(vol_r[i]) if np.isfinite(vol_r[i]) else 1.0 + + # ---------------- 1. 箱体突破真伪 (breakout_follow) + box_win = 22 + box_hi = float(h[i - box_win:i].max()) + box_lo = float(l[i - box_win:i].min()) + box_h_a = (box_hi - box_lo) / a + touches = int(np.sum((h[i - box_win:i] >= box_hi - 0.38 * a) | (l[i - box_win:i] <= box_lo + 0.38 * a))) + if (2.0 <= box_h_a <= 11.0 and c0 > box_hi and c[i] > o[i] + and body_a >= 0.42 and cpos >= 0.55 and touches >= 3 + and np.isfinite(ov5[i - 1]) and ov5[i - 1] >= 0.28): + up_min = 0.09 if strict else 0.05 + dn_Lim = -0.065 if strict else -0.04 + if ret15 >= up_min and max_up >= (0.13 if strict else 0.08) and max_dn >= -0.045 and fut_c[:3].min() >= box_hi * 0.988: + # 找确认棒:T+1~T+4 收盘创新高阳棒 + trig = next((k + 1 for k in range(min(5, FUTURE_BARS)) if fut_c[k] > h[i] and fut_c[k] > o[i + 1 + k]), 1) + q = 0.5 * min(1.0, body_a / 1.5) + 0.25 * min(1.0, vr / 2.2) + 0.25 * min(1.0, ret15 / 0.22) + cands.append(_pack(code, name, d, i, "breakout_follow", "success", trig, q, fm, { + "box_hi": box_hi, "box_lo": box_lo, "box_win": box_win, "vol_ratio": vr, + "body_atr": body_a, "close_pos": cpos, + })) + elif ret15 <= dn_Lim and max_dn <= (-0.085 if strict else -0.06) and max_up <= 0.032: + inval = next((k + 1 for k in range(min(5, FUTURE_BARS)) if fut_c[k] < box_hi), None) + if inval is not None: + q = 0.45 * min(1.0, body_a / 1.4) + 0.25 * min(1.0, vr / 2.0) + 0.30 * min(1.0, abs(ret15) / 0.15) + cands.append(_pack(code, name, d, i, "breakout_follow", "failure", inval, q, fm, { + "box_hi": box_hi, "box_lo": box_lo, "box_win": box_win, "vol_ratio": vr, + "body_atr": body_a, "close_pos": cpos, + })) + + # ---------------- 2. 强趋势通道回踩 20EMA (ema20_pullback) + slope10 = (ema[i] - ema[i - 10]) / a if np.isfinite(ema[i - 10]) else -9.0 + swing_seg_h = h[i - 18:i] + swing_rel = int(np.argmax(swing_seg_h)) + swing_abs = i - 18 + swing_rel + swing_hi = float(h[swing_abs]) + if (slope10 > 0.22 and c[i - 8] > ema[i - 8] and swing_abs <= i - 2 + and swing_hi > c0 * 1.015 and -0.35 <= (c0 - ema[i]) / a <= 0.72 + and l[max(i - 2, 0):i + 1].min() <= ema[i] * 1.008 + and cpos >= 0.46 and (c[i] >= o[i] or lo_sh >= 0.28)): + if ret15 >= (0.095 if strict else 0.055) and max_up >= (0.13 if strict else 0.08) and max_dn >= -0.042 and fut_c[:2].min() >= ema[i] * 0.985: + trig = next((k + 1 for k in range(min(5, FUTURE_BARS)) if fut_c[k] > max(h[i], h[i - 1])), 1) + q = 0.45 * min(1.0, slope10 / 1.4) + 0.25 * cpos + 0.30 * min(1.0, ret15 / 0.24) + cands.append(_pack(code, name, d, i, "ema20_pullback", "success", trig, q, fm, { + "box_hi": swing_hi, "box_lo": float(l[i - 20:i + 1].min()), + "swing_hi_bar": T0_IDX - (i - swing_abs), "swing_hi": swing_hi, + "slope10": slope10, "low_sh": lo_sh, "close_pos": cpos, + })) + elif ret15 <= (-0.075 if strict else -0.05) and max_dn <= (-0.095 if strict else -0.07) and max_up <= 0.035: + inval = next((k + 1 for k in range(min(5, FUTURE_BARS)) if fut_c[k] < min(l[i], ema[i + 1 + k]) and fut_c[k] < o[i + 1 + k]), None) + if inval is not None: + q = 0.40 * min(1.0, slope10 / 1.4) + 0.25 * cpos + 0.35 * min(1.0, abs(ret15) / 0.18) + cands.append(_pack(code, name, d, i, "ema20_pullback", "failure", inval, q, fm, { + "box_hi": swing_hi, "box_lo": float(l[i - 20:i + 1].min()), + "swing_hi_bar": T0_IDX - (i - swing_abs), "swing_hi": swing_hi, + "slope10": slope10, "low_sh": lo_sh, "close_pos": cpos, + })) + + # ---------------- 3. 急跌衰竭:楔形底/抛售高潮反转 (wedge_climax_low) + peak25_rel = int(np.argmax(h[i - 25:i])) + peak25_abs = i - 25 + peak25_rel + peak25 = float(h[peak25_abs]) + drop25 = c0 / max(peak25, 1e-9) - 1.0 + low20 = float(l[i - 19:i + 1].min()) + rev_bar = (c[i] > o[i] and cpos >= 0.58 and body_a >= 0.42) or (lo_sh >= 0.36 and cpos >= 0.48) + if drop25 <= -0.10 and l[i] <= low20 + 0.40 * a and rev_bar: + if ret15 >= (0.070 if strict else 0.045) and max_up >= (0.10 if strict else 0.07) and fut_l.min() >= l[i] * 0.985: + trig = next((k + 1 for k in range(min(5, FUTURE_BARS)) if fut_c[k] > h[i]), 1) + q = 0.35 * min(1.0, abs(drop25) / 0.22) + 0.30 * cpos + 0.35 * min(1.0, ret15 / 0.16) + cands.append(_pack(code, name, d, i, "wedge_climax_low", "success", trig, q, fm, { + "box_hi": peak25, "box_lo": float(l[i]), + "peak_bar": T0_IDX - (i - peak25_abs), "peak_price": peak25, + "drop25": drop25, "low_sh": lo_sh, "body_atr": body_a, "vol_ratio": vr, + })) + elif ret15 <= (-0.075 if strict else -0.05) and max_dn <= (-0.10 if strict else -0.07) and max_up <= 0.032: + inval = next((k + 1 for k in range(min(6, FUTURE_BARS)) if fut_c[k] < l[i]), None) + if inval is not None: + q = 0.35 * min(1.0, abs(drop25) / 0.22) + 0.30 * cpos + 0.35 * min(1.0, abs(ret15) / 0.16) + cands.append(_pack(code, name, d, i, "wedge_climax_low", "failure", inval, q, fm, { + "box_hi": peak25, "box_lo": float(l[i]), + "peak_bar": T0_IDX - (i - peak25_abs), "peak_price": peak25, + "drop25": drop25, "low_sh": lo_sh, "body_atr": body_a, "vol_ratio": vr, + })) + + # ---------------- 4. 高位加速:抢购高潮逃顶 vs 强势旗形洗盘 (climax_wedge_top) + base25_rel = int(np.argmin(l[i - 28:i - 3])) + base25_abs = i - 28 + base25_rel + base25 = float(l[base25_abs]) + gain25 = c0 / max(base25, 1e-9) - 1.0 + hi20 = float(h[i - 19:i + 1].max()) + top_signal = h[i] >= hi20 * 0.98 and (up_sh >= 0.24 or (c[i] < o[i] and body_a >= 0.4) or vr >= 1.45) + if gain25 >= 0.15 and top_signal: + # 正例(success):见顶派发成立,股价真大跌,应当逃顶锁利 + if ret15 <= (-0.075 if strict else -0.05) and max_dn <= (-0.105 if strict else -0.075) and max_up <= 0.035: + trig = next((k + 1 for k in range(min(5, FUTURE_BARS)) if fut_c[k] < l[i] and fut_c[k] < o[i + 1 + k]), None) + if trig is not None: + q = 0.35 * min(1.0, gain25 / 0.35) + 0.25 * min(1.0, vr / 2.2) + 0.40 * min(1.0, abs(ret15) / 0.18) + cands.append(_pack(code, name, d, i, "climax_wedge_top", "success", trig, q, fm, { + "box_hi": float(h[i]), "box_lo": base25, + "base_bar": T0_IDX - (i - base25_abs), "base_price": base25, + "gain25": gain25, "up_sh": up_sh, "vol_ratio": vr, + })) + # 反例(failure):高位分歧实为强势窄幅洗盘,随后二次突破大涨 + elif ret15 >= (0.10 if strict else 0.06) and max_up >= (0.145 if strict else 0.09) and max_dn >= -0.048: + inval = next((k + 1 for k in range(min(6, FUTURE_BARS)) if fut_c[k] > h[i]), 2) + q = 0.35 * min(1.0, gain25 / 0.35) + 0.25 * min(1.0, vr / 2.2) + 0.40 * min(1.0, ret15 / 0.22) + cands.append(_pack(code, name, d, i, "climax_wedge_top", "failure", inval, q, fm, { + "box_hi": float(h[i]), "box_lo": base25, + "base_bar": T0_IDX - (i - base25_abs), "base_price": base25, + "gain25": gain25, "up_sh": up_sh, "vol_ratio": vr, + })) + + return cands + + +def _pack(code: str, name: str, d: pd.DataFrame, i: int, motif: str, outcome: str, + trig_offset: int, quality: float, fm: dict, extra: dict) -> dict: + return { + "code": code, + "name": name, + "bar_index": int(i), + "date": d["date"].iloc[i].strftime("%Y-%m-%d"), + "motif": motif, + "outcome": outcome, + "trig_offset": int(trig_offset), + "quality": round(float(quality), 4), + "fwd": fm, + "extra": extra, + } + + +# ============================================================== 几何画线与 4 帧带教剧本生成 +def build_drawings_and_walkthrough(c: dict, past: pd.DataFrame, daily: List[dict]) -> Tuple[dict, dict, dict, str, str]: + motif = c["motif"] + outcome = c["outcome"] + trig = c["trig_offset"] + ex = c["extra"] + fm = c["fwd"] + c0 = fm["close0"] + ret15_pct = fm["ret15"] * 100.0 + trig_bar = T0_IDX + trig + trig_d = daily[trig] + t0_d = daily[0] + + past_h = past["high"].to_numpy(float) + past_l = past["low"].to_numpy(float) + + lines: List[dict] = [] + markers: List[dict] = [] + + if motif == "breakout_follow": + box_hi = r3(ex["box_hi"]) + box_lo = r3(ex["box_lo"]) + lines.append({ + "id": "box_top", "label": f"箱体上沿阻力 {box_hi:.2f}", + "color": "#D9383A", "style": "dashed", "width": 2, "step": 1, + "points": [{"barIndex": 37, "price": box_hi}, {"barIndex": 74, "price": box_hi}], + }) + lines.append({ + "id": "box_bot", "label": f"箱体下沿支撑 {box_lo:.2f}", + "color": "#0FA070", "style": "dashed", "width": 1, "step": 1, + "points": [{"barIndex": 37, "price": box_lo}, {"barIndex": 74, "price": box_lo}], + }) + markers.append({"barIndex": T0_IDX, "pos": "belowBar", "color": "#B08125", "shape": "circle", "text": "① T0 突破尝试", "step": 1}) + if outcome == "success": + markers.append({"barIndex": trig_bar, "pos": "belowBar", "color": "#2C48CE", "shape": "arrowUp", "text": f"② T+{trig} 跟随确认", "step": 2}) + setup_text = f"前 22 日形成 {box_lo:.2f}~{box_hi:.2f} 横盘交易区间,T0 放量 {ex['vol_ratio']:.1f} 倍收大阳棒站上箱体上沿 {box_hi:.2f}。" + confirm_rule = f"T+1~T+3 收盘守稳箱体上沿 {box_hi:.2f} 之上并突破 T0 高点(有效多头跟随)" + invalidate_rule = f"收盘重新跌回箱体上沿 {box_hi:.2f} 下方(80% 区间假突破陷阱)" + f1_title = "战场定性:横盘交易区间上沿的突破尝试" + f1_body = ( + f"前 20 多个交易日股价在 {box_lo:.2f}~{box_hi:.2f} 之间反复拉锯,属于典型的【交易区间(Trading Range)】。" + f"Al Brooks 核心铁律:区间内大多数突破尝试容易失败,因此 T0 虽然放量 {ex['vol_ratio']:.1f} 倍收在区间上方,此时它只代表“多头提出突破假设”,绝不能一把梭哈,必须看接下来两天的跟随反馈。" + ) + f2_title = f"胜负手定格:T+{trig} 走出强力多头跟随棒,真突破成立" + f2_body = ( + f"关键验证出现在 T+1~T+{trig}:空头未能把价格砸回箱体红线({box_hi:.2f})下方,反而在 T+{trig} 收出 {trig_d['candle']} 继续向上推高!" + f"这说明箱体上方的追买盘真实有效,市场周期正式从【交易区间】切换为【多头突破主升段】(15 日最终大涨 {ret15_pct:+.1f}%),T+{trig} 正是从试探仓顺势加到重仓的标准右侧节点。" + ) + takeaway = "遇到箱体突破:T0 先下 30%~40% 底仓试探,一旦 T+1/T+2 守稳前高红线并走出阳线跟随,果断顺势推高仓位吃满主升段。" + else: + markers.append({"barIndex": trig_bar, "pos": "aboveBar", "color": "#D9383A", "shape": "arrowDown", "text": f"② T+{trig} 跌回箱体·证伪", "step": 2}) + setup_text = f"前 22 日在 {box_lo:.2f}~{box_hi:.2f} 区间横盘,T0 放量 {ex['vol_ratio']:.1f} 倍突破上沿 {box_hi:.2f},表面气势极强。" + confirm_rule = f"突破后站稳箱体上沿 {box_hi:.2f} 且继续收阳创新高" + invalidate_rule = f"收盘跌回箱体上沿 {box_hi:.2f} 内部(确认假突破多头陷阱)" + f1_title = "战场定性:宽幅交易区间上沿 · 警惕 80% 突破失败法则" + f1_body = ( + f"裸看 T0 那根放量 {ex['vol_ratio']:.1f} 倍的大阳线极易让人热血上头满仓追涨;但拉宽视角看前 60 根结构,股价一直困在 {box_lo:.2f}~{box_hi:.2f} 的震荡箱体里。" + f"Al Brooks 反复强调【交易区间 80% 突破失败法则】:主力常在区间上沿拉大阳诱多,没有次日跟随棒验证前,这根阳线随时可能变成多头坟墓。" + ) + f2_title = f"胜负手定格:T+{trig} 阴棒跌回箱体红线下方,杀猪盘实锤" + f2_body = ( + f"生死转折就在 T+{trig}:市场完全没有给出多头跟随,反而收出 {trig_d['candle']},收盘价一举砸穿箱体上沿 {box_hi:.2f} 重新跌回箱体内部!" + f"在价格行为学里这叫【突破失败(Failed Breakout)】——T0 追进去的多头全线被套,其止损盘随后引发连环下跌(15 日累计杀跌 {ret15_pct:+.1f}%)。T+{trig} 收盘必须无条件砍仓离场!" + ) + takeaway = "专治假突破被套:永远不要在突破首日满仓赌命;一旦次日或第三日实体阴线收回到箱体上沿下方,证明看多前提彻底破灭,当天立刻清仓保命。" + + elif motif == "ema20_pullback": + sw_bar = max(25, min(56, int(ex["swing_hi_bar"]))) + sw_hi = r3(ex["swing_hi"]) + low0 = r3(t0_d["low"]) + base_bar = max(15, sw_bar - 16) + base_lo = r3(float(past_l[base_bar])) + lines.append({ + "id": "up_leg", "label": "前段多头主升脉冲", + "color": "#2C48CE", "style": "solid", "width": 2, "step": 1, + "points": [{"barIndex": base_bar, "price": base_lo}, {"barIndex": sw_bar, "price": sw_hi}], + }) + lines.append({ + "id": "pb_leg", "label": "回踩 20EMA 均线", + "color": "#B08125", "style": "dashed", "width": 2, "step": 1, + "points": [{"barIndex": sw_bar, "price": sw_hi}, {"barIndex": T0_IDX, "price": low0}], + }) + lines.append({ + "id": "def_low", "label": f"回踩防守底 {low0:.2f}", + "color": "#D9383A", "style": "dashed", "width": 1, "step": 2, + "points": [{"barIndex": T0_IDX - 2, "price": low0}, {"barIndex": 74, "price": low0}], + }) + markers.append({"barIndex": T0_IDX, "pos": "belowBar", "color": "#B08125", "shape": "circle", "text": "① T0 回踩20EMA", "step": 1}) + if outcome == "success": + markers.append({"barIndex": trig_bar, "pos": "belowBar", "color": "#2C48CE", "shape": "arrowUp", "text": f"② T+{trig} H2顺势确认", "step": 2}) + setup_text = f"20EMA 稳健向上倾斜,股价自前高 {sw_hi:.2f} 缩量回踩至 20EMA 附近企稳收出承接信号。" + confirm_rule = "站稳 20EMA 且阳线向上突破前棒高点(High 2 二次顺势入场确认)" + invalidate_rule = f"放量阴线收盘跌穿 20EMA 与 T0 防守底 {low0:.2f}" + f1_title = "战场定性:清晰上升通道中的 20EMA 动态支撑测试" + f1_body = ( + f"前段走势高低点依次抬高,蓝色 20EMA 均线持续向上倾斜,属于高胜率的【多头趋势通道(Bull Channel)】。" + f"在上升通道里追涨前高({sw_hi:.2f})极易挨洗盘,而耐心等价格回落触碰 20EMA 价值中枢(T0 出现企稳承接),正是交易员方程里胜率与盈亏比双优的顺势狙击位。" + ) + f2_title = f"胜负手定格:T+{trig} 向上突破前棒高点(High 2),主升浪重启" + f2_body = ( + f"T+{trig} 收出 {trig_d['candle']},干净利落地站稳 20EMA 并向上吞掉回调高点——空头打压彻底宣告失败(Al Brooks 经典的 High 2 顺势买点)!" + f"随后趋势恢复主升惯性,一路攻破前高直奔 {fm['max_high']:.2f}(15 日大涨 {ret15_pct:+.1f}%)。在此结构下最忌涨一点就早早卖飞。" + ) + takeaway = "上升趋势通道黄金纪律:不在远离均线处追高,专等回踩 20EMA 企稳试仓;一旦走出突破前棒高点的确认阳棒(H2),大胆重仓顺势拿住波段。" + else: + markers.append({"barIndex": trig_bar, "pos": "aboveBar", "color": "#D9383A", "shape": "arrowDown", "text": f"② T+{trig} 击穿均线·转空", "step": 2}) + setup_text = f"前期处于 20EMA 上升通道,自 {sw_hi:.2f} 回调至 20EMA 附近看似企稳,实则多头承接暗中衰竭。" + confirm_rule = "在 20EMA 处迅速收阳突破前一日高点恢复升势" + invalidate_rule = f"实体阴线收盘跌穿 20EMA 与 T0 低点 {low0:.2f}(通道失守转势)" + f1_title = "战场定性:上升通道回踩测试 · 20EMA 是多头最后防线" + f1_body = ( + f"虽然前期 20EMA 向上倾斜看似多头通道完好,但任何上升趋势终有终结的一天。" + f"在 20EMA 附近做多,本质是在赌“机构买盘仍会在均线处护盘”;因此必须把 T0 信号棒低点({low0:.2f})和 20EMA 设为铁血止损线,绝不能无底线死扛。" + ) + f2_title = f"胜负手定格:T+{trig} 实体阴棒击穿 20EMA 与防守底,趋势反转" + f2_body = ( + f"危险信号在 T+{trig} 爆发:股价非但没有向上走出 High 2 确认,反而以 {trig_d['candle']} 直接砸穿 20EMA 与 {low0:.2f} 防守红线!" + f"均线从支撑变成头顶压力,上升通道正式瓦解并演变为多杀多单边下跌(15 日重挫 {ret15_pct:+.1f}%)。认出破位棒果断离场才能躲过深渊。" + ) + takeaway = "均线回踩不是免死金牌:回踩 20EMA 买入后若迟迟不创新高,反而出现放量阴线收盘跌穿均线与信号棒低点,说明通道已坏,必须第一时间止损。" + + elif motif == "wedge_climax_low": + pk_bar = max(18, min(52, int(ex["peak_bar"]))) + pk_price = r3(ex["peak_price"]) + low0 = r3(t0_d["low"]) + hi0 = r3(t0_d["high"]) + lines.append({ + "id": "dn_slope", "label": f"前期急跌斜线 ({ex['drop25']*100:.0f}%)", + "color": "#0FA070", "style": "dashed", "width": 2, "step": 1, + "points": [{"barIndex": pk_bar, "price": pk_price}, {"barIndex": T0_IDX, "price": low0}], + }) + lines.append({ + "id": "life_low", "label": f"T0 反转生死底 {low0:.2f}", + "color": "#D9383A", "style": "solid", "width": 2, "step": 2, + "points": [{"barIndex": T0_IDX - 2, "price": low0}, {"barIndex": 74, "price": low0}], + }) + markers.append({"barIndex": T0_IDX, "pos": "belowBar", "color": "#B08125", "shape": "circle", "text": "① T0 衰竭止跌棒", "step": 1}) + if outcome == "success": + markers.append({"barIndex": trig_bar, "pos": "belowBar", "color": "#2C48CE", "shape": "arrowUp", "text": f"② T+{trig} 站上高点确认", "step": 2}) + setup_text = f"自阶段高点 {pk_price:.2f} 连续急跌 {abs(ex['drop25'])*100:.1f}% 后,T0 在低位收出强力下影/阳线承接棒。" + confirm_rule = f"后续 K 线守住 T0 最低点 {low0:.2f} 且阳线向上站上 T0 高点 {hi0:.2f}" + invalidate_rule = f"收盘跌破 T0 最低点 {low0:.2f}(抄底失败,沦为下跌中继)" + f1_title = "战场定性:恐慌抛售高潮 / 楔形衰竭末端的左侧反转信号" + f1_body = ( + f"股价在过去二十多天累计重挫 {abs(ex['drop25'])*100:.1f}%,远离 20EMA 均线,属于典型的【抛售高潮(Sell Climax)/ 空头动能透支】。" + f"T0 出现底部承接棒,意味着空头集中回补、抄底资金进场;但逆势摸底初始胜率不高,标准动作是先用 20%~30% 轻仓试探,把 T0 最低点 {low0:.2f} 作为绝对防守线。" + ) + f2_title = f"胜负手定格:T+{trig} 站上反转棒高点,空头回补推动波段反转" + f2_body = ( + f"随后走势稳稳守住 {low0:.2f} 铁底未破,并在 T+{trig} 以 {trig_d['candle']} 向上突破 T0 高点确认买盘延续,向 20EMA 均线磁力位发起均值回归反攻(15 日反弹 {ret15_pct:+.1f}%)。" + f"在 T+{trig} 右侧确认后再补足仓位,既避开了盲目重仓接飞刀的风险,又稳稳吃到了反转波段。" + ) + takeaway = "底部反转右侧法则:急跌后的第一根止跌阳线只下轻仓试探,必须等后续阳线站上该信号棒高点、且低点不破时,再分批加仓吃均值回归。" + else: + markers.append({"barIndex": trig_bar, "pos": "aboveBar", "color": "#D9383A", "shape": "arrowDown", "text": f"② T+{trig} 破底·下跌中继", "step": 2}) + setup_text = f"连续急跌 {abs(ex['drop25'])*100:.1f}% 后 T0 出现低位阳线/下影反弹,极易诱使散户误判“见底”而重仓抄底。" + confirm_rule = f"守住 T0 低点 {low0:.2f} 并持续收阳重返 20EMA" + invalidate_rule = f"收盘跌穿 T0 反转棒最低点 {low0:.2f}(确认为下跌中继飞刀)" + f1_title = "战场定性:空头强趋势中的单棒反弹 · 散户最容易阵亡的“猜底陷阱”" + f1_body = ( + f"面对连续暴跌 {abs(ex['drop25'])*100:.1f}% 后的第一根好看阳线/下影线,人性本能总想“抄在最低点一把翻身”。" + f"但 Al Brooks 警告:在陡峭空头通道里,80% 的首次企稳信号只是空头获利平仓造成的技术性反抽(Bear Flag 下跌旗形),绝非真正见底!" + ) + f2_title = f"胜负手定格:T+{trig} 阴线直接砸穿 T0 生死底 {low0:.2f},新一轮杀跌开启" + f2_body = ( + f"仅仅到了 T+{trig},空头再度发力收出 {trig_d['candle']},收盘直接击穿 T0 最低点红线({low0:.2f})!" + f"抄底盘瞬间全军覆没,行情确认为残酷的【下跌中继】,随后继续深跌至 {fm['min_low']:.2f}(15 日再跌 {ret15_pct:+.1f}%)。破底那一刻不砍仓就会深套。" + ) + takeaway = "保命铁律:永远敬畏空头趋势!逆势试探抄底时,T0 信号棒最低点就是唯一生命线——一旦收盘跌破该低点,说明底是假的,无条件清仓走人。" + + else: # climax_wedge_top + bs_bar = max(18, min(50, int(ex["base_bar"]))) + bs_price = r3(ex["base_price"]) + hi0 = r3(t0_d["high"]) + low0 = r3(t0_d["low"]) + lines.append({ + "id": "climax_run", "label": f"前期急涨波段 (+{ex['gain25']*100:.0f}%)", + "color": "#D9383A", "style": "dashed", "width": 2, "step": 1, + "points": [{"barIndex": bs_bar, "price": bs_price}, {"barIndex": T0_IDX, "price": hi0}], + }) + lines.append({ + "id": "top_hi", "label": f"T0 高点(续涨突破位 {hi0:.2f})", + "color": "#2C48CE", "style": "dashed", "width": 1, "step": 2, + "points": [{"barIndex": T0_IDX - 2, "price": hi0}, {"barIndex": 74, "price": hi0}], + }) + lines.append({ + "id": "top_lo", "label": f"T0 低点(派发破位线 {low0:.2f})", + "color": "#0FA070", "style": "solid", "width": 2, "step": 2, + "points": [{"barIndex": T0_IDX - 2, "price": low0}, {"barIndex": 74, "price": low0}], + }) + markers.append({"barIndex": T0_IDX, "pos": "aboveBar", "color": "#B08125", "shape": "circle", "text": "① T0 高位巨震分歧", "step": 1}) + if outcome == "success": + markers.append({"barIndex": trig_bar, "pos": "aboveBar", "color": "#0FA070", "shape": "arrowDown", "text": f"② T+{trig} 破颈线·派发确认", "step": 2}) + setup_text = f"近 25 日暴涨 +{ex['gain25']*100:.1f}% 极度远离 20EMA,T0 在高位爆出 {ex['vol_ratio']:.1f} 倍量能与分歧影线(开局持有 70% 获利老仓)。" + confirm_rule = f"阴线收盘跌破 T0 高潮棒低点 {low0:.2f}(见顶派发确认,应果断逃顶清仓)" + invalidate_rule = f"缩量守住 {low0:.2f} 并放量向上突破 T0 高点 {hi0:.2f}(强势洗盘续涨)" + f1_title = "战场定性:多头抢购高潮(Buy Climax)· 获利盘随时踩踏兑现" + f1_body = ( + f"本关开局你手握 70% 丰厚获利老仓。股价短期狂飙 +{ex['gain25']*100:.1f}% 后远远甩开蓝色 20EMA,T0 出现巨量上影/高位滞涨——在 Al Brooks 体系中这叫【抢购高潮衰竭】。" + f"此时最后一批散户正在疯狂追高,而机构主力开始借流动性分批派发。最佳策略是先减仓锁住部分利润,紧盯 T0 低点 {low0:.2f} 得失。" + ) + f2_title = f"胜负手定格:T+{trig} 阴棒击穿 T0 低点 {low0:.2f},顶部派发瀑布开启" + f2_body = ( + f"T+{trig} 收出 {trig_d['candle']},直接跌穿高潮棒低点防线({low0:.2f}),宣告高位买盘枯竭、空头正式接管!" + f"随后股价一路回撤至 {fm['min_low']:.2f}(15 日下跌 {ret15_pct:+.1f}%)。在 T0~T+{trig} 及时分批减至空仓,就能完美保住前期胜利果实,拒绝满仓坐电梯。" + ) + takeaway = "高位持仓锁利铁律:大涨远离 20EMA 后出现放量长上影或高位巨震,先减仓 30%~40% 落袋;一旦次日跌破该分歧棒最低点,清掉剩余仓位果断逃顶。" + else: + markers.append({"barIndex": trig_bar, "pos": "belowBar", "color": "#2C48CE", "shape": "arrowUp", "text": f"② T+{trig} 突破高点·空中加油", "step": 2}) + setup_text = f"前期大涨 +{ex['gain25']*100:.1f}% 后 T0 出现高位放量震荡,看似见顶吓人,实则主力换手洗盘(开局持有 70% 老仓)。" + confirm_rule = f"跌破 T0 低点 {low0:.2f} 且连续收阴走弱(真见顶)" + invalidate_rule = f"回调守住防守位并向上收阳突破 T0 高点 {hi0:.2f}(强势旗形二波主升)" + f1_title = "战场定性:高位巨震分歧 · 是真见顶还是“强势窄旗形”洗盘?" + f1_body = ( + f"很多交易者一看到高位上影线或阴线就吓得一键清仓,结果卖完就踏空翻倍二波主升!" + f"价格行为学区分“真见顶”与“空中加油”的唯一客观标准:看空头能不能打出连续阴线跌穿关键低点({low0:.2f})!只要低点不破且窄幅横住,就属于多头极强势的【高位旗形(High Tight Flag)】。" + ) + f2_title = f"胜负手定格:低点稳守不破,T+{trig} 反包突破 {hi0:.2f} 开启二波暴涨" + f2_body = ( + f"看盘中演化:T0 分歧后空头根本砸不动价格,紧接着在 T+{trig} 收出 {trig_d['candle']} 一举突破 T0 高点({hi0:.2f})!" + f"洗盘结束,二波主升浪直接拉爆至 {fm['max_high']:.2f}(15 日再涨 {ret15_pct:+.1f}%)!即便 T0 谨慎减了小半仓,看到 T+{trig} 反包突破也应果断拿稳或接回仓位。" + ) + takeaway = "防卖飞大牛股精髓:高位出现首根分歧棒最多减部分仓位观察,只要未跌破分歧棒低点就不算见顶;若随后阳线反包突破该棒最高点,正是二波主升启动信号!" + + drawings = {"lines": lines, "markers": markers} + setup_obj = { + "text": setup_text, + "confirm_rule": confirm_rule, + "invalidate_rule": invalidate_rule, + } + walkthrough = { + "cycle_tag": MOTIF_MAP[motif]["cycle"], + "skill_key": MOTIF_MAP[motif]["skill"], + "frame1": { + "title": f1_title, + "body": f1_body, + "focus_range": [18, 60], + "theory_key": "cycle" if motif in ("breakout_follow", "ema20_pullback") else "bars", + }, + "frame2": { + "title": f2_title, + "body": f2_body, + "focus_range": [36, 74], + "key_day_index": trig, + "key_bar_index": trig_bar, + "confirm_rule": confirm_rule, + "invalidate_rule": invalidate_rule, + "theory_key": "follow", + }, + "frame4": { + "skill_key": MOTIF_MAP[motif]["skill"], + "takeaway": takeaway, + "theory_key": "equation", + }, + } + + # 兼容 key_bars 字段(供问 Agent 文本组装与旧接口无缝使用) + verdict = "原假设确认成立" if outcome == "success" else ( + "反例:强势洗盘后突破续涨" if motif == "climax_wedge_top" else "原假设被证伪失效" + ) + key_bars = { + "setup": { + "day": "T0", + "date": t0_d["date"], + "candle": t0_d["candle"], + "signal": setup_text, + "hypothesis": f1_title, + "verdict": "T0 提出初始交易假设,等待后续 K 线确认或证伪", + "bullish_edge_score": t0_d["bullish_edge_score"], + "ai_position_pct": t0_d["ai_position_pct"], + }, + "pivots": [ + { + "day": f"T+{trig}", + "date": trig_d["date"], + "candle": trig_d["candle"], + "signal": f2_title, + "verdict": verdict, + "change_from_t0_pct": trig_d["change_from_t0_pct"], + "bullish_edge_score": trig_d["bullish_edge_score"], + "ai_position_pct": trig_d["ai_position_pct"], + } + ], + "summary": f"15 个交易日收盘累计 {ret15_pct:+.1f}%(期间最高 {fm['max_up_pct']*100:+.1f}% / 最低 {fm['max_dn_pct']*100:+.1f}%)。", + "confirm_rule": confirm_rule, + "invalidate_rule": invalidate_rule, + } + return drawings, walkthrough, setup_obj, key_bars, takeaway + + +OUTCOME_CN = { + ("breakout_follow", "success"): "真突破主升:站稳箱体上沿持续跟随", + ("breakout_follow", "failure"): "假突破陷阱:无跟随大阴跌回箱体", + ("ema20_pullback", "success"): "顺势起飞:回踩 20EMA 走出 H2 确认", + ("ema20_pullback", "failure"): "通道失守:放量阴棒击穿 20EMA 转空", + ("wedge_climax_low", "success"): "底部反转成立:守住 T0 低点反攻", + ("wedge_climax_low", "failure"): "抄底接飞刀:跌穿 T0 低点沦为下跌中继", + ("climax_wedge_top", "success"): "见顶派发成立:跌破高潮棒低点大回撤", + ("climax_wedge_top", "failure"): "强势旗形洗盘:守稳低点突破开启二波主升", +} + +THESIS = { + ("breakout_follow", "success"): "箱体突破首日试探,确认跟随棒后顺势重仓吃主升。", + ("breakout_follow", "failure"): "识破区间突破无跟随的多头陷阱,跌回箱体果断清仓躲大跌。", + ("ema20_pullback", "success"): "上升趋势通道回踩 20EMA 企稳,借 High 2 确认棒顺势做多。", + ("ema20_pullback", "failure"): "回踩 20EMA 未能企稳反遭放量击穿,及时止损规避趋势反转。", + ("wedge_climax_low", "success"): "急跌抛售衰竭后低位承接,确认突破 T0 高点吃均值回归。", + ("wedge_climax_low", "failure"): "急跌反抽后跌破 T0 生死低点,识破下跌中继拒绝死扛。", + ("climax_wedge_top", "success"): "高位抢购高潮后跌破分歧棒低点,果断清掉 70% 老仓锁住利润。", + ("climax_wedge_top", "failure"): "高位分歧未破防守底反包创新高,识别强势旗形避免过早卖飞。", +} + + +def assemble_level(c: dict, d: pd.DataFrame, model: PALightGBM) -> dict: + i = c["bar_index"] + code, name = c["code"], c["name"] + fm = c["fwd"] + atr = fm["atr"] + close0 = fm["close0"] + motif = c["motif"] + outcome = c["outcome"] + + past = d.iloc[i - PAST_BARS + 1:i + 1] + future = d.iloc[i + 1:i + 1 + FUTURE_BARS] + span = d.iloc[i:i + 1 + FUTURE_BARS] + + X = span[FEATURES].astype(float).reset_index(drop=True) + sc = model.score(X) + ex = model.explain(X, top_k=4) + + daily = [] + for k in range(len(span)): + r = span.iloc[k] + day = "T0" if k == 0 else f"T+{k}" + clean_top = [clean_shap_item(t) for t in ex[k][:3]] + daily.append({ + "day": day, + "date": r["date"].strftime("%Y-%m-%d"), + "open": r3(r["open"]), "high": r3(r["high"]), + "low": r3(r["low"]), "close": r3(r["close"]), + "volume": int(r["volume"]), + "ema20": r3(r["ema20"]), + "change_from_t0_pct": round(float(r["close"]) / close0 - 1, 4), + "bullish_edge_score": int(sc["score"].iloc[k]), + "hist_win_rate": round(float(sc["hist_win_rate"].iloc[k]), 4), + "base_win_rate": round(float(model.base_rate), 4), + "ai_position_pct": int(sc["target_position_pct"].iloc[k]), + "candle": candle_sentence(r["open"], r["high"], r["low"], r["close"], atr), + "top3_shap": clean_top, + }) + + drawings, walkthrough, setup_obj, key_bars, takeaway = build_drawings_and_walkthrough(c, past, daily) + seg = "训练段" if d["date"].iloc[i] <= pd.Timestamp(TRAIN_END) else "样本外测试段" + init_pos = 70 if motif == "climax_wedge_top" else 0 + + return { + "id": f"{code}|{c['date']}|{motif}", + "code": code, + "name": name, + "date": c["date"], + "year": int(d["date"].iloc[i].year), + "segment": seg, + "motif": motif, + "motif_cn": MOTIF_CN[motif], + "outcome": outcome, + "outcome_cn": OUTCOME_CN[(motif, outcome)], + "thesis": THESIS[(motif, outcome)], + "initial_position_pct": init_pos, + "initial_position_note": ( + "高位逃顶特训局:开局默认持有 70% 获利老仓(T0 当日即可减仓或清仓)" + if motif == "climax_wedge_top" + else "开局 0% 空仓起步,由你在 T0 信号棒处自主决定建仓比例" + ), + "teaching_note": takeaway, + "atr": r3(atr), + "close0": r3(close0), + "levels": { + "box_high": r3(c["extra"].get("box_hi")), + "box_low": r3(c["extra"].get("box_lo")), + "ema20_t0": r3(d["ema20"].iloc[i]), + "support_20d": r3(d["low"].iloc[i - 19:i + 1].min()), + "resistance_20d": r3(d["high"].iloc[i - 19:i + 1].max()), + "support_60d": r3(d["low"].iloc[i - 59:i + 1].min()), + "resistance_60d": r3(d["high"].iloc[i - 59:i + 1].max()), + }, + "forward": fm, + "quality": { + "score": c["quality"], + "structure_score": c["quality"], + "range_atr": fm["fwd_range_atr"], + "range_pct": fm["fwd_range_pct"], + }, + "setup": setup_obj, + "drawings": drawings, + "walkthrough": walkthrough, + "past": { + "dates": [x.strftime("%Y-%m-%d") for x in past["date"]], + "o": [r3(v) for v in past["open"]], + "h": [r3(v) for v in past["high"]], + "l": [r3(v) for v in past["low"]], + "c": [r3(v) for v in past["close"]], + "v": [int(v) for v in past["volume"]], + "ema20": [r3(v) for v in past["ema20"]], + }, + "future": { + "dates": [x.strftime("%Y-%m-%d") for x in future["date"]], + "o": [r3(v) for v in future["open"]], + "h": [r3(v) for v in future["high"]], + "l": [r3(v) for v in future["low"]], + "c": [r3(v) for v in future["close"]], + "v": [int(v) for v in future["volume"]], + "ema20": [r3(v) for v in future["ema20"]], + }, + "daily": daily, + "key_bars": key_bars, + } diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/node/py/pa_engine.py b/plugins/alphamao1/kline-intuition-lab/miniapp/node/py/pa_engine.py new file mode 100644 index 00000000..3b728de0 --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/node/py/pa_engine.py @@ -0,0 +1,728 @@ +# -*- coding: utf-8 -*- +"""PA-LightGBM 引擎:Al Brooks 价格行为学(Price Action)特征工程 + 模型封装。 + +理论底座 +-------- +Al Brooks 价格行为学强调「K 线本身的力学」而非指标: + - 收盘在 K 线区间中的位置(谁掌握了当天的收盘权) + - 实体相对 ATR 的厚度(趋势棒 Trend Bar vs 十字星 Doji) + - 影线的拒绝与承接(Pin Bar) + - 内包棒 / 外包吞没棒的犹豫与夺权 + - 跟随(Follow-through)与重叠(Overlap)区分顺畅通道与 Barb Wire 震荡 + - 突破后的跟随确认 vs 跌回箱体的假突破(Failed Breakout) + - 推次递减的三推楔形(Wedge)与高潮衰竭(Climax) + +本模块提供: + 1. load_price / add_pa_features —— 20 维纯价格行为特征,严格只用 <= t 当日及历史数据(零未来函数) + 2. build_panel —— 12 只个股全历史逐日面板 + 「未来 8 日多头优势标签」 + 3. PALightGBM —— 模型封装:0~100 多头胜算分、历史客观胜率、AI 建议仓位、TreeSHAP 中文归因 + +所有指标口径与标签定义见模块 docstring,训练端与关卡预计算端共用本模块, +保证「训练看到的特征」与「实战里解释的特征」完全一致。 +""" +from __future__ import annotations + +import json +import math +import os +import pickle +from typing import Dict, List, Optional, Sequence, Tuple + +import numpy as np +import pandas as pd + +HERE = os.path.dirname(os.path.abspath(__file__)) +WORKSPACE = os.path.dirname(HERE) +DATA_DIR = os.path.join(WORKSPACE, "data_v2") +ART_DIR = HERE + +# --------------------------------------------------------------------- 标的池 +STOCKS: List[Tuple[str, str]] = [ + ("600519.SH", "贵州茅台"), ("600887.SH", "伊利股份"), ("300750.SZ", "宁德时代"), + ("002594.SZ", "比亚迪"), ("600036.SH", "招商银行"), ("601318.SH", "中国平安"), + ("600900.SH", "长江电力"), ("300308.SZ", "中际旭创"), ("002475.SZ", "立讯精密"), + ("688981.SH", "中芯国际"), ("300760.SZ", "迈瑞医疗"), ("601899.SH", "紫金矿业"), +] +INDEX: Tuple[str, str] = ("000300.SH", "沪深300") + +# 时序切分(严格按时间,不做任何随机打散) +TRAIN_START, TRAIN_END = "2021-11-01", "2025-02-28" +TEST_START, TEST_END = "2025-03-01", "2026-11-26" + +# 特征最少历史长度(45 根:足够 ATR14 / EMA20 / 45 根波次窗口) +MIN_HISTORY = 45 +# 标签:未来 N 个交易日的多头优势 +LABEL_HORIZON = 8 +# 标签阈值(由训练脚本按基准率自动校准,见 train_pa_lgbm.py) +LABEL_THETA = 0.0 +# 目标正样本基准率 +TARGET_BASE_RATE = 0.47 + +# --------------------------------------------------------------------- 20 维特征 +FEATURES: List[str] = [ + # —— 单棒微观力学(6) + "pa_close_pos", # 收盘位置强度 (C-L)/(H-L) + "pa_body_atr", # 实体占 ATR(14) 比例(趋势棒 / 十字星) + "pa_upper_shadow", # 上影线占比(上方拒绝 / 抛压) + "pa_lower_shadow", # 下影线占比(下方承接) + "pa_inside_bar", # 内包棒标记 + "pa_outside_engulf", # 外包吞没棒标记 + # —— 多棒跟随与重叠(4) + "pa_ft2_bull", # 近 2 日多头跟随强度 + "pa_ft3_bull", # 近 3 日多头跟随强度 + "pa_overlap5", # 近 5 日 K 线高低重叠率(Barb Wire vs 顺畅通道) + "pa_bull_bar_count5", # 近 5 日强多头棒计数 + # —— 结构位置与衰竭(10) + "pa_ema20_dev_atr", # 相对 20 EMA 偏离(ATR 倍数) + "pa_ema20_slope_atr", # 20 EMA 斜率(ATR 倍数) + "pa_box_break_state", # 相对前 20 日箱体高低的突破状态(+1 上破 / -1 下破 / 0 箱内) + "pa_break_fade", # 突破后跌回箱体(Failed Breakout 假突破) + "pa_wave_slope_decay", # 近 20 日推次斜率衰减(负=衰竭) + "pa_three_push_wedge", # 三推楔形标记(+1 三推向上 / -1 三推向下 / 0) + "pa_climax_exhaustion", # 抢购/抛售高潮衰竭度(+1 恐慌抛售高潮 / -1 抢购高潮) + "pa_vol_ratio20", # 成交量相对 20 日均量倍数 + "pa_vol_body_align", # 量能与实体方向匹配度 + "pa_mkt_ema20_state", # 沪深300 相对 20 EMA 顺逆风状态 +] + +FEATURE_CN: Dict[str, str] = { + "pa_close_pos": "收盘位置强度", + "pa_body_atr": "实体动能", + "pa_upper_shadow": "上影线抛压", + "pa_lower_shadow": "下影线承接", + "pa_inside_bar": "内包棒(犹豫)", + "pa_outside_engulf": "外包吞没棒(夺权)", + "pa_ft2_bull": "2 日多头跟随", + "pa_ft3_bull": "3 日多头跟随", + "pa_overlap5": "5 日 K 线重叠率", + "pa_bull_bar_count5": "5 日强多头棒数", + "pa_ema20_dev_atr": "距 20EMA 偏离", + "pa_ema20_slope_atr": "20EMA 斜率", + "pa_box_break_state": "20 日箱体突破状态", + "pa_break_fade": "突破失败回落", + "pa_wave_slope_decay": "推次斜率衰减", + "pa_three_push_wedge": "三推楔形", + "pa_climax_exhaustion": "高潮衰竭度", + "pa_vol_ratio20": "量能倍数", + "pa_vol_body_align": "量价实体匹配", + "pa_mkt_ema20_state": "大盘顺逆风", +} + +FEATURE_HINT: Dict[str, str] = { + "pa_close_pos": "收盘价在当根 K 线振幅中的位置,越靠近高点说明多方掌握收盘权", + "pa_body_atr": "实体厚度相对 ATR 的倍数,越大越是趋势棒,越小越是十字星", + "pa_upper_shadow": "上影线占振幅比例,越大说明上方被拒绝", + "pa_lower_shadow": "下影线占振幅比例,越大说明下方有承接(Pin Bar)", + "pa_inside_bar": "内包棒代表多空双方暂时势均力敌", + "pa_outside_engulf": "外包吞没棒代表一方吞掉另一方当日的全部成果", + "pa_ft2_bull": "近 2 日净多头实体强度,跟随越强趋势越可靠", + "pa_ft3_bull": "近 3 日净多头实体强度,衡量趋势的持续性", + "pa_overlap5": "相邻 K 线区间重叠率,高=窄幅震荡 Barb Wire,低=顺畅通道", + "pa_bull_bar_count5": "近 5 日强多头棒的数量,衡量买盘密度", + "pa_ema20_dev_atr": "收盘价距离 20 日 EMA 的 ATR 倍数,正=多头结构", + "pa_ema20_slope_atr": "20 日 EMA 的斜率(ATR/5日),正=中期趋势向上", + "pa_box_break_state": "价格相对前 20 日箱体的位置,+1 突破上沿", + "pa_break_fade": "突破后 3 日内跌回箱体,假突破陷阱信号", + "pa_wave_slope_decay": "最近一波推次相对上一波的斜率衰减,负=推动力衰竭", + "pa_three_push_wedge": "三推楔形,+1 三推向上 / -1 三推向下", + "pa_climax_exhaustion": "高潮衰竭度,+1 恐慌抛售高潮 / -1 抢购高潮", + "pa_vol_ratio20": "当日成交量为前 20 日均量的倍数", + "pa_vol_body_align": "量能与实体方向是否匹配,负=放量下跌派发", + "pa_mkt_ema20_state": "沪深300 相对 20 日 EMA 的顺逆风状态", +} + + +# ============================================================== 数据装载 +def load_price(code: str, name: str) -> pd.DataFrame: + """读取单只标的的前复权日 K,标准化列名并按日期升序。""" + files = [f for f in os.listdir(DATA_DIR) if f.startswith(code + "_") and f.endswith(".csv")] + if not files: + raise FileNotFoundError(f"{code} 在 {DATA_DIR} 下无 CSV") + df = pd.read_csv(os.path.join(DATA_DIR, files[0]), encoding="utf-8-sig") + df = df.rename(columns={ + "日期": "date", "开盘价": "open", "最高价": "high", "最低价": "low", + "收盘价": "close", "成交量(股)": "volume", "涨跌幅(%)": "pct", + "成交额(元)": "amount", "复权因子": "factor"}) + df["date"] = pd.to_datetime(df["date"]) + df = df.sort_values("date").reset_index(drop=True) + df["code"], df["name"] = code, name + return df + + +def _wilder_atr(df: pd.DataFrame, n: int = 14) -> pd.Series: + prev_c = df["close"].shift(1) + tr = pd.concat([(df["high"] - df["low"]), + (df["high"] - prev_c).abs(), + (df["low"] - prev_c).abs()], axis=1).max(axis=1) + return tr.ewm(alpha=1.0 / n, adjust=False).mean() + + +# ============================================================== 摆动点 / 波次 +def detect_pivots(high: np.ndarray, low: np.ndarray, k: int = 3) -> List[Tuple[int, str]]: + """在窗口内识别分形摆动点,返回按时间排序的 (idx, 'H'/'L') 交替序列。 + + 采用 Brooks 式摆动点:左右各 k 根内的最高点视为摆动高点,最低点视为摆动低点。 + 同类型相邻摆动点只保留更极端者,保证序列高低交替。 + """ + n = len(high) + ph: List[int] = [] + pl: List[int] = [] + for j in range(k, n - k): + w_h = high[j - k:j + k + 1] + if high[j] >= w_h.max(): + ph.append(j) + w_l = low[j - k:j + k + 1] + if low[j] <= w_l.min(): + pl.append(j) + raw = sorted([(j, "H") for j in ph] + [(j, "L") for j in pl]) + out: List[Tuple[int, str]] = [] + for j, t in raw: + if out and out[-1][1] == t: + prev = out[-1][0] + better = (high[j] > high[prev]) if t == "H" else (low[j] < low[prev]) + if better: + out[-1] = (j, t) + continue + out.append((j, t)) + return out + + +def pivot_legs(piv: Sequence[Tuple[int, str]], high: np.ndarray, low: np.ndarray, + atr: float) -> List[Tuple[int, int, float]]: + """由摆动点构造推次(leg):(起点 idx, 终点 idx, ATR/日 斜率)。""" + legs: List[Tuple[int, int, float]] = [] + for (i1, t1), (i2, t2) in zip(piv[:-1], piv[1:]): + p1 = high[i1] if t1 == "H" else low[i1] + p2 = high[i2] if t2 == "H" else low[i2] + nb = max(i2 - i1, 1) + legs.append((i1, i2, (p2 - p1) / (nb * max(atr, 1e-9)))) + return legs + + +# ============================================================== 特征工程 +def add_pa_features(df: pd.DataFrame) -> pd.DataFrame: + """在原始 OHLCV 上追加 20 维价格行为特征。 + + 零未来函数保证:所有窗口只使用 <= t 当日及历史数据;EMA/ATR 为因果平滑; + 箱体高低点使用 shift(1) 排除当日。 + """ + d = df.copy() + o = d["open"].to_numpy(dtype=float) + h = d["high"].to_numpy(dtype=float) + l = d["low"].to_numpy(dtype=float) + c = d["close"].to_numpy(dtype=float) + v = d["volume"].to_numpy(dtype=float) + n = len(d) + + d["ema20"] = pd.Series(c).ewm(span=20, adjust=False).mean().to_numpy() + atr = _wilder_atr(d, 14).to_numpy(dtype=float) + d["atr14"] = atr + + rng = np.maximum(h - l, 1e-9) + body = c - o + body_atr = np.abs(body) / np.maximum(atr, 1e-9) + + # 1. 收盘位置强度 + d["pa_close_pos"] = np.clip((c - l) / rng, 0.0, 1.0) + # 2. 实体占 ATR 比例 + d["pa_body_atr"] = body_atr + # 3/4. 上下影线占比 + d["pa_upper_shadow"] = np.clip((h - np.maximum(o, c)) / rng, 0.0, 1.0) + d["pa_lower_shadow"] = np.clip((np.minimum(o, c) - l) / rng, 0.0, 1.0) + + # 5. 内包棒 + inside = np.zeros(n, dtype=float) + inside[1:] = ((h[1:] <= h[:-1]) & (l[1:] >= l[:-1])).astype(float) + d["pa_inside_bar"] = inside + # 6. 外包吞没棒(当日区间完全吞掉前一日) + outside = np.zeros(n, dtype=float) + outside[1:] = ((h[1:] > h[:-1]) & (l[1:] < l[:-1])).astype(float) + d["pa_outside_engulf"] = outside + + # 7/8. 多棒跟随强度(净多头实体 / ATR,近 2 / 3 日) + signed_body = body / np.maximum(atr, 1e-9) + for win, col in ((2, "pa_ft2_bull"), (3, "pa_ft3_bull")): + cs = np.convolve(signed_body, np.ones(win), mode="full")[:n] + cs[:win] = np.nan + d[col] = cs / win + + # 9. 近 5 日 K 线高低重叠率(相邻区间重叠占比均值) + overlap = np.full(n, np.nan) + for i in range(4, n): + vals = [] + for a in range(i - 3, i + 1): + lo = max(l[a], l[a - 1]) + hi = min(h[a], h[a - 1]) + span = max(h[a], h[a - 1]) - min(l[a], l[a - 1]) + vals.append(0.0 if span <= 0 else max(0.0, hi - lo) / span) + overlap[i] = float(np.mean(vals)) + d["pa_overlap5"] = overlap + + # 10. 近 5 日强多头棒计数(实体/ATR>=0.4 且收阳) + strong_bull = ((body > 0) & (body_atr >= 0.4)).astype(float) + d["pa_bull_bar_count5"] = pd.Series(strong_bull).rolling(5).sum().to_numpy() + + # 11. 相对 20 EMA 偏离(ATR 倍数) + d["pa_ema20_dev_atr"] = (c - d["ema20"].to_numpy()) / np.maximum(atr, 1e-9) + # 12. 20 EMA 斜率(5 日变化 / ATR) + ema = d["ema20"].to_numpy() + slope5 = np.full(n, np.nan) + slope5[5:] = (ema[5:] - ema[:-5]) / np.maximum(atr[5:], 1e-9) + d["pa_ema20_slope_atr"] = slope5 + + # 13. 前 20 日箱体(不含当日)突破状态 + box_hi = pd.Series(h).shift(1).rolling(20).max().to_numpy() + box_lo = pd.Series(l).shift(1).rolling(20).min().to_numpy() + d["_box_hi"] = box_hi + d["_box_lo"] = box_lo + state = np.zeros(n, dtype=float) + up = np.where(np.isfinite(box_hi) & (c > box_hi), 1.0, 0.0) + dn = np.where(np.isfinite(box_lo) & (c < box_lo), -1.0, 0.0) + state = up + dn + d["pa_box_break_state"] = state + + # 14. 突破后跌回箱体(假突破):近 3 日内曾突破,今日收盘回到箱内 + fade = np.zeros(n, dtype=float) + for i in range(1, n): + hit = False + for j in range(max(i - 3, 1), i): + if not np.isfinite(box_hi[j]): + continue + if c[j] > box_hi[j] and c[i] < box_hi[j]: + hit = True + break + if np.isfinite(box_lo[j]) and c[j] < box_lo[j] and c[i] > box_lo[j]: + hit = True + break + fade[i] = 1.0 if hit else 0.0 + d["pa_break_fade"] = fade + + # 15/16. 波次斜率衰减 + 三推楔形 + wave_decay = np.zeros(n, dtype=float) + three_push = np.zeros(n, dtype=float) + WIN = 45 + for i in range(WIN, n): + a_i = atr[i] + if not np.isfinite(a_i) or a_i <= 0: + continue + hs = h[i - WIN + 1:i + 1] + ls = l[i - WIN + 1:i + 1] + piv = detect_pivots(hs, ls, k=3) + if len(piv) < 3: + continue + legs = pivot_legs(piv, hs, ls, a_i) + if len(legs) < 2: + continue + wave_decay[i] = abs(legs[-1][2]) - abs(legs[-2][2]) + ups = [g for g in legs if g[2] > 0] + dns = [g for g in legs if g[2] < 0] + if len(ups) >= 3: + s1, s2, s3 = abs(ups[-3][2]), abs(ups[-2][2]), abs(ups[-1][2]) + if s3 < s1 and s3 < 0.65 * s1 and s3 <= s2: + three_push[i] = 1.0 + if len(dns) >= 3: + s1, s2, s3 = abs(dns[-3][2]), abs(dns[-2][2]), abs(dns[-1][2]) + if s3 < s1 and s3 < 0.65 * s1 and s3 <= s2: + three_push[i] = -1.0 + d["pa_wave_slope_decay"] = wave_decay + d["pa_three_push_wedge"] = three_push + + # 17. 高潮衰竭度:+1 恐慌抛售高潮 / -1 抢购高潮 + hi20 = pd.Series(h).rolling(20).max().to_numpy() + lo20 = pd.Series(l).rolling(20).min().to_numpy() + span20 = np.maximum(hi20 - lo20, 1e-9) + pos_in_range = np.clip((c - lo20) / span20, 0.0, 1.0) + near_low = 1.0 - pos_in_range + near_high = pos_in_range + up_thrust = np.maximum(body, 0.0) / np.maximum(atr, 1e-9) + dn_thrust = np.maximum(-body, 0.0) / np.maximum(atr, 1e-9) + vmult = np.clip(v / np.maximum(pd.Series(v).shift(1).rolling(20).mean().to_numpy(), 1e-9), + 0.0, 3.0) / 1.5 + climax = dn_thrust * near_low * vmult - up_thrust * near_high * vmult + climax[~np.isfinite(climax)] = 0.0 + d["pa_climax_exhaustion"] = np.clip(climax, -3.0, 3.0) + + # 18. 量比(相对前 20 日均量) + vol_ma20_prev = pd.Series(v).shift(1).rolling(20).mean().to_numpy() + d["pa_vol_ratio20"] = v / np.maximum(vol_ma20_prev, 1e-9) + # 19. 量能与实体方向匹配度 + align = np.sign(body) * (d["pa_vol_ratio20"].to_numpy() - 1.0) + d["pa_vol_body_align"] = np.clip(align, -3.0, 3.0) + + d = d.drop(columns=["_box_hi", "_box_lo"]) + return d + + +def market_frame() -> pd.DataFrame: + """沪深300 的市场环境特征(大盘顺逆风)。""" + d = load_price(*INDEX) + d["ema20"] = d["close"].ewm(span=20, adjust=False).mean() + atr = _wilder_atr(d, 14) + d["pa_mkt_ema20_state"] = ((d["close"] - d["ema20"]) / atr.replace(0, np.nan)).fillna(0.0) + d["pa_mkt_slope_atr"] = ((d["ema20"] - d["ema20"].shift(5)) / atr.replace(0, np.nan)).fillna(0.0) + return d[["date", "pa_mkt_ema20_state", "pa_mkt_slope_atr"]].reset_index(drop=True) + + +# ============================================================== 标签 +def attach_label(d: pd.DataFrame, horizon: int = LABEL_HORIZON) -> pd.DataFrame: + """构造「未来 N 日多头优势标签」。 + + 未来 horizon 个交易日内: + max_up = (未来最高价 - 当日收盘) / ATR(14)_t 多头上行空间 + max_dn = (当日收盘 - 未来最低价) / ATR(14)_t 空头下行风险 + edge = max_up - max_dn ATR 口径的风险收益比差额 + label = 1 当且仅当 edge > theta(theta 由训练脚本按目标基准率校准)。 + + 标签本身使用未来数据,这是「未来优势」的定义;特征侧零未来函数。 + """ + out = d.copy() + h = out["high"].to_numpy(dtype=float) + l = out["low"].to_numpy(dtype=float) + c = out["close"].to_numpy(dtype=float) + atr = out["atr14"].to_numpy(dtype=float) + n = len(out) + max_up = np.full(n, np.nan) + max_dn = np.full(n, np.nan) + for i in range(n): + j = i + horizon + if j >= n: + break + fwd_h = h[i + 1:j + 1] + fwd_l = l[i + 1:j + 1] + if len(fwd_h) == 0: + continue + a = atr[i] + if not np.isfinite(a) or a <= 0: + continue + max_up[i] = (np.max(fwd_h) - c[i]) / a + max_dn[i] = (c[i] - np.min(fwd_l)) / a + out["fwd_max_up_atr"] = max_up + out["fwd_max_dn_atr"] = max_dn + out["fwd_edge_atr"] = max_up - max_dn + out["label"] = np.where(np.isnan(out["fwd_edge_atr"]), np.nan, + (out["fwd_edge_atr"] > LABEL_THETA).astype(float)) + return out + + +def build_panel(horizon: int = LABEL_HORIZON) -> Tuple[pd.DataFrame, Dict[str, pd.DataFrame]]: + """构建 12 只个股全历史逐日面板(含特征与标签)。""" + mkt = market_frame() + frames: Dict[str, pd.DataFrame] = {} + for code, name in STOCKS: + d = add_pa_features(load_price(code, name)) + d = pd.merge(d, mkt, on="date", how="left") + d["pa_mkt_ema20_state"] = d["pa_mkt_ema20_state"].fillna(0.0) + d["pa_mkt_slope_atr"] = d["pa_mkt_slope_atr"].fillna(0.0) + d = attach_label(d, horizon) + frames[code] = d.reset_index(drop=True) + + rows = [] + for code, d in frames.items(): + sub = d.iloc[MIN_HISTORY:].copy() + sub["code"] = code + sub["name"] = d["name"].iloc[0] + rows.append(sub) + panel = pd.concat(rows, ignore_index=True) + panel = panel.sort_values(["date", "code"]).reset_index(drop=True) + panel["segment"] = np.where(panel["date"] <= pd.Timestamp(TRAIN_END), "训练段", "样本外测试段") + return panel, frames + + +# ============================================================== 模型封装 +def _round_step(x: float, step: float = 10.0) -> int: + """按 step 步进取整(0/10/.../100)。""" + if not np.isfinite(x): + return 0 + v = math.floor(x / step + 0.5) * step + return int(min(max(v, 0.0), 100.0)) + + +class RankCalibrator: + """分位校准器:把模型原始概率映射到训练段折外分布中的 0~100 相对分位。 + + 弱信号模型(样本外 AUC ≈ 0.52)的原始概率天然挤在基准率附近, + 直接乘 100 会让胜算分只落在 39~51 的窄带里,无法分辨强弱。 + 以训练段折外预测分布为参照系,把原始概率换成「历史分布中的百分位」, + 既保证 0~100 全量程可用,又保持与原始概率严格单调。 + + score = 100 × F_oof(raw),F_oof 为训练段折外预测的经验累积分布。 + """ + + def __init__(self, oof_pred: np.ndarray, n_grid: int = 400): + self.n_grid = int(n_grid) + self.grid = np.quantile(np.asarray(oof_pred, dtype=float), + np.linspace(0.0, 1.0, self.n_grid)) + self.grid = np.unique(self.grid) + self.n = len(self.grid) + + def score(self, raw) -> np.ndarray: + r = np.asarray(raw, dtype=float).ravel() + idx = np.searchsorted(self.grid, r, side="right") + out = np.clip(np.rint(idx / max(self.n, 1) * 100.0), 0, 100).astype(int) + return out + + +class PALightGBM: + """PA-LightGBM:原始概率 → 校准胜算分 → 历史客观胜率 → AI 建议仓位 + TreeSHAP 中文归因。 + + - score: 0~100 的「多头胜算分」= 原始概率在训练段折外预测分布中的百分位 + - hist_win_rate: 该分数在训练段折外样本中的客观正样本胜率(单调化处理) + - target_position_pct: AI 建议仓位(按 10% 步进),规则为 + edge = win_rate - 基准率;仓位 = round10(100 * edge / (1 - 基准率)), + 即基准率水平 → 空仓,胜率 100% → 满仓。 + """ + + def __init__(self, booster, features: Sequence[str], calibration=None, + rank_cal: Optional["RankCalibrator"] = None, + score_table: Optional[Dict[int, float]] = None, + base_rate: float = 0.5, metadata: Optional[dict] = None): + self.booster = booster + self.features = list(features) + self.calibration = calibration + self.rank_cal = rank_cal + self.score_table = dict(score_table or {}) + self.base_rate = float(base_rate) + self.metadata = dict(metadata or {}) + self.conviction_threshold = self._compute_conviction_threshold() + + def _compute_conviction_threshold(self) -> int: + """「有正期望」的最低胜算分:历史客观胜率首次超过基准率的那个分数。 + + 低于该分数意味着历史上该形态没有正期望,AI 建议仓位为 0%。 + """ + for s in sorted(self.score_table): + if self.score_table[s] > self.base_rate: + return int(s) + return 100 + + # ------------------------------------------------------------ 推理 + def _num_iter(self) -> int: + """预测时使用的迭代轮数(无早停时用全部树)。""" + it = int(getattr(self.booster, "best_iteration", 0) or 0) + if it > 0: + return it + try: + return int(self.booster.num_trees()) + except Exception: + return 0 + + def _align(self, X) -> pd.DataFrame: + if isinstance(X, pd.DataFrame): + d = X.copy() + for c in self.features: + if c not in d.columns: + d[c] = np.nan + return d[self.features] + arr = np.asarray(X, dtype=np.float64) + if arr.shape[1] != len(self.features): + raise ValueError(f"特征维度不符:期望 {len(self.features)},实际 {arr.shape[1]}") + return pd.DataFrame(arr, columns=self.features) + + def predict_proba(self, X) -> np.ndarray: + d = self._align(X) + return self.booster.predict(d, num_iteration=self._num_iter()) + + def calibrate(self, raw: np.ndarray) -> np.ndarray: + if self.calibration is None: + return np.asarray(raw, dtype=float) + return np.asarray(self.calibration.predict(np.asarray(raw, dtype=float)), dtype=float) + + def score(self, X) -> pd.DataFrame: + """返回逐样本:原始概率 / 校准概率 / 胜算分(0-100) / 历史客观胜率 / AI 建议仓位。""" + raw = self.predict_proba(X) + cal = self.calibrate(raw) + if self.rank_cal is not None: + sc = self.rank_cal.score(raw) + else: + sc = np.clip(np.rint(cal * 100.0), 0, 100).astype(int) + wr = np.array([self.hist_win_rate(int(s)) for s in sc], dtype=float) + pos = np.array([self.target_position(int(s)) for s in sc], dtype=int) + return pd.DataFrame({ + "raw_prob": raw, + "cal_prob": cal, + "score": sc, + "hist_win_rate": wr, + "target_position_pct": pos, + }) + + # ------------------------------------------------------------ 胜率与仓位 + def hist_win_rate(self, score: int) -> float: + """该胜算分在训练段折外样本中的客观胜率(分数表缺档时按最近邻回退)。""" + if not self.score_table: + return self.base_rate + s = int(min(max(score, 0), 100)) + if s in self.score_table: + wr = float(self.score_table[s]) + else: + keys = sorted(self.score_table) + near = min(keys, key=lambda k: abs(k - s)) + wr = float(self.score_table[near]) + if not np.isfinite(wr): + return self.base_rate + return float(min(max(wr, 0.0), 1.0)) + + def target_position(self, score: int) -> int: + """AI 建议仓位(10% 步进)。 + + 规则: + 1) 胜算分 <= conviction_threshold(历史客观胜率尚未超过基准率)→ 0% + (历史上无正期望,不建议开仓) + 2) 否则把 [threshold, 100] 线性映射到 0~100%,按 10% 步进取整 + 胜算分是「模型多头优势在历史折外分布中的百分位」,因此分数越高, + 对应的历史客观胜率也越高(见 hist_win_rate)。 + """ + s = int(min(max(score, 0), 100)) + thr = self.conviction_threshold + if s <= thr: + return 0 + frac = (s - thr) / max(100.0 - thr, 1.0) + return _round_step(frac * 100.0, 10.0) + + def position_ladder(self) -> List[dict]: + """返回 0~100 每个分数档的胜率与建议仓位,便于前端直接渲染。""" + return [{"score": s, "hist_win_rate": round(self.hist_win_rate(s), 4), + "target_position_pct": self.target_position(s)} + for s in range(0, 101, 10)] + + # ------------------------------------------------------------ TreeSHAP 中文归因 + def shap_values(self, X) -> Tuple[np.ndarray, float]: + d = self._align(X) + contrib = self.booster.predict(d, num_iteration=self._num_iter(), + pred_contrib=True) + contrib = np.asarray(contrib, dtype=np.float64) + return contrib[:, :-1], float(contrib[0, -1]) + + def explain(self, X, top_k: int = 3) -> List[List[dict]]: + """秒级 TreeSHAP 逐样本中文归因(LightGBM 原生 TreeSHAP,pred_contrib=True)。 + + 返回每个样本的 top_k 条: + feature / name_cn / hint / value / shap / push / text + push = True 表示该特征推高多头胜算,False 表示压低多头胜算。 + """ + d = self._align(X) + contrib = np.asarray(self.booster.predict( + d, num_iteration=self._num_iter(), pred_contrib=True), dtype=np.float64) + shap = contrib[:, :-1] + out: List[List[dict]] = [] + for i in range(shap.shape[0]): + order = np.argsort(-np.abs(shap[i]))[:top_k] + items = [] + for j in order: + fname = self.features[j] + val = d.iloc[i, j] + items.append({ + "feature": fname, + "name_cn": FEATURE_CN.get(fname, fname), + "hint": FEATURE_HINT.get(fname, ""), + "value": _jsonable(val), + "shap": round(float(shap[i, j]), 4), + "push": bool(shap[i, j] > 0), + "text": describe_feature(fname, val, float(shap[i, j])), + }) + out.append(items) + return out + + def feature_importance(self, importance_type: str = "gain") -> pd.DataFrame: + imp = self.booster.feature_importance(importance_type=importance_type) + df = pd.DataFrame({"feature": self.features, importance_type: imp}) + df["name_cn"] = df["feature"].map(lambda f: FEATURE_CN.get(f, f)) + return df.sort_values(importance_type, ascending=False).reset_index(drop=True) + + # ------------------------------------------------------------ 存取 + def save(self, path: str) -> None: + os.makedirs(os.path.dirname(os.path.abspath(path)), exist_ok=True) + with open(path, "wb") as f: + pickle.dump(self, f, protocol=pickle.HIGHEST_PROTOCOL) + + @staticmethod + def load(path: str) -> "PALightGBM": + d = os.path.dirname(os.path.abspath(path)) + if d not in __import__("sys").path: + __import__("sys").path.insert(0, d) + with open(path, "rb") as f: + return pickle.load(f) + + +def _jsonable(v): + if isinstance(v, (str, bool)): + return v + try: + fv = float(v) + except (TypeError, ValueError): + return str(v) + if not np.isfinite(fv): + return None + return round(fv, 4) + + +# ============================================================== 中文特征解读 +def describe_feature(feature: str, value, shap: float = 0.0) -> str: + """把一个特征取值渲染成一句价格行为学人话,并标明推高/压低胜算。""" + try: + v = float(value) + except (TypeError, ValueError): + return f"{FEATURE_CN.get(feature, feature)}:{value}" + direction = "推高多头胜算" if shap > 0 else "压低多头胜算" + f = feature + if f == "pa_close_pos": + s = "收在当日最高附近,多方掌握收盘权" if v >= 0.67 else \ + ("收在当日中位,多空拉锯" if v >= 0.34 else "收在当日最低附近,空方掌握收盘权") + return f"收盘位置强度 {v:.0%}({s})→ {direction}" + if f == "pa_body_atr": + s = "趋势棒,方向明确" if v >= 0.6 else ("中等实体" if v >= 0.3 else "接近十字星/纺锤线") + return f"实体厚度 {v:.2f} 倍 ATR({s})→ {direction}" + if f == "pa_upper_shadow": + s = "上方被明显拒绝,抛压重" if v >= 0.33 else "上方压力有限" + return f"上影线占振幅 {v:.0%}({s})→ {direction}" + if f == "pa_lower_shadow": + s = "下方承接明显,Pin Bar 特征" if v >= 0.33 else "下方承接一般" + return f"下影线占振幅 {v:.0%}({s})→ {direction}" + if f == "pa_inside_bar": + return f"{'内包棒,多空暂时均衡' if v > 0.5 else '非内包棒'} → {direction}" + if f == "pa_outside_engulf": + return f"{'外包吞没棒,一方吞掉另一方成果' if v > 0.5 else '非外包吞没棒'} → {direction}" + if f == "pa_ft2_bull": + return f"近 2 日净多头实体 {v:+.2f} 倍 ATR({'有跟随' if v > 0.15 else '跟随不足' if v > -0.15 else '空头主导'})→ {direction}" + if f == "pa_ft3_bull": + return f"近 3 日净多头实体 {v:+.2f} 倍 ATR({'跟随持续' if v > 0.15 else '跟随不足' if v > -0.15 else '空头主导'})→ {direction}" + if f == "pa_overlap5": + s = "重叠高,属窄幅震荡 Barb Wire" if v >= 0.55 else ("重叠中等" if v >= 0.35 else "重叠低,通道顺畅") + return f"近 5 日 K 线重叠率 {v:.0%}({s})→ {direction}" + if f == "pa_bull_bar_count5": + return f"近 5 日强多头棒 {int(round(v))} 根({'买盘密集' if v >= 3 else '买盘一般' if v >= 1 else '几乎无强多头棒'})→ {direction}" + if f == "pa_ema20_dev_atr": + s = "站在 20EMA 之上,多头结构" if v > 0 else "跌破 20EMA,空头结构" + return f"距 20EMA {v:+.2f} 倍 ATR({s})→ {direction}" + if f == "pa_ema20_slope_atr": + s = "中期趋势向上" if v > 0 else "中期趋势走弱" + return f"20EMA 斜率 {v:+.2f} 倍 ATR/5日({s})→ {direction}" + if f == "pa_box_break_state": + s = "站上前 20 日箱体上沿" if v > 0.5 else ("跌破箱体下沿" if v < -0.5 else "仍在箱体内部") + return f"箱体突破状态:{s} → {direction}" + if f == "pa_break_fade": + return f"{'突破后跌回箱体,假突破陷阱' if v > 0.5 else '无突破回落'} → {direction}" + if f == "pa_wave_slope_decay": + s = "推动力衰减,楔形/衰竭前兆" if v < 0 else "推动力仍在增强" + return f"推次斜率衰减 {v:+.3f} ATR/日({s})→ {direction}" + if f == "pa_three_push_wedge": + s = "三推向上楔形" if v > 0.5 else ("三推向下楔形" if v < -0.5 else "无三推楔形") + return f"{s} → {direction}" + if f == "pa_climax_exhaustion": + s = "恐慌抛售高潮,反转倾向" if v > 0.15 else ("抢购高潮,衰竭倾向" if v < -0.15 else "无明显高潮") + return f"高潮衰竭度 {v:+.2f}({s})→ {direction}" + if f == "pa_vol_ratio20": + s = "明显放量" if v >= 1.5 else ("缩量" if v < 0.8 else "量能平稳") + return f"量能为前 20 日均量 {v:.2f} 倍({s})→ {direction}" + if f == "pa_vol_body_align": + s = "放量上涨,量价配合" if v > 0.3 else ("放量下跌,派发嫌疑" if v < -0.3 else "量价背离度低") + return f"量价实体匹配 {v:+.2f}({s})→ {direction}" + if f == "pa_mkt_ema20_state": + s = "大盘顺风" if v > 0 else "大盘逆风" + return f"沪深300 相对 20EMA {v:+.2f} 倍 ATR({s})→ {direction}" + return f"{FEATURE_CN.get(f, f)} = {v:.4f} → {direction}" + + +if __name__ == "__main__": + panel, frames = build_panel() + print(f"面板 {panel.shape},正样本基准率 {panel['label'].mean():.4f}") + print(panel[FEATURES].describe().T[["mean", "std", "min", "max"]].round(3).to_string()) diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/node/py/pa_lgbm_model.pkl b/plugins/alphamao1/kline-intuition-lab/miniapp/node/py/pa_lgbm_model.pkl new file mode 100644 index 00000000..2c216fa5 Binary files /dev/null and b/plugins/alphamao1/kline-intuition-lab/miniapp/node/py/pa_lgbm_model.pkl differ diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/node/py/pa_scan.py b/plugins/alphamao1/kline-intuition-lab/miniapp/node/py/pa_scan.py new file mode 100644 index 00000000..e9ae0381 --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/node/py/pa_scan.py @@ -0,0 +1,90 @@ +# -*- coding: utf-8 -*- +"""实时价格行为关卡扫描器:任意 A 股代码 → 关卡 JSON(Mini App Python 侧)。""" +from __future__ import annotations + +import argparse +import json +import os +import shutil +import sys +import tempfile + +HERE = os.path.dirname(os.path.abspath(__file__)) +if HERE not in sys.path: + sys.path.insert(0, HERE) + +import pa_engine # noqa: E402 +from pa_engine import PALightGBM # noqa: E402 +from pa_curator_core import MOTIFS, assemble_level, scan_candidates_for_stock # noqa: E402 + +MODEL_PATH = os.path.join(HERE, "pa_lgbm_model.pkl") +DEFAULT_INDEX_DIR = os.path.join(os.path.dirname(HERE), "data_v2") +INDEX_CODE, INDEX_NAME = "000300.SH", "沪深300" + + +def _find_index_csv(explicit: str) -> str: + if explicit and os.path.exists(explicit): + return explicit + if os.path.isdir(DEFAULT_INDEX_DIR): + for fn in os.listdir(DEFAULT_INDEX_DIR): + if fn.startswith(INDEX_CODE) and fn.endswith(".csv"): + return os.path.join(DEFAULT_INDEX_DIR, fn) + fallback = os.path.join(os.path.dirname(HERE), "data", "hs300.csv") + if os.path.exists(fallback): + return fallback + raise FileNotFoundError("未找到沪深300基准 CSV 文件") + + +def main() -> int: + ap = argparse.ArgumentParser(description="自定义 A 股价格行为关卡生成") + ap.add_argument("--csv", required=True) + ap.add_argument("--index-csv", default="") + ap.add_argument("--code", required=True) + ap.add_argument("--name", required=True) + ap.add_argument("--out", required=True) + ap.add_argument("--max-levels", type=int, default=12) + args = ap.parse_args() + + idx_csv = _find_index_csv(args.index_csv) + tmp_dir = tempfile.mkdtemp(prefix="pa_scan_") + try: + shutil.copyfile(args.csv, os.path.join(tmp_dir, f"{args.code}_{args.name}_前复权日K.csv")) + shutil.copyfile(idx_csv, os.path.join(tmp_dir, f"{INDEX_CODE}_{INDEX_NAME}_前复权日K.csv")) + pa_engine.DATA_DIR = tmp_dir + mkt = pa_engine.market_frame() + d = pa_engine.add_pa_features(pa_engine.load_price(args.code, args.name)) + d = d.merge(mkt, on="date", how="left") + d["pa_mkt_ema20_state"] = d["pa_mkt_ema20_state"].fillna(0.0) + d["pa_mkt_slope_atr"] = d["pa_mkt_slope_atr"].fillna(0.0) + d = d.reset_index(drop=True) + finally: + shutil.rmtree(tmp_dir, ignore_errors=True) + + model = PALightGBM.load(MODEL_PATH) + cands = scan_candidates_for_stock(d, args.code, args.name, strict=False) + cands.sort(key=lambda c: -c["quality"]) + + picked = [] + used_bars = [] + per_pair = {} + for c in cands: + if len(picked) >= args.max_levels: + break + if any(abs(c["bar_index"] - b) < 20 for b in used_bars): + continue + pair = (c["motif"], c["outcome"]) + if per_pair.get(pair, 0) >= 2: + continue + picked.append(c) + used_bars.append(c["bar_index"]) + per_pair[pair] = per_pair.get(pair, 0) + 1 + + levels = [assemble_level(c, d, model) for c in picked] + os.makedirs(os.path.dirname(os.path.abspath(args.out)), exist_ok=True) + with open(args.out, "w", encoding="utf-8") as f: + json.dump(levels, f, ensure_ascii=False) + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/node/review.mjs b/plugins/alphamao1/kline-intuition-lab/miniapp/node/review.mjs new file mode 100644 index 00000000..de3f9fad --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/node/review.mjs @@ -0,0 +1,131 @@ +/** + * 「问 Agent 深度复盘本局」提问文本组装。 + * + * 把以下素材拼成一段结构化中文提问,经宿主桥接送到 MiniMax Code 对话框: + * - 本关真实标的 / 精确历史区间 / 所属价格行为母题 + * - 关键棒演变(T0 起手定性 + 确认/证伪棒 + 演化总结 + 确认规则/证伪规则 + 教学点睛) + * - 玩家逐日仓位操作路径 与 PA-LightGBM 逐日胜算分 / 目标仓位 + * - 人机最大分歧日的 TreeSHAP 归因 + */ +import { RULES } from './rules.mjs'; + +const pct = (v) => `${(Number(v) * 100).toFixed(1)}%`; +const money = (v) => `${Number(v) >= 0 ? '+' : ''}${Math.round(Number(v)).toLocaleString('zh-CN')} 元`; + +function pathLine(day, playerWeight, aiWeight, score, suggested) { + const p = Number.isFinite(playerWeight) ? `${Math.round(playerWeight * 100)}%` : '—'; + const a = Number.isFinite(aiWeight) ? `${Math.round(aiWeight * 100)}%` : '—'; + const s = Number.isFinite(score) ? score : '—'; + const g = Number.isFinite(suggested) ? `${suggested}%` : '—'; + return ` - ${day}:玩家仓位 ${p}|机器胜算分 ${s}、目标仓位 ${g}、实际仓位 ${a}`; +} + +/** + * 单关复盘提问 + * @param {object} level 关卡完整数据(含 daily / key_bars / setup) + * @param {object} result 本关结算结果 + */ +export function buildLevelReview(level, result) { + const lines = []; + lines.push(`【K线价格行为实战台 · 单关深度复盘】`); + lines.push(''); + lines.push('我是用真实前复权历史行情做价格行为训练的玩家。请以 Al Brooks 价格行为学(Price Action)与蜡烛线微观结构为理论框架,帮我做一次赛后复盘。'); + lines.push(''); + lines.push('■ 本关真相'); + lines.push(` - 标的:${level.name}(${level.code}),历史区间 ${level.date} 起 15 个交易日(数据段:${level.segment})`); + lines.push(` - 价格行为母题:${level.motif_cn}`); + lines.push(` - 形态结局:${level.outcome_cn}`); + lines.push(` - 我的交易假设:${level.thesis}`); + lines.push(` - T0 ATR:${level.atr},T0 收盘:${level.close0}`); + if (level.levels) { + lines.push(` - 关键价位:箱体 ${level.levels.box_low}~${level.levels.box_high},20 日支撑 ${level.levels.support_20d} / 阻力 ${level.levels.resistance_20d},60 日支撑 ${level.levels.support_60d} / 阻力 ${level.levels.resistance_60d}`); + } + lines.push(''); + lines.push('■ 盘前形态识别'); + const quiz = result.quiz; + if (quiz) { + lines.push(` - 我盘前判断的形态:${quiz.motifCn || quiz.motif}`); + lines.push(` - 实际形态:${level.motif_cn} → ${result.quizCorrect ? '✅ 识别正确' : '❌ 识别错误'}`); + } else { + lines.push(' - 本关未做形态识别打卡'); + } + lines.push(''); + lines.push('■ 价格行为关键棒演变'); + if (level.setup) { + lines.push(` - 起手结构:${level.setup.text}`); + lines.push(` - 确认规则(Follow-through):${level.setup.confirm_rule}`); + lines.push(` - 证伪规则(形态失效/假突破):${level.setup.invalidate_rule}`); + } + for (const p of (level.key_bars && level.key_bars.pivots) || []) { + lines.push(` - ${p.day}(${p.date})${p.verdict}:${p.candle}|信号:${p.signal}|相对 T0 收盘 ${pct(p.change_from_t0_pct)}|当日胜算分 ${p.bullish_edge_score}、建议仓位 ${p.ai_position_pct}%`); + } + if (level.key_bars && level.key_bars.summary) { + lines.push(` - 整段演化:${level.key_bars.summary}`); + } + if (level.teaching_note) { + lines.push(` - 教学点睛:${level.teaching_note}`); + } + lines.push(''); + lines.push('■ 我的逐日操作路径(与机器决策对照)'); + const pc = new Map((result.playerCurve || []).map((p) => [p.day, p])); + const ac = new Map((result.aiCurve || []).map((p) => [p.day, p])); + const days = [...new Set([...pc.keys(), ...ac.keys()])].sort((a, b) => a - b); + for (const d of days) { + const daily = (level.daily || [])[d] || {}; + lines.push(pathLine(d === -1 ? 'T-1(开局)' : `T${d >= 0 ? `+${d}` : d}`, + pc.get(d) ? pc.get(d).weight : null, + ac.get(d) ? ac.get(d).weight : null, + daily.bullish_edge_score, + daily.ai_position_pct)); + } + lines.push(''); + lines.push(`■ 结果`); + lines.push(` - 玩家:${money(result.playerPnl)}(${pct(result.playerReturn)}),AI:${money(result.aiPnl)}(${pct(result.aiReturn)})→ ${result.playerPnl > result.aiPnl ? '玩家跑赢机器' : '机器跑赢玩家'}`); + if (result.divergence) { + lines.push(` - 人机最大分歧在 T${result.divergence.dayIndex >= 0 ? `+${result.divergence.dayIndex}` : result.divergence.dayIndex}:玩家仓位 ${pct(result.divergence.playerWeight)} vs 机器仓位 ${pct(result.divergence.aiWeight)},差 ${pct(result.divergence.diff)};当日机器胜算分 ${result.divergence.score}`); + if ((result.divergence.top3 || []).length) { + lines.push(' - 该日机器的 TreeSHAP 归因(Top 3):'); + for (const t of result.divergence.top3) { + lines.push(` · ${t.name_cn}(${t.feature})SHAP ${t.shap} → ${t.push ? '推高' : '压低'}胜算:${t.text}`); + } + } + } + lines.push(''); + lines.push('■ 请你回答(结合价格行为学,不要泛泛而谈)'); + lines.push(' 1. 起手出现了什么形态?我的盘前形态判断是否正确?如果错了,错在没看出哪一个价格行为细节?'); + lines.push(' 2. 后续 15 天里,原形态是被跟随确认成真了,还是无跟随/跌破结构导致形态失效(假突破陷阱)?关键棒是哪一根?'); + lines.push(' 3. 结合我的逐日仓位路径做操作诊断:我是否在证伪棒出现后未能识别失效而死扛亏损?是否被正常缩量回调吓跑卖飞?是否在确认棒果断顺势加仓?'); + lines.push(' 4. 用价格行为学给我一句可执行的下次改进原则(针对这个母题)。'); + return lines.join('\n'); +} + +/** + * 整局战报复盘提问 + */ +export function buildMatchReview(summary, levelMap) { + const lines = []; + lines.push('【K线价格行为实战台 · 整局深度复盘】'); + lines.push(''); + lines.push(`我刚打完一局 ${summary.levels} 关的价格行为实战挑战(PA-LightGBM 人机同规则对决,手续费单边 0.075%,T+1 锁定,最小 10% 调仓)。请做一次总复盘。`); + lines.push(''); + lines.push('■ 战绩'); + lines.push(` - 最终段位:${summary.rank}`); + lines.push(` - 玩家:${money(summary.playerPnl)}(${pct(summary.playerReturn)}),AI:${money(summary.aiPnl)}(${pct(summary.aiReturn)})`); + lines.push(` - 形态识别:${summary.quizRight}/${summary.quizTotal} 关识别正确`); + lines.push(''); + lines.push('■ 逐关'); + for (const r of summary.levelDetails || []) { + const lv = levelMap.get(r.levelId); + const name = lv ? `${lv.name}(${lv.code})` : r.levelId; + lines.push(` - 第 ${r.levelIndex + 1} 关 ${r.motifCn || r.motif}|${name}|${r.outcomeCn}`); + lines.push(` 玩家 ${money(r.playerPnl)}(${pct(r.playerReturn)})vs AI ${money(r.aiPnl)}(${pct(r.aiReturn)});识别 ${r.quizCorrect ? '正确' : '错误'}`); + } + lines.push(''); + lines.push('■ 请你回答'); + lines.push(' 1. 从 Al Brooks 价格行为学看,我这一局最系统性的失误是什么(识别问题 / 确认棒不信任 / 证伪棒不认亏 / 仓位过重)?'); + lines.push(' 2. 按 5 大母题拆解,我的短板在哪一类形态?下一阶段应该重点练哪一类,给出 3 条针对性训练原则。'); + lines.push(' 3. 结合 PA-LightGBM 的胜算分与 SHAP 归因,我应该怎样用它来校准自己的盘感(什么时候该信机器、什么时候该信图形)?'); + return lines.join('\n'); +} + +export { RULES }; diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/node/rules.mjs b/plugins/alphamao1/kline-intuition-lab/miniapp/node/rules.mjs new file mode 100644 index 00000000..8351f73a --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/node/rules.mjs @@ -0,0 +1,48 @@ +/** + * 对局规则常量(前端通过 /api/bootstrap 同步读取,保证两端一致) + */ +export const RULES = { + capital: 100000, // 双方初始资金(跨关滚存) + fee: 0.00075, // 单边手续费 0.075%(双边 0.15%) + step: 0.10, // 最小调仓单位 10% + horizon: 15, // T+15 收盘结算 + decisionDays: 15, // 决策点 T0 ~ T+14 + legacyWeight: 0.70, // 高位逃顶局的老仓开局比例 + aiMinTradeDelta: 0.20, // AI 防毛刺:目标仓位差 >= 20pp 才调仓 + aiClearScore: 65, // AI 防毛刺:胜算分跌破 65 分清仓线 + matchLevels: 4, // 闯关模式一局 4 关(4 大核心课题全覆盖、正反混排) +}; + +export const MOTIF_ORDER = [ + 'breakout_follow', + 'ema20_pullback', + 'wedge_climax_low', + 'climax_wedge_top', +]; + +export const SKILL_META = [ + { + key: 'cycle_read', + cn: '周期与位置辨识', + desc: '分清趋势通道与震荡区间,不在低胜率位置盲目梭哈', + targetMotif: 'wedge_climax_low', + }, + { + key: 'follow_add', + cn: '右侧跟随执行', + desc: '出现有效跟随确认棒或 H2 信号时,敢于顺势推高仓位拿住波段', + targetMotif: 'ema20_pullback', + }, + { + key: 'invalid_cut', + cn: '前提证伪止损', + desc: '跌回箱体或跌破信号棒低点时,1~2 根内果断砍仓绝不死扛', + targetMotif: 'breakout_follow', + }, + { + key: 'climax_protect', + cn: '高潮派发锁利', + desc: '高位抢购高潮破位时及时兑现利润,强势窄旗形时不盲目清仓', + targetMotif: 'climax_wedge_top', + }, +]; diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/node/server.mjs b/plugins/alphamao1/kline-intuition-lab/miniapp/node/server.mjs new file mode 100644 index 00000000..21cfec24 --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/node/server.mjs @@ -0,0 +1,526 @@ +/** + * K线价格行为实战台 —— Mini App Node 运行时。 + * + * 职责: + * - 提供页面与静态资源(Vite 构建产物,依赖全部本地打包,无外网 CDN) + * - 权威裁决玩家与 PA-LightGBM 的每一根 K 线(同一套 T+1 / 手续费 / 10% 颗粒度规则) + * - 落盘战绩、5 大母题能力画像与错题本到宿主分配的 dataDir + * - 组装「问 Agent 深度复盘」的提问文本 + * - 调用同花顺 iFinD 拉取任意新 A 股,实时生成新关卡 + */ +import { createServer } from 'node:http'; +import { readFile } from 'node:fs/promises'; +import { existsSync } from 'node:fs'; +import { join } from 'node:path'; + +import { RULES, MOTIF_ORDER } from './rules.mjs'; +import { + blindLevel, buildBars, buildCurve, decideDay, fastForward, fullLevel, + legacyWeightFor, newMatch, settleLevel, snapWeight, startLevel, summarize, +} from './engine.mjs'; +import { allLevels, builtinLevels, builtinMeta, findLevel, motifs, pickMatchLevels } from './pa_levels.mjs'; +import { Store } from './store.mjs'; +import { buildLevelReview, buildMatchReview } from './review.mjs'; + +/** @type {Map} */ +const matches = new Map(); +let matchSeq = 0; +let store = null; +let context = null; + +// ------------------------------------------------------------------ 工具 +function sendJson(res, status, body) { + const text = JSON.stringify(body); + res.writeHead(status, { + 'content-type': 'application/json; charset=utf-8', + 'cache-control': 'no-store', + }); + res.end(text); +} + +function readBody(req) { + return new Promise((resolve, reject) => { + const chunks = []; + let size = 0; + req.on('data', (d) => { + size += d.length; + if (size > 4 * 1024 * 1024) { + reject(new Error('payload too large')); + req.destroy(); + return; + } + chunks.push(d); + }); + req.on('end', () => { + const raw = Buffer.concat(chunks).toString('utf8'); + if (!raw) return resolve({}); + try { + resolve(JSON.parse(raw)); + } catch { + reject(new Error('invalid json')); + } + }); + req.on('error', reject); + }); +} + +function currentMatch(id) { + const m = matches.get(id); + if (!m) throw new Error('对局不存在或已过期,请重新开局'); + return m; +} + +function currentLevel(m) { + const lv = m.levelData[m.index]; + if (!lv) throw new Error('本局已全部完成'); + return lv; +} + +/** 关卡卡片(练习模式):只给图形缩略与初始持仓类型,不剧透标的与结局 */ +function levelCard(level, index, bestRecord) { + const bars = buildBars(level); + const visible = bars.slice(0, 60); + const legacy = legacyWeightFor(level); + return { + key: `L${index + 1}`, + id: level.id, + motif: level.motif, + motif_cn: level.motif_cn, + custom: !!level.custom, + segment: level.segment, + bars: visible.map((b) => ({ t: b.idx, o: b.open, h: b.high, l: b.low, c: b.close })), + initialPosition: legacy > 0 ? 'legacy70' : 'flat', + initialPositionCn: legacy > 0 ? '开局持有 70% 历史老仓' : '开局空仓,T0 自主建仓', + atr: level.atr, + close0: level.close0, + best: bestRecord + ? { return: bestRecord.playerReturn, pnl: bestRecord.playerPnl, at: bestRecord.at } + : null, + }; +} + +function bestRecords() { + const map = new Map(); + for (const r of store.listRecords()) { + const cur = map.get(r.levelId); + if (!cur || (r.playerReturn || 0) > (cur.playerReturn || 0)) map.set(r.levelId, r); + } + return map; +} + +/** 对局状态快照 */ +function matchState(m) { + const lv = m.levelData[m.index]; + const price = lv ? Number(lv.close0) : 0; + const p = m.player.side; + const a = m.model.side; + return { + player: p ? { + capital: Math.round(m.player.capital * 100) / 100, + cash: Math.round(p.cash * 100) / 100, + shares: p.shares, + sellable: p.sellable, + frozen: p.frozen, + weight: p.weight, + equity: Math.round((p.cash + p.shares * price) * 100) / 100, + } : null, + ai: a ? { + capital: Math.round(m.model.capital * 100) / 100, + cash: Math.round(a.cash * 100) / 100, + shares: a.shares, + weight: a.weight, + equity: Math.round((a.cash + a.shares * price) * 100) / 100, + } : null, + index: m.index, + total: m.levelData.length, + dayIndex: m.dayIndex, + quiz: m.quiz[m.index] || null, + finished: m.finished, + }; +} + +// ------------------------------------------------------------------ 路由 +async function handleApi(req, res, url) { + const path = url.pathname; + const method = req.method || 'GET'; + + // ---------------------------------------------------------------- 首页数据 + if (path === '/api/bootstrap' && method === 'GET') { + const all = allLevels(store); + const meta = builtinMeta(); + return sendJson(res, 200, { + meta: { ...meta, rules: RULES, motifs: motifs() }, + library: { + total: all.levels.length, + builtin: builtinLevels().length, + custom: all.levels.filter((l) => l.custom).length, + }, + stocks: meta.stocks || [], + customStocks: [...new Map( + all.levels.filter((l) => l.custom).map((l) => [l.code, { code: l.code, name: l.name }]), + ).values()], + }); + } + + // ---------------------------------------------------------------- 关卡库(练习模式) + if (path === '/api/library' && method === 'GET') { + const all = allLevels(store); + const motif = url.searchParams.get('motif'); + const list = motif && MOTIF_ORDER.includes(motif) + ? all.levels.filter((l) => l.motif === motif) + : all.levels; + const best = bestRecords(); + const cards = list.map((l, i) => levelCard(l, i, best.get(l.id))); + return sendJson(res, 200, { motifs: motifs(), cards, records: store.listRecords().length }); + } + + // ---------------------------------------------------------------- 开局 + if (path === '/api/match/start' && method === 'POST') { + const body = await readBody(req); + const all = allLevels(store); + const mode = body.mode === 'practice' ? 'practice' : 'challenge'; + let levels; + if (mode === 'practice') { + const lv = findLevel(all.levels, body.levelId); + if (!lv) return sendJson(res, 400, { error: '关卡不存在或已失效' }); + levels = [lv]; + } else { + levels = pickMatchLevels(all.levels, RULES.matchLevels); + if (!levels.length) return sendJson(res, 400, { error: '没有可用关卡' }); + } + matchSeq += 1; + const id = `PA${Date.now().toString(36)}-${matchSeq}`; + const m = newMatch({ mode, motif: body.motif || null }, levels, all.meta, id); + m.dayIndex = 0; + m.quiz = []; + m.levelStart = startLevel(m, levels[0]); + matches.set(id, m); + return sendJson(res, 200, { + matchId: id, + mode, + index: 0, + total: levels.length, + level: blindLevel(levels[0], { key: 'L1', index: 0, total: levels.length }), + state: matchState(m), + rules: RULES, + motifs: motifs(), + }); + } + + // ---------------------------------------------------------------- 形态识别打卡 + if (path === '/api/match/quiz' && method === 'POST') { + const body = await readBody(req); + const m = currentMatch(body.matchId); + const motif = String(body.motif || ''); + if (!MOTIF_ORDER.includes(motif)) return sendJson(res, 400, { error: '无效的形态选项' }); + const lv = currentLevel(m); + m.quiz[m.index] = { + motif, + motifCn: (motifs().find((x) => x.key === motif) || {}).cn || motif, + correct: motif === lv.motif, + at: new Date().toISOString(), + }; + return sendJson(res, 200, { ok: true, recorded: true }); + } + + // ---------------------------------------------------------------- 当前关状态 + if (path === '/api/match/state' && method === 'GET') { + const m = currentMatch(url.searchParams.get('matchId')); + const lv = currentLevel(m); + return sendJson(res, 200, { + index: m.index, + total: m.levelData.length, + dayIndex: m.dayIndex, + level: blindLevel(lv, { key: `L${m.index + 1}`, index: m.index, total: m.levelData.length }), + state: matchState(m), + curve: buildCurve(m), + }); + } + + // ---------------------------------------------------------------- 玩家确认目标仓位 → 同拍亮牌 + if (path === '/api/match/decide' && method === 'POST') { + const body = await readBody(req); + const m = currentMatch(body.matchId); + const lv = currentLevel(m); + if (m.dayIndex > RULES.decisionDays - 1) { + return sendJson(res, 400, { error: '本关决策已结束,请结算' }); + } + const weight = snapWeight(body.weight); + const out = decideDay(m, lv, m.dayIndex, weight); + m.dayIndex += 1; + const bars = buildBars(lv); + const nextBar = m.dayIndex <= RULES.decisionDays - 1 ? bars[59 + m.dayIndex] : null; + return sendJson(res, 200, { + ok: true, + result: out, + nextBar: nextBar ? { + t: nextBar.idx, o: nextBar.open, h: nextBar.high, l: nextBar.low, c: nextBar.close, + v: nextBar.volume, ema: nextBar.ema20, label: nextBar.label, + } : null, + dayIndex: m.dayIndex, + state: matchState(m), + }); + } + + // ---------------------------------------------------------------- 快进(玩家保持仓位,AI 照常决策) + if (path === '/api/match/advance' && method === 'POST') { + const body = await readBody(req); + const m = currentMatch(body.matchId); + const lv = currentLevel(m); + const from = m.dayIndex; + const steps = Math.max(1, Math.min(Number(body.steps) || 1, RULES.decisionDays - m.dayIndex)); + const out = fastForward(m, lv, m.dayIndex, steps); + m.dayIndex += out.steps.length; + const bars = buildBars(lv); + // 揭示区间:被快进跳过的每一根 K 线都要补画到主图上, + // 但结算棒(最后一根 T+15)在 settle 之前不能露出,避免提前剧透。 + const revealTo = Math.min(59 + m.dayIndex, bars.length - 2); + const revealedBars = bars.slice(60 + from, revealTo + 1).map((b) => ({ + t: b.idx, o: b.open, h: b.high, l: b.low, c: b.close, + v: b.volume, ema: b.ema20, label: b.label, + })); + const nextBar = m.dayIndex <= RULES.decisionDays - 1 ? bars[59 + m.dayIndex] : null; + return sendJson(res, 200, { + ok: true, + steps: out.steps, + revealedBars, + nextBar: nextBar ? { + t: nextBar.idx, o: nextBar.open, h: nextBar.high, l: nextBar.low, c: nextBar.close, + v: nextBar.volume, ema: nextBar.ema20, label: nextBar.label, + } : null, + dayIndex: m.dayIndex, + state: matchState(m), + }); + } + + // ---------------------------------------------------------------- 结算本关 + if (path === '/api/match/settle' && method === 'POST') { + const body = await readBody(req); + const m = currentMatch(body.matchId); + const lv = currentLevel(m); + const result = settleLevel(m, lv); + const truth = fullLevel(lv); + // 逐关即刻落盘:不等整局结束,中途退出也不丢这一关的战绩与母题画像 + store.saveLevelRecord(result, m.id); + // 错题本:亏损或识别错误自动收录 + const mistake = (result.playerPnl || 0) < 0 || result.quizCorrect === false; + if (mistake) { + store.addWrongBook({ + levelId: lv.id, + code: lv.code, + name: lv.name, + date: lv.date, + motif: lv.motif, + motifCn: lv.motif_cn, + outcome: lv.outcome, + outcomeCn: lv.outcome_cn, + at: result.at, + playerPnl: result.playerPnl, + playerReturn: result.playerReturn, + aiPnl: result.aiPnl, + quizCorrect: result.quizCorrect, + reason: result.quizCorrect === false + ? '形态识别错误' + : (result.playerPnl < 0 ? '持仓亏损' : '未跑赢机器'), + }); + } + const finished = m.index + 1 >= m.levelData.length; + if (finished) { + const summary = summarize(m); + store.saveMatch(summary, summary.levelDetails); + m.finished = true; + return sendJson(res, 200, { + ok: true, + finished: true, + result, + truth, + summary, + reviewText: buildLevelReview(truth, result), + }); + } + m.index += 1; + m.dayIndex = 0; + m.levelStart = startLevel(m, m.levelData[m.index]); + return sendJson(res, 200, { + ok: true, + finished: false, + result, + truth, + nextLevel: blindLevel(m.levelData[m.index], { + key: `L${m.index + 1}`, index: m.index, total: m.levelData.length, + }), + index: m.index, + total: m.levelData.length, + state: matchState(m), + }); + } + + // ---------------------------------------------------------------- 整局战报 + if (path === '/api/match/summary' && method === 'GET') { + const m = currentMatch(url.searchParams.get('matchId')); + const summary = summarize(m); + store.saveMatch(summary, summary.levelDetails); + const levelMap = new Map(m.levelData.map((l) => [l.id, l])); + return sendJson(res, 200, { ...summary, reviewText: buildMatchReview(summary, levelMap) }); + } + + // ---------------------------------------------------------------- 复盘提问文本 + if (path === '/api/review' && method === 'GET') { + const matchId = url.searchParams.get('matchId'); + const levelIndex = Number(url.searchParams.get('levelIndex')); + const live = matches.get(matchId); + if (live) { + const idx = Number.isFinite(levelIndex) ? levelIndex : live.results.length - 1; + const r = live.results[idx]; + if (r) { + const lv = live.levelData[idx]; + return sendJson(res, 200, { text: buildLevelReview(fullLevel(lv), r) }); + } + const summary = summarize(live); + const levelMap = new Map(live.levelData.map((l) => [l.id, l])); + return sendJson(res, 200, { text: buildMatchReview(summary, levelMap) }); + } + const rec = store.getMatch(matchId); + if (!rec) return sendJson(res, 404, { error: '找不到该对局记录' }); + const all = allLevels(store); + const byId = new Map(all.levels.map((l) => [l.id, l])); + const summary = { + ...rec, + levelDetails: store.listRecords().filter((r) => r.matchId === matchId), + }; + return sendJson(res, 200, { text: buildMatchReview(summary, byId) }); + } + + // ---------------------------------------------------------------- 成长档案 + if (path === '/api/stats' && method === 'GET') { + const prof = store.profile(); + const matchesList = store.listMatches().slice(0, 20).map((m) => ({ + id: m.id, at: m.at, mode: m.cfg?.mode, levels: m.levels, + playerPnl: m.playerPnl, aiPnl: m.aiPnl, playerReturn: m.playerReturn, + beatAi: m.beatAi, rank: m.rank, quizRight: m.quizRight, quizTotal: m.quizTotal, + })); + return sendJson(res, 200, { + profile: prof, + matches: matchesList, + wrongBook: store.listWrongBook(), + rules: RULES, + }); + } + + if (path === '/api/wrongbook' && method === 'GET') { + return sendJson(res, 200, { items: store.listWrongBook() }); + } + + if (path === '/api/wrongbook/remove' && method === 'POST') { + const body = await readBody(req); + const n = store.removeWrongBook(String(body.levelId || '')); + return sendJson(res, 200, { removed: n }); + } + + if (path === '/api/wrongbook/clear' && method === 'POST') { + return sendJson(res, 200, { removed: store.clearWrongBook() }); + } + + // ---------------------------------------------------------------- 动态生成关卡(iFinD) + if (path === '/api/custom/fetch' && method === 'POST') { + const body = await readBody(req); + const { fetchCustomLevels } = await import('./custom/ifind.mjs'); + try { + const out = await fetchCustomLevels(context, store, body); + return sendJson(res, 200, out); + } catch (e) { + return sendJson(res, 400, { error: e && e.message ? e.message : '拉取失败' }); + } + } + + return sendJson(res, 404, { error: 'not_found' }); +} + +// ------------------------------------------------------------------ 静态资源 +const MIME = { + '.html': 'text/html; charset=utf-8', + '.js': 'text/javascript; charset=utf-8', + '.mjs': 'text/javascript; charset=utf-8', + '.css': 'text/css; charset=utf-8', + '.json': 'application/json; charset=utf-8', + '.png': 'image/png', + '.svg': 'image/svg+xml', + '.woff2': 'font/woff2', + '.ico': 'image/x-icon', +}; + +async function serveStatic(res, filePath) { + try { + const buf = await readFile(filePath); + const ext = filePath.slice(filePath.lastIndexOf('.')); + res.writeHead(200, { + 'content-type': MIME[ext] || 'application/octet-stream', + 'cache-control': 'no-store', + }); + res.end(buf); + return true; + } catch { + return false; + } +} + +// ------------------------------------------------------------------ 启动 +export async function start(ctx) { + context = ctx; + store = new Store(ctx.dataDir); + const clientDir = join(ctx.pluginRoot, 'miniapp', 'client'); + + const server = createServer(async (req, res) => { + const url = new URL(req.url || '/', 'http://miniapp.local'); + try { + if (url.pathname.startsWith('/api/')) { + await handleApi(req, res, url); + return; + } + if (url.pathname === '/' || url.pathname === '/dashboard') { + const ok = await serveStatic(res, join(clientDir, 'index.html')); + if (ok) return; + } + const candidate = join(clientDir, url.pathname.replace(/^\/+/, '')); + if (candidate.startsWith(clientDir) && existsSync(candidate)) { + const ok = await serveStatic(res, candidate); + if (ok) return; + } + // SPA 回退 + const ok = await serveStatic(res, join(clientDir, 'index.html')); + if (ok) return; + res.writeHead(404, { 'content-type': 'application/json; charset=utf-8' }); + res.end(JSON.stringify({ error: 'not_found' })); + } catch (e) { + ctx.logger.error('miniapp.request.failed', { message: String((e && e.message) || e) }); + if (!res.headersSent) { + res.writeHead(500, { 'content-type': 'application/json; charset=utf-8' }); + } + res.end(JSON.stringify({ error: String((e && e.message) || e) })); + } + }); + + await new Promise((resolve, reject) => { + server.once('error', reject); + server.listen(ctx.listen.port, ctx.listen.host, () => { + server.off('error', reject); + resolve(); + }); + }); + ctx.logger.info('miniapp.runtime.listening', { route: '/dashboard' }); + + let disposed = false; + const dispose = async () => { + if (disposed) return; + disposed = true; + ctx.signal.removeEventListener('abort', onAbort); + await new Promise((resolve) => server.close(() => resolve())); + }; + const onAbort = () => { + void dispose(); + }; + ctx.signal.addEventListener('abort', onAbort, { once: true }); + if (ctx.signal.aborted) await dispose(); + + return { dispose }; +} diff --git a/plugins/alphamao1/kline-intuition-lab/miniapp/node/store.mjs b/plugins/alphamao1/kline-intuition-lab/miniapp/node/store.mjs new file mode 100644 index 00000000..a6397e5f --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/miniapp/node/store.mjs @@ -0,0 +1,216 @@ +/** + * 本地持久化(成长档案:4 大课题战绩 + 四维价格行为基本功雷达 + 错题本) + */ +import { existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from 'node:fs'; +import { join } from 'node:path'; +import { MOTIF_ORDER, SKILL_META } from './rules.mjs'; + +const FILES = { + matches: 'pa_matches.json', + records: 'pa_records.json', + wrongbook: 'pa_wrongbook.json', + custom: 'custom_levels.json', +}; + +function atomicWrite(path, text) { + const tmp = `${path}.tmp`; + writeFileSync(tmp, text, 'utf8'); + renameSync(tmp, path); +} + +function readJson(path, fallback) { + try { + if (!existsSync(path)) return fallback; + return JSON.parse(readFileSync(path, 'utf8')); + } catch { + return fallback; + } +} + +export class Store { + constructor(dataDir) { + this.dir = dataDir; + if (!existsSync(this.dir)) mkdirSync(this.dir, { recursive: true }); + this.paths = Object.fromEntries( + Object.entries(FILES).map(([k, v]) => [k, join(this.dir, v)]), + ); + this.matches = readJson(this.paths.matches, []); + this.records = readJson(this.paths.records, []); + this.wrongBook = readJson(this.paths.wrongbook, []); + this.custom = readJson(this.paths.custom, []); + if (!Array.isArray(this.matches)) this.matches = []; + if (!Array.isArray(this.records)) this.records = []; + if (!Array.isArray(this.wrongBook)) this.wrongBook = []; + if (!Array.isArray(this.custom)) this.custom = []; + } + + #flushMatches() { atomicWrite(this.paths.matches, JSON.stringify(this.matches)); } + #flushRecords() { atomicWrite(this.paths.records, JSON.stringify(this.records)); } + #flushWrongBook() { atomicWrite(this.paths.wrongbook, JSON.stringify(this.wrongBook)); } + + saveMatch(summary, levelDetails) { + const record = { + id: summary.id, + at: summary.at, + cfg: summary.cfg, + levels: summary.levels, + playerEquity: summary.playerEquity, + aiEquity: summary.aiEquity, + playerPnl: summary.playerPnl, + aiPnl: summary.aiPnl, + playerReturn: summary.playerReturn, + aiReturn: summary.aiReturn, + beatAi: summary.beatAi, + rank: summary.rank, + quizRight: summary.quizRight, + quizTotal: summary.quizTotal, + curve: summary.curve, + }; + const idx = this.matches.findIndex((m) => m.id === summary.id); + if (idx >= 0) this.matches[idx] = record; + else this.matches.unshift(record); + if (this.matches.length > 300) this.matches.length = 300; + this.#flushMatches(); + + for (const d of levelDetails || []) this.saveLevelRecord(d, summary.id); + return record; + } + + saveLevelRecord(detail, matchId) { + const i = this.records.findIndex((r) => r.levelId === detail.levelId && r.matchId === matchId); + const item = { ...detail, matchId }; + if (i >= 0) this.records[i] = item; + else this.records.unshift(item); + if (this.records.length > 4000) this.records.length = 4000; + this.#flushRecords(); + return item; + } + + listMatches() { return this.matches; } + getMatch(id) { return this.matches.find((m) => m.id === id) || null; } + listRecords() { return this.records.filter((r) => MOTIF_ORDER.includes(r.motif)); } + + profile() { + const validRecords = this.listRecords(); + const byMotif = {}; + const ensure = (m, motifCn) => { + if (!byMotif[m]) { + byMotif[m] = { + motif: m, motifCn: motifCn || m, played: 0, wins: 0, losses: 0, pnl: 0, aiPnl: 0, + beatAi: 0, quizTotal: 0, quizRight: 0, sumReturn: 0, sumAiReturn: 0, + }; + } + return byMotif[m]; + }; + const totals = { + played: 0, wins: 0, losses: 0, pnl: 0, aiPnl: 0, beatAi: 0, + quizTotal: 0, quizRight: 0, matches: this.matches.length, + }; + + const skillBuckets = Object.fromEntries(SKILL_META.map((s) => [s.key, []])); + + for (const r of validRecords) { + const b = ensure(r.motif, r.motifCn); + b.played += 1; + totals.played += 1; + b.pnl += r.playerPnl || 0; + b.aiPnl += r.aiPnl || 0; + b.sumReturn += r.playerReturn || 0; + b.sumAiReturn += r.aiReturn || 0; + totals.pnl += r.playerPnl || 0; + totals.aiPnl += r.aiPnl || 0; + if ((r.playerPnl || 0) > 0) { b.wins += 1; totals.wins += 1; } + else { b.losses += 1; totals.losses += 1; } + if ((r.playerPnl || 0) > (r.aiPnl || 0)) { b.beatAi += 1; totals.beatAi += 1; } + if (r.quiz && r.quiz.motif) { + b.quizTotal += 1; + totals.quizTotal += 1; + if (r.quizCorrect) { b.quizRight += 1; totals.quizRight += 1; } + } + const sc = r.skillEval && r.skillEval.scores; + if (sc) { + for (const [k, v] of Object.entries(sc)) { + if (skillBuckets[k] && Number.isFinite(v)) skillBuckets[k].push(Number(v)); + } + } + } + + const finalize = (b) => ({ + ...b, + pnl: Math.round(b.pnl * 100) / 100, + aiPnl: Math.round(b.aiPnl * 100) / 100, + winRate: b.played ? Math.round((b.wins / b.played) * 1000) / 1000 : null, + beatAiRate: b.played ? Math.round((b.beatAi / b.played) * 1000) / 1000 : null, + avgReturn: b.played ? Math.round((b.sumReturn / b.played) * 10000) / 10000 : null, + avgAiReturn: b.played ? Math.round((b.sumAiReturn / b.played) * 10000) / 10000 : null, + recognitionAccuracy: b.quizTotal ? Math.round((b.quizRight / b.quizTotal) * 1000) / 1000 : null, + }); + + const out = {}; + for (const [k, v] of Object.entries(byMotif)) out[k] = finalize(v); + const totalsOut = finalize({ + motif: 'total', played: totals.played, wins: totals.wins, losses: totals.losses, + pnl: totals.pnl, aiPnl: totals.aiPnl, beatAi: totals.beatAi, + quizTotal: totals.quizTotal, quizRight: totals.quizRight, + sumReturn: 0, sumAiReturn: 0, + }); + totalsOut.matches = totals.matches; + + const skills = SKILL_META.map((s) => { + const arr = skillBuckets[s.key] || []; + const avg = arr.length ? Math.round(arr.reduce((a, b) => a + b, 0) / arr.length) : null; + return { ...s, samples: arr.length, score: avg }; + }); + + const activeSkills = skills.filter((s) => s.score !== null); + activeSkills.sort((a, b) => (a.score ?? 100) - (b.score ?? 100)); + const weakestSkill = activeSkills.length ? activeSkills[0] : null; + + const list = Object.values(out).filter((x) => x.played >= 1); + let weakest = null; + for (const x of list) { + const score = (x.recognitionAccuracy ?? 0.7) * 0.4 + (x.avgReturn ?? 0) * 2.5; + if (!weakest || score < weakest.score) weakest = { ...x, score }; + } + + return { + byMotif: out, + totals: totalsOut, + skills, + weakestSkill, + weakest: weakest ? { motif: weakest.motif, motifCn: weakest.motifCn } : null, + }; + } + + addWrongBook(entry) { + const i = this.wrongBook.findIndex((w) => w.levelId === entry.levelId); + if (i >= 0) this.wrongBook[i] = { ...this.wrongBook[i], ...entry }; + else this.wrongBook.unshift(entry); + if (this.wrongBook.length > 500) this.wrongBook.length = 500; + this.#flushWrongBook(); + return this.wrongBook.length; + } + + removeWrongBook(levelId) { + const before = this.wrongBook.length; + this.wrongBook = this.wrongBook.filter((w) => w.levelId !== levelId); + this.#flushWrongBook(); + return before - this.wrongBook.length; + } + + listWrongBook() { return this.wrongBook.filter((w) => MOTIF_ORDER.includes(w.motif)); } + + clearWrongBook() { + const n = this.wrongBook.length; + this.wrongBook = []; + this.#flushWrongBook(); + return n; + } + + readCustomLevels() { return this.custom.filter((c) => MOTIF_ORDER.includes(c.motif)); } + + writeCustomLevels(levels) { + this.custom = levels; + atomicWrite(this.paths.custom, JSON.stringify(levels)); + } +} diff --git a/plugins/alphamao1/kline-intuition-lab/package.json b/plugins/alphamao1/kline-intuition-lab/package.json new file mode 100644 index 00000000..aab6b8dc --- /dev/null +++ b/plugins/alphamao1/kline-intuition-lab/package.json @@ -0,0 +1,6 @@ +{ + "mcode": { + "schemaVersion": 2, + "miniApp": "./miniapp/miniapp.json" + } +}