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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    68 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    62 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X