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

# Modifying the price of stop loss and profit target orders

One of the benefits of **NinjaScript** is the ability to automatically submit stop loss and profit target orders in real-time triggered when your entry order is filled.

## Key concepts in this example

* Submitting a stop loss and profit target order using default values offset from your entry order average fill price
* Modification of the stop loss order to a break even price once a desired level of profit has been reached

## Important related documentation

* [SetStopLoss](/developer/desktop-sdk/references/strategy/order-methods/managed-approach/setstoploss)
* [SetProfitTarget](/developer/unsorted/setprofittarget)
* [SetTrailStop](/developer/desktop-sdk/references/strategy/order-methods/managed-approach/settrailstop)

## Import instructions

1. Download the file contained in this Help Guide topic to your PC desktop
2. From the Control Center window, select the menu Tools > Import > NinjaScript
3. Select the downloaded file

[SamplePriceModification\_NT8.zip](https://ninjatrader.com/support/helpGuides/nt8/samples/SamplePriceModification_NT8.zip)