{{ toastMessage }}

πŸ€– OKX Trading Bot

Running Stopped {{ currentUser }}
Total Balance (USDT)
${{ totalEquity.toFixed(2) }}
Unrealized PnL
{{ unrealizedPnl >= 0 ? '+' : '' }}${{ unrealizedPnl.toFixed(2) }}
πŸ”‘ My Page βš™οΈ μ„€μ •

πŸ“ˆ TradingView Chart

{{ coin.name }}
🟒 LONG μ‹ ν˜Έ ν™œμ„±
πŸ”΄ SHORT μ‹ ν˜Έ ν™œμ„±
βšͺ λŒ€κΈ° 쀑
Trend: {{ trendDisplay }}

πŸ“Š Trend Status

{{ trendDisplay }}
βœ… Long ❌ Long | βœ… Short ❌ Short

πŸ”„ Loop Stats

Cycles: {{ status.loop_status?.cycle_count || 0 }}
Errors: {{ status.loop_status?.error_count || 0 }}
Last Cycle: {{ formatTime(status.loop_status?.last_cycle_time) }}
Interval: {{ status.loop_status?.cycle_interval_seconds || 0 }}s

βš™οΈ Configuration

Symbol: {{ config.symbol }}
Timeframe: {{ config.timeframe }}
Base Order: ${{ config.base_order_size }}
Max SOs: {{ config.max_safety_orders }}

πŸ“ˆ Long Position ⏳ WAITING

Entry Price: ${{ positions.long.entry_price?.toFixed(2) }}
Average Price: ${{ positions.long.average_price?.toFixed(2) }}
Current Price: ${{ currentPrice.toFixed(2) }}
Quantity: {{ positions.long.total_qty?.toFixed(6) }}
Safety Orders: {{ positions.long.safety_orders_filled }}/{{ config.max_safety_orders }}
Unrealized PnL: ${{ positions.long.unrealized_pnl?.toFixed(2) }} ({{ positions.long.unrealized_pnl_percent?.toFixed(2) }}%)
⏳ Waiting Mode Active
Reason: {{ positions.long.waiting_reason }}
Position will wait for TP/SL. Opposite entries blocked.
No Active Long Position

πŸ“‰ Short Position ⏳ WAITING

Entry Price: ${{ positions.short.entry_price?.toFixed(2) }}
Average Price: ${{ positions.short.average_price?.toFixed(2) }}
Current Price: ${{ currentPrice.toFixed(2) }}
Quantity: {{ positions.short.total_qty?.toFixed(6) }}
Safety Orders: {{ positions.short.safety_orders_filled }}/{{ config.max_safety_orders }}
Unrealized PnL: ${{ positions.short.unrealized_pnl?.toFixed(2) }} ({{ positions.short.unrealized_pnl_percent?.toFixed(2) }}%)
⏳ Waiting Mode Active
Reason: {{ positions.short.waiting_reason }}
Position will wait for TP/SL. Opposite entries blocked.
No Active Short Position
⚠️

Last Error

{{ status.loop_status.last_error }}

πŸ’° Total PnL Summary

Total PnL
{{ stats.total.total_pnl >= 0 ? '+' : '' }}{{ stats.total.total_pnl }} USDT
Win Rate: {{ stats.total.win_rate }}% | Trades: {{ stats.total.total_trades }}
Long Bot PnL
{{ stats.long_bot.total_pnl >= 0 ? '+' : '' }}{{ stats.long_bot.total_pnl }} USDT
Win Rate: {{ stats.long_bot.win_rate }}% | Trades: {{ stats.long_bot.total_trades }}
Short Bot PnL
{{ stats.short_bot.total_pnl >= 0 ? '+' : '' }}{{ stats.short_bot.total_pnl }} USDT
Win Rate: {{ stats.short_bot.win_rate }}% | Trades: {{ stats.short_bot.total_trades }}

⏱️ Bot Uptime

Total Uptime
{{ formatUptime(botUptime) }}
Last Started
{{ formatDate(botStartTime) }}

πŸ“ˆ PnL Over Time

πŸ“œ Bot History

Date Bot Type Side Entry Exit Quantity PnL PnL % Reason
{{ formatDate(trade.closed_at) }} {{ trade.bot_type === 'LONG_BOT' ? 'Long' : 'Short' }} {{ trade.side }} ${{ parseFloat(trade.entry_price).toFixed(2) }} ${{ parseFloat(trade.exit_price).toFixed(2) }} {{ parseFloat(trade.total_qty).toFixed(6) }} {{ trade.realized_pnl >= 0 ? '+' : '' }}{{ parseFloat(trade.realized_pnl).toFixed(2) }} USDT {{ trade.pnl_percent >= 0 ? '+' : '' }}{{ parseFloat(trade.pnl_percent).toFixed(2) }}% {{ trade.exit_reason }}
No trade history yet

OKX Trading Bot v1.0 | Made with ❀️