02-23-2008, 11:15 PM
|
#1
|
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
Strategy: Monitoring Stop-Loss and Profit Target Orders
Reference sample for NinjaTrader 6.5.XXXX.X or greater.
At times you may have a need to monitor the stop-loss and profit target orders generated by the SetStopLoss(), SetTrailStop() or SetProfitTarget() methods. You can accomplish this by capturing their unique IOrder.Token values as the the OnOrderUpdate() method is called and process them into a collection for future referencing.
The attached reference sample demonstrates the following concepts: - Monitoring stop-loss order states
- Monitoring profit target order states
Important methods and properties include: Other methods and properties of interest include: Import instructions for NinjaTrader 6.5.XXXX.X or greater:- 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
Josh
NinjaTrader Customer Service
|
|
|