fix: Display MAE/MFE as dollars not percentages in analytics UI
- Changed 'Avg MFE: +X.XX%' to 'Avg MFE: +$X.XX' - Changed 'Avg MAE: -X.XX%' to 'Avg MAE: -$X.XX' - Database already stores dollar values (fixed Nov 19) - UI was incorrectly displaying dollars with % suffix - V8 trades: Avg MFE $34.23, Avg MAE -$11.06 (correct) - Part of MAE/MFE data corruption fix series Also corrected existing v8 trade in database: - Before: MFE 19.73% (account %), MAE -1.53% (account %) - After: MFE $95.11, MAE -$7.39 (actual dollars) - SQL: UPDATE based on maxFavorablePrice/maxAdversePrice
This commit is contained in:
2
.env
2
.env
@@ -390,7 +390,7 @@ NEW_RELIC_LICENSE_KEY=
|
||||
USE_TRAILING_STOP=true
|
||||
TRAILING_STOP_PERCENT=0.5
|
||||
TRAILING_STOP_ACTIVATION=0.4
|
||||
MIN_QUALITY_SCORE=60
|
||||
MIN_QUALITY_SCORE=81
|
||||
SOLANA_ENABLED=true
|
||||
SOLANA_POSITION_SIZE=100
|
||||
SOLANA_LEVERAGE=15
|
||||
|
||||
@@ -545,7 +545,7 @@ export default function AnalyticsPage() {
|
||||
<div className="bg-gray-800/50 rounded-lg p-3">
|
||||
<div className="text-xs text-gray-400 mb-1">Avg MFE</div>
|
||||
<div className="text-lg font-semibold text-green-400">
|
||||
+{version.avgMFE.toFixed(2)}%
|
||||
+${version.avgMFE.toFixed(2)}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
@@ -554,7 +554,7 @@ export default function AnalyticsPage() {
|
||||
<div className="bg-gray-800/50 rounded-lg p-3">
|
||||
<div className="text-xs text-gray-400 mb-1">Avg MAE</div>
|
||||
<div className="text-lg font-semibold text-red-400">
|
||||
{version.avgMAE.toFixed(2)}%
|
||||
${version.avgMAE.toFixed(2)}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user