Describe your Strategy
Describing your strategy means creating a set of objective rules that define the conditions used to enter and exit a market. Describing your strategy always starts with the wizard and then provides the following choices:
|•||Strategy Wizard with Condition Builder - This is a point and click approach for strategy description which is ideal for everyone from the non-programmer, novice programmer and advanced programmer. |
|•||NinjaScript Editor - This is a modern scripting editor with full inline syntax checking and intellisense. This is a great approach for those who want to manually code their strategy logic. If you are going to self code your strategy, please be familiar with the Initialize() and OnBarUpdate() methods. |
Backtest and Optimize your Strategy
Once you have completed describing your strategy you can then test it against historical data to objectively determine how the strategy performed on a specific market(s) in the past.
At this point in the process you will likely go through an iterative cycle by where you change your strategy description, backtest, change description and backtest until you have a strategy that meets your requirements.
See special instructions on running FX strategies.
Real-Time Test your Strategy
It is critical that before you deploy your strategy against your live trading account, that you test it in real-time operation to ensure that the mechanics (operation) of your strategy behaves as you would expect it to. In addition, you can also forward test your strategy using real-time market data against the NinjaTrader trade simulation engine. NinjaTrader provides several options for real-time testing:
|•||Simulated Data Feed Connection - This is an random internally generated market with user controlled trend and is great for force testing operation of a strategy|
|•||Market Replay Connection - Record, replay at user defined speeds multiple markets simultaneously and run your strategies|
|•||Real-time Simulation - Connect to your broker or market data vendor in real-time and run your strategies through our state of the art simulation engine|
You can run your strategy from either a chart or the Strategies tab of the Control Center window. You can generate real-time strategy performance data from the Strategies tab.
Running on your Live Trading Account
Now that you have described, backtested and real-time tested your strategy, you are ready to automate your strategy against your live trading account. A few tips you should know:
|•||Please make sure you fully understand Strategy Position vs Account Position... your strategy position is not a one-to-one relationship with your brokerage account position... you may need to synchronize if they are not synchronized. |
|•||Strategies are automatically terminated (stop running) on NinjaTrader shut down|
|•||Automated trading does not mean go fishing while your computer trades for you. We highly recommend that you are within close proximity to your computer while it is running an automated trading strategy; you never know what can go wrong|
|•||You can run multiple trading strategies at the same time in the same market|