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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    284 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    177 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    172 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    262 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    215 views
    0 likes
    Last Post CarlTrading  
    Working...
    X