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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    80 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    46 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    29 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    66 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X