Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Connection Lost, How make NT to re-send an order?

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

    Connection Lost, How make NT to re-send an order?

    Hi,

    I'm using eSignaland areal IB account.I've got the following problem. My limit order was executed and"Strategy" was supposed to send stop and limit orders after that, but didn't because of a connection loss. The connection was restored automatically within a minute, but the stop\target orders were not sent. As a result, I've got a naked possitionthrough the night and I've lost very uncomfortable amount of money.

    My question is: Is it possible to make NT to re-send orders automatically after the connection is restored?

    Thanks!

    #2
    imported post

    No it is not but you do have the ability to place a standard limit and stop for exits tied via OCO.

    - Right click menu, OCO order
    - Place limit exit
    - Place stop exit
    - Right click menu, OCO order (disable)

    Now you will be protected.

    Ray
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      Ray,

      Sure, I could put stop\limit orders manualy, if I was around. But, it happenedat 2am in the morning and I wasn't. I think it's the whole idea of automated trading that you don't need to babysit your trading every minute...

      Is it possible to check from esignal script that the stop\limit orders were placed successully?

      Thanks!

      Comment


        #4
        imported post

        There is no way to check the status of a stop loss submitted via a strategy. You could if your script submitted the stop loss and profit target orders themselves. If that is the case, use the NTOrderStatus() function.
        RayNinjaTrader Customer Service

        Comment


          #5
          imported post

          I guess one could parse a status file. It's time consuming to implement, but I think it's doable, isn't it?

          May be NT can send an email in case of an error? This function could be very useful.

          Comment


            #6
            imported post

            I've just checked the manual and I wounder what exactly this function does

            intStrategyPosition(stringstrategyId)

            It says: Gets the position for a strategy. Returns 0 for flat, negative value for short and positive value for long.

            Is it what I asked for?

            Comment


              #7
              imported post

              No, because it will not tell you if the strategy submitted orders or not. It's not a reliable source of information to determine if stop/targets were successfully submitted. The only option is to submit the stop/targets from your EFS and then check each order via the NTOrderStatus() function.

              On another note, within the next few months we will have the ability to automate your entire strategy via NinjaScript.

              Ray
              RayNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by wzgy0920, 04-20-2024, 06:09 PM
              2 responses
              26 views
              0 likes
              Last Post wzgy0920  
              Started by wzgy0920, 02-22-2024, 01:11 AM
              5 responses
              32 views
              0 likes
              Last Post wzgy0920  
              Started by wzgy0920, Yesterday, 09:53 PM
              2 responses
              49 views
              0 likes
              Last Post wzgy0920  
              Started by Kensonprib, 04-28-2021, 10:11 AM
              5 responses
              191 views
              0 likes
              Last Post Hasadafa  
              Started by GussJ, 03-04-2020, 03:11 PM
              11 responses
              3,230 views
              0 likes
              Last Post xiinteractive  
              Working...
              X