Black Friday: 2 years for the price of 1.Or 3 months for the price of 1. On Pro.2 d 5 hleftSee plans →
Free tool

Free crude oil futures backtester

Paste a Pine v6 strategy written for CL or MCL. It runs on crude oil futures bars with $2.50 a contract and a tick of slippage charged, every trade on the chart, and the last third of the data judged on its own. A free account with no card tests 1-hour and daily charts over all two years and minute charts on the newest 30 days. For $39 paid once, Prop Ready opens all two years of minute bars for 30 days.

Free plan · unlimited backtests · no card
Supertrend (10, 3) on micro crude · 1-hourMCL1! · 1-hour · 4 November 2024 → 2 November 2026
The 8 months after
+$1,457
Trades there
103
Profit factor there
1.09
Two years
−$2,664
The 8 months after+$1,457
The 16 months before−$4,121
Nov 2024Feb 2026Nov 2026

The $50,000 account after each trade, one micro crude contract with $2.50 a contract each side and a tick of slippage. Shaded: the 8 months from 24 February 2026.

Paste your script

Pine v6, as TradingView has it.

Supertrend (10, 3) on micro crude · 1-hourMCL1! · 1-hour · 4 November 2024 → 2 November 2026
The 8 months after
+$1,457
Trades there
103
Profit factor there
1.09
Two years
−$2,664
The 8 months after+$1,457
The 16 months before−$4,121
Nov 2024Feb 2026Nov 2026

The $50,000 account after each trade, one micro crude contract with $2.50 a contract each side and a tick of slippage. Shaded: the 8 months from 24 February 2026.

Yes. A free account backtests a Pine Script strategy on crude oil futures, CL or MCL, as often as it likes and with no card.

On a chart under an hour it tests the newest 30 days, and on 1-hour and daily charts all two years of crude's bars from 4 November 2024. Commission is $2.50 a contract each side unless the script declares its own commission per contract, and market and stop orders pay a tick of slippage. For $39 paid once, Prop Ready opens all two years of 1-minute bars on a computer for 30 days.

28 rules on crude oil, two dated periods

Supertrend (10, 3) on micro crude's 1-hour chart made $1,457 over 103 trades from 24 February 2026 to 2 November 2026, with a profit factor of 1.09. A free account can run the same test, because 1-hour charts test all two years.

The same rule lost $4,121 over 229 trades in the 16 months before, 4 November 2024 to 23 February 2026, so over the two years it lost $2,664. Its worst drawdown in the 8 good months, $3,937, was bigger than what they made. It came out on top of the 28 rules we ran on micro crude, and none of the 28 made money over the two years: 24 opening range breakouts (the 9:00 and 9:30 New York opens, 5, 15 and 30-minute ranges, targets of 1 to 3 times the risk) and the four 1-hour rules below.

1-HOUR RULE ON MCLFIRST 16 MONTHS8 MONTHS AFTERTWO YEARS
Supertrend (10, 3)−$4,121 · 229+$1,457 · 103−$2,664
20 and 50 EMA crossover−$3,821 · 166−$128 · 69−$3,949
20-bar Donchian breakout, 10-bar exit−$3,830 · 260−$4,047 · 115−$7,877
RSI(2) with the 200 EMA−$2,129 · 317−$1,662 · 171−$3,791

Dollars and trades on one contract. The opening range did no better. The top of its 24 settings, the 9:00 New York range of 5 minutes with a target of 3 times the risk, lost $2,361 in the first 16 months and made $1,006 in the 8 months after. So test a crude script on both stretches before trusting a good month.

What it runs on

Crude oil futures' 1-minute bars, two years deep from 4 November 2024, every minute of NYMEX's day from the 18:00 New York open, joined into one continuous series the way CL1! is on TradingView. Micro crude trades at the same prices, so MCL runs on the same bars at $100 a point against CL's $1,000. The data is eight hours behind real time, so the page is for testing a strategy, not for trading it live. Futures need a signed-in account.

