Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Function int NTFilled(string orderId)

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

    Function int NTFilled(string orderId)

    okay say we bought 1000 shares of MSFT.

    we used
    NTBuyMarket("X", 1000);

    then we sell 200 shares of MSFT using
    NTSellMarket("Y", 200);

    so we are long 800 shares of MSFT

    int NTFilled(string orderId)
    Gets the number of contracts/shares filled for the orderId/account combination.

    Now does NTFilled("X") return ----> 1000? because that is what we were filled or does it return 800. I'm pretty sure it's 1000, but just gotta make sure.

    Thanks

    #2
    >> Now does NTFilled("X") return ----> 1000?
    correct

    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
    18 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