NinjaScript Generator
Turn explicit trading rules into NinjaScript for NinjaTrader 8. Use TradeScriptAI to draft a strategy or indicator, review validation results, and revise the source before testing it in NinjaTrader.
Basic starts at US$19/month. A paid plan is required to generate code.
What you can build
- Strategies with defined position sizing and exits
- Custom NinjaTrader indicators
- Help revising C# logic and compile errors
Use a supported NinjaTrader 8 desktop installation with a simulation account and suitable historical data. TradeScriptAI generates source code; it does not connect or operate your brokerage account.
An example prompt
Create a NinjaTrader 8 strategy named EmaCrossExample. Calculate on bar close. After at least 21 bars, enter long with one contract only when the 9-period EMA crosses above the 21-period EMA and the position is flat. Exit on the opposite cross. Use a 20-tick stop and a 40-tick target attached to the entry. No short entries or pyramiding. Make the EMA lengths and risk distances configurable.
This is an educational specification, not a tested trading system or a performance claim.
From rules to a script you can inspect
Choose NinjaTrader 8, describe your rules, and review the generated source and validation status. Ask for a revision when behavior differs from your specification. Export the code and test it in the destination platform before using it.
Create a NinjaTrader strategy from trading rulesWhat validation tells you
The NinjaScript workflow includes C# compilation and a bar-replay harness. Those checks are not a substitute for compiling against your installed NinjaTrader version, dependencies, and data. Replay is a code-behavior check, not a broker execution guarantee.
NinjaTrader 8 official help guideBuild with TradeScriptAI
Basic costs US$19/month and includes 50 code generations per month on one selected platform. Starter costs US$49/month and includes unlimited code generation across all three supported platforms. There is no free generation tier.
