fix(ml): add CCI to hlc_indicators list

CCI (Commodity Channel Index) requires high, low, and close prices
This commit is contained in:
Marko Djordjevic 2026-02-15 21:08:20 +01:00
parent 57240d4eea
commit 63486bc7b5
7 changed files with 37 additions and 2 deletions

34
scripts/list_charts.ts Normal file
View file

@ -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);
});