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 f.saeidi, Today, 12:14 PM
    4 responses
    11 views
    0 likes
    Last Post f.saeidi  
    Started by ZenCortexHurry, Today, 01:07 PM
    0 responses
    4 views
    0 likes
    Last Post ZenCortexHurry  
    Started by ZenCortexHurry, Today, 01:04 PM
    0 responses
    3 views
    0 likes
    Last Post ZenCortexHurry  
    Started by Russ Moreland, Today, 12:54 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by philmg, Today, 12:55 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Working...
    X