Skip to main content

Backtesting Crypto: BTCUSD and ETHUSD

Test your strategies on Bitcoin and Ethereum CFDs with the same engine you use for forex, indices and metals. Both symbols support 1-minute OHLC and real-tick tests, and Machine Learning works on every crypto test.

Available history

Symbol

Name

Start date

Test modes

BTCUSD

Bitcoin vs US Dollar

2018-01-01

1-minute OHLC, real ticks

ETHUSD

Ethereum vs US Dollar

2020-01-01

1-minute OHLC, real ticks

History is updated daily.
​

Symbol specifications

Setting

BTCUSD

ETHUSD

Contract size

1 coin per lot

1 coin per lot

Digits

2

2

Tick size

0.01

0.01

Tick value

$0.01 per lot

$0.01 per lot

Minimum lot

0.01

0.01

Lot step

0.01

0.01

Leverage

1:5

1:5

Margin

20% of position value

20% of position value

Swap long

-20% per year

-20% per year

Swap short

-20% per year

-20% per year

Triple swap day

Wednesday

Wednesday

Profit currency

USD

USD

Every backtest starts with a balance of $100,000.
​

Trading hours

Bitcoin and Ethereum trade around the clock on crypto exchanges, but these CFDs follow the forex week: Monday to Friday, closed on weekends.

  • Week opens: Monday 00:05

  • Week closes: Friday 23:55

  • Daily pause: 00:00 to 00:04, every night

  • Weekend: closed

All times are server time, the time shown on your charts and in your reports. Server time is two hours ahead of London in winter (GMT+2), and three hours in summer (GMT+3).
​

What this means for your strategy

1:5 leverage: margin is 20% of the position value. With Bitcoin at $100,000, one lot of BTCUSD ties up $20,000 of margin. On the $100,000 starting balance, that leaves room for about 5 lots at that price. Size your positions in fractions of a lot, for example 0.1 lot, or use risk-based position sizing.
​

Weekend moves arrive as a Monday gap. Price can move a lot while the market is closed. Your strategy sees the Friday close, then the Monday open, with nothing in between. Stop losses and take profits that were jumped over fill at the Monday open price, which can be well beyond your stop level.
​

Swap applies to every position held overnight. At -20% per year, holding 1 BTC at $100,000 costs about $55 per night, and about $164 on Wednesday nights. Intraday strategies that close before the end of the trading day pay no swap.
​

Spreads are based on Darwinex's current crypto spreads. Recent history uses Darwinex's own spreads directly. Older history uses the same typical spread, applied as a percentage of the price. Crypto spreads were often wider in earlier years, so your test reflects the trading conditions you would get today, not those of 2018.
​

Commissions are not included. Backtest results do not deduct broker commissions. Check your broker's crypto commission and take it into account, especially for strategies that trade often.
​

Real-tick tests take longer. A real-tick test over the full history usually takes 10 to 30 minutes, depending on how actively your strategy manages its trades. Use 1-minute OHLC for quick iterations, and real ticks to confirm a strategy whose entries and exits depend on the spread or on precise intrabar prices.
​

Tips

  • Volatility is much higher than on forex pairs. Check that your stop-loss distances, take profits and trailing settings are wide enough for crypto price swings.

  • Tight stops with risk-based sizing lead to large positions. Risking 1% with a $10 stop on Ethereum means a position of about 100 ETH. A single order can be at most 100 lots, so with tighter stops the order is rejected with a lot size error. Widen the stop or lower the risk percentage.

  • Use Machine Learning in the Test Strategy window to get tips for your crypto strategy, exactly as on any other symbol.

Did this answer your question?