ghost T predictions plotting on chart live chart updates
This commit is contained in:
@@ -576,6 +576,11 @@
|
||||
// Start polling for signals
|
||||
startSignalPolling();
|
||||
|
||||
// Start chart auto-update
|
||||
if (window.appState && window.appState.chartManager) {
|
||||
window.appState.chartManager.startAutoUpdate();
|
||||
}
|
||||
|
||||
const trainingMode = data.training_mode || 'inference-only';
|
||||
const modeText = trainingMode === 'per-candle' ? ' with per-candle training' :
|
||||
(trainingMode === 'pivot-based' ? ' with pivot training' : '');
|
||||
@@ -630,6 +635,11 @@
|
||||
|
||||
// Stop polling
|
||||
stopSignalPolling();
|
||||
|
||||
// Stop chart auto-update
|
||||
if (window.appState && window.appState.chartManager) {
|
||||
window.appState.chartManager.stopAutoUpdate();
|
||||
}
|
||||
|
||||
currentInferenceId = null;
|
||||
showSuccess('Real-time inference stopped');
|
||||
@@ -932,9 +942,16 @@
|
||||
}
|
||||
updatePredictionHistory();
|
||||
|
||||
// Update chart with signal markers
|
||||
// Update chart with signal markers and predictions
|
||||
if (window.appState && window.appState.chartManager) {
|
||||
displaySignalOnChart(latest);
|
||||
|
||||
// Update ghost candles and other predictions
|
||||
const predictions = {};
|
||||
const modelKey = latest.model ? latest.model.toLowerCase() : 'transformer';
|
||||
predictions[modelKey] = latest;
|
||||
|
||||
window.appState.chartManager.updatePredictions(predictions);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user