NinjaTrader Support Forum  
X

Attention!

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


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 06-30-2008, 01:38 AM   #1
naifwonder
Junior Member
 
Join Date: Feb 2007
Location: , ,
Posts: 27
Thanks: 0
Thanked 0 times in 0 posts
Default Using market orders for SetProfitTarget

I am using the SetProfitTarget function to set profit targets for my entries. Is it possible that I can set the order to execute as a market order instead of a limit order at the profit target using SetProfitTarget? I can do this manually by having the system detect when the profit target is hit then send a market order to exit, but being able to use SetProfitTarget would make things much easier.
naifwonder is offline  
Reply With Quote
Old 06-30-2008, 01:58 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

>> Is it possible that I can set the order to execute as a market order instead of a limit order at the profit target using SetProfitTarget?
Unfortunately this is not supported.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 06-30-2008, 03:34 AM   #3
twtrader
Junior Member
 
Join Date: Jun 2008
Location: Chicago
Posts: 28
Thanks: 0
Thanked 0 times in 0 posts
Default

Just keep polling in the update loop for the price on every tick in NinjaSript. When you see the price you want on the bid or ask, just exit with a market order.

TW
twtrader 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
Converting to Market Orders PHOLAN Automated Trading 12 06-01-2008 03:12 PM
Market and limit orders Infinity SuperDOM and other Order Entry Windows 1 04-01-2008 01:53 PM
Question about Stop Market orders uptick Miscellaneous Support 0 07-13-2005 07:52 AM
Market Orders in DOM Window Savage1701 Miscellaneous Support 1 04-11-2005 07:20 AM
Market at time orders ddunne82 Miscellaneous Support 3 04-05-2005 06:02 AM


All times are GMT -6. The time now is 02:38 PM.