Command Builder
How to use the Command Builder
Last updated
How to use the Command Builder
Last updated
The Command Builder is an interactive tool that helps you construct commands for NinjaTrader 8 through a step-by-step interface. It allows you to generate properly formatted commands without needing to memorize the syntax.
The builder walks you through creating commands with these main sections:
Basic Configuration
Command Type: Choose between opening or closing positions
Account: Specify trading accounts (e.g., sim101,sim102)
Instrument: Enter the instrument in NT8 format (e.g., ES 03-25, ES MAR25)
Order Details (for PLACE commands)
Action: Buy or Sell (includes TradingView strategy entry option)
Quantity: Number of contracts
Order Type: Market or Limit
Time in Force: DAY or GTC
Limit Price (when Limit order type is selected)
Trade Management Two approaches available:
ATM Strategy
Use existing NT8 ATM templates
Must match NT8 strategy name exactly
Manual Stop/Target
Numerical, Tick-based, or Percentage-based values
Take Profit and Stop Loss settings
Advanced Stop Loss option for stop limit or stop loss stop orders
Enhancements Optional features to customize command behavior:
Flatten First: Close existing positions before placing new order
Require Position: Execute only if account position matches criteria
Trading Window: Set specific trading hours
Rate Limiting: Control order frequency
Delay Timer: Add execution delay
Choose between "Open a Position" or "Close a Position"
For Close Position, only Account and Instrument fields are required
Specify the account(s)
Enter the instrument using NT8 format
For PLACE commands, complete the order details
Select ATM Strategy or Manual Stop/Target
For ATM: Enter exact strategy name from NT8
For Manual:
Choose stop/target calculation method
Enter take profit and stop loss values
Configure advanced stop loss if needed
Enable and configure desired enhancements:
Flatten First: Check to close existing positions
Require Position: Select required market position
Trading Window: Set start and end times
Rate Limiting: Specify minimum seconds between orders
Delay Timer: Add execution delay in seconds
Click "Generate Command" to create the command
Command appears in Command Tester tab
Test the command using "Send to NT8"
Copy command and webhook URL for TradingView
Testing
Always test new commands in the Command Tester
Verify behavior with small quantities first
Test during market hours for accurate results
ATM Strategies
Double-check ATM strategy names
Ensure strategies are properly configured in NT8
Test ATM execution before live trading
Risk Management
Verify stop loss and take profit values
Test advanced stop loss configurations
Confirm position sizing is appropriate
Trading Hours
Set appropriate trading windows for your market
Account for market holidays and closures
Consider time zone differences
Common issues and solutions:
Command Not Executing
Verify NT8 Add-On connection
Check account names match exactly
Confirm instrument format is correct
Verify trading window settings
ATM Strategy Issues
Confirm strategy exists in NT8
Check strategy name spelling/case
Verify strategy is properly configured