NinjaTrader_Josh
09-06-2007, 01:46 PM
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.
The attached reference sample demonstrates the following key concepts:
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 methods and properties used include:
SetStopLoss() (http://www.ninjatrader.com/support/helpGuides/nt7/setstoploss.htm)
SetProfitTarget() (http://www.ninjatrader.com/support/helpGuides/nt7/setprofittarget.htm)
Other methods and properties of interest include:
SetTrailStop() (http://www.ninjatrader.com/support/helpGuides/nt7/settrailstop.htm)
Import instructions:
Download the file contained in this thread to your PC desktop
From the Control Center window, select the menu File > Utilities > Import NinjaScript
Select the downloaded file
The attached reference sample demonstrates the following key concepts:
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 methods and properties used include:
SetStopLoss() (http://www.ninjatrader.com/support/helpGuides/nt7/setstoploss.htm)
SetProfitTarget() (http://www.ninjatrader.com/support/helpGuides/nt7/setprofittarget.htm)
Other methods and properties of interest include:
SetTrailStop() (http://www.ninjatrader.com/support/helpGuides/nt7/settrailstop.htm)
Import instructions:
Download the file contained in this thread to your PC desktop
From the Control Center window, select the menu File > Utilities > Import NinjaScript
Select the downloaded file