Running a NinjaScript Strategy from the Strategies Tab
<< Click to Display Table of Contents >> Running a NinjaScript Strategy from the Strategies Tab |
You can run a NinjaScript strategy in real-time in a live or simulation account via the Strategies tab of the Control Center.
How to run a NinjaScript strategy from the Strategies tab
Setup TipsFollowing are some key points and instructions on on how to run a NinjaScript strategy from the Strategies tab of the Control Center window:
•NinjaTrader MUST be connected to a live brokerage or market data vendor •A NinjaScript strategy is a self contained automated trading system and orders generated are live and not virtual. Cancelling strategy generated orders manually can cause your strategy to stop executing as you designed it. If you want to manually cancel an order, terminate the strategy first. •Strategies initiated from the Strategies tab will NOT appear in a chart
Running a NinjaScript StrategyTo run a NinjaScript strategy from the Strategies tab:
1.Left mouse click on the Strategies tab found in the NinjaTrader Control Center 2.Right mouse click within the Strategies tab. The right click menu will appear. 3.Select the menu item New Strategy... The New Strategy window will appear. 4.Choose the strategy you wish to run from the list of Available strategies on the left 5.Set the instrument, interval, and other optional strategy properties (see the "Understanding strategy properties section below") and press the OK button 6.Check the box in the Enable column of the Strategies tab next to the strategy you wish to enable.
|
Understanding strategy properties
Strategy Properties (see image below)The image below shows the adjustable properties for a strategy available in the Strategies tab of the Control Center (see the "How to run a NinjaScript strategy in from the Strategies tab" section above):
|
How to view strategy performance
Strategy PerformanceWhile the Account Performance tab will generate performance report against your account's trade history, the Strategy Performance menu allows you to generate a performance report against the trades generated by the selected strategy.
•Real-time - Generates performance data for your real-time trades only (since the strategy started running) and will exclude historical trades. If your strategy held a virtual position (calculated against historical data) upon starting, a virtual execution representing the average price of this position will be injected into the real-time results to ensure that a trade pair can be created with the executions resulting from the closing of this position. •Historical & Real-time - Generates performance data for both historical and real-time trade data. •Historical - Generates performance data for historical data only. |