Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Tradestation ATI NTMarketposition not working correctly.

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

    Tradestation ATI NTMarketposition not working correctly.

    Hi, I'm using NT 6.5.0.10 (Live) with Tradestation 8.3 (Build 1419) on Vista patched to SP1.
    I use the ATI to place and manage stops for positions initialised manually in the DOME. I trade a live account and would also like to use the ATI to manage positions in a sim account while I am also trading live. However the NTMarketposition command does not appear to work correctly.

    For example if I open four different sim account Domes Sim101,Sim102,Sim13 and Sim MP, set the default account in NT for ATI to be Sim MP and then open 1 contract long positions in all four sim accounts. The following code outputs the test results below;

    inputs:
    int PlotValues(1);
    variables:
    intrabarpersist NTOpenPosition (0), intrabarpersist NTOpenPosVAL (0),


    // This is for debugging purposes, set plotValues = 0 to stop plotting or any other value to plot.
    if plotValues <> 0 then begin
    ClearPrintLog;
    print("NTOpenPosVAL Sim101: " + NumToStr(NTMarketPosition("Sim101"), 0));
    print("NTOpenPosVAL Sim102: " + NumToStr(NTMarketPosition("Sim102"), 0));
    print("NTOpenPosVAL Sim103: " + NumToStr(NTMarketPosition("Sim13"), 0));
    print("NTOpenPosVAL SIM MP: " + NumToStr(NTMarketPosition("SIM MP"), 0));
    print("NTOpenPosVAL Def ACC: " + NumToStr(NTMarketPosition(""), 0));
    end; //for if plotValues <> 0


    Print Log output;
    NTOpenPosVAL Sim101: 0
    NTOpenPosVAL Sim102: 0
    NTOpenPosVAL Sim13: 0
    NTOpenPosVAL Sim MP: 1
    NTOpenPosVAL Def ACC: 1

    Please advise.

    Thanks

    Kevin.

    #2
    There is bug which is fixed by this custom build: www.ninjatrader-support.com/ninjatrader/nt6.5.custom/NinjaTrader.Install.msi
    Note: This custom build is based on official NT6.5R1 (6.5.1000.1) which we just released. You are safe to upgrade your old NT6.5 installation to that custom build.

    Thanks for reporting.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    3 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    18 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    1 view
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    6 views
    0 likes
    Last Post Javierw.ok  
    Started by timmbbo, Today, 08:59 AM
    2 responses
    10 views
    0 likes
    Last Post bltdavid  
    Working...
    X