diff --git "a/index.html" "b/index.html" --- "a/index.html" +++ "b/index.html" @@ -3,7 +3,7 @@ - QuantumTrade AI - Advanced Trading Dashboard + Quantum Trader Pro - Advanced MT5 Trading Bot - -
- -
-
-
-
- + + +
+
+
+
+ +
+

Quantum Trader Pro

+
+ +
+ +
+
+
+
+
+ Idle +
+ +
+
+ + +
+ + + + +
+ +
+ +
+
+

Account Summary

+
+ Demo Account +
+
+
+
+ Balance + $5,000.00 +
+
+ Equity + $5,120.50 +
+
+ Margin + $250.75 +
+
+ Free Margin + $4,869.75
-
-
- - -
-
- -
- -
-
-

BOT STATUS

- + + +
+
+

Profit/Loss

+
+ Today
-
-
- RUNNING_SINCE: - 12h 45m -
-
- AI_MODEL: - QUANTUMNET_v3.2 +
+
+
+ Today's P/L + +$120.50 +
+
+ Weekly P/L + +$420.75 +
+
+ Monthly P/L + +$1,245.30 +
+
+ Total P/L + +$3,245.30 +
+
+
+ + +
+
+

Performance Metrics

+
+ Stats +
+
+
+
+ Win Rate +
+ 72.5% +
+
+
-
- RISK_LEVEL: -
- - 6/10 +
+
+ Profit Factor + 2.4 +
+
+ Avg. Win/Loss + 1.8 +
+
+ Trades Today + 14 +
+
+
+
+ + +
+ +
+

+ + Trading Controls +

+ +
+
+ +
+ +
+ Lots
-
- LAST_SIGNAL: - - BUY - +
+ +
+
+ +
-
- MARKET_CONDITION: - VOLATILE +
+ +
-
- - -
-

QUICK ACTIONS

+ +
+ + +
+
- - - -
-
- - -
-

PERFORMANCE METRICS

-
-
- TODAY_PROFIT: - +$1,245.67 -
-
- WIN_RATE: - 78.3% -
-
- TOTAL_TRADES: - 1,024 -
-
- AVG_TRADE_TIME: - 12m 34s -
-
+ +
- -
-

AI SIGNALS

-
-
-
- BTC/USDT - BUY +
+

Profit Target

+ +
+ + + + + + + + +
+ + + + +
+ +
+
+

+ + Open Positions +

+ 0 +
+ +
+
+
+ +

No open positions

-
Confidence: 76% • Target: $2,780
-
-
- SOL/USDT - BUY +
+
+ + +
+
+

+ + Watchlist +

+ +
+ +
+
+
+ +

No symbols in watchlist

-
Confidence: 68% • Target: $105.50
- - -
- -
-
-
-
-

TOTAL_BALANCE

-

$24,567.89

-
-
- -
-
-
- - 2.34% - - VS_YESTERDAY -
+ + +
+ +
+
+

+ + Trading Log +

+
-
-
-
-

ACTIVE_TRADES

-

8

+ +
+

Waiting for logs...

+
+
+ + +
+

+ + Market Insights +

+ +
+ +
+
+

FOREX MARKET

+ Neutral
-
- +

Waiting for market direction

+
+ Bias: None + EURUSD, GBPUSD
-
-
-
+ + +
+
+

GOLD (XAUUSD)

+ Neutral +
+

Waiting for market direction

+
+ Bias: None + Wait for breakout
-

65%_OF_MAX_CAPACITY

-
-
-
-
-

24H_PROFIT/LOSS

-

+$1,245.67

+ + +
+
+

CRYPTO MARKET

+ Neutral
-
- +

Waiting for market direction

+
+ Bias: None + BTCUSD, ETHUSD
-
-
- +12_TRADES - -3_TRADES + + +
+
+

MARKET SENTIMENT

+ Neutral
+

Risk appetite normal

-
-
- - -
-
-

BTC/USDT - 1H CHART

-
- - - - -
-
-
- -
-
- -
-
-
-
- - - - - - - -
-
-
- - -
-
- $42,356.78 -
-
+ + +
+
+

TRADING TIP

+
+

Let profits run, cut losses short

-
LIVE_DATA_STREAMING
-
-
- - -
-
-

