You can run a NinjaScript strategy in real-time in a live or simulation account. Following are some key points and instructions on on how to run a NinjaScript strategy from the Strategies tab of the Control Center window.
1. Within the NinjaTrader Control Ceneter which will bring up the "New Strategy" properties window
window, select the "Strategies" tab, then click on the right mouse button to bring up the context menu in the image below and select the "New Strategy..." menu

2. Within the "New Strategy" properties window pictured below, select the strategy you wish to run
3. Select the instrument and interval that you want to run your strategy on
4. Set the amount of historical data required to initialize your strategy and define the session time

5. Set the rest of the strategy's properties
6. Press the "OK" button to add the strategy to the Strategies tab grid
7. Press the "Start" button to run the strategy

8. To terminate (stop running) a strategy, press the "Stop" button
Property Definitions
|
Parameters section |
Sets any strategy specific user defined inputs |
|
Instrument |
Sets the instrument the strategy will run on |
|
Type |
Sets the interval type (Tick bars, minute bars etc...) |
|
Value |
Sets the bar compression value (1 minute bars in the above image) |
|
From |
Sets the start date for the historical data set |
|
Exclude weekend |
If true, will exclude weekend data from the historical dataseries |
|
Session begins |
Starting time of the intraday session for the historical dataseries |
|
Session ends |
Starting time of the intraday session for the historical dataseries |
|
Account |
Sets the account the strategy will execute orders in |
|
Calculate on bar close |
If true, will only calculate the strategy's value on the close of a bar else its calculated with each incoming tick |
|
Label |
Sets a text value that will be displayed on the chart to represent the strategy |
|
Min. bars required |
Sets the minimum number of bars required before the backtest will start processing |
|
Fill type |
Sets the algorithm for processing and filling orders on the historical data portion of the chart |
|
Slippage |
Sets the slippage amount in ticks for the historical portion of the chart |
|
Entries per direction |
Sets the maximum number of entries allowed per direction while a position is active based on the "Entry handling" property |
|
Entry handling |
Sets the manner in how entry orders are handled. If set to "AllEntries", the strategy will process all entry orders until the maximum allowable entries set by the "Entries per direction" property has been reached while in an open position. If set to "UniqueEntries", strategy will process entry orders until the maximum allowable entries set by the "Entries per direction" property per each uniquely named entry. |
|
Exit on close |
When enabled, open positions are closed on the last bar of a session |
|
Exit on close seconds |
Sets the number of seconds prior to the end of a session that the any an open position(s) of a strategy is closed |
|
Stop & target submission |
Sets how stop and target orders are submitted |
|
Set order quantity |
Sets how the order size is determined, options are: "by default quantity" - User defined order size "by strategy" - Takes the order size specified programmatically within the strategy
|
|
Time in force |
Sets the order time in force |