Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Tradestation ATI NTMarketposition not working correctly.

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

  • NinjaTrader_Dierk
    replied
    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.

    Leave a comment:


  • 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.

Latest Posts

Collapse

Topics Statistics Last Post
Started by shepherdangelique, Today, 07:27 PM
0 responses
5 views
0 likes
Last Post shepherdangelique  
Started by kvakana, Today, 03:38 PM
1 response
14 views
0 likes
Last Post NinjaTrader_Erick  
Started by burtoninlondon, 09-16-2021, 10:11 AM
13 responses
1,735 views
1 like
Last Post Bullero
by Bullero
 
Started by emiferariz, Today, 04:44 PM
0 responses
7 views
0 likes
Last Post emiferariz  
Started by Kraken29, Today, 04:16 PM
1 response
10 views
0 likes
Last Post NinjaTrader_Clayton  
Working...
X