Skip to main content

Run a Monte Carlo simulation on your TradingView List of trades CSV

The Strategy Tester shows one path: your trades in the order they happened. Export them as CSV and you can see what that single path hides: how deep the drawdown could have gone with the same trades in another order, and how often a resample of those trades ends at or below zero.

Upload my CSV for the free previewSee a full example dossier

Does TradingView have a Monte Carlo simulation?

Not in the Strategy Tester. Its report (net profit, drawdown, profit factor, list of trades) describes one run of your strategy on one history. That run is real, but it is a single draw: the same trades, arriving in a different order, would have produced the same final result with a different drawdown. A Monte Carlo simulation replays the trades you already have in thousands of orders and resamples, so you can see the spread around that one run.

Export the List of trades from TradingView

  1. Open the Strategy Tester: Add your strategy to a TradingView chart and open the Strategy Tester panel under the chart.
  2. Open the List of trades tab: In the Strategy Tester, open the List of trades tab: one row per entry and exit, with prices, dates and profit.
  3. Export the CSV: Click the export (download) icon of that tab and keep the CSV file.
  4. Upload it for the free preview: Upload the CSV on the dossier page, optionally with the date up to which you tuned the strategy, and read the free preview.

Works for any market TradingView charts: stocks, indices, crypto, forex, in English or French exports. The export button of the List of trades needs a paid TradingView plan; on the free plan, paste your Pine script into the free judge instead. Free judge →

What a Monte Carlo on your trades shows

What it does not show

TradingView, a spreadsheet or the dossier: what each one gives you

TradingView Strategy TesterSpreadsheet (Excel, Google Sheets)Strategy Arena dossier
Monte Carlo on trade orderNoBy hand: random column, sort, recompute the equity curve, repeatYes, reproducible draws (seed taken from the file)
Resampling with replacementNoBy hand, one formula per drawYes, share of draws at or below zero
Before / after the date you tuned up toRe-run on a shorter date range, one part at a timeFilter by date and recomputeYes, in the free preview
Extra fees per orderChange the commission in the strategy properties and re-runOne formula per trade0.10% in the free preview; the fee level that cancels the edge in the dossier
Result without the 3 best tradesNoSort and remove by handYes
What you needThe strategy on a chartThe CSV and timeThe CSV only: no account, no Pine script, raw CSV not kept
CostIncluded in your TradingView planFreeFree preview; full dossier €9.00 once, no subscription

A worked example, with exact figures

Synthetic data. 69 generated trades (2021-02-03 → 2025-03-27; moving-average crossover, long only, 0.1% commission per order), not a real account or market. The calculation is the one of a real dossier.

+108.51%
before the cut · 47 trades (holding: +80.45%)
−9.25%
after the cut (2023-12-29) · 22 trades
+89.22% → +64.95%
whole period, then with 0.10% extra fees per order
−16.24%
whole period without its 3 best trades
15.80%
of 2000 Monte Carlo draws (with replacement) end at or below zero

Read in the Strategy Tester alone, this rule looks like a winner: +89.22% over the whole period. Split at the cut date, the part where it was tuned beats holding (+108.51% against +80.45%), and the part it had not seen loses −9.25%. Without its 3 best trades, the whole period goes to −16.24%. The Monte Carlo puts a number on that fragility: 15.80% of the resampled histories end at or below zero, and shuffling the order of the same trades takes the maximum drawdown to 48.82% once in twenty, against 33.92% in the run TradingView shows. The average edge disappears with 0.64% of extra fees per order.

What you gain: you see before risking money which part of the result comes from the tuning period, from fees left out and from a few trades. On your own export, the preview shows the before/after and fee figures for free.

Doing it in a spreadsheet

Keep one row per trade with its return in percent (the exit row of the CSV carries the profit; divide by the position value at entry). Add a column of random numbers, sort by it, rebuild the compounded equity curve and note its maximum drawdown. Repeat a few hundred times. For the bootstrap, pick each row with a random index instead of sorting. It works, but it is slow to repeat and easy to break when the CSV changes.

Questions

Does TradingView have a Monte Carlo simulation?

Not in the Strategy Tester. Its report describes one run: your trades in the order they happened. To see other orders of the same trades, export the List of trades as CSV and run the draws outside TradingView, in a spreadsheet or in the free preview of the dossier.

Does shuffling the order of trades change the final return?

No. With compounding, the final result is the product of (1 + each trade’s return), and a product does not depend on the order. Shuffling changes the path: the depth and timing of the drawdowns. To vary the final result, the trades are drawn with replacement (bootstrap).

How many trades do I need?

The more the better: with a dozen trades, every draw looks alike and the spread says little. The dossier asks for at least 30 trades for a clear reading, 10 of them after the cut date. If you have fewer, export the same strategy over a longer date range.

Is my CSV or my Pine script sent anywhere?

Only the CSV is uploaded, never the Pine script. The raw export is not kept: only the computed dossier is stored, 12 months after payment; an unpaid preview is deleted after 30 days.

What does the free preview show?

The compounded result before and after the cut date, and the result of the whole period with 0.10% extra fees per order. The Monte Carlo, the drawdown against holding and the result without the best trades are in the full dossier.

Try it on your own strategy

Upload the List of trades CSV: the free preview shows the result before and after your cut date, and with fees. No account and no Pine script needed.

See also: how to run an out-of-sample test on TradingView

Research on past data. Strategy Arena gives no investment advice and does not trade for you. Past results do not predict future results. TradingView is a trademark of TradingView, Inc.