acionar campo de de geração do script avançado e proficssional do trading view e automaatico , crie pela rede neural, crie a evolução da rede neural da curva financeira - Follow Up Deployment
Browse files- index.html +123 -0
index.html
CHANGED
|
@@ -96,6 +96,25 @@
|
|
| 96 |
</div>
|
| 97 |
</div>
|
| 98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
<!-- Performance Metrics -->
|
| 100 |
<div class="card-glass p-4">
|
| 101 |
<h2 class="text-xl font-semibold mb-4">Performance Metrics</h2>
|
|
@@ -317,12 +336,116 @@
|
|
| 317 |
}
|
| 318 |
});
|
| 319 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 320 |
// Simulate live data updates
|
| 321 |
setInterval(() => {
|
| 322 |
const newValue = data[data.length - 1] + (Math.random() - 0.5) * 0.001;
|
| 323 |
data.push(newValue);
|
| 324 |
data.shift();
|
| 325 |
chart.update();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 326 |
}, 2000);
|
| 327 |
});
|
| 328 |
</script>
|
|
|
|
| 96 |
</div>
|
| 97 |
</div>
|
| 98 |
|
| 99 |
+
<!-- TradingView Script Generator -->
|
| 100 |
+
<div class="card-glass p-4 mb-6">
|
| 101 |
+
<h2 class="text-xl font-semibold mb-4">NeuralNet Script Generator</h2>
|
| 102 |
+
<div class="mb-4">
|
| 103 |
+
<label class="block text-sm font-medium mb-2">Strategy Complexity</label>
|
| 104 |
+
<select class="w-full bg-gray-800 border border-gray-700 rounded-md px-3 py-2 text-sm">
|
| 105 |
+
<option>Basic Mean Reversion</option>
|
| 106 |
+
<option>Advanced Momentum</option>
|
| 107 |
+
<option selected>NeuralNet HFT</option>
|
| 108 |
+
<option>Quantum Pattern</option>
|
| 109 |
+
</select>
|
| 110 |
+
</div>
|
| 111 |
+
<div class="mb-4">
|
| 112 |
+
<label class="block text-sm font-medium mb-2">Custom Parameters</label>
|
| 113 |
+
<textarea class="w-full bg-gray-800 border border-gray-700 rounded-md px-3 py-2 text-sm h-32" placeholder="// Custom neural network parameters..."></textarea>
|
| 114 |
+
</div>
|
| 115 |
+
<button class="w-full bg-blue-600 hover:bg-blue-500 py-2 rounded-md">Generate TradingView Script</button>
|
| 116 |
+
</div>
|
| 117 |
+
|
| 118 |
<!-- Performance Metrics -->
|
| 119 |
<div class="card-glass p-4">
|
| 120 |
<h2 class="text-xl font-semibold mb-4">Performance Metrics</h2>
|
|
|
|
| 336 |
}
|
| 337 |
});
|
| 338 |
|
| 339 |
+
// Initialize neural network evolution chart
|
| 340 |
+
const nnCtx = document.getElementById('nnChart').getContext('2d');
|
| 341 |
+
|
| 342 |
+
// Generate mock neural network training data
|
| 343 |
+
const nnData = [];
|
| 344 |
+
let accuracy = 80;
|
| 345 |
+
for (let i = 0; i < 50; i++) {
|
| 346 |
+
accuracy += Math.random() * 0.5;
|
| 347 |
+
if (accuracy > 98) accuracy = 98;
|
| 348 |
+
nnData.push(accuracy);
|
| 349 |
+
}
|
| 350 |
+
|
| 351 |
+
const nnChart = new Chart(nnCtx, {
|
| 352 |
+
type: 'line',
|
| 353 |
+
data: {
|
| 354 |
+
labels: Array.from({length: 50}, (_, i) => i + 1),
|
| 355 |
+
datasets: [
|
| 356 |
+
{
|
| 357 |
+
label: 'Accuracy',
|
| 358 |
+
data: nnData,
|
| 359 |
+
borderColor: '#00b3ff',
|
| 360 |
+
borderWidth: 2,
|
| 361 |
+
pointRadius: 0,
|
| 362 |
+
tension: 0.3,
|
| 363 |
+
yAxisID: 'y'
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
label: 'Loss',
|
| 367 |
+
data: nnData.map(v => 100-v),
|
| 368 |
+
borderColor: '#ff4d4d',
|
| 369 |
+
borderWidth: 1,
|
| 370 |
+
pointRadius: 0,
|
| 371 |
+
tension: 0.3,
|
| 372 |
+
yAxisID: 'y1'
|
| 373 |
+
}
|
| 374 |
+
]
|
| 375 |
+
},
|
| 376 |
+
options: {
|
| 377 |
+
responsive: true,
|
| 378 |
+
maintainAspectRatio: false,
|
| 379 |
+
interaction: {
|
| 380 |
+
mode: 'index',
|
| 381 |
+
intersect: false,
|
| 382 |
+
},
|
| 383 |
+
plugins: {
|
| 384 |
+
legend: {
|
| 385 |
+
position: 'top',
|
| 386 |
+
labels: {
|
| 387 |
+
color: 'rgba(255, 255, 255, 0.7)'
|
| 388 |
+
}
|
| 389 |
+
},
|
| 390 |
+
tooltip: {
|
| 391 |
+
mode: 'index',
|
| 392 |
+
intersect: false,
|
| 393 |
+
}
|
| 394 |
+
},
|
| 395 |
+
scales: {
|
| 396 |
+
x: {
|
| 397 |
+
grid: {
|
| 398 |
+
color: 'rgba(255, 255, 255, 0.05)'
|
| 399 |
+
},
|
| 400 |
+
ticks: {
|
| 401 |
+
color: 'rgba(255, 255, 255, 0.7)'
|
| 402 |
+
}
|
| 403 |
+
},
|
| 404 |
+
y: {
|
| 405 |
+
type: 'linear',
|
| 406 |
+
display: true,
|
| 407 |
+
position: 'left',
|
| 408 |
+
min: 70,
|
| 409 |
+
max: 100,
|
| 410 |
+
grid: {
|
| 411 |
+
color: 'rgba(255, 255, 255, 0.05)'
|
| 412 |
+
},
|
| 413 |
+
ticks: {
|
| 414 |
+
color: 'rgba(255, 255, 255, 0.7)'
|
| 415 |
+
}
|
| 416 |
+
},
|
| 417 |
+
y1: {
|
| 418 |
+
type: 'linear',
|
| 419 |
+
display: true,
|
| 420 |
+
position: 'right',
|
| 421 |
+
min: 0,
|
| 422 |
+
max: 30,
|
| 423 |
+
grid: {
|
| 424 |
+
drawOnChartArea: false,
|
| 425 |
+
},
|
| 426 |
+
ticks: {
|
| 427 |
+
color: 'rgba(255, 255, 255, 0.7)'
|
| 428 |
+
}
|
| 429 |
+
}
|
| 430 |
+
}
|
| 431 |
+
}
|
| 432 |
+
});
|
| 433 |
+
|
| 434 |
// Simulate live data updates
|
| 435 |
setInterval(() => {
|
| 436 |
const newValue = data[data.length - 1] + (Math.random() - 0.5) * 0.001;
|
| 437 |
data.push(newValue);
|
| 438 |
data.shift();
|
| 439 |
chart.update();
|
| 440 |
+
|
| 441 |
+
// Update neural network chart
|
| 442 |
+
const newAccuracy = nnData[nnData.length - 1] + (Math.random() - 0.45) * 0.2;
|
| 443 |
+
if (newAccuracy > 98.5) nnData.push(98.5);
|
| 444 |
+
else if (newAccuracy < 97.5) nnData.push(97.5);
|
| 445 |
+
else nnData.push(newAccuracy);
|
| 446 |
+
nnData.shift();
|
| 447 |
+
nnChart.data.datasets[1].data = nnData.map(v => 100-v);
|
| 448 |
+
nnChart.update();
|
| 449 |
}, 2000);
|
| 450 |
});
|
| 451 |
</script>
|