Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Check for "No Working Orders"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Check for "No Working Orders"

    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
    whitmark
    NinjaTrader Ecosystem Vendor - Whitmark Development

    #2
    imported post

    Get a list of all order ids via Orders() and then call OrderStatus() on each one.
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Davidtowleii, Today, 12:15 AM
    0 responses
    3 views
    0 likes
    Last Post Davidtowleii  
    Started by guillembm, Yesterday, 11:25 AM
    2 responses
    9 views
    0 likes
    Last Post guillembm  
    Started by junkone, 04-21-2024, 07:17 AM
    9 responses
    68 views
    0 likes
    Last Post jeronymite  
    Started by trilliantrader, 04-18-2024, 08:16 AM
    4 responses
    20 views
    0 likes
    Last Post trilliantrader  
    Started by mgco4you, Yesterday, 09:46 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X