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.
No CSV at hand? Try the preview on the example export (1 click) →
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
- Open the Strategy Tester: Add your strategy to a TradingView chart and open the Strategy Tester panel under the chart.
- 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.
- Export the CSV: Click the export (download) icon of that tab and keep the CSV file.
- 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
- Shuffling the order of the trades: the final compounded result stays the same (a product does not depend on the order), but the drawdown changes. You learn whether the drawdown you saw in TradingView was a calm draw or a typical one, and how deep it gets once in twenty orders.
- Drawing the trades with replacement (bootstrap): some trades come twice, others not at all. The final result now varies, and the share of draws that end at or below zero tells you how much the result rests on a few trades.
- A range instead of one number: a drawdown band and a result band, which are better inputs for position sizing than the single run.
What it does not show
- Whether the settings were tuned on the same history. Draws reuse the trades you already have; if the parameters were chosen while looking at them, every draw inherits that. A cut date (trades before and after the date up to which you tuned) answers that question; the Monte Carlo does not.
- Markets your history does not contain. If the sample has no crash, no draw will invent one.
- Streaks. Shuffling breaks the links between consecutive trades; if losses tend to come in clusters, real drawdowns can be deeper than the shuffled ones.
- Costs missing from the export. If the strategy was tested with zero commission, every draw is too optimistic; add fees first (see the fee calculator).
- The rule itself. It works on exported trades, without replaying the Pine script on other data.
TradingView, a spreadsheet or the dossier: what each one gives you
| TradingView Strategy Tester | Spreadsheet (Excel, Google Sheets) | Strategy Arena dossier | |
|---|---|---|---|
| Monte Carlo on trade order | No | By hand: random column, sort, recompute the equity curve, repeat | Yes, reproducible draws (seed taken from the file) |
| Resampling with replacement | No | By hand, one formula per draw | Yes, share of draws at or below zero |
| Before / after the date you tuned up to | Re-run on a shorter date range, one part at a time | Filter by date and recompute | Yes, in the free preview |
| Extra fees per order | Change the commission in the strategy properties and re-run | One formula per trade | 0.10% in the free preview; the fee level that cancels the edge in the dossier |
| Result without the 3 best trades | No | Sort and remove by hand | Yes |
| What you need | The strategy on a chart | The CSV and time | The CSV only: no account, no Pine script, raw CSV not kept |
| Cost | Included in your TradingView plan | Free | Free 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.
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.