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 pechtri, 06-22-2023, 02:31 AM
    9 responses
    122 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by frankthearm, 04-18-2024, 09:08 AM
    16 responses
    66 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by habeebft, Today, 01:18 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by benmarkal, Today, 12:52 PM
    2 responses
    15 views
    0 likes
    Last Post benmarkal  
    Started by f.saeidi, Today, 01:38 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X