<html lang="hu">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Multi-Instrument Pozíciómeret Kalkulátor</title>
<style>
  :root{
    --bg:#081512;
    --panel:#0f1c17;
    --muted:#b9b5b5;
    --text:#e8f6f1;
    --accent:#0d8461;
    --good:#19c089;
    --warn:#e7b547;
    --bad:#d96e6e;
    --line:#13352d;
  }
  *{box-sizing:border-box}
  body{
    margin:0;
    background:radial-gradient(1200px 800px at 20% -10%, #13241e 0%, var(--bg) 60%),var(--bg);
    color:var(--text);
    font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    line-height:1.45
  }
  header{padding:26px 16px 6px;text-align:center}
  header h1{margin:0 0 6px;font-size:24px}
  header p{margin:0;color:var(--muted);font-size:13px}
  main{max-width:960px;margin:18px auto 50px;padding:0 14px;display:grid;grid-template-columns:1fr 1fr;gap:16px}
  @media(max-width:900px){main{grid-template-columns:1fr}}
  .card{
    background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,0));
    border:1px solid var(--line);
    border-radius:14px;
    padding:14px;
    box-shadow:0 10px 30px rgba(0,0,0,.25)
  }
  .card h2{margin:2px 0 12px;font-size:15px;color:var(--text);text-transform:uppercase;letter-spacing:.5px}
  .grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  @media(max-width:560px){.grid{grid-template-columns:1fr}}
  label{display:block;font-size:12px;color:var(--muted);margin:6px 0 4px}
  input, select{
    width:100%;
    padding:10px 12px;
    border-radius:10px;
    border:1px solid var(--line);
    background:#0b1411;
    color:var(--text);
    font-size:14px
  }
  select{cursor:pointer}
  input:focus, select:focus{
    border-color:var(--accent);
    box-shadow:0 0 0 3px rgba(13,132,97,.28);
    outline:0
  }
  .metric{
    border:1px dashed var(--line);
    border-radius:12px;
    padding:12px;
    background:rgba(13,132,97,.07);
    margin-bottom:8px
  }
  .metric h3{margin:0 0 4px;font-size:12px;color:var(--muted)}
  .val{font-size:22px;font-weight:700}
  .mono{font-variant-numeric:tabular-nums;font-family:ui-monospace,Menlo,Consolas,monospace}
  .good{color:var(--good)}
  .warn{color:var(--warn)}
  .bad{color:var(--bad)}
  .note{font-size:12px;color:var(--muted)}
  .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .hr{height:1px;background:var(--line);margin:10px 0;border-radius:1px}
  .kicker{font-size:12px;color:var(--muted)}
  .btn{
    border:1px solid var(--line);
    background:#0f201a;
    color:var(--text);
    padding:8px 12px;
    border-radius:10px;
    cursor:pointer;
    font-weight:600
  }
  .btn:hover{border-color:var(--accent)}
  .pill{
    display:inline-block;
    border:1px solid var(--line);
    padding:3px 8px;
    border-radius:999px;
    font-size:11px;
    color:var(--muted)
  }
  .grid > div{
    display:flex;
    flex-direction:column;
    gap:6px;
  }
  label{margin-left:4px;}
  .instrument-select{
    grid-column: 1 / -1;
    margin-bottom:8px;
  }
  .info-box{
    background:rgba(13,132,97,.1);
    border:1px solid var(--accent);
    border-radius:10px;
    padding:10px;
    margin-bottom:12px;
    font-size:12px;
  }
</style>
</head>
<body>
<header>
  <h1>Multi-Instrument Pozíciómeret Kalkulátor</h1>
  <p>Futures & Forex kereskedéshez - Stop & Take Profit pontban és tickben</p>
