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 Development Support > Strategy Development

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

Reply
 
Thread Tools Display Modes
Old 08-09-2010, 12:27 PM   #1
drachma
Junior Member
 
Join Date: Jul 2010
Location: Canada
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default How to determine our place in the queue

I was wondering if there is a way to determine our position in the queue.
I read about FIFO and how it should be handled. But the price is often touched but the profit target seems to be filled last.

I am using a strategy that creates a trailing profit target based on the average price,
SetProfitTarget("EntryName",CalculationMode.Price, NewTarget);

Does this command puts me back at the end of the queue?
Or do I retain my priority if the new profit target is at the same price as the existing one?
drachma is offline  
Reply With Quote
Old 08-09-2010, 01:20 PM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello Drachma,

Welcome to the NinjaTrader forums!

Unfortunately the order position is not exposed to NinjaTrader. If there are not changes to the price (or other modifications), then your position should remain unchanged. As soon as NewTarget is updated, your order will be moved to a different level.
NinjaTrader_RyanM is offline  
Reply With Quote
Reply

Tags
fifo, line, priority, queue, setprofittarget

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
Estimated Position In Queue wenzi SuperDOM and other Order Entry Windows 6 12-23-2009 12:43 PM
re: entry and exit order in queue.. sev888 ATM Strategies (Discretionary Trading) 3 09-21-2009 06:52 AM
How to programatically determine if I am in a trade? DancesWithBears Indicator Development 2 08-20-2009 03:50 PM
Queue depth from DOM ct Suggestions And Feedback 4 04-27-2007 11:38 PM
DOM Queue depth ct General Programming 2 04-25-2007 04:50 PM


All times are GMT -6. The time now is 12:35 PM.