How to trade CFDs: a worked example on stocks, gold and indices

How to trade CFDs: a worked example on stocks, gold and indices

Updated November 2026

Updated November 2026

To trade CFDs, you choose a market, choose a direction (buy if you expect the price to rise, sell if you expect it to fall), choose a size, check the margin the position needs, set a stop-loss, and later close the position with the opposite trade. Your result is the change in price times your position size, less the spread, any commission and any overnight financing.

This guide shows how to trade CFDs with three worked trades, one on a share, one on gold and one on a stock index, each with its margin, spread cost, nights held and result both ways. It is written for CFD trading for beginners, so every number is shown. The prices are invented to make the arithmetic clear; they are not a forecast and not a trade idea. Trading leveraged products carries a high risk of loss.

How does CFD trading work?

A CFD is a derivative: its value comes from the price of something else. If you are new to the idea, start with what derivatives are. A contract for difference is an agreement between an investor and a CFD broker to exchange the difference in the value of a financial product between the time the contract opens and the time it closes. You never own the underlying asset; you are paid, or you pay, the price change.

Three features follow from that.

  • Both directions. Buying opens a long position, which gains if the price rises. Selling opens a short position, which gains if the price falls.
  • Margin. You put down part of the position's value as margin. The position's full value, called the notional value, still decides the size of every gain and loss.
  • Three cost lines. The spread, paid as you open and close; a commission on some markets; and overnight financing, which can be charged, or credited, for each night a position stays open.

How to trade CFDs in six steps

  1. Choose the market and check its hours. CFD markets keep the hours of the market behind them. On Ouinex, for example, US shares trade from 16:33 to 22:59, gold from 01:01 to 23:59 (23:55 on Fridays) and the US index CFDs from 01:05 to 23:55, Monday to Friday. These are platform times, GMT+2 in winter and GMT+3 in summer, usually two hours ahead of UK time, and they change on public holidays.
  2. Choose the direction. Buy to go long, sell to go short. A buy opens at the higher of the two quoted prices (the ask) and a sell at the lower (the bid).
  3. Choose the size. Size is set in units of the market: shares for a share CFD, ounces for gold, units of the index for an index CFD. Size times price is the notional value, and it is the number every result is calculated on.
  4. Check the margin. Margin is the notional value divided by the leverage. A $10,000 position at an illustrative 5x needs $2,000. Our guide on how to calculate margin covers free margin and margin level too. Check the leverage and margin terms on Ouinex before you open a position.
  5. Set a stop-loss. For a long, the stop is a sell order below the market; for a short, it is a buy order set above the current market price. A stop is not a guarantee: if the price jumps past it, the order fills at the next available price.
  6. Close with the opposite trade. Sell to close a long, buy to close a short. If you hold past the daily rollover, overnight financing can be charged, or credited, for each night. Check the current overnight financing on Ouinex before you hold a CFD position overnight.

CFD trading examples: three worked trades

Each example follows the six steps. Every price, spread and leverage figure is illustrative: invented for the arithmetic, not a Ouinex spread, not Ouinex leverage terms, and not a view on where any market is going.

1. A stock CFD: long 50 units of Share XYZ

Share XYZ is an invented US share, quoted at 200.00 / 200.10: you can sell at $200.00 and buy at $200.10, a spread of $0.10.

  • Open: buy 50 units at $200.10. Notional value: 50 × $200.10 = $10,005.
  • Margin at an illustrative 5x: $10,005 ÷ 5 = $2,001.
  • Spread cost: $0.10 × 50 = $5. That is the amount the position is behind the moment it opens.
  • Hold: two nights, so two rollovers at which overnight financing can be charged, or credited.
  • Close, if the price rises about 3%: the quote is 206.00 / 206.10, you sell at $206.00. Result: ($206.00 − $200.10) × 50 = +$295.
  • Close, if it falls about 3%: the quote is 194.00 / 194.10, you sell at $194.00. Result: ($194.00 − $200.10) × 50 = −$305.

The two results are not mirror images: the $5 spread is paid either way, so the rise nets $5 less than the price move and the fall costs $5 more. A share CFD also carries a commission, which is not included here: stock CFDs generally incur explicit commissions, and opening and closing count as separate trades. Stocks are outside Ouinex's zero-commission scope; the rate is on the fees page.

2. A gold CFD: short 2 ounces of XAU/USD

Gold is quoted in US dollars per troy ounce. The illustrative quote is 4,000.00 / 4,000.40, a spread of $0.40.

  • Open: sell 2 ounces at the bid, $4,000.00. Notional value: 2 × $4,000.00 = $8,000.
  • Margin at an illustrative 10x: $8,000 ÷ 10 = $800.
  • Spread cost: $0.40 × 2 = $0.80.
  • Hold: closed the same day, before the rollover, so no overnight financing.
  • Close, if gold falls about 1.25%: the quote is 3,950.00 / 3,950.40, you buy back at $3,950.40. Result: ($4,000.00 − $3,950.40) × 2 = +$99.20.
  • Close, if gold rises about 1.5%: the quote is 4,060.00 / 4,060.40, you buy back at $4,060.40. Result: ($4,000.00 − $4,060.40) × 2 = −$120.80.

A short works in reverse: you sell first and buy back later, and you close at the ask. A 1.5% rise in gold costs $120.80, which is 15.1% of the $800 margin. The higher the leverage, the less margin a position ties up and the larger each move is as a share of it. Gold is a commodity, so on Ouinex there is no commission: you pay the spread.

3. An index CFD: long 2 units of the S&P 500

