Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

HELP! NTMarketPosition not working

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

    HELP! NTMarketPosition not working

    I have been trading live for the last three days (just started) using Tradestation to Ninjatrader via the dll. I call NTMarketPosition("myacctnumber") in the TScode to determine how many contracts I am in, to throw my exits. For the last three days, my code has worked perfectly. Today, the same code returns only zeros for NTMarketPosition. I tried to reboot, etc., to no avail.

    I am a fairly advanced programmer. I am debugging by entering into a position manually, then using a print statement (like below) to see what Ninja returns.... It returns zeros- even though I am in 1 contract.

    print(NTMarketPosition("91178xxx"));

    I don't believe I am doing anything different or wrong, from what has worked for the last three days.

    HELP!?

    #2
    - what's the exact symbol name on the TS chart?
    - please double check you are on latest 6.5.1000.2

    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