On your Ninja Mobile Trader Windows VPS, select a completed Strategy Analyzer result, open the Display menu and choose Monte Carlo. NinjaTrader draws repeatedly from those historical trades to show how widely an outcome such as net profit or drawdown can vary. You can open the same hosted NinjaTrader Desktop workspace from a Mac or mobile device and inspect the result there.
Start with one trade list you can identify#
Choose the backtest you want to examine. Record the strategy inputs, instrument, dates, trade count and whether the test included commissions. If you have yet to produce that trade list, use the Strategy Analyzer backtest guide. A completed optimization or walk-forward run can also supply trades. For either, choose the specific result you want to examine. Check its trade count in the Trades display, then switch the Display menu to Monte Carlo.
The simulator samples with replacement. A trade can appear more than once in a simulated sequence, while another can be absent. Even when the simulated and original lists have the same trade count, their total profits can differ. The sample can only draw on outcomes represented by the trades you gave it. NinjaTrader’s Monte Carlo instructions
Generate a baseline, then change one setting#
The example image from NinjaTrader’s manual has both outlier filters set to 5%. For a first run, keep every trade in the sample.
- Set Graph to net profit for a first look at the spread of final results. Include both winners and losers and both long and short trades. Set both outlier-removal percentages to zero to retain the tails of your sample.
- Record the number of simulations and the number of trades per simulation. The first controls how many hypothetical sequences NinjaTrader draws. The second controls the length of each sequence and defaults to the trade count in the report.
- Select Generate. Keep a screenshot of the graph with the settings visible. To see how dependent the result is on a few large winners, change only the winning-outlier percentage, generate again and label the second graph with that change. Restore the baseline filters before examining another statistic.
Read a percentile on the graph#
Find a percentage along the horizontal axis, trace up to the curve, then read the selected statistic on the vertical axis. Suppose the net-profit curve for 1,000 simulations crosses 10% at −$300. With no ties at that point, about 100 simulated sequences finished at or below −$300 under those settings. That percentage describes draws from this trade list. Assigning odds to a future trading period would require evidence beyond this simulation.
Net profit summarizes where a sequence ends. Drawdown measures how far its running total falls from a previous peak. These two illustrative paths use the same four trades and start at zero.
| Trade sequence | Final net profit | Largest peak-to-trough loss |
|---|---|---|
| +$100, +$100, −$100, −$100 | $0 | $200 |
| +$100, −$100, +$100, −$100 | $0 | $100 |
In the first path the running total reaches $200 before returning to zero. In the second, each $100 gain is followed by a $100 loss. Select the drawdown statistic to examine that difference across simulated paths. Read its units and sign from the vertical axis. Moving right along this graph takes you to a higher percentile. NinjaTrader’s definitions of net profit and drawdown
Keep the settings with the result#
Save the source report dates and trade count alongside each graph. More draws from that list still use the original test’s market conditions and fill assumptions. If the question is how chosen parameters performed on a later historical period, use the walk-forward optimization guide. NinjaTrader also documents how historical and real-time fills can differ. Historical versus real-time fills
Keep Strategy Analyzer on your hosted desktop
We host the Windows installation that holds your strategies and test results. Review the hosted NinjaTrader workflows, then choose a plan for the charts and strategies you run together.