You can write a rule like 'buy when the 9-period average crosses above the 21-period average, exit at a fixed stop or target' in NinjaTrader 8 without typing a line of code. That's what the Strategy Builder is for. It generates NinjaScript from conditions and actions you choose from menus. It's useful for trying a simple idea quickly and for learning how automation behaves in NT8. It isn't a way to build complex logic, and building a strategy there says nothing yet about whether it makes money.
What it can and can't do
The builder handles indicator comparisons, price comparisons, crossovers, time conditions and fixed or indicator-based exits. It does not handle custom math, dynamic position sizing from account equity, portfolio-level controls or multi-step state logic. If your rule needs those, you'll move to NinjaScript. For how YMI's automated tools behave, read the published specs at KPL bot specs and Marty bot specs instead of trying to rebuild them from a description. Bot access is part of the Pro tier, covered on the Pro page.
Opening the builder and setting entry rules
Your next step
Review the setup before you automate it.
Read the NinjaTrader setup and strategy limits, then test in SIM. YMI bot access belongs to Pro. Check your broker or prop firm's rules before enabling automation.
In the Control Center, open the New menu and choose Strategy Builder, then follow the wizard in the NinjaTrader 8 help guide (https://ninjatrader.com/support/helpguides/nt8/) for your installed version. Name the strategy something specific, set default quantity and order handling, and then add conditions. Each condition has a left value, an operator and a right value.
Example long entry: left side is a 9-period simple moving average of close, operator is Crosses Above, and right side is a 21-period simple moving average of close. Add a second condition joined with AND, such as close above VWAP. All conditions must be true on the same bar. Use current or earlier bars only. Referencing a future bar creates look-ahead bias, and the backtest will look better than anything you could have traded.
Exits and what the numbers mean
Set a profit target, a stop loss, and optionally a time or indicator exit. Take a hypothetical ES setup with a 10-tick target and a 6-tick stop. At $12.50 per tick that's $125 to win and $75 to lose per contract. That's a 1.67 to 1 ratio before costs. Now add a hypothetical $5.00 round-trip commission. Net win is $120 and net loss is $80, so the break-even win rate is 80 divided by 200, or 40 percent. Slippage on the stop moves that higher. If the stop fills one tick worse, the loss becomes $92.50 and the break-even rises to about 43.5 percent. Your actual commissions, fees and slippage will differ, so enter your own in the analyzer.
For intraday rules, use the strategy's exit on close setting or an explicit time condition rather than relying on yourself to flatten manually. Check what time zone the chart and time condition use. NinjaTrader works from the chart's session template and your computer's settings, so set it deliberately instead of assuming Eastern time.
Time filters: test them, don't assume them
Time conditions let you restrict entries to windows, for example from the 9:30am ET RTH open to 11:30am ET, joined with OR logic to a second window. Whether skipping a given window helps is a question for your own backtest and later forward testing. Some strategies behave differently across the day, others don't. Compare results with and without the filter on data the filter wasn't tuned on.
Backtesting in the Strategy Analyzer
Open the Strategy Analyzer and set the instrument, date range, bar type and period, and commission. For futures, choose the contract deliberately. Use the front-month contract for the period tested and an appropriate merge policy for longer histories, and be suspicious of a short test window caused by a bad roll. Don't assume roll dates or contract months are the same across products.
Read the whole report, not only net profit. Look at net after costs, maximum drawdown, trade count, average win versus average loss, and the equity curve. A count of 30 trades can't establish an edge, and a single large drawdown can end an account even if the total looks good. Profit factor thresholds quoted online are rules of thumb, not proof.
Optimization without fooling yourself
The analyzer can test many parameter combinations. The risk is selecting the best past result and calling it a strategy. Define a small, sensible range up front, optimize on one period, and judge on a period you held back. Walk-forward testing in NT8 does a structured version of the same idea. If the top settings collapse out of sample, simplify the rules instead of searching for a new combination.
SIM testing and going live
Run the strategy on a SIM account to check mechanics: entries fire when expected, orders attach correctly, exits work, nothing errors in the log, and the chart matches the bar type used in the backtest. A common trap is backtesting on a specific contract month and running live on a different one. Another is a data connection drop that misses signals.
Don't treat a set number of SIM days or trades as proof. A simulated fill isn't exchange queue or slippage validation, and SIM won't reproduce live fills or how you'll act when real money is at risk. If you go live, start at the smallest size, compare live fills, costs and drawdown to what the backtest and SIM showed, and scale only if the gaps are explainable. If you trade a prop firm account, read that firm's rules on automation before running any strategy on it.
About the Author
Founder, Young Money Investments · Quant Trader
Cameron trades ES, NQ, and futures across multiple market cycles. He founded Young Money Investments to teach systematic, data-driven trading and manages Magnum Opus Capital. His work emphasizes documented rules, risk controls, and review over outcome promises.
Free, No Credit Card
Get the Free Room Preview
See how the room works before choosing a membership. Follow a setup in SIM and review what happened.
Risk Disclosure & Disclaimer
Educational Purposes Only: The content provided in this blog is for educational and informational purposes only. It does not constitute financial, investment, or trading advice. Young Money Investments is not a registered investment advisor, broker-dealer, or financial analyst.
Risk Warning: Trading futures, forex, stocks, and cryptocurrencies involves a substantial risk of loss and is not suitable for every investor. The valuation of futures, stocks, and options may fluctuate, and as a result, clients may lose more than their original investment.
CFTC Rule 4.41 - Hypothetical or Simulated Performance Results: Certain results (including backtests mentioned in these articles) are hypothetical. Hypothetical performance results have many inherent limitations. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown. In fact, there are frequently sharp differences between hypothetical performance results and the actual results subsequently achieved by any particular trading program.
Testimonials: Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.



