![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Oct 2007
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
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! |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
|
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.
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |