diff --git a/candle_annotator@1.0.0 b/candle_annotator@1.0.0 new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json index 6c1fcdc..3e6e18d 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "build": "next build", "start": "next start", "lint": "next lint", - "import-annotations": "tsx scripts/import_talib_annotations.ts" + "import-annotations": "tsx scripts/import_talib_annotations.ts", + "list-charts": "tsx scripts/list_charts.ts" }, "keywords": [], "author": "", diff --git a/scripts/list_charts.ts b/scripts/list_charts.ts new file mode 100644 index 0000000..b2931e1 --- /dev/null +++ b/scripts/list_charts.ts @@ -0,0 +1,34 @@ +#!/usr/bin/env tsx +/** + * List all charts in the database + */ + +import { db } from '../src/lib/db'; +import { charts } from '../src/lib/db/schema'; + +async function main() { + console.log('=== Charts in Database ===\n'); + + const allCharts = await db.select().from(charts).orderBy(charts.created_at); + + if (allCharts.length === 0) { + console.log('No charts found.\n'); + console.log('To create a chart:'); + console.log('1. Upload a CSV file at http://localhost:3000'); + console.log('2. Or use the create-chart script (coming soon)'); + } else { + console.log(`Found ${allCharts.length} chart(s):\n`); + for (const chart of allCharts) { + const date = new Date(chart.created_at * 1000).toISOString(); + console.log(` ID: ${chart.id}`); + console.log(` Name: ${chart.name}`); + console.log(` Created: ${date}`); + console.log(''); + } + } +} + +main().catch((error) => { + console.error('Error:', error.message); + process.exit(1); +}); diff --git a/services/ml/features/__pycache__/engineer.cpython-313.pyc b/services/ml/features/__pycache__/engineer.cpython-313.pyc new file mode 100644 index 0000000..e988329 Binary files /dev/null and b/services/ml/features/__pycache__/engineer.cpython-313.pyc differ diff --git a/services/ml/features/__pycache__/talib_features.cpython-313.pyc b/services/ml/features/__pycache__/talib_features.cpython-313.pyc index b79b621..8ff5382 100644 Binary files a/services/ml/features/__pycache__/talib_features.cpython-313.pyc and b/services/ml/features/__pycache__/talib_features.cpython-313.pyc differ diff --git a/services/ml/features/talib_features.py b/services/ml/features/talib_features.py index 0ba0d5b..e6d5dfb 100644 --- a/services/ml/features/talib_features.py +++ b/services/ml/features/talib_features.py @@ -136,7 +136,7 @@ def _call_talib_function( 'HT_SINE', 'HT_TRENDMODE'] # High-Low-Close indicators - hlc_indicators = ['ULTOSC', 'NATR'] + hlc_indicators = ['ULTOSC', 'NATR', 'CCI'] # OHLC indicators ohlc_indicators = ['CDL2CROWS', 'CDL3BLACKCROWS', 'CDL3INSIDE', 'CDL3LINESTRIKE', diff --git a/tsx b/tsx new file mode 100644 index 0000000..e69de29