The S&P 500 Spot Index is quoted in points, here at an illustrative 6,000.0 / 6,000.6, a spread of 0.6 points. With 2 units, each point the index moves changes the result by $2.

  • Open: buy 2 units at 6,000.6. Notional value: 2 × 6,000.6 = $12,001.20.
  • Margin at an illustrative 20x: $12,001.20 ÷ 20 = $600.06.
  • Spread cost: 0.6 × 2 = $1.20.
  • Hold: three nights, so three rollovers at which overnight financing can be charged, or credited.
  • Close, if the index rises about 0.75%: the quote is 6,045.0 / 6,045.6, you sell at 6,045.0. Result: (6,045.0 − 6,000.6) × 2 = +$88.80.
  • Close, if it falls about 1%: the quote is 5,940.0 / 5,940.6, you sell at 5,940.0. Result: (5,940.0 − 6,000.6) × 2 = −$121.20.

A 1% fall in the index costs $121.20, which is 20.2% of the $600.06 margin. Stock indices are in Ouinex's zero-commission scope: you pay the spread, plus any overnight financing for the three nights.

The three trades side by side

Stock CFD

Gold CFD

Index CFD

Direction

Long (buy)

Short (sell)

Long (buy)

Size

50 units

2 ounces

2 units

Opening price

$200.10 (ask)

$4,000.00 (bid)

6,000.6 (ask)

Notional value

$10,005

$8,000

$12,001.20

Illustrative leverage

5x

10x

20x

Margin

$2,001

$800

$600.06

Spread cost

$5

$0.80

$1.20

Commission

Applies (see the fees page)

None: you pay the spread

None: you pay the spread

Nights held

2

0

3

Result, price moves for you

+$295 (+14.7% of margin)

+$99.20 (+12.4% of margin)

+$88.80 (+14.8% of margin)

Result, price moves against you

−$305 (−15.2% of margin)

−$120.80 (−15.1% of margin)

−$121.20 (−20.2% of margin)

Illustrative only: invented prices, spreads and leverage. Results before commission and overnight financing.

Four things stand out.

  • The spread is paid in every case. It is the one cost all three trades share, whichever way the price goes.
  • Leverage changes the margin, not the result. The index trade has the largest notional value and the smallest margin; a 1% move still changes its result by about $120, as it would without leverage.
  • Small moves are large against the margin. Moves of 0.75% to 3% in the price became 12% to 20% of the margin.
  • Holding adds a cost line. The gold trade closed the same day; the other two went through two and three rollovers.

What CFD trades cost on Ouinex

The spread is an immediate cost that a trade has to cover before it breaks even. On Ouinex: zero commission on forex, stock indices and commodities: you pay the spread. Stocks are outside that scope and carry a commission. Crypto perpetuals are 0.045%. For every market, see how each market is priced on Ouinex.

Overnight financing is the cost that grows with time. Each rollover a CFD position is held through can be charged, or credited, a financing amount, so a trade held for weeks can cost more to hold than to open. Check the current overnight financing on Ouinex before you hold a CFD position overnight.

The risks to know before your first CFD trade

  • Leverage works both ways. As the table shows, a move of 0.75% to 3% can take 12% to 20% of the margin. Higher leverage makes each move a larger share of the money behind it.
  • Close-outs. If your account can no longer cover the margin, your provider might close you out of your position, and the loss stands even if the price later recovers.
  • Gaps. Shares and indices can open well away from the previous close, past your stop. The stop then fills at the next available price, not at the level you set.
  • Time. Every night held can add a financing charge, and a share CFD pays commission on the way in and on the way out.

Trading leveraged products carries a high risk of loss. Size each position so that the move to your stop is a loss you have decided in advance you can carry.

FAQ: how to trade CFDs

How do you trade CFDs as a beginner?

Pick one market and learn its hours and quote. Decide the direction and the size, work out the notional value and the margin it needs, and place a stop-loss before you open. Close with the opposite trade. A demo account lets you practise each step without your own money before you fund a live account.

Is a stock CFD the same as owning the share?

No. A share CFD tracks the share price, but you never own the share, so you have no voting rights and nothing is delivered. You can go short as easily as long and put down only part of the position's value. In exchange, a share CFD carries a commission and can carry overnight financing for every night held.

How much money do you need to trade CFDs?

The margin for one position is its notional value divided by the leverage: $10,000 at an illustrative 5x needs $2,000. You also need money beyond the margin to absorb the position moving against you, or it can be closed for you. Check the leverage and margin terms on Ouinex before you open a position.

Can you trade gold CFDs on Ouinex?

Yes. Gold is listed as XAU/USD and trades from 01:01 to 23:59 platform time, Monday to Thursday, closing at 23:55 on Fridays; hours change on public holidays. Gold is a commodity, so there is no commission: you pay the spread, plus any overnight financing on positions held past the rollover.

What does a CFD trade cost?

Up to three things. The spread, paid on every trade. A commission on some markets: on Ouinex, forex, stock indices and commodities have none, while stocks carry one. And overnight financing, which can be charged, or credited, for each night a position stays open past the daily rollover.

Conclusion

How to trade CFDs comes down to six steps: market, direction, size, margin, stop and close. The three worked trades show what those steps mean in money. The spread is paid on every trade, leverage sets the margin but not the result, and a price move of a few per cent can be a large share of the margin behind it.

Trading leveraged products carries a high risk of loss. Before your first trade, see how each market is priced on Ouinex.

Sources

  1. Investopedia: Understanding Contract for Differences (CFDs): Key Insights and Benefits (updated 3 June 2026), for the CFD as an agreement with the provider, no ownership of the underlying asset, the spread as an immediate cost, explicit commissions on stock CFDs with opening and closing counted as separate trades, and close-out when margin is not maintained
  2. Investopedia: How Stop-Loss Orders Help Limit Investment Losses and Risk (updated 17 July 2026), for the buy stop set above the market and the fill at the next available price after a gap
‹ Back to Ouinex Academy