Modifying the price of stop loss and profit target orders

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Educational Resources > Reference Samples > Strategy >

Modifying the price of stop loss and profit target orders

Previous page Return to chapter overview Next page

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()

SetProfitTarget()

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