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 Dutch4756, Today, 04:57 PM
    0 responses
    6 views
    0 likes
    Last Post Dutch4756  
    Started by DerkWehler, 12-04-2024, 09:00 AM
    7 responses
    73 views
    3 likes
    Last Post RobEB
    by RobEB
     
    Started by _Gabor_, 12-03-2024, 12:16 PM
    4 responses
    28 views
    0 likes
    Last Post _Gabor_
    by _Gabor_
     
    Started by trelling, 11-28-2024, 01:50 PM
    6 responses
    52 views
    0 likes
    Last Post trelling  
    Started by nelslynn, Today, 03:52 PM
    0 responses
    6 views
    0 likes
    Last Post nelslynn  
    Working...
    X