NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


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

Reference Samples Official NinjaScript reference code samples

Reply
 
Thread Tools Display Modes
Old 10-24-2007, 12:32 AM   #1
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default Strategy: Scaling out of a position

A common technique used by discretionary traders is scaling in and scaling out of a position. To scale out of a position refers to closing a portion of your position when you hit a profit target and then raising your stop to close your remaining portion later.

The attached reference sample demonstrates the following concepts:
  • Submitting Profit Target orders
  • Submitting Trailing Stop orders
  • Closing half of your position at a time
Important methods and properties include:Other methods and properties of interest include:* Entry handling properties can be either programmatically set or set through the Strategy dialog window

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
Attached Files
File Type: zip SampleScaleOut.zip (6.4 KB, 2643 views)
NinjaTrader_Josh is offline  
Reply With Quote
The following user says 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
Position scaling, Wizard vs. hand coding Pete S Automated Trading 2 07-03-2007 09:50 AM
Multiple instances of same position strategy in one DOM rossitercapital Miscellaneous Support 7 01-21-2007 05:25 AM
One Active Strategy on Scaling in.. Nelson1980 Miscellaneous Support 4 06-13-2006 01:06 AM
Reverse Strategy / Position Torso Automated Trading 2 02-17-2006 04:21 AM
Position Strategy Fills underground Miscellaneous Support 2 06-18-2005 04:40 AM


All times are GMT -6. The time now is 02:13 AM.