feat: add BOLL (Bollinger Bands) indicator to Strategy Studio

- Add BOLL to frontend indicator grid with period selection
- Add BOLL calculation (upper/middle/lower bands) in market data
- Add BOLL fields to TimeframeSeriesData struct
- Integrate BOLL into AI decision engine prompts
- Support multi-timeframe BOLL analysis
This commit is contained in:
tinkle-community
2025-12-20 16:17:16 +08:00
parent 8e57fb986f
commit 0009c9c3dd
6 changed files with 69 additions and 0 deletions

View File

@@ -72,6 +72,8 @@ export function IndicatorEditor({
rsiDesc: { zh: '相对强弱指标', en: 'Relative Strength Index' },
atr: { zh: 'ATR', en: 'ATR' },
atrDesc: { zh: '真实波幅均值', en: 'Average True Range' },
boll: { zh: 'BOLL 布林带', en: 'Bollinger Bands' },
bollDesc: { zh: '布林带指标(上中下轨)', en: 'Upper/Middle/Lower Bands' },
volume: { zh: '成交量', en: 'Volume' },
volumeDesc: { zh: '交易量分析', en: 'Trading volume analysis' },
oi: { zh: '持仓量', en: 'Open Interest' },
@@ -295,6 +297,7 @@ export function IndicatorEditor({
{ key: 'enable_macd', label: 'macd', desc: 'macdDesc', color: '#a855f7' },
{ key: 'enable_rsi', label: 'rsi', desc: 'rsiDesc', color: '#F6465D', periodKey: 'rsi_periods', defaultPeriods: '7,14' },
{ key: 'enable_atr', label: 'atr', desc: 'atrDesc', color: '#60a5fa', periodKey: 'atr_periods', defaultPeriods: '14' },
{ key: 'enable_boll', label: 'boll', desc: 'bollDesc', color: '#ec4899', periodKey: 'boll_periods', defaultPeriods: '20' },
].map(({ key, label, desc, color, periodKey, defaultPeriods }) => (
<div
key={key}