Required margin is the cash a broker 'freezes' to hold your trade open. Too little free margin and your positions get auto-closed. Size your EA portfolio accordingly.
Required margin = (Lots × Contract size × Price) / Leverage. For metals and indices, contract size differs — the calculator handles it automatically.
Contract size. 1.0 lot gold = 100 oz × spot price (~$2,400) = $240,000 notional. 1.0 lot EURUSD = 100,000 × 1.10 = $110,000. Gold is more than 2x the margin at the same leverage.
Same number expressed differently. 1:100 leverage = 1% margin requirement. Brokers display one or the other; pick whichever the form asks for.