Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple accounts with ATI

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

    Multiple accounts with ATI

    I am using the ATI DLL connection thru the tradestation EasyLanguage to generate orders.

    The Log shows the message "account does not exist".
    Below is a sample of the code we are using.

    ========================================
    inputs:
    TradeAccount("U123456");

    variables:
    NTMP( 0 ),
    NTorder( 0);

    NTMP = NTMarketPosition(TradeAccount);


    if LastBarOnChart and NTConnected(1) then
    if NTMP = 0 and Time = 1000
    then
    NTorder = NTSellMarket("Trade1", 100);
    ============================================

    #2
    This error occurs when the NT DLL is called and NT is not connected to any brokerage with the account that you specified.
    RayNinjaTrader Customer Service

    Comment


      #3
      We have multiple accounts with IB and the code functions correctly when we do not specify the account to use.

      Are there any additional settings in NinjaTrader required when using multiple accounts ?

      Comment


        #4
        The problem is you are using a simulation key which does not give you access to your live account. Thus, you get the error message since this live account does not exist in NT on a simulation free key.

        Purchase a live license and you will not have this limitation.
        RayNinjaTrader Customer Service

        Comment


          #5
          Dear Ninja Traders
          In simulation I was using Vervoot cross overs srategy on ES.Everything was working ok till I noticed that the strategy was working on ER2,FDAX,NQ and YM.In a live situation it'd be a disaster to buy/sell on all of these indexes.Am I missing something here?I'd appreciate your response.
          Thanks

          Comment


            #6
            Normally when you run your strategy it will only run on one instrument because you can only choose one instrument when starting the strategy. If your strategy is created as a multi-instrument strategy that is a different story.

            Most likely you have accidentally started the strategy on several instruments without noticing. If not you will need to dig into the strategy and see the underlying code to determine its behavior.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Strategy

              Originally posted by Josh View Post
              Normally when you run your strategy it will only run on one instrument because you can only choose one instrument when starting the strategy. If your strategy is created as a multi-instrument strategy that is a different story.

              Most likely you have accidentally started the strategy on several instruments without noticing. If not you will need to dig into the strategy and see the underlying code to determine its behavior.
              Thank you Josh
              I am very new to ninja.Is there something that I should tick/untick in the control panel to avoid a disaster?

              Comment


                #8
                Unfortunately not

                Comment


                  #9
                  strategies

                  Hi Diert
                  With your "unfortunately not" you mean that you cannot do anything to AVOID a strategy running on all your favorite indexes?As I said I am green in ninja trader but I'm sure that must be a way to bypass this situation.I'm a bit perplexed for the moment.Thanks for your response any way.

                  Comment


                    #10
                    The strategies run on these instruments where you started them on. There is no further confirmation required after you started them.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by hazylizard, Today, 08:38 AM
                    4 responses
                    10 views
                    0 likes
                    Last Post hazylizard  
                    Started by geddyisodin, Today, 05:20 AM
                    2 responses
                    18 views
                    0 likes
                    Last Post geddyisodin  
                    Started by Max238, Today, 01:28 AM
                    5 responses
                    47 views
                    0 likes
                    Last Post Max238
                    by Max238
                     
                    Started by giulyko00, Yesterday, 12:03 PM
                    3 responses
                    13 views
                    0 likes
                    Last Post NinjaTrader_BrandonH  
                    Started by habeebft, Today, 07:27 AM
                    1 response
                    16 views
                    0 likes
                    Last Post NinjaTrader_ChristopherS  
                    Working...
                    X