Ajout analyse de données par réseau neuronal

This commit is contained in:
Jérôme Delacotte
2025-05-11 16:53:01 +02:00
parent adef1736e5
commit 16783a79be
7 changed files with 145 additions and 8 deletions

View File

@@ -329,6 +329,30 @@ function renderChart(data, filename, create_columns) {
}
)
// Achat
series.push({
name: 'Buy',
type: 'scatter',
symbolSize: 10,
itemStyle: {
color: '#00aa00'
},
// label: {
// show: true,
// position: 'top', // ou 'right', 'inside', etc.
// formatter: function (param) {
// return param.value[2]; // ou par ex. param.value[1] pour afficher le prix
// },
// fontSize: 12,
// color: '#000'
// },
data: data
.filter(d => d.enter_long === 1)
.map(d => {
const date = new Date(d.date).toLocaleString('fr-FR', options);
return [date, d.close, d.enter_tag];
})
})
// Volume
series.push({
name: 'Volume',
@@ -349,6 +373,7 @@ function renderChart(data, filename, create_columns) {
for (var key in cols) {
var value = cols[key];
element=document.getElementById(value)
if (element) {
if (element.checked) {
@@ -489,7 +514,14 @@ function renderChart(data, filename, create_columns) {
li.classList.add('is-1d');
}
});
document.querySelectorAll('.indicatorsReport li').forEach(li => {
if (li.textContent.trim().endsWith('_1h')) {
li.classList.add('is-1h');
}
if (li.textContent.trim().endsWith('_1d')) {
li.classList.add('is-1d');
}
});
}
function loadFeather(filename) {