NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 10-10-2007, 07:50 AM   #1
fifty2aces
Junior Member
 
Join Date: Oct 2007
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default Splitting Profit Targets

I've recently discovered ninjatrader, and I'm trying to create a strategy which mimics the way I manually trade. I've managed to get the entries working, but can't figure out the exit. What I want to do is have a fixed profit target where half the position will be closed, and a trailing stop which will either close the entire position (if the fixed target isn't met) or close the second half of the position.

Any ideas? I've only just started learning C#, so please be gentle!
fifty2aces is offline  
Reply With Quote
Old 10-10-2007, 08:00 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
Default

Welcome to NinjaTrader!

Your requirement is actually the basis for a reference sample that I wanted to provide to the community. Please bear with me as I will have a reference sample demonstrating how to accomplish this on the site in this section by early next week.
NinjaTrader_Ray is offline  
Reply With Quote
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
Add Target/Splitting Orders pivot44 Automated Trading 10 09-04-2012 06:58 AM
Profit Targets & 'Exit on Close' dgregor5 General Programming 2 07-15-2007 01:35 PM
Printing Current StopLoss & Profit Targets Jim-Boulder Strategy Analyzer 1 06-25-2007 11:16 AM
Profit Targets in Strategy Wizard gregw Strategy Development 3 01-24-2007 09:30 AM
Max Targets for Adding Targets pivot44 Suggestions And Feedback 1 06-20-2006 01:49 AM


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