NinjaScript > Educational Resources > Tutorials > Strategies > Intermediate - RSI with Stop Loss & Profit Target >

Set Up

Print this Topic Previous pageReturn to chapter overviewNext page

The first step in creating a custom strategy is to use the custom strategy wizard. The wizard provides two options:

 

Allow you to create a functional strategy without any programming
Generate the required NinjaScript code that will serve as the foundation for your custom strategy for further coding

 

This tutorial will cover the latter, conscructing a strategy via direct coding in the NinjaScript editor.

 

1. Within the NinjaTrader Control Center window select the Tools > New NinjaScript > Strategy... menu

2. Press the "Next >" button

 

Tutorials_Strategies_13

 

3. Enter the information as shown above

4. Press the "Next >" button

 

Defining Input Parameters

Below you will define your strategy's input parameters. These are any input parameters that can be changed by the user when running or backtesting a strategy. If your strategy does not require any parameters leave the "Name" fields blank.

 

Tutorials_Strategies_14

 

5. Add the inputs as per the image above
6. Press the "Unlock Code" button to launch the NinjaScript Editor.