The same tester runs NQ, ES, gold, silver, copper, platinum and palladium futures (micros included). The NQ, ES, gold, silver, copper and platinum and palladium futures backtesters work the same way. The micro futures backtester sets one full-size contract against the same size in micros.

Contracts, costs and size

CONTRACTA POINTA TICK (0.01)DEFAULT COMMISSION
CL · Crude oil$1,000$10$2.50 a contract each side
MCL · Micro crude oil$100$1$2.50 a contract each side

A round trip with market orders pays $5 of commission and a tick of slippage each way: $25 on CL and $7 on MCL. The commission your script declares per contract replaces the default. A script that sizes by a percentage of equity on a small account can ask for less than one CL contract and make no trades. Size in contracts (default_qty_type = strategy.fixed), or set initial_capital to the account the strategy is for.

Run your crude oil script free

Paste it in the box at the top. It opens in the Alpha Charts terminal on MCL 5-minute, with every trade on the chart and the last third of the data judged on its own. Switch the chart to 1-hour, once signed in, to test all two years on a free account.

Free account

No card, no time limit.

$0
  • Unlimited backtests, costs charged, with the out-of-sample check
  • The Pine script audit and the full trade list
  • The Pine Copilot writes and edits your script
  • 50 AI credits a day
The Alpha Charts terminal a free account opens: the Pine Copilot beside the chart

Prop Ready opens all two years of futures minute bars on a computer for $39 paid once and has 7 days money back. Pro adds the optimiser and every AI tool and has 30 days money back. See the plans

Questions

Is this crude oil futures backtester free?

Yes. A free account backtests CL or MCL as often as you like, with no card: Run opens your script in the Alpha Charts terminal on the Free plan. On a chart under an hour it tests the newest 30 days, and on 1-hour and daily charts all two years. Prop Ready opens all two years of minute bars on a computer with the rules check and 100 AI builds every 30 days. It costs $39 once for 30 days and has 7 days money back. Pro at $99.99 a month adds the optimiser and has 30 days money back.

Is it crude oil futures data or USOIL?

Crude oil futures. CL and MCL trade on NYMEX, and their bars here are joined into one continuous series the way CL1! is on TradingView. USOIL and WTI CFDs are brokers' prices that follow the futures with their own spreads and hours, so the same rule gives different prices on each. Test it on the market you trade.

CL or MCL: which does it run?

Whichever your script names: CL at $1,000 a point and MCL at $100 a point, both in 0.01 ticks, so a tick is $10 on CL and $1 on MCL. A script that names either opens on it when you run it, and both are in the symbol menu.

How are commission and slippage charged?

$2.50 a contract on each side by default, or the commission your script declares per contract (commission_type = strategy.commission.cash_per_contract). Market and stop orders pay one tick of slippage unless the script sets its own. A round trip with market orders costs $25 on CL and $7 on MCL.

How much crude oil history does a run use?

Two years of 1-minute bars, from 4 November 2024. A free account tests the newest 30 days of a chart under an hour and all two years of 1-hour and daily charts. Prop Ready and Pro test all two years on a computer. A phone runs the newest 20,000 bars.

Why does MCL1! differ from CL1! on some days?

Micro crude's contract stops trading a day before the full-size one. On that day at each switch, MCL1! still shows the month CL1! is leaving, as TradingView's MCL1! does.

Is a backtest here a prediction?

No. It is what the script's rules would have done on past crude oil futures data with costs charged. Live fills, news and your own execution differ, so read it as a test of the rules, not a forecast.

CL and MCL are NYMEX futures contracts of CME Group; CL1! is TradingView's name for the continuous contract. Alpha Charts is software for testing trading scripts, is not affiliated with CME Group or TradingView and gives no investment advice. A backtest shows what rules would have done on past data, not what they will do. The methodology is in Data and methodology. Updated 28 November 2026.

Free crude oil futures backtesterFree account, no cardPaste your script