Trading Tools
Educational Matrix
This page uses beginner-friendly sample correlation values only. It does not show live market data. Later, this same screen can be connected to a real market data API that calculates correlation from historical prices.
A positive value means both pairs often rise or fall in the same direction. Example: EURUSD and GBPUSD often move similarly.
A negative value means one pair may rise while the other falls. Example: EURUSD and USDCHF often move in opposite directions.
A value close to zero means the pairs do not have a strong relationship in this sample, so they may move independently.
Sample Values
| Pair | @foreach ($pairs as $pair){{ $pair }} | @endforeach
|---|---|
| {{ $rowPair }} | @foreach ($pairs as $columnPair) @php $value = $matrix[$rowPair][$columnPair]; $formattedValue = number_format($value, 2); $badgeClass = match (true) { $value >= 0.70 => 'bg-emerald-100 text-emerald-700 ring-emerald-200 dark:bg-emerald-950 dark:text-emerald-200 dark:ring-emerald-900', $value <= -0.70 => 'bg-red-100 text-red-700 ring-red-200 dark:bg-red-950 dark:text-red-200 dark:ring-red-900', $value >= -0.30 && $value <= 0.30 => 'bg-slate-100 text-slate-700 ring-slate-200 dark:bg-slate-800 dark:text-slate-200 dark:ring-slate-700', $value > 0 => 'bg-blue-100 text-blue-700 ring-blue-200 dark:bg-blue-950 dark:text-blue-200 dark:ring-blue-900', default => 'bg-amber-100 text-amber-700 ring-amber-200 dark:bg-amber-950 dark:text-amber-200 dark:ring-amber-900', }; @endphp{{ $formattedValue }} | @endforeach
Correlation ranges from -1.00 to 1.00. A value near 1.00 means strong positive correlation, a value near -1.00 means strong negative correlation, and a value near 0.00 means weak or neutral correlation.
Future API Structure
When you connect a real market data provider later, the controller can replace this static matrix with calculated values from historical candle data. The API key should stay in the Laravel backend, never inside Blade or JavaScript.