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
 
 
 
 
 
 
 
 
 
cef7f9e
 
59757fb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Strategies - 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 src="https://cdn.jsdelivr.net/npm/chart.js"></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);
        }
        .strategy-card {
            transition: all 0.3s ease;
        }
        .strategy-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
        }
        .performance-metric {
            border-left: 3px solid #0ea5e9;
        }
        /* Mobile menu styles */
        .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">
    <!-- Main Container -->
    <div class="flex flex-col md:flex-row min-h-screen">
        <!-- Sidebar -->
        <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>

            <!-- Mobile Menu Toggle -->
            <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 hover:bg-slate-700">
                                <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 bg-primary-600 text-white">
                                <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>

            <!-- Desktop Menu -->
            <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 hover:bg-slate-800">
                            <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 bg-primary-600 text-white">
                            <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>

        <!-- Main Content -->
        <div class="flex-1 overflow-auto">
            <!-- Header -->
            <header class="glass-effect p-4 flex justify-between items-center">
                <div>
                    <h2 class="text-xl font-bold">Trading Strategies</h2>
                    <p class="text-sm text-slate-400">Analyze and optimize your trading strategies</p>
                </div>
                <div class="flex items-center space-x-4">
                    <button class="bg-primary-600 hover:bg-primary-700 px-4 py-2 rounded-lg flex items-center">
                        <i data-feather="plus" class="mr-2"></i>
                        New Strategy
                    </button>
                </div>
            </header>