RECENT_TRADES

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PAIRTYPEPRICEAMOUNTPROFITTIME
BTC/USDT - BUY - $42,356.780.05 BTC+$124.5612:45:23
ETH/USDT - SELL - $2,856.421.2 ETH+$45.7811:30:45
SOL/USDT - BUY - $98.7625 SOL-$12.3410:15:12
ADA/USDT - SELL - $0.4567500 ADA+$23.4509:45:33
- - -
+ }, + + simulateTrade: function(symbol, action) { + if (this.avoidRepeat && this.lastTraded[symbol] && + (new Date() - this.lastTraded[symbol]) < 600000) { + this.log(`Avoiding repeat trade on ${symbol} (10min cooldown)`, 'text-yellow-400'); + return; + } + + const price = action === 'BUY' ? + (this.watchList[symbol]?.lastAsk || 1.0) : + (this.watchList[symbol]?.lastBid || 1.0); + + const lotSize = parseFloat(document.getElementById('lot-size').value) || 0.01; + const slPips = parseInt(document.getElementById('sl-pips').value) || 15; + const tpPips = parseInt(document.getElementById('tp-pips').value) || 25; + + const pipValue = symbol === 'XAUUSD' ? 0.1 : 0.0001; + const sl = action === 'BUY' ? + (price - slPips * pipValue).toFixed(5) : + (price + slPips * pipValue).toFixed(5); + + const tp = action === 'BUY' ? + (price + tpPips * pipValue).toFixed(5) : + (price - tpPips * pipValue).toFixed(5); + + this.log(`${action} ${symbol} at ${price.toFixed(5)} (SL: ${sl}, TP: ${tp})`, 'text-green-400'); + this.lastTraded[symbol] = new Date(); + this.tradeCount++; + + // Simulate trade execution + const ticket = Date.now(); + this.activeTrades[ticket] = { + symbol: symbol, + direction: action, + entryPrice: price, + sl: parseFloat(sl), + tp: parseFloat(tp), + volume: lotSize, + time: new Date() + }; + + this.simulatePositions(); + this.playSound(600, 100); + }, + + simulateAccountInfo: function() { + // Simulate account balance changes + const baseBalance = 5000; + const balanceChange = (Math.random() * 100 - 50); + const balance = baseBalance + balanceChange; + const equity = balance + (Math.random() * 500 - 250); + const margin = 250 + (Math.random() * 50 - 25); + const freeMargin = equity - margin; + const profit = equity - baseBalance; + + document.getElementById('balance').textContent = `$${baseBalance.toFixed(2)}`; + document.getElementById('equity').textContent = `$${equity.toFixed(2)}`; + document.getElementById('margin').textContent = `$${margin.toFixed(2)}`; + document.getElementById('free-margin').textContent = `$${freeMargin.toFixed(2)}`; + + // Update P/L displays + const dailyPL = 120.50 + (Math.random() * 50 - 25); + const weeklyPL = 420.75 + (Math.random() * 100 - 50); + const monthlyPL = 1245.30 + (Math.random() * 200 - 100); + const totalPL = 3245.30 + (Math.random() * 300 - 150); + + document.getElementById('daily-pl').textContent = `${dailyPL >= 0 ? '+' : ''}$${dailyPL.toFixed(2)}`; + document.getElementById('daily-pl').className = dailyPL >= 0 ? 'font-medium text-success' : 'font-medium text-danger'; + + document.getElementById('weekly-pl').textContent = `${weeklyPL >= 0 ? '+' : ''}$${weeklyPL.toFixed(2)}`; + document.getElementById('weekly-pl').className = weeklyPL >= 0 ? 'font-medium text-success' : 'font-medium text-danger'; + + document.getElementById('monthly-pl').textContent = `${monthlyPL >= 0 ? '+' : ''}$${monthlyPL.toFixed(2)}`; + document.getElementById('monthly-pl').className = monthlyPL >= 0 ? 'font-medium text-success' : 'font-medium text-danger'; + + document.getElementById('total-pl').textContent = `${totalPL >= 0 ? '+' : ''}$${totalPL.toFixed(2)}`; + document.getElementById('total-pl').className = totalPL >= 0 ? 'font-medium text-success' : 'font-medium text-danger'; + + // Check profit target + if (profit >= this.profitTarget) { + this.log(`Profit target $${this.profitTarget.toFixed(2)} reached! Current P/L: $${profit.toFixed(2)}`, 'text-green-400'); + this.playSound(1000, 500); + } + }, + + simulatePositions: function() { + const container = document.getElementById('positions-container'); + const countElement = document.getElementById('positions-count'); + + if (Object.keys(this.activeTrades).length === 0) { + container.innerHTML = ` +
+
+ +

No open positions

+
+
+ `; + countElement.textContent = '0'; + return; + } + + let html = ''; + let totalProfit = 0; + + Object.keys(this.activeTrades).forEach(ticket => { + const trade = this.activeTrades[ticket]; + const profit = (Math.random() * 100 - 30).toFixed(2); + totalProfit += parseFloat(profit); + + const timeStr = trade.time.toLocaleTimeString(); + const profitClass = profit >= 0 ? 'text-success' : 'text-danger'; + const directionClass = trade.direction === 'BUY' ? 'text-success' : 'text-danger'; + + html += ` +
+
+
+ ${trade.symbol} + ${trade.direction} +
+ $${profit} +
+
+
+
Entry
+
${trade.entryPrice.toFixed(5)}
+
+
+
Volume
+
${trade.volume} lots
+
+
+
SL
+
${trade.sl.toFixed(5)}
+
+
+
TP
+
${trade.tp.toFixed(5)}
+
+
+
+ Opened: ${timeStr} +
+
+ `; + }); + + // Add total summary + html += ` +
+
+
Total Positions
+
${Object.keys(this.activeTrades).length}
+
+
+
Total P/L
+
+ ${totalProfit >= 0 ? '+' : ''}$${totalProfit.toFixed(2)} +
+
+
+ `; + + container.innerHTML = html; + countElement.textContent = Object.keys(this.activeTrades).length; + }, + + updateMarketAnalysis: function() { + // Simulate market analysis updates + const trends = ["Bullish", "Bearish", "Neutral"]; + const biases = ["Buy", "Sell", "Neutral"]; + + // Forex updates + this.marketUpdates.Forex.trend = trends[Math.floor(Math.random() * trends.length)]; + this.marketUpdates.Forex.bias = this.marketUpdates.Forex.trend === "Bullish" ? "Buy" : + this.marketUpdates.Forex.trend === "Bearish" ? "Sell" : "Neutral"; + + const forexComments = [ + "USD weakening on Fed rate cut expectations", + "EUR gaining strength after positive PMI data", + "Markets consolidating ahead of NFP report", + "Risk-on sentiment supporting commodity currencies", + "Safe-haven flows boosting JPY and CHF" + ]; + this.marketUpdates.Forex.comment = forexComments[Math.floor(Math.random() * forexComments.length)]; + + // Gold updates + this.marketUpdates.Gold.trend = trends[Math.floor(Math.random() * trends.length)]; + this.marketUpdates.Gold.bias = this.marketUpdates.Gold.trend === "Bullish" ? "Buy" : + this.marketUpdates.Gold.trend === "Bearish" ? "Sell" : "Neutral"; + + const goldComments = [ + "Gold supported by geopolitical tensions", + "Real yields pressuring gold prices", + "Central bank buying supporting gold", + "Inflation hedge demand increasing", + "Range-bound between key support/resistance levels" + ]; + this.marketUpdates.Gold.comment = goldComments[Math.floor(Math.random() * goldComments.length)]; + + // Crypto updates + this.marketUpdates.Crypto.trend = trends[Math.floor(Math.random() * trends.length)]; + this.marketUpdates.Crypto.bias = this.marketUpdates.Crypto.trend === "Bullish" ? "Buy" : + this.marketUpdates.Crypto.trend === "Bearish" ? "Sell" : "Neutral"; + + const cryptoComments = [ + "BTC ETF inflows supporting prices", + "Altcoin season may be starting", + "Regulatory concerns weighing on market", + "Institutional adoption increasing", + "Volatility expected with upcoming events" + ]; + this.marketUpdates.Crypto.comment = cryptoComments[Math.floor(Math.random() * cryptoComments.length)]; + + // Update UI + this.updateMarketUpdatesDisplay(); + }, + + updateMarketUpdatesDisplay: function() { + // Forex + const forexTrend = this.marketUpdates.Forex.trend; + document.getElementById('forex-trend').textContent = forexTrend; + document.getElementById('forex-trend').className = `text-xs px-2 py-1 rounded-full ${ + forexTrend === "Bullish" ? "bg-green-900/30 text-green-300" : + forexTrend === "Bearish" ? "bg-red-900/30 text-red-300" : "bg-gray-600 text-gray-300" + }`; + + const forexBias = this.marketUpdates.Forex.bias; + document.getElementById('forex-bias').textContent = `Bias: ${forexBias}`; + document.getElementById('forex-comment').textContent = this.marketUpdates.Forex.comment; + + // Set recommendations based on trend + if (forexTrend === "Bullish") { + document.getElementById('forex-recommendations').textContent = "EURUSD, GBPUSD, AUDUSD"; + } else if (forexTrend === "Bearish") { + document.getElementById('forex-recommendations').textContent = "USDJPY, USDCHF, USDCAD"; + } else { + document.getElementById('forex-recommendations').textContent = "EURUSD, USDJPY, AUDUSD"; + } + + // Gold + const goldTrend = this.marketUpdates.Gold.trend; + document.getElementById('gold-trend').textContent = goldTrend; + document.getElementById('gold-trend').className = `text-xs px-2 py-1 rounded-full ${ + goldTrend === "Bullish" ? "bg-green-900/30 text-green-300" : + goldTrend === "Bearish" ? "bg-red-900/30 text-red-300" : "bg-gray-600 text-gray-300" + }`; + + const goldBias = this.marketUpdates.Gold.bias; + document.getElementById('gold-bias').textContent = `Bias: ${goldBias}`; + document.getElementById('gold-comment').textContent = this.marketUpdates.Gold.comment; + + if (goldTrend === "Bullish") { + document.getElementById('gold-recommendation').textContent = "Look for buying opportunities"; + document.getElementById('gold-recommendation').className = "text-green-300 text-xs"; + } else if (goldTrend === "Bearish") { + document.getElementById('gold-recommendation').textContent = "Consider short positions"; + document.getElementById('gold-recommendation').className = "text-red-300 text-xs"; + } else { + document.getElementById('gold-recommendation').textContent = "Wait for breakout"; + document.getElementById('gold-recommendation').className = "text-yellow-300 text-xs"; + } + + // Crypto + const cryptoTrend = this.marketUpdates.Crypto.trend; + document.getElementById('crypto-trend').textContent = cryptoTrend; + document.getElementById('crypto-trend').className = `text-xs px-2 py-1 rounded-full ${ + cryptoTrend === "Bullish" ? "bg-green-900/30 text-green-300" : + cryptoTrend === "Bearish" ? "bg-red-900/30 text-red-300" : "bg-gray-600 text-gray-300" + }`; + + const cryptoBias = this.marketUpdates.Crypto.bias; + document.getElementById('crypto-bias').textContent = `Bias: ${cryptoBias}`; + document.getElementById('crypto-comment').textContent = this.marketUpdates.Crypto.comment; + + if (cryptoTrend === "Bullish") { + document.getElementById('crypto-recommendations').textContent = "BTCUSD, ETHUSD"; + document.getElementById('crypto-recommendations').className = "text-green-300 text-xs"; + } else if (cryptoTrend === "Bearish") { + document.getElementById('crypto-recommendations').textContent = "Consider shorts"; + document.getElementById('crypto-recommendations').className = "text-red-300 text-xs"; + } else { + document.getElementById('crypto-recommendations').textContent = "BTCUSD, ETHUSD"; + document.getElementById('crypto-recommendations').className = "text-yellow-300 text-xs"; + } + + // Market sentiment + const bullishCount = [this.marketUpdates.Forex.trend, this.marketUpdates.Gold.trend, this.marketUpdates.Crypto.trend] + .filter(t => t === "Bullish").length; + const bearishCount = [this.marketUpdates.Forex.trend, this.marketUpdates.Gold.trend, this.marketUpdates.Crypto.trend] + .filter(t => t === "Bearish").length; + + let sentiment, sentimentColor, sentimentComment; + if (bullishCount > bearishCount) { + sentiment = "Bullish"; + sentimentColor = "bg-green-900/30 text-green-300"; + sentimentComment = "Risk-on environment, favorable for longs"; + } else if (bearishCount > bullishCount) { + sentiment = "Bearish"; + sentimentColor = "bg-red-900/30 text-red-300"; + sentimentComment = "Risk-off environment, consider defensive positions"; + } else { + sentiment = "Neutral"; + sentimentColor = "bg-gray-600 text-gray-300"; + sentimentComment = "Markets in balance, trade ranges"; + } + + document.getElementById('market-sentiment').textContent = sentiment; + document.getElementById('market-sentiment').className = `text-xs px-2 py-1 rounded-full ${sentimentColor}`; + document.getElementById('sentiment-comment').textContent = sentimentComment; + + // Trading tip + const tips = [ + "Trade with the trend - it's your friend", + "Always use stop losses to protect your capital", + "Let profits run, cut losses short", + "Risk no more than 1-2% per trade", + "Avoid overtrading - quality over quantity", + "Wait for confirmation before entering trades", + "Keep a trading journal to improve your skills", + "Emotional control is key to trading success" + ]; + document.getElementById('trading-tip').textContent = tips[Math.floor(Math.random() * tips.length)]; + }, + + updateProfitTargetDisplay: function() { + let target = 25.00; + const mode = this.profitMode; + + if (mode === 'fixed_10') { + target = 10.00; + } else if (mode === 'fixed_25') { + target = 25.00; + } else if (mode === 'fixed_50') { + target = 50.00; + } else if (mode === 'fixed_100') { + target = 100.00; + } else if (mode.startsWith('percent_')) { + const percentage = parseFloat(mode.split('_')[1]); + const balance = parseFloat(document.getElementById('balance').textContent.replace('$',

Made with DeepSite LogoDeepSite - 🧬 Remix

\ No newline at end of file