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 TheMarlin801, 10-13-2020, 01:40 AM
              20 responses
              3,914 views
              0 likes
              Last Post Bidder
              by Bidder
               
              Started by timmbbo, 07-05-2023, 10:21 PM
              3 responses
              150 views
              0 likes
              Last Post grayfrog  
              Started by Lumbeezl, 01-11-2022, 06:50 PM
              30 responses
              806 views
              1 like
              Last Post grayfrog  
              Started by xiinteractive, 04-09-2024, 08:08 AM
              3 responses
              11 views
              0 likes
              Last Post NinjaTrader_Erick  
              Started by Johnny Santiago, 10-11-2019, 09:21 AM
              95 responses
              6,194 views
              0 likes
              Last Post xiinteractive  
              Working...
              X