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:
@@ -277,19 +277,18 @@ export default function AnalyticsPage() {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Signal Quality Version Comparison */}
|
{/* Indicator Version Comparison */}
|
||||||
{versionComparison && versionComparison.versions.length > 0 && (
|
{versionComparison && versionComparison.versions.length > 0 && (
|
||||||
<div className="mb-8">
|
<div className="mb-8">
|
||||||
<h2 className="text-xl font-bold text-white mb-4">🔬 Signal Quality Logic Versions</h2>
|
<h2 className="text-xl font-bold text-white mb-4"><EFBFBD> TradingView Indicator Versions</h2>
|
||||||
<div className="bg-gray-800/50 backdrop-blur-sm rounded-xl p-6 border border-gray-700">
|
<div className="bg-gray-800/50 backdrop-blur-sm rounded-xl p-6 border border-gray-700">
|
||||||
<p className="text-gray-300 text-sm mb-6 leading-relaxed">
|
<p className="text-gray-300 text-sm mb-6 leading-relaxed">
|
||||||
The bot has evolved through different signal quality scoring algorithms.
|
Comparing performance across different TradingView indicator strategies to optimize signal quality.
|
||||||
This section compares their performance to enable data-driven optimization.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
{versionComparison.versions.map((version, idx) => {
|
{versionComparison.versions.map((version, idx) => {
|
||||||
const isCurrentVersion = version.version === 'v3'
|
const isCurrentVersion = version.version === 'v6'
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
key={version.version}
|
key={version.version}
|
||||||
|
|||||||
@@ -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
|
// Get version descriptions
|
||||||
const versionDescriptions: Record<string, string> = {
|
const versionDescriptions: Record<string, string> = {
|
||||||
'v5': 'Buy/Sell Signal strategy (pre-Nov 12)',
|
'v5': 'Buy/Sell Signal strategy (pre-Nov 12)',
|
||||||
|
|||||||
Reference in New Issue
Block a user