Ninja Mobile Trader VPS Blog

Configure NinjaTrader Risk Templates for Local Simulation

Set instrument margin, maximum order size and maximum position size in NinjaTrader Desktop. Assign the template to Sim101 and verify it in your hosted workspace.

NinjaTrader Edit Risk window with separate instrument margin, Max Order Size and Max Position Size fields

To limit order and position size on a local practice account, open Tools > Risk in NinjaTrader Desktop on your Ninja Mobile Trader VPS. Create a named template for the instrument, then assign it to Sim101 in the Control Center. Saving the template and assigning it to an account are two separate steps.

NMT hosts the Windows installation where you do both. You can set up the practice rules from a PC and reopen the same account editor from a Mac or tablet connected to that VPS. This walkthrough uses a local simulation account. Your broker or funded program sets the rules for its own accounts.

Create a risk definition for one instrument#

  1. In the hosted Desktop Control Center, open Tools > Risk. Under Templates, select add and give the template a recognizable name such as One-contract practice. To start from a saved template, select it and choose copy, then name the copy.
  2. Under Margin per instrument, select add and choose the instrument you intend to practice with. Each instrument can have one definition in the template. If a row already exists for that instrument, edit it.
  3. Enter the margin assumptions and size limits for your exercise. Confirm the instrument row with OK, then select Apply in the Risk window to save the template. The illustration shows where to enter the values. Its numbers are examples from the platform manual. NinjaTrader Risk window
Field in the instrument editor What to enter for the exercise
Buy Intraday Margin and Sell Intraday Margin The simulated margin required per contract for buy and sell orders. Check both if you plan to practice in both directions.
Initial Margin and Maintenance Margin The initial and maintenance amounts you want the simulator to use for this instrument. Use your own practice assumptions.
Max Order Size The largest single order quantity allowed for the instrument.
Max Position Size The largest position size allowed for the instrument. Count the position you already hold when planning the next simulated order.

For example, an exercise with Max Order Size set to 1 and Max Position Size set to 2 asks two different questions. Starting flat, a single two-contract order exceeds the order limit. Two separate one-contract buys can reach the position limit if both fill and account funds and other settings permit. Adding a third contract on the same side would exceed the position limit. These quantities describe the practice exercise and imply no particular margin rate.

Assign the template and check the account#

  1. In Control Center > Accounts, right-click the intended local simulation account and choose Edit Account. If Sim101 is missing, check local simulation account availability before continuing.
  2. In the Risk property, select the template name you saved and confirm the change. Reopen Edit Account and read the selection back. Where the account editor shows Max order size and Max position size, record both account-level limits alongside the instrument limits. A one-contract account position cap can block the second buy in the example. If an account cap equals the instrument cap, an order that exceeds both caps can be rejected under either rule. The rejection alone cannot tell you which cap applied. NinjaTrader Accounts tab
  3. Start a practice check with the intended account flat and without working orders. Confirm that the order-entry window shows that same simulation account and instrument, and keep live strategies and copier destinations out of the exercise. Record the template name, starting position, order quantity and observed result.

If you apply a template while already holding a simulated position, the definitions take effect on assignment. Some displayed margin amounts recalculate only when the position updates. In the Accounts grid, use Properties to show the relevant margin columns and check them after the next planned simulated position update. A stale displayed amount alone does not tell you that assignment failed. NinjaTrader’s calculation notes

When a practice result differs from the template#

If a one-contract practice order is blocked, first compare the current position with Max Position Size, then check the instrument row, available simulated funds and both account-level caps. Check the order cap against the quantity you submitted and the position cap against the position that order would produce. A tighter account cap can block the test before the instrument limit is reached. If a larger order goes through, reopen Edit Account on the account that actually received it. A different simulation account or instrument can explain why the saved settings and the result disagree.

For starting cash and fill behavior, use the Sim101 setup guide. To include modeled fees in a practice report, use the commission template guide.

Keep your practice setup on one Windows desktop

Ninja Mobile Trader hosts NinjaTrader Desktop on Windows. When you switch devices, connect to the same VPS to use the installation where you saved your risk templates. Our hosted NinjaTrader guides cover the rest of the workspace setup.

Compare Ninja Mobile Trader VPS plans

Back to Blog