<!-- Strategy Overview -->
            <div class="p-4 grid grid-cols-1 md:grid-cols-4 gap-4">
                <div class="glass-effect rounded-xl p-4">
                    <div class="flex justify-between items-start">
                        <div>
                            <p class="text-slate-400 text-sm">Active Strategies</p>
                            <p class="text-2xl font-bold">8</p>
                        </div>
                        <div class="bg-blue-500/20 p-2 rounded-lg">
                            <i data-feather="layers" class="text-blue-500"></i>
                        </div>
                    </div>
                </div>

                <div class="glass-effect rounded-xl p-4">
                    <div class="flex justify-between items-start">
                        <div>
                            <p class="text-slate-400 text-sm">Win Rate Avg</p>
                            <p class="text-2xl font-bold">64.2%</p>
                        </div>
                        <div class="bg-green-500/20 p-2 rounded-lg">
                            <i data-feather="trending-up" class="text-green-500"></i>
                        </div>
                    </div>
                </div>

                <div class="glass-effect rounded-xl p-4">
                    <div class="flex justify-between items-start">
                        <div>
                            <p class="text-slate-400 text-sm">Avg RR Ratio</p>
                            <p class="text-2xl font-bold">1.85</p>
                        </div>
                        <div class="bg-purple-500/20 p-2 rounded-lg">
                            <i data-feather="bar-chart-2" class="text-purple-500"></i>
                        </div>
                    </div>
                </div>

                <div class="glass-effect rounded-xl p-4">
                    <div class="flex justify-between items-start">
                        <div>
                            <p class="text-slate-400 text-sm">Monthly Return</p>
                            <p class="text-2xl font-bold">+3.7%</p>
                        </div>
                        <div class="bg-yellow-500/20 p-2 rounded-lg">
                            <i data-feather="dollar-sign" class="text-yellow-500"></i>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Strategy List -->
            <div class="p-4">
                <div class="glass-effect rounded-xl p-4">
                    <div class="flex justify-between items-center mb-4">
                        <h3 class="font-bold">Strategy Library</h3>
                        <div class="relative">
                            <input type="text" placeholder="Search strategies..." 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>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
                        <!-- Strategy Card 1 -->
                        <div class="strategy-card glass-effect rounded-xl p-4">
                            <div class="flex justify-between items-start">
                                <div>
                                    <h4 class="font-bold">Scalping Master</h4>
                                    <p class="text-sm text-slate-400">High-frequency intraday trades</p>
                                </div>
                                <span class="bg-green-500/20 text-green-500 text-xs px-2 py-1 rounded">Active</span>
                            </div>
                            <div class="mt-4 space-y-2">
                                <div class="flex justify-between text-sm">
                                    <span>Win Rate</span>
                                    <span>72%</span>
                                </div>
                                <div class="flex justify-between text-sm">
                                    <span>Reward:Risk</span>
                                    <span>1.2:1</span>
                                </div>
                                <div class="flex justify-between text-sm">
                                    <span>Avg. Pips</span>
                                    <span>12.4</span>
                                </div>
                            </div>
                            <div class="mt-4">
                                <div class="h-2 bg-slate-700 rounded-full overflow-hidden">
                                    <div class="h-full bg-green-500" style="width: 72%"></div>
                                </div>
                            </div>
                            <div class="flex space-x-2 mt-4">
                                <button class="flex-1 bg-slate-800 hover:bg-slate-700 py-2 rounded-lg text-sm">
                                    Details
                                </button>
                                <button class="flex-1 bg-primary-600 hover:bg-primary-700 py-2 rounded-lg text-sm">
                                    Optimize
                                </button>
                            </div>
                        </div>
                        
                        <!-- Strategy Card 2 -->
                        <div class="strategy-card glass-effect rounded-xl p-4">
                            <div class="flex justify-between items-start">
                                <div>
                                    <h4 class="font-bold">Trend Rider</h4>
                                    <p class="text-sm text-slate-400">Medium-term trend following</p>
                                </div>
                                <span class="bg-green-500/20 text-green-500 text-xs px-2 py-1 rounded">Active</span>
                            </div>
                            <div class="mt-4 space-y-2">
                                <div class="flex justify-between text-sm">
                                    <span>Win Rate</span>
                                    <span>65%</span>
                                </div>
                                <div class="flex justify-between text-sm">
                                    <span>Reward:Risk</span>
                                    <span>2.1:1</span>
                                </div>
                                <div class="flex justify-between text-sm">
                                    <span>Avg. Pips</span>
                                    <span>38.7</span>
                                </div>
                            </div>
                            <div class="mt-4">
                                <div class="h-2 bg-slate-700 rounded-full overflow-hidden">
                                    <div class="h-full bg-green-500" style="width: 65%"></div>
                                </div>
                            </div>
                            <div class="flex space-x-2 mt-4">
                                <button class="flex-1 bg-slate-800 hover:bg-slate-700 py-2 rounded-lg text-sm">
                                    Details
                                </button>
                                <button class="flex-1 bg-primary-600 hover:bg-primary-700 py-2 rounded-lg text-sm">
                                    Optimize
                                </button>
                            </div>
                        </div>
                        
                        <!-- Strategy Card 3 -->
                        <div class="strategy-card glass-effect rounded-xl p-4">
                            <div class="flex justify-between items-start">
                                <div>
                                    <h4 class="font-bold">Breakout Hunter</h4>
                                    <p class="text-sm text-slate-400">Volatility breakout strategy</p>
                                </div>
                                <span class="bg-yellow-500/20 text-yellow-500 text-xs px-2 py-1 rounded">Testing</span>
                            </div>
                            <div class="mt-4 space-y-2">
                                <div class="flex justify-between text-sm">
                                    <span>Win Rate</span>
                                    <span>58%</span>
                                </div>
                                <div class="flex justify-between text-sm">
                                    <span>Reward:Risk</span>
                                    <span>1.9:1</span>
                                </div>
                                <div class="flex justify-between text-sm">
                                    <span>Avg. Pips</span>
                                    <span>28.3</span>
                                </div>
                            </div>
                            <div class="mt-4">
                                <div class="h-2 bg-slate-700 rounded-full overflow-hidden">
                                    <div class="h-full bg-yellow-500" style="width: 58%"></div>
                                </div>
                            </div>
                            <div class="flex space-x-2 mt-4">
                                <button class="flex-1 bg-slate-800 hover:bg-slate-700 py-2 rounded-lg text-sm">
                                    Details
                                </button>
                                <button class="flex-1 bg-primary-600 hover:bg-primary-700 py-2 rounded-lg text-sm">
                                    Optimize
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Strategy Performance -->
            <div class="p-4">
                <div class="glass-effect rounded-xl p-4">
                    <h3 class="font-bold mb-4">Strategy Performance Comparison</h3>
                    <div class="h-64 flex items-center justify-center bg-slate-800 rounded-lg">
                        <div class="text-center">
                            <i data-feather="bar-chart-2" class="w-12 h-12 mx-auto mb-2 text-slate-500"></i>
                            <p class="text-slate-500">Performance comparison charts</p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Strategy Metrics -->
            <div class="p-4">
                <div class="glass-effect rounded-xl p-4">
                    <h3 class="font-bold mb-4">Key Performance Metrics</h3>
                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
                        <div class="performance-metric bg-slate-800 rounded-lg p-4 pl-5">
                            <p class="text-slate-400 text-sm">Sharpe Ratio</p>
                            <p class="text-xl font-bold">1.85</p>
                        </div>
                        <div class="performance-metric bg-slate-800 rounded-lg p-4 pl-5">
                            <p class="text-slate-400 text-sm">Max Drawdown</p>
                            <p class="text-xl font-bold">-12.3%</p>
                        </div>
                        <div class="performance-metric bg-slate-800 rounded-lg p-4 pl-5">
                            <p class="text-slate-400 text-sm">Profit Factor</p>
                            <p class="text-xl font-bold">1.92</p>
                        </div>
                        <div class="performance-metric bg-slate-800 rounded-lg p-4 pl-5">
                            <p class="text-slate-400 text-sm">Recovery Factor</p>
                            <p class="text-xl font-bold">2.15</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
        // Initialize Feather Icons
        feather.replace();
        
        // Mobile menu toggle
        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>