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:

NinjaTrader 8

NinjaTrader 7

Import instructions:

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


NinjaTrader 7
  1. Download the file contained in this thread to your PC desktop
  2. From the Control Center window, select the menu File > Utilities > Import NinjaScript
  3. Select the downloaded file and click Import.
Attached Files