> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# Intermediate - RSI with Stop Loss & Profit Target

Our first tutorial covered using the [Strategy Builder](https://ninjatrader.com/support/helpGuides/nt8/?strategy_builder.htm) to create simple NinjaScript strategies or to build the framework needed for a more complex strategy.

This tutorial will cover another approach, using the NinjaScript [Editor](/developer/desktop-sdk/guides/ninjascript-editor-overview) and [New Strategy Wizard](/developer/desktop-sdk/guides/ninjascript-editor-overview/ninjascript-wizard).

1. Within the NinjaTrader Control Center window select the New NinjaScript  Editor... menu item

![NSTutControlCenter](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/656c47e39726d61fc9e20408904e94aefe3f574b18e4a966540c4a3e0137d89c/docs/assets/developer/desktop-sdk/shared/nstutcontrolcenter.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260729%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260729T071453Z&X-Amz-Expires=604800&X-Amz-Signature=2cec02f554e9ce493c8d00a5cf60f7eb7c5b0e5d6887c2653271cee6d97d96f7&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

![NSTutControlCenter2](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/892c806d4a4729a3d7917b6081eda9de2e5c8df2c10500f769595111dd4c9b22/docs/assets/developer/desktop-sdk/shared/nstutcontrolcenter2.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260729%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260729T071453Z&X-Amz-Expires=604800&X-Amz-Signature=919c16a687040e400c448b63f761b62c633cc9d73b1c37d919e9652579d5816e&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

2. Click the "+" tab in the lower left, and select New Strategy to open a New Strategy Wizard

![RSIwithStopAndTargetSetUp1](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/b9de2ea316ea0730ef78b8be70db75ff81fbc9e9e8dd7228d3246222c69d2d22/docs/assets/developer/desktop-sdk/shared/rsiwithstopandtargetsetup1.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260729%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260729T071453Z&X-Amz-Expires=604800&X-Amz-Signature=66507730808e86cb491ed9a39499173258dfd70203a69683a5f6330ac36c7c4d&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

3. Enter the information as shown below

4. Press the "Next >" button until we are at the Inputs and Parameters page

![RSIwithStopAndTargetSetUp2](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/91b14681f2e9faf81223e01a1bf285cb8302dbd79366194b75e12bec70e98a34/docs/assets/developer/desktop-sdk/shared/rsiwithstopandtargetsetup2.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260729%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260729T071453Z&X-Amz-Expires=604800&X-Amz-Signature=04c197ebd57131946564718bc6d8f310739b03c15aae2506c742799ba1c638ef&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

## 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.

5. Click the add button to create a User Input Parameter (See item 1 in the screenshot below)

6. Fill out the Input Parameters window and click OK to create the input parameter (See item 2 in the screenshot below)

![RSIwithStopAndTargetSetUp3](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/f765f393e47996ac263c36c04e08d015e0a9ad06aee9e0f1d872886c5b7237a0/docs/assets/developer/desktop-sdk/shared/rsiwithstopandtargetsetup3.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260729%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260729T071453Z&X-Amz-Expires=604800&X-Amz-Signature=ced893f9258a6439024122564cffd0af3cbdca44b711e2fe0c78b1c939e49d35&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

7. Add the inputs as per the image below

![RSIwithStopAndTargetSetUp4](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/cb7c8df9310b461ed77c7c1b3650efff18d222f31a6dc528e9c257ae9fc3ff4a/docs/assets/developer/desktop-sdk/shared/rsiwithstopandtargetsetup4.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260729%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260729T071453Z&X-Amz-Expires=604800&X-Amz-Signature=7259e9cb3c2dc922d8959bd8b9c1aa6769af35feff21e258c903363a47dbf691&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

8. Press the "Generate" button to generate the code in the NinjaScript Editor.

You are now ready to continue to the [Entering Strategy Logic](/developer/desktop-sdk/guides/educational-resources/developing-strategies/intermediate-rsi-with-stop-loss-profit-target/entering-strategy-logic) page of this tutorial.