fix: update analytics UI to show TradingView indicator versions correctly
- Changed section title: 'Signal Quality Logic Versions' → 'TradingView Indicator Versions' - Updated current version marker: v3 → v6 - Added version sorting: v6 first, then v5, then unknown - Updated description to reflect indicator strategy comparison Context: - User clarified: V4 display = v6 data, V1 display = v5 data - Dashboard now shows indicator versions in proper order - 154 unknown (pre-tracking), 15 v6 (HalfTrend), 4 v5 (Buy/Sell)
This commit is contained in:
@@ -113,6 +113,14 @@ export async function GET() {
|
||||
}
|
||||
})
|
||||
|
||||
// Sort versions: v6 first, then v5, then unknown
|
||||
const versionOrder: Record<string, number> = { 'v6': 0, 'v5': 1, 'unknown': 2 }
|
||||
results.sort((a, b) => {
|
||||
const orderA = versionOrder[a.version] ?? 999
|
||||
const orderB = versionOrder[b.version] ?? 999
|
||||
return orderA - orderB
|
||||
})
|
||||
|
||||
// Get version descriptions
|
||||
const versionDescriptions: Record<string, string> = {
|
||||
'v5': 'Buy/Sell Signal strategy (pre-Nov 12)',
|
||||
|
||||
Reference in New Issue
Block a user