{{-- resources/views/dashboard/trade/future.blade.php --}} @extends('layouts.user') @section('title', 'Future Trade Simulation') @section('styles') @endsection @section('content')

Future Trade SIMULATION

{{-- ── Main Grid: Chart (left) + MT5 Panel (right) ── --}}
{{-- ── Left: Chart Card ── --}}
Advanced Live Candle Chart
Zoom · Pan · Draw lines · SMA/EMA · Fullscreen
{{-- Toolbar --}}
Drag to scroll · Wheel to zoom
{{-- Canvas wrap --}}
{{-- Line context menu --}} {{-- Crosshair price tooltip --}}
Tip: Wheel zoom · Drag pan · Enable Draw then click 2 points to add a trend line · Lines saved to browser storage
{{-- ── Right: MT5 Panel ── --}}
{{-- Symbol + live price header --}}
{{-- Balance / Equity / Margin stats --}}
Balance ${{ number_format((float)$accountBalance, 2) }}
Equity
Margin ${{ number_format((float)$marginInUse, 2) }}
Free Margin
Margin Level (%)
Entry (latest) {{ $entryPrice > 0 ? number_format($entryPrice, 4) : '—' }}
{{-- Open Trade Form --}}
Open Trade
@csrf
{{-- Positions header --}}
Positions 0
{{-- Positions list --}}
@forelse($openTrades as $trade)
{{ $trade->symbol }}
{{ number_format((float)$trade->live_pnl, 2) }}
{{ strtoupper($trade->side) }} ${{ number_format((float)$trade->stake_amount, 2) }} {{ (float)$trade->live_pnl_percent >= 0 ? '+' : '' }}{{ number_format((float)$trade->live_pnl_percent, 2) }}%
{{ number_format((float)$trade->entry_price, 4) }}
@csrf
@empty
No open positions.
Use the form above to open a trade.
@endforelse
{{-- /.mt5-panel --}}
{{-- /.pg-chart --}} {{-- ── Closed Trades ── --}}
Closed Trades
Realized PnL credited back to account balance
@forelse($closedTrades as $trade) @empty @endforelse
IDSymbolSideEntryExit PnLCreditedClosed At
#{{ $trade->id }} {{ $trade->symbol }} {{ strtoupper($trade->side) }} {{ number_format((float)$trade->entry_price, 4) }} {{ number_format((float)$trade->exit_price, 4) }} {{ (float)$trade->pnl >= 0 ? '+' : '' }}{{ number_format((float)$trade->pnl, 4) }} ${{ number_format((float)$trade->credited_amount, 2) }} {{ $trade->closed_at?->format('Y-m-d H:i:s') }}
No closed trades yet.
@endsection @push('scripts') @endpush