| | |
| | | │ └─ 多仓队列转移: |
| | | │ ├─ 以多仓队列首元素(最小价)为种子 |
| | | │ ├─ 生成 matched.size() 个递减元素: seed × (1 − gridRate × i) |
| | | │ ├─ 贴近过滤: |elem − longEntryPrice| < longEntryPrice × gridRate → 跳过 |
| | | │ ├─ 贴近过滤: |currentPrice − longEntryPrice| < longEntryPrice × gridRate → 跳过 |
| | | │ └─ 升序排列,截断到 gridQueueSize |
| | | │ |
| | | └─ processLongGrid: 当前价 > 多仓队列元素(价格涨超了队列中的低价) |
| | |
| | | └─ 空仓队列转移: |
| | | ├─ 以空仓队列首元素(最高价)为种子 |
| | | ├─ 生成 matched.size() 个递增元素: seed × (1 + gridRate × i) |
| | | ├─ 贴近过滤: |elem − shortEntryPrice| < shortEntryPrice × gridRate → 跳过 |
| | | ├─ 贴近过滤: |currentPrice − shortEntryPrice| < shortEntryPrice × gridRate → 跳过 |
| | | └─ 降序排列,截断到 gridQueueSize |
| | | ``` |
| | | |