Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What will running strategies do when there is a disconnect and reconnect

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

    What will running strategies do when there is a disconnect and reconnect

    Hello,

    so, when NinjaTrader loses the connection for some seconds or even a minute or or two and then automatically reconnects, what happens to strategies?

    As we have seen, they won't be terminated. NT reconnects automatically and the strategy keeps running.

    What will happen to open positions? What will happen, if we don't have any open positions? What will happen to StopLosses? Can we cancel StopLosses afterwards?

    (We are trading through a TT Interface)

    #2
    Hi GerTrader, correct the strategies are halted if the connection loss is detected - upon reconnection you want to make the account and strategy positions are properly synched up then, the stoplosses should be accessible still. To handle disconnects inside your code you can work with OnConnectionStatus - http://www.ninjatrader-support.com/H...ionStatus.html

    NinjaTrader 7 will provide synching options and a more detailed 'connection loss' handling - http://www.ninjatrader.com/webnew/NT7/NinjaTrader7.html
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hello,
      thank you for your answer.

      What do you mean by halted? As I experience it, they keep running? Or do you mean, they just do not trigger any buys or sells and these signals will be lost, when occuring during a connection loss phase.

      What do you mean by "properly synched"? Sync with what?
      We are trading a 10-minute-strategy and between real trading and backtesting is almost every time a 10 minute (= 1 bar) difference, which is no problem for the strategy, but could lead to unexpected behaviour when trying to snyc a running strategy with backtests.

      Comment


        #4
        Hello,

        Or do you mean, they just do not trigger any buys or sells and these signals will be lost, when occuring during a connection loss phase.

        >>Yes


        What do you mean by "properly synched"? Sync with what?
        >>Please review this link:
        DenNinjaTrader Customer Service

        Comment


          #5
          I am still quite unsure about the StopLoss thing.
          We are trading ZB @ Globex, so as far as I have understand it, this will be a Stop Limit Order.

          For example, our strategy buys @ 111 with a StopLimit @ 110. When our strategy triggers an exit @ 113, the StopLimit Order will be automatically removed from the exchange, right?

          What does happen, if our strategy buys @ 111 with a StopLimit @ 110 and afterwards we have a connection loss. After the reconnect

          a) the strategy triggers an exit @ 113
          b) we manually close the position

          Hove are these StopLoss/StopLimit-Orders handled with NinjaTrader?

          Comment


            #6
            Hello,

            What does happen, if our strategy buys @ 111 with a StopLimit @ 110 and afterwards we have a connection loss. After the reconnect
            >>The strategy doesn't know anything when it reconnects, so you must re-sync it. What ever is at the broker/exchange stays that way at the connection loss. When the strategy connects again, it thinks its starting fresh.


            Hove are these StopLoss/StopLimit-Orders handled with NinjaTrader?
            >>This depends where the orders reside at that time and broker. Please review this link:
            Note: This information is relevant for NinjaTrader 7 only. For NinjaTrader 8, please click here (https://ninjatrader.com/support/helpGuides/nt8/where_do_your_orders_reside_.htm). CQG Orders in a state "Accepted" or "Working" are at the exchange. If the exchange does not support a specific order type, the
            DenNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by zstheorist, Today, 07:52 PM
            0 responses
            7 views
            0 likes
            Last Post zstheorist  
            Started by pmachiraju, 11-01-2023, 04:46 AM
            8 responses
            150 views
            0 likes
            Last Post rehmans
            by rehmans
             
            Started by mattbsea, Today, 05:44 PM
            0 responses
            6 views
            0 likes
            Last Post mattbsea  
            Started by RideMe, 04-07-2024, 04:54 PM
            6 responses
            33 views
            0 likes
            Last Post RideMe
            by RideMe
             
            Started by tkaboris, Today, 05:13 PM
            0 responses
            6 views
            0 likes
            Last Post tkaboris  
            Working...
            X