A futures contract has a multiplier: 1 point of price is worth a fixed amount per contract. On the E-mini S&P 500 contract it is $50 per point; profit = points × multiplier × number of contracts.
Margin is a deposit, not the price of the contract. With the index at 5,000 points, one E-mini represents 5,000 × 50 = $250,000 of notional value, for a much smaller margin: that is strong leverage.
In Backtrader: cerebro.broker.setcommission(commission=2.0, margin=12000, mult=50). As soon as margin is set, the asset is treated as a future and the commission becomes a fixed amount per contract (here 2 per contract).
Size your position from the risk, not the margin: a 20-point stop × $50 = $1,000 of risk per contract. With $50,000 and 1% risk, i.e. $500, even one contract is too many: you need a smaller contract (the Micro E-mini is worth $5 per point) or a tighter stop.
Examples
RHO-X (fictional market) : The red and green circles mark two price extremes. On a contract with a multiplier of 50, a 30-point gap between them represents 1,500 per contract, as a gain or a loss depending on the direction of the position.
September 1997: launch of the E-mini S&P 500 : In September 1997 the CME launched the E-mini S&P 500 contract, at $50 per point, much smaller than the standard contract of the time. In 2019 it added the Micro E-mini, at $5 per point. Smaller contracts let you fit the size to the risk instead of putting up with it.