</header>
<main>
  <!-- Bemenetek -->
  <section>
    <h2>Bemenetek</h2>
      <label>Válassz instrumentumot</label>
      <select id="instrument">
        <optgroup label="Equity Index Futures">
          <option value="ES">ES - E-mini S&P 500</option>
          <option value="MES">MES - Micro E-mini S&P 500</option>
          <option value="NQ">NQ - E-mini Nasdaq-100</option>
          <option value="MNQ" selected>MNQ - Micro E-mini Nasdaq-100</option>
          <option value="RTY">RTY - E-mini Russell 2000</option>
          <option value="M2K">M2K - Micro E-mini Russell 2000</option>
          <option value="YM">YM - E-mini Dow ($5)</option>
          <option value="MYM">MYM - Micro E-mini Dow</option>
        </optgroup>
        <optgroup label="Treasury Futures">
          <option value="ZN">ZN - 10-Year T-Note</option>
          <option value="ZB">ZB - 30-Year T-Bond</option>
          <option value="ZF">ZF - 5-Year T-Note</option>
          <option value="ZT">ZT - 2-Year T-Note</option>
        </optgroup>
        <optgroup label="Energy Futures">
          <option value="CL">CL - Crude Oil</option>
          <option value="MCL">MCL - Micro Crude Oil</option>
          <option value="NG">NG - Natural Gas</option>
          <option value="RB">RB - RBOB Gasoline</option>
          <option value="HO">HO - Heating Oil</option>
        </optgroup>
        <optgroup label="Metal Futures">
          <option value="GC">GC - Gold</option>
          <option value="MGC">MGC - Micro Gold</option>
          <option value="SI">SI - Silver</option>
          <option value="SIL">SIL - Micro Silver</option>
          <option value="HG">HG - Copper</option>
          <option value="QO">QO - Micro Gold (alt)</option>
        </optgroup>
        <optgroup label="Currency Futures">
          <option value="6E">6E - Euro FX</option>
          <option value="M6E">M6E - Micro Euro FX</option>
          <option value="6B">6B - British Pound</option>
          <option value="M6B">M6B - Micro British Pound</option>
          <option value="6A">6A - Australian Dollar</option>
          <option value="6C">6C - Canadian Dollar</option>
          <option value="6J">6J - Japanese Yen</option>
          <option value="6S">6S - Swiss Franc</option>
        </optgroup>
        <optgroup label="Forex (Lot alapú)">
          <option value="EURUSD">EUR/USD</option>
          <option value="GBPUSD">GBP/USD</option>
          <option value="USDJPY">USD/JPY</option>
          <option value="USDCHF">USD/CHF</option>
          <option value="AUDUSD">AUD/USD</option>
          <option value="USDCAD">USD/CAD</option>
          <option value="NZDUSD">NZD/USD</option>
        </optgroup>
      </select>
      <strong id="instrName">MNQ</strong>: Tick = 0.25 pont, Tick érték = $0.50
        <label>Kívánt kockázat / trade (USD)</label>
        <input id="riskUsd" type="number" value="250" min="1" step="1">
        <label>Max napi veszteség (USD) (opcionális)</label>
        <input id="maxDaily" type="number" value="500" min="0" step="1">
        <label>Stop (pont)</label>
        <input id="stopPts" type="number" value="25" min="0.01" step="0.01">
        <label>Stop (tick)</label>
        <input id="stopTicks" type="number" value="100" min="1" step="1">
        <label>Take profit (pont)</label>
        <input id="tpPts" type="number" value="40" min="0.01" step="0.01">
        <label>Take profit (tick)</label>
        <input id="tpTicks" type="number" value="160" min="1" step="1">
  </section>
  <!-- Eredmények -->
  <section>
    <h2>Eredmények</h2>
        <h3>USD/pont / kontraktus</h3>
        —
        USD/tick: —
        <h3>RR arány (TP / Stop)</h3>
        —
        Pontban és tickben azonos arány
        <h3>Kockázat 1 kontraktuson</h3>
        —
        <h3>Szükséges kontraktusszám</h3>
        —
        <h3>Valós risk (kerekített kontraktussal)</h3>
        —
        <h3>Profitcél (TP alapján)</h3>
        —
      <h3>Biztonsági infó</h3>
      —
      A számításhoz a stopot és TP-t a legközelebbi <strong>egész tickre</strong> kerekítjük.
      Képletek: USD/pont = TickValue ÷ TickSize. Risk/kontraktus = Stop(tick) × USD/tick.  
      Kontraktus = KívántRisk ÷ Risk/kontraktus → lefelé kerekítjük, hogy ne lépd túl a megadott risket.
  </section>
</main>
</body>
</html>