|
|
<!DOCTYPE html> |
|
|
<html lang="en"> |
|
|
<head> |
|
|
<meta charset="UTF-8"> |
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
|
<title>Trading View - MetaTrader Command Center</title> |
|
|
<link rel="icon" type="image/x-icon" href="/static/favicon.ico"> |
|
|
<script src="https://cdn.tailwindcss.com"></script> |
|
|
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> |
|
|
<script src="https://unpkg.com/feather-icons"></script> |
|
|
<script> |
|
|
tailwind.config = { |
|
|
darkMode: 'class', |
|
|
theme: { |
|
|
extend: { |
|
|
colors: { |
|
|
primary: { |
|
|
50: '#f0f9ff', |
|
|
100: '#e0f2fe', |
|
|
200: '#bae6fd', |
|
|
300: '#7dd3fc', |
|
|
400: '#38bdf8', |
|
|
500: '#0ea5e9', |
|
|
600: '#0284c7', |
|
|
700: '#0369a1', |
|
|
800: '#075985', |
|
|
900: '#0c4a6e', |
|
|
}, |
|
|
secondary: { |
|
|
50: '#fdf2f8', |
|
|
100: '#fce7f3', |
|
|
200: '#fbcfe8', |
|
|
300: '#f9a8d4', |
|
|
400: '#f472b6', |
|
|
500: '#ec4899', |
|
|
600: '#db2777', |
|
|
700: '#be185d', |
|
|
800: '#9d174d', |
|
|
900: '#831843', |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
<style> |
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); |
|
|
body { |
|
|
font-family: 'Inter', sans-serif; |
|
|
background-color: #0f172a; |
|
|
color: #e2e8f0; |
|
|
} |
|
|
.glass-effect { |
|
|
background: rgba(30, 41, 59, 0.7); |
|
|
backdrop-filter: blur(10px); |
|
|
border: 1px solid rgba(148, 163, 184, 0.2); |
|
|
} |
|
|
.chart-placeholder { |
|
|
background: linear-gradient(45deg, #1e293b, #334155); |
|
|
border-radius: 0.5rem; |
|
|
height: 500px; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
justify-content: center; |
|
|
color: #94a3b8; |
|
|
} |
|
|
.order-form { |
|
|
transition: all 0.3s ease; |
|
|
} |
|
|
.active-tab { |
|
|
border-bottom: 2px solid #0ea5e9; |
|
|
color: #0ea5e9; |
|
|
} |
|
|
|
|
|
.mobile-menu { |
|
|
display: none; |
|
|
} |
|
|
@media (max-width: 768px) { |
|
|
.desktop-menu { |
|
|
display: none; |
|
|
} |
|
|
.mobile-menu { |
|
|
display: block; |
|
|
} |
|
|
.mobile-menu-content { |
|
|
max-height: 0; |
|
|
overflow: hidden; |
|
|
transition: max-height 0.3s ease-out; |
|
|
} |
|
|
.mobile-menu-content.open { |
|
|
max-height: 500px; |
|
|
transition: max-height 0.5s ease-in; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</head> |
|
|
<body class="bg-slate-900 text-slate-100 min-h-screen"> |
|
|
|
|
|
<div class="flex flex-col md:flex-row min-h-screen"> |
|
|
|
|
|
<div class="w-full md:w-64 glass-effect p-4 flex flex-col"> |
|
|
<div class="mb-8"> |
|
|
<h1 class="text-2xl font-bold text-primary-400 flex items-center"> |
|
|
<i data-feather="activity" class="mr-2"></i> |
|
|
MT5 Command |
|
|
</h1> |
|
|
<p class="text-xs text-slate-400 mt-1">Trading Control Panel</p> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="mobile-menu mb-4"> |
|
|
<button id="mobile-menu-toggle" class="w-full flex justify-between items-center p-3 rounded-lg bg-slate-800 hover:bg-slate-700"> |
|
|
<span>Menu</span> |
|
|
<i data-feather="menu" class="w-5 h-5"></i> |
|
|
</button> |
|
|
<div id="mobile-menu-content" class="mobile-menu-content bg-slate-800 rounded-lg mt-2"> |
|
|
<ul class="py-2"> |
|
|
<li> |
|
|
<a href="index.html" class="flex items-center p-3 rounded-lg hover:bg-slate-700"> |
|
|
<i data-feather="home" class="mr-3 w-5 h-5"></i> |
|
|
<span>Dashboard</span> |
|
|
</a> |
|
|
</li> |
|
|
<li> |
|
|
<a href="trading-view.html" class="flex items-center p-3 rounded-lg bg-primary-600 text-white"> |
|
|
<i data-feather="bar-chart-2" class="mr-3 w-5 h-5"></i> |
|
|
<span>Trading View</span> |
|
|
</a> |
|
|
</li> |
|
|
<li> |
|
|
<a href="experts.html" class="flex items-center p-3 rounded-lg hover:bg-slate-700"> |
|
|
<i data-feather="settings" class="mr-3 w-5 h-5"></i> |
|
|
<span>Expert Advisors</span> |
|
|
</a> |
|
|
</li> |
|
|
<li> |
|
|
<a href="calculator.html" class="flex items-center p-3 rounded-lg hover:bg-slate-700"> |
|
|
<i data-feather="calculator" class="mr-3 w-5 h-5"></i> |
|
|
<span>Position Calculator</span> |
|
|
</a> |
|
|
</li> |
|
|
<li> |
|
|
<a href="strategies.html" class="flex items-center p-3 rounded-lg hover:bg-slate-700"> |
|
|
<i data-feather="layers" class="mr-3 w-5 h-5"></i> |
|
|
<span>Strategies</span> |
|
|
</a> |
|
|
</li> |
|
|
<li> |
|
|
<a href="risk-management.html" class="flex items-center p-3 rounded-lg hover:bg-slate-700"> |
|
|
<i data-feather="shield" class="mr-3 w-5 h-5"></i> |
|
|
<span>Risk Management</span> |
|
|
</a> |
|
|
</li> |
|
|
<li> |
|
|
<a href="reports.html" class="flex items-center p-3 rounded-lg hover:bg-slate-700"> |
|
|
<i data-feather="file-text" class="mr-3 w-5 h-5"></i> |
|
|
<span>Reports</span> |
|
|
</a> |
|
|
</li> |
|
|
<li> |
|
|
<a href="account-connection.html" class="flex items-center p-3 rounded-lg hover:bg-slate-700"> |
|
|
<i data-feather="link" class="mr-3 w-5 h-5"></i> |
|
|
<span>Account Connection</span> |
|
|
</a> |
|
|
</li> |
|
|
</ul> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<nav class="flex-1 desktop-menu"> |
|
|
<ul class="space-y-2"> |
|
|
<li> |
|
|
<a href="index.html" class="flex items-center p-3 rounded-lg hover:bg-slate-800"> |
|
|
<i data-feather="home" class="mr-3"></i> |
|
|
Dashboard |
|
|
</a> |
|
|
</li> |
|
|
<li> |
|
|
<a href="trading-view.html" class="flex items-center p-3 rounded-lg bg-primary-600 text-white"> |
|
|
<i data-feather="bar-chart-2" class="mr-3"></i> |
|
|
Trading View |
|
|
</a> |
|
|
</li> |
|
|
<li> |
|
|
<a href="experts.html" class="flex items-center p-3 rounded-lg hover:bg-slate-800"> |
|
|
<i data-feather="settings" class="mr-3"></i> |
|
|
Expert Advisors |
|
|
</a> |
|
|
</li> |
|
|
<li> |
|
|
<a href="calculator.html" class="flex items-center p-3 rounded-lg hover:bg-slate-800"> |
|
|
<i data-feather="calculator" class="mr-3"></i> |
|
|
Position Calculator |
|
|
</a> |
|
|
</li> |
|
|
<li> |
|
|
<a href="strategies.html" class="flex items-center p-3 rounded-lg hover:bg-slate-800"> |
|
|
<i data-feather="layers" class="mr-3"></i> |
|
|
Strategies |
|
|
</a> |
|
|
</li> |
|
|
<li> |
|
|
<a href="risk-management.html" class="flex items-center p-3 rounded-lg hover:bg-slate-800"> |
|
|
<i data-feather="shield" class="mr-3"></i> |
|
|
Risk Management |
|
|
</a> |
|
|
</li> |
|
|
<li> |
|
|
<a href="reports.html" class="flex items-center p-3 rounded-lg hover:bg-slate-800"> |
|
|
<i data-feather="file-text" class="mr-3"></i> |
|
|
Reports |
|
|
</a> |
|
|
</li> |
|
|
<li> |
|
|
<a href="account-connection.html" class="flex items-center p-3 rounded-lg hover:bg-slate-800"> |
|
|
<i data-feather="link" class="mr-3"></i> |
|
|
Account Connection |
|
|
</a> |
|
|
</li> |
|
|
</ul> |
|
|
</nav> |
|
|
|
|
|
<div class="mt-auto pt-4 border-t border-slate-700"> |
|
|
<div class="flex items-center"> |
|
|
<div class="bg-slate-700 rounded-full p-2 mr-3"> |
|
|
<i data-feather="user" class="w-5 h-5"></i> |
|
|
</div> |
|
|
<div> |
|
|
<p class="font-medium">Trader Pro</p> |
|
|
<p class="text-xs text-slate-400">Active Session</p> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="flex-1 overflow-auto"> |
|
|
|
|
|
<header class="glass-effect p-4 flex justify-between items-center"> |
|
|
<div> |
|
|
<h2 class="text-xl font-bold">Trading View</h2> |
|
|
<p class="text-sm text-slate-400">Advanced charting and order execution</p> |
|
|
</div> |
|
|
<div class="flex items-center space-x-4"> |
|
|
<div class="flex items-center bg-slate-800 rounded-lg"> |
|
|
<button class="px-4 py-2 rounded-l-lg active-tab">Chart</button> |
|
|
<button class="px-4 py-2">Orders</button> |
|
|
<button class="px-4 py-2 rounded-r-lg">Positions</button> |
|
|
</div> |
|
|
<div class="relative"> |
|
|
<input type="text" placeholder="Search symbols..." class="bg-slate-800 rounded-lg py-2 px-4 pl-10 focus:outline-none focus:ring-2 focus:ring-primary-500"> |
|
|
<i data-feather="search" class="absolute left-3 top-2.5 w-4 h-4 text-slate-500"></i> |
|
|
</div> |
|
|
</div> |
|
|
</header> |
|
|
|
|
|
<div class="p-4 grid grid-cols-1 lg:grid-cols-3 gap-4"> |
|
|
|
|
|
<div class="lg:col-span-2"> |
|
|
<div class="glass-effect rounded-xl p-4"> |
|
|
<div class="flex justify-between items-center mb-4"> |
|
|
<div> |
|
|
<h3 class="font-bold">EURUSD H1</h3> |
|
|
<p class="text-sm text-slate-400">1.0842 <span class="text-green-500">+0.24%</span></p> |
|
|
</div> |
|
|
<div class="flex space-x-2"> |
|
|
<button class="text-xs bg-slate-800 hover:bg-slate-700 px-3 py-1 rounded">1M</button> |
|
|
<button class="text-xs bg-slate-800 hover:bg-slate-700 px-3 py-1 rounded">5M</button> |
|
|
<button class="text-xs bg-slate-800 hover:bg-slate-700 px-3 py-1 rounded">15M</button> |
|
|
<button class="text-xs bg-primary-600 px-3 py-1 rounded">1H</button> |
|
|
<button class="text-xs bg-slate-800 hover:bg-slate-700 px-3 py-1 rounded">4H</button> |
|
|
<button class="text-xs bg-slate-800 hover:bg-slate-700 px-3 py-1 rounded">D</button> |
|
|
</div> |
|
|
</div> |
|
|
<div class="chart-placeholder"> |
|
|
<div class="text-center"> |
|
|
<i data-feather="bar-chart-2" class="w-12 h-12 mx-auto mb-2"></i> |
|
|
<p>Advanced Chart Visualization</p> |
|
|
<p class="text-sm text-slate-500 mt-2">Interactive price chart with technical indicators</p> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="order-form glass-effect rounded-xl p-4"> |
|
|
<h3 class="font-bold mb-4">Order Execution</h3> |
|
|
|
|
|
|
|
|
<div class="mb-6"> |
|
|
<div class="flex border-b border-slate-700 mb-4"> |
|
|
<button class="pb-2 mr-4 active-tab">Market</button> |
|
|
<button class="pb-2 mr-4">Pending</button> |
|
|
</div> |
|
|
|
|
|
<div class="space-y-4"> |
|
|
<div> |
|
|
<label class="text-sm text-slate-400">Symbol</label> |
|
|
<select class="w-full bg-slate-800 rounded-lg p-2 mt-1"> |
|
|
<option>EURUSD</option> |
|
|
<option>GBPUSD</option> |
|
|
<option>USDJPY</option> |
|
|
<option>AUDUSD</option> |
|
|
<option>NZDUSD</option> |
|
|
</select> |
|
|
</div> |
|
|
|
|
|
<div> |
|
|
<label class="text-sm text-slate-400">Volume</label> |
|
|
<input type="number" value="0.1" step="0.01" class="w-full bg-slate-800 rounded-lg p-2 mt-1"> |
|
|
</div> |
|
|
|
|
|
<div class="grid grid-cols-2 gap-3"> |
|
|
<div> |
|
|
<label class="text-sm text-slate-400">SL (Pips)</label> |
|
|
<input type="number" placeholder="50" class="w-full bg-slate-800 rounded-lg p-2 mt-1"> |
|
|
</div> |
|
|
<div> |
|
|
<label class="text-sm text-slate-400">TP (Pips)</label> |
|
|
<input type="number" placeholder="100" class="w-full bg-slate-800 rounded-lg p-2 mt-1"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="flex space-x-3 pt-2"> |
|
|
<button class="flex-1 bg-green-600 hover:bg-green-700 py-3 rounded-lg font-medium"> |
|
|
BUY |
|
|
</button> |
|
|
<button class="flex-1 bg-red-600 hover:bg-red-700 py-3 rounded-lg font-medium"> |
|
|
SELL |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div> |
|
|
<h4 class="font-medium mb-3">Protection Tools</h4> |
|
|
<div class="grid grid-cols-2 gap-3"> |
|
|
<button class="bg-slate-800 hover:bg-slate-700 py-2 rounded-lg text-sm"> |
|
|
Breakeven |
|
|
</button> |
|
|
<button class="bg-slate-800 hover:bg-slate-700 py-2 rounded-lg text-sm"> |
|
|
Trailing Stop |
|
|
</button> |
|
|
<button class="bg-slate-800 hover:bg-slate-700 py-2 rounded-lg text-sm"> |
|
|
Partial Close |
|
|
</button> |
|
|
<button class="bg-slate-800 hover:bg-slate-700 py-2 rounded-lg text-sm"> |
|
|
OCO Orders |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="p-4 grid grid-cols-1 lg:grid-cols-2 gap-4"> |
|
|
|
|
|
<div class="glass-effect rounded-xl p-4"> |
|
|
<h3 class="font-bold mb-4">Market Depth</h3> |
|
|
<div class="overflow-x-auto"> |
|
|
<table class="w-full text-sm"> |
|
|
<thead> |
|
|
<tr class="text-left text-slate-400"> |
|
|
<th class="pb-2">Price</th> |
|
|
<th class="pb-2">Volume</th> |
|
|
<th class="pb-2">Cumulative</th> |
|
|
</tr> |
|
|
</thead> |
|
|
<tbody> |
|
|
<tr> |
|
|
<td class="py-1 text-red-500">1.0845</td> |
|
|
<td class="py-1">125.5K</td> |
|
|
<td class="py-1">1.2M</td> |
|
|
</tr> |
|
|
<tr> |
|
|
<td class="py-1 text-red-500">1.0844</td> |
|
|
<td class="py-1">87.3K</td> |
|
|
<td class="py-1">1.07M</td> |
|
|
</tr> |
|
|
<tr> |
|
|
<td class="py-1 text-red-500">1.0843</td> |
|
|
<td class="py-1">156.7K</td> |
|
|
<td class="py-1">985K</td> |
|
|
</tr> |
|
|
<tr class="bg-slate-800"> |
|
|
<td class="py-2 font-medium">1.0842</td> |
|
|
<td class="py-2">-</td> |
|
|
<td class="py-2">-</td> |
|
|
</tr> |
|
|
<tr> |
|
|
<td class="py-1 text-green-500">1.0841</td> |
|
|
<td class="py-1">98.4K</td> |
|
|
<td class="py-1">1.1M</td> |
|
|
</tr> |
|
|
<tr> |
|
|
<td class="py-1 text-green-500">1.0840</td> |
|
|
<td class="py-1">142.6K</td> |
|
|
<td class="py-1">968K</td> |
|
|
</tr> |
|
|
<tr> |
|
|
<td class="py-1 text-green-500">1.0839</td> |
|
|
<td class="py-1">76.2K</td> |
|
|
<td class="py-1">825K</td> |
|
|
</tr> |
|
|
</tbody> |
|
|
</table> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="glass-effect rounded-xl p-4"> |
|
|
<div class="flex justify-between items-center mb-4"> |
|
|
<h3 class="font-bold">Recent Orders</h3> |
|
|
<button class="text-sm text-primary-400">History</button> |
|
|
</div> |
|
|
<div class="overflow-x-auto"> |
|
|
<table class="w-full text-sm"> |
|
|
<thead> |
|
|
<tr class="text-left text-slate-400"> |
|
|
<th class="pb-2">Symbol</th> |
|
|
<th class="pb-2">Type</th> |
|
|
<th class="pb-2">Volume</th> |
|
|
<th class="pb-2">Price</th> |
|
|
<th class="pb-2">Time</th> |
|
|
</tr> |
|
|
</thead> |
|
|
<tbody> |
|
|
<tr class="border-b border-slate-800"> |
|
|
<td class="py-2">EURUSD</td> |
|
|
<td class="py-2"><span class="text-green-500">BUY</span></td> |
|
|
<td class="py-2">0.25</td> |
|
|
<td class="py-2">1.0842</td> |
|
|
<td class="py-2">10:24:15</td> |
|
|
</tr> |
|
|
<tr class="border-b border-slate-800"> |
|
|
<td class="py-2">GBPUSD</td> |
|
|
<td class="py-2"><span class="text-red-500">SELL</span></td> |
|
|
<td class="py-2">0.15</td> |
|
|
<td class="py-2">1.2678</td> |
|
|
<td class="py-2">09:56:32</td> |
|
|
</tr> |
|
|
<tr class="border-b border-slate-800"> |
|
|
<td class="py-2">USDJPY</td> |
|
|
<td class="py-2"><span class="text-green-500">BUY</span></td> |
|
|
<td class="py-2">0.30</td> |
|
|
<td class="py-2">154.25</td> |
|
|
<td class="py-2">09:32:47</td> |
|
|
</tr> |
|
|
<tr> |
|
|
<td class="py-2">AUDUSD</td> |
|
|
<td class="py-2"><span class="text-red-500">SELL</span></td> |
|
|
<td class="py-2">0.20</td> |
|
|
<td class="py-2">0.6543</td> |
|
|
<td class="py-2">09:15:22</td> |
|
|
</tr> |
|
|
</tbody> |
|
|
</table> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<script> |
|
|
|
|
|
feather.replace(); |
|
|
|
|
|
|
|
|
document.addEventListener('DOMContentLoaded', function() { |
|
|
const menuToggle = document.getElementById('mobile-menu-toggle'); |
|
|
const menuContent = document.getElementById('mobile-menu-content'); |
|
|
|
|
|
if (menuToggle && menuContent) { |
|
|
menuToggle.addEventListener('click', function() { |
|
|
const icon = this.querySelector('[data-feather]'); |
|
|
if (menuContent.classList.contains('open')) { |
|
|
menuContent.classList.remove('open'); |
|
|
icon.setAttribute('data-feather', 'menu'); |
|
|
} else { |
|
|
menuContent.classList.add('open'); |
|
|
icon.setAttribute('data-feather', 'x'); |
|
|
} |
|
|
feather.replace(); |
|
|
}); |
|
|
} |
|
|
}); |
|
|
</script> |
|
|
</body> |
|
|
</html> |
|
|
|