Free copper futures backtester
Paste a Pine v6 strategy written for HG or MHG. It runs on copper 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.
- The 8 months after
- +$971
- Trades there
- 103
- Profit factor there
- 1.09
- Two years
- −$218
The $50,000 account after each trade, one micro copper 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.
- The 8 months after
- +$971
- Trades there
- 103
- Profit factor there
- 1.09
- Two years
- −$218
The $50,000 account after each trade, one micro copper 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 copper futures, HG or MHG, 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 copper'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 copper, two dated periods
Supertrend (10, 3) on micro copper's 1-hour chart made $971 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 $1,189 over 192 trades in the 16 months before, 4 November 2024 to 23 February 2026, so over the two years it lost $218. Its worst drawdown in the 8 good months, $2,106, was bigger than what they made. None of the 28 rules we ran on micro copper made money over the two years: 24 opening range breakouts (the 8:10 COMEX 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. On one micro contract the 1-hour rules lost between $218 and $3,244 over the two years.
| 1-HOUR RULE ON MHG | FIRST 16 MONTHS | 8 MONTHS AFTER | TWO YEARS |
|---|---|---|---|
| Supertrend (10, 3) | −$1,189 · 192 | +$971 · 103 | −$218 |
| 20 and 50 EMA crossover | −$40 · 140 | −$210 · 70 | −$250 |
| 20-bar Donchian breakout, 10-bar exit | −$1,444 · 227 | −$1,392 · 125 | −$2,836 |
| RSI(2) with the 200 EMA | −$500 · 297 | −$2,744 · 162 | −$3,244 |
Dollars and trades on one contract. The opening range did no better. The top of its 24 settings, the 9:30 New York range of 30 minutes with a target of 2 times the risk, lost $101 in the first 16 months and $144 in the 8 months after. The 8:10 COMEX open lost over the two years at all 12 of its settings, by up to $6,119.
What it runs on
Copper futures' 1-minute bars, two years deep from 4 November 2024, every minute of COMEX's day from the 18:00 New York open, joined into one continuous series the way HG1! is on TradingView. Micro copper trades at the same prices, so MHG runs on the same bars at $2,500 a point against HG's $25,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, crude oil, gold, silver, platinum and palladium futures (micros included). The NQ, ES, gold, crude oil, silver 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
| CONTRACT | A POINT | A TICK (0.0005) | DEFAULT COMMISSION |
|---|---|---|---|
| HG · Copper | $25,000 | $12.50 | $2.50 a contract each side |
| MHG · Micro copper | $2,500 | $1.25 | $2.50 a contract each side |
A round trip with market orders pays $5 of commission and a tick of slippage each way: $30 on HG and $7.50 on MHG. 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 HG 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 copper script free
Paste it in the box at the top. It opens in the Alpha Charts terminal on MHG 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.
- 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

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 copper futures backtester free?
Yes. A free account backtests HG or MHG 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 COMEX copper or LME copper?
COMEX copper futures. HG and MHG trade on COMEX in US dollars a pound, and their bars here are joined into one continuous series the way HG1! is on TradingView. LME copper trades in London in dollars a tonne, with its own hours and contracts, so the same rule gives different prices on each. Test it on the market you trade.
HG or MHG: which does it run?
Whichever your script names: HG at $25,000 a point and MHG at $2,500 a point, both in 0.0005 ticks, so a tick is $12.50 on HG and $1.25 on MHG. 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 $30 on HG and $7.50 on MHG.
How much copper 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.
How big is one micro copper contract?
MHG is 2,500 pounds of copper: each cent copper moves is $25 on one contract, and $250 on HG. On one micro contract the 1-hour rules in the test on this page lost at most $3,244 over the two years.
Is a backtest here a prediction?
No. It is what the script's rules would have done on past copper 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.
HG and MHG are COMEX futures contracts of CME Group; HG1! 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.