NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Educational Resources > Reference Samples

Reference Samples Official NinjaScript reference code samples

Reply
 
Thread Tools Display Modes
Old 09-06-2007, 12:46 PM   #1
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default Strategy: 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.

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:Other methods and properties of interest include:Import instructions:
  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
Attached Files
File Type: zip SamplePriceModification.zip (4.9 KB, 6202 views)
NinjaTrader_Josh is offline  
Reply With Quote
The following 5 users say thank you to NinjaTrader_Josh for this post:
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to tell if a stop loss/target has been hit in NinjaScrpt? zoltran Strategy Development 9 07-11-2012 02:11 AM
Profit Target / Trail Stop Executed dgregor5 Strategy Development 17 11-07-2007 02:03 PM
profit target - no stop Futures_Shark Suggestions And Feedback 1 08-14-2007 10:51 PM
Target and Stop Loss Orders on Dome Quicktrader10 General Programming 3 06-27-2007 02:00 PM
Default stop loss and profit target as GTC equitydealer General Programming 4 06-18-2007 11:31 PM


All times are GMT -6. The time now is 07:33 PM.