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 12-17-2009, 09:27 AM   #1
dancorcal
Member
 
Join Date: Jun 2009
Posts: 38
Thanks: 0
Thanked 1 time in 1 post
Default Using Unrealized Profit for Stop Loss and Profit Target

I am using a strategy that relies on limit orders generated and indicator levels but also has a stop loss and profit target. The issue is NT can't do limit orders while and existing profit target and stop loss are in place. My question is, can I use the unrealized profit value generating a market order to accomplish my stop loss and profit target goals?
dancorcal is offline  
Reply With Quote
Old 12-17-2009, 10:12 AM   #2
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

dancorcal,

You can use whatever logic you want. GetProfitLoss() will get you your unrealized PnL. http://www.ninjatrader-support.com/H...rofitLoss.html
NinjaTrader_Josh 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
Stop Loss and Profit Target on Stocks tjendra Automated Trading 2 05-04-2009 12:09 PM
Question on stop loss and profit target j4068 ATM Strategies (Discretionary Trading) 1 11-14-2008 07:28 AM
Print stop loss and profit target. Czarek Strategy Development 8 08-25-2008 11:44 PM
Profit Target and Stop Loss not honored pjwinner Strategy Analyzer 6 11-30-2007 09:45 AM
Stop Loss - profit target settings deanldavis475 Miscellaneous Support 1 11-26-2007 07:31 AM


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