PDA

View Full Version : Check for "No Working Orders"


whitmark
03-27-2006, 12:29 AM
I am placing orders directly to Ninja from Neoticker strategy over the DLL. I would like to submit orders to Ninja when the market position is flat and when there are no working orders. Iuse the MarketPosition function to determine when I am flat easy enough but how do I go about checking to ensure there are no working orders active? The only solution I see is to inspect the status of each previously submitted order but I assume (and hope) there is an easier way to do this. Please advise.

Regards,

Whitmark

NinjaTrader_Ray
03-27-2006, 01:45 AM
Get a list of all order ids via Orders() and then call OrderStatus() on each one.