Operations > Strategy Wizard >

Wizard Screens

Print this Topic Previous pageReturn to chapter overviewNext page

Whether you are going to self program your strategy or use the wizard exclusively, a strategy is always initially created via the Strategy Wizard.

 

tog_minusUnderstanding the Opening screen

Opening Screen Layout

This is the first screen in the Strategy Wizard.

 

Strategy_Wizard_1

 

1.Press the Help button to open the NinjaTrader Help Guide
2.Press the View Code... button at any time to view the wizard generated NinjaScript code
3.Press the Unlock Code button at any time to open the NinjaScript editor and edit your strategy code.
Once the code is unlocked, you can no longer use the wizard for subsequent strategy editing
4.Press the Compile button at any time to compile your strategy code.
5.Press the <Back or Next> buttons to move back or forth between wizard screens
6.Press the Cancel button to leave the Strategy Wizard

 

Note: Should you want to make a copy of your strategy you can press the View Code... button and then right click in the NinjaScript Editor and select "Save As...".

tog_minusUnderstanding the General screen

General Screen Layout

The General screen is where you enter the name and description of your strategy.

 

Strategy_Wizard_2
 

1.Sets the name of the strategy
2.Sets the description of the strategy
3.Enables or disables the default setting for CalculateOnBarClose (can override when starting a strategy)
tog_minusUnderstanding the User Defined Inputs screen

Defined Inputs Screen

This screen allows you to define user defined inputs of your strategy. User defined inputs are important if you require input values that may vary the performance of your strategy. If for example you have a simple moving average cross over system, you may want to create an input for the fast moving average and another for the slow moving average. This then allows you to change the values of the moving averages at run time. Inputs are also required if you plan to use the Strategy Optimizer or the Walk Forward Optimization.

 

Strategy_Wizard_3

1.Sets the name of the input
2.Sets the value type of the input to either "int" (integer value - whole numbers) or a "double" (double value - decimals) or a "bool" (true or false) or a "string"
3.Sets the default value of the input
4.Sets the minimum value of the input
5.Sets the description for the input
tog_minusUnderstanding the Conditions and Actions screen

Conditions and Actions

This screen allows you to set conditions and subsequent actions that control the flow of your strategy.

 

Conditions - Take the specified action when true
Actions - Execute an action (submit orders, draw objects on the chart etc...) based on its parent condition evaluating to true

 

Via the wizard, you can have up to ten different condition sets with related actions. If you require more than ten condition sets, then you should self code your strategy via the NinjaScript Editor. Conditions are created using the Condition Builder. Actions are specified by the Strategy Action window.

 

Strategy_Wizard_4

 

1.Selects the condition set you wish to edit
2.Displays conditions associated with the currently selected condition set
3.Add or delete a condition
4.Edits the currently selected condition
5.Displays the actions associated with the currently selected condition set
6.Add or delete an action
7.Edits the currently selected action

 

You can copy and paste conditions from one set to another and you can even save a condition set as a template and load for future use via the right mouse button click context menu as show in the image below. You can also save a condition set as a template (selecting the Save As... menu item) and then re-use it in another strategy at a later time by selecting the Load... menu item.

 

Strategy_Wizard_5

tog_minusUnderstanding the Stops and Targets screen

Stops and Targets Screen

This screen allows you to set stop loss, trail stop and profit target orders that are automatically submitted and managed once your strategy opens a position.

 

Strategy_Wizard_6

 

1. Displays stops and targets associated with your strategy

2. Adds or deletes a stop or target

3. Edits the selected stop or target

tog_minusUnderstanding the Finish screen

Finish Screen

Once you reach this screen you are finished with developing your strategy. Press the Finish button to compile your strategy which will then be ready for testing or live execution.

 

Strategy_Wizard_7