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 kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    89 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    92 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    70 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    87 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    64 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X