Leverage affects the margin required to maintain your positions, which in turn influences your margin level. A higher leverage reduces the margin needed, but it also increases the risk of reaching a stop-out when having larger position sizes if the market moves against your positions.