teko-space / index.html
katote's picture
Add 3 files
bc6daa4 verified
Raw History Blame Contribute Delete
22 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FVG Trading Bot</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
.gradient-bg {
background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}
.chart-container {
position: relative;
height: 400px;
width: 100%;
}
.fvg-box {
position: absolute;
border: 2px dashed;
opacity: 0.7;
pointer-events: none;
}
.bullish-fvg {
background-color: rgba(16, 185, 129, 0.2);
border-color: rgba(16, 185, 129, 0.8);
}
.bearish-fvg {
background-color: rgba(239, 68, 68, 0.2);
border-color: rgba(239, 68, 68, 0.8);
}
@keyframes pulse {
0% { opacity: 0.4; }
50% { opacity: 1; }
100% { opacity: 0.4; }
}
.pulse {
animation: pulse 2s infinite;
}
</style>
</head>
<body class="bg-gray-100 font-sans">
<div class="min-h-screen flex flex-col">
<!-- Header -->
<header class="gradient-bg text-white shadow-lg">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fas fa-robot text-2xl"></i>
<h1 class="text-2xl font-bold">FVG Trading Bot</h1>
</div>
<div class="flex items-center space-x-4">
<div class="hidden md:flex items-center space-x-2 bg-blue-800/50 px-3 py-1 rounded-full">
<span class="h-2 w-2 bg-green-400 rounded-full pulse"></span>
<span class="text-sm">Connected</span>
</div>
<button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-lg text-sm font-medium transition">
<i class="fas fa-user mr-1"></i> Account
</button>
</div>
</div>
</header>
<!-- Main Content -->
<main class="flex-1 container mx-auto px-4 py-6">
<div class="grid grid-cols-1 lg:grid-cols-4 gap-6">
<!-- Left Panel -->
<div class="lg:col-span-3 space-y-6">
<!-- Chart Section -->
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="px-6 py-4 border-b border-gray-200 flex justify-between items-center">
<div>
<h2 class="text-lg font-semibold">BTC/USDT</h2>
<p class="text-gray-500 text-sm">1h timeframe</p>
</div>
<div class="flex space-x-2">
<button class="px-3 py-1 bg-gray-100 hover:bg-gray-200 rounded text-sm">1h</button>
<button class="px-3 py-1 bg-blue-600 text-white rounded text-sm">4h</button>
<button class="px-3 py-1 bg-gray-100 hover:bg-gray-200 rounded text-sm">1d</button>
</div>
</div>
<div class="p-4">
<div class="chart-container">
<canvas id="priceChart"></canvas>
<!-- These would be dynamically positioned in a real app -->
<div class="fvg-box bullish-fvg" style="top: 30%; left: 20%; width: 15%; height: 10%;"></div>
<div class="fvg-box bearish-fvg" style="top: 60%; left: 50%; width: 12%; height: 8%;"></div>
<div class="fvg-box bullish-fvg" style="top: 40%; left: 70%; width: 10%; height: 7%;"></div>
</div>
</div>
</div>
<!-- Trading Controls -->
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="px-6 py-4 border-b border-gray-200">
<h2 class="text-lg font-semibold">Trading Controls</h2>
</div>
<div class="p-6 grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Bot Status</label>
<div class="flex items-center space-x-3">
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" id="botToggle" class="sr-only peer">
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-green-600"></div>
</label>
<span id="statusText" class="text-sm font-medium">Off</span>
</div>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Risk per Trade</label>
<div class="relative">
<input type="range" min="0.5" max="5" step="0.5" value="2" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer">
<div class="flex justify-between text-xs text-gray-500 mt-1">
<span>0.5%</span>
<span>1%</span>
<span>1.5%</span>
<span>2%</span>
<span>2.5%</span>
<span>3%</span>
<span>5%</span>
</div>
</div>
</div>
</div>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">FVG Sensitivity</label>
<select class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
<option>Low (Conservative)</option>
<option selected>Medium (Balanced)</option>
<option>High (Aggressive)</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Take Profit</label>
<div class="relative rounded-md shadow-sm">
<input type="text" class="focus:ring-blue-500 focus:border-blue-500 block w-full pl-3 pr-12 py-2 sm:text-sm border-gray-300 rounded-md" value="2.5">
<div class="absolute inset-y-0 right-0 flex items-center">
<span class="text-gray-500 sm:text-sm mr-3">%</span>
</div>
</div>
</div>
</div>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Stop Loss</label>
<div class="relative rounded-md shadow-sm">
<input type="text" class="focus:ring-blue-500 focus:border-blue-500 block w-full pl-3 pr-12 py-2 sm:text-sm border-gray-300 rounded-md" value="1.5">
<div class="absolute inset-y-0 right-0 flex items-center">
<span class="text-gray-500 sm:text-sm mr-3">%</span>
</div>
</div>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Max Trades</label>
<div class="relative rounded-md shadow-sm">
<input type="text" class="focus:ring-blue-500 focus:border-blue-500 block w-full pl-3 pr-12 py-2 sm:text-sm border-gray-300 rounded-md" value="3">
<div class="absolute inset-y-0 right-0 flex items-center">
<span class="text-gray-500 sm:text-sm mr-3">per day</span>
</div>
</div>
</div>
</div>
</div>
<div class="px-6 py-4 bg-gray-50 flex justify-end space-x-3">
<button class="px-4 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-50">
Reset
</button>
<button class="px-4 py-2 bg-blue-600 rounded-md text-sm font-medium text-white hover:bg-blue-700">
Save Settings
</button>
</div>
</div>
</div>
<!-- Right Panel -->
<div class="space-y-6">
<!-- Account Summary -->
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="px-6 py-4 border-b border-gray-200">
<h2 class="text-lg font-semibold">Account Summary</h2>
</div>
<div class="p-6 space-y-4">
<div class="flex justify-between">
<span class="text-sm text-gray-500">Balance</span>
<span class="font-medium">$10,245.36</span>
</div>
<div class="flex justify-between">
<span class="text-sm text-gray-500">Available</span>
<span class="font-medium">$8,120.75</span>
</div>
<div class="flex justify-between">
<span class="text-sm text-gray-500">In Trades</span>
<span class="font-medium">$2,124.61</span>
</div>
<div class="flex justify-between">
<span class="text-sm text-gray-500">Today's P/L</span>
<span class="font-medium text-green-500">+$245.36</span>
</div>
<div class="pt-4 mt-4 border-t border-gray-200">
<button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md text-sm font-medium transition">
<i class="fas fa-plus mr-1"></i> Deposit Funds
</button>
</div>
</div>
</div>
<!-- Active Trades -->
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="px-6 py-4 border-b border-gray-200">
<h2 class="text-lg font-semibold">Active Trades</h2>
</div>
<div class="p-4">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Pair</th>
<th scope="col" class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Side</th>
<th scope="col" class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">P/L</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-3 py-2 whitespace-nowrap text-sm font-medium">BTC/USDT</td>
<td class="px-3 py-2 whitespace-nowrap text-sm text-green-500">Long</td>
<td class="px-3 py-2 whitespace-nowrap text-sm text-green-500">+1.8%</td>
</tr>
<tr>
<td class="px-3 py-2 whitespace-nowrap text-sm font-medium">ETH/USDT</td>
<td class="px-3 py-2 whitespace-nowrap text-sm text-red-500">Short</td>
<td class="px-3 py-2 whitespace-nowrap text-sm text-red-500">-0.5%</td>
</tr>
<tr>
<td class="px-3 py-2 whitespace-nowrap text-sm font-medium">SOL/USDT</td>
<td class="px-3 py-2 whitespace-nowrap text-sm text-green-500">Long</td>
<td class="px-3 py-2 whitespace-nowrap text-sm text-green-500">+3.2%</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- Recent Signals -->
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="px-6 py-4 border-b border-gray-200">
<h2 class="text-lg font-semibold">Recent FVG Signals</h2>
</div>
<div class="p-4 space-y-3">
<div class="flex items-start">
<div class="flex-shrink-0 h-2 w-2 mt-1.5 rounded-full bg-green-500"></div>
<div class="ml-3">
<p class="text-sm font-medium">Bullish FVG detected</p>
<p class="text-xs text-gray-500">BTC/USDT @ $42,356 - 2h ago</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0 h-2 w-2 mt-1.5 rounded-full bg-red-500"></div>
<div class="ml-3">
<p class="text-sm font-medium">Bearish FVG detected</p>
<p class="text-xs text-gray-500">ETH/USDT @ $2,356 - 4h ago</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0 h-2 w-2 mt-1.5 rounded-full bg-green-500"></div>
<div class="ml-3">
<p class="text-sm font-medium">Bullish FVG detected</p>
<p class="text-xs text-gray-500">SOL/USDT @ $98.45 - 6h ago</p>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-white border-t border-gray-200 py-4">
<div class="container mx-auto px-4 text-center text-sm text-gray-500">
<p>FVG Trading Bot v1.0 - Not financial advice. Trading involves risk.</p>
</div>
</footer>
</div>
<script>
// Initialize chart
const ctx = document.getElementById('priceChart').getContext('2d');
const priceChart = new Chart(ctx, {
type: 'line',
data: {
labels: Array.from({length: 24}, (_, i) => `${i}:00`),
datasets: [{
label: 'BTC/USDT',
data: [42100, 42250, 42380, 42210, 42150, 42080, 41950, 41800,
41750, 41890, 42020, 42150, 42280, 42350, 42420, 42380,
42450, 42580, 42640, 42520, 42480, 42350, 42420, 42500],
borderColor: 'rgba(59, 130, 246, 1)',
backgroundColor: 'rgba(59, 130, 246, 0.1)',
borderWidth: 2,
fill: true,
tension: 0.1
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
display: false
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
x: {
grid: {
display: false
}
},
y: {
grid: {
color: 'rgba(0, 0, 0, 0.05)'
}
}
}
}
});
// Bot toggle functionality
const botToggle = document.getElementById('botToggle');
const statusText = document.getElementById('statusText');
botToggle.addEventListener('change', function() {
if(this.checked) {
statusText.textContent = 'Running';
statusText.classList.remove('text-gray-500');
statusText.classList.add('text-green-500');
} else {
statusText.textContent = 'Off';
statusText.classList.remove('text-green-500');
statusText.classList.add('text-gray-500');
}
});
// Simulate FVG detection (in a real app this would come from WebSocket)
setInterval(() => {
const now = new Date();
const hours = now.getHours();
const minutes = now.getMinutes().toString().padStart(2, '0');
// Add random FVG signals for demo
if (Math.random() > 0.7) {
const signalsContainer = document.querySelector('.p-4.space-y-3');
const isBullish = Math.random() > 0.5;
const newSignal = document.createElement('div');
newSignal.className = 'flex items-start';
newSignal.innerHTML = `
<div class="flex-shrink-0 h-2 w-2 mt-1.5 rounded-full ${isBullish ? 'bg-green-500' : 'bg-red-500'}"></div>
<div class="ml-3">
<p class="text-sm font-medium">${isBullish ? 'Bullish' : 'Bearish'} FVG detected</p>
<p class="text-xs text-gray-500">BTC/USDT @ $${(42500 + Math.random() * 500).toFixed(2)} - ${hours}:${minutes}</p>
</div>
`;
signalsContainer.prepend(newSignal);
// Keep only last 3 signals
if (signalsContainer.children.length > 3) {
signalsContainer.removeChild(signalsContainer.lastChild);
}
}
}, 10000);
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=katote/teko-space" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>