Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Simulator - Delay comm.

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

    Simulator - Delay comm.

    Regarding the Options -> Simulator -> Delay comm. setting, is this supposed to be the one-way communications delay, or the round-trip time ? (pinging the server measures the round-trip time)

    #2
    Hello splat,

    Please see the link below for an explanation of the option.


    It allows you to setup a simulated delay from your PC to a virtual exchange server. The 'Delay exchange' option will allow you to setup a delay from the virtual exchange server to your PC.
    JasonNinjaTrader Customer Service

    Comment


      #3
      Hi Jason,

      I just tried the link you posted, and I get a 404.

      Please note that I have already tried reading the help about this option, and it did not answer my question.

      Are you sure of what you say about the Delay Exchange option ? I would have hoped its purpose was to model the processing delay in the exchange.

      Comment


        #4
        I notice that the link does not include .html. Sorry, I did not paste the entire link when composing my response. Please see the link below.


        Yes, I am sure in my statement - the help guide will confirm. So the 'Delay comm' setting is one way only, but in combination with 'Delay exchange' you can setup a round trip delay.
        JasonNinjaTrader Customer Service

        Comment


          #5
          I don't think the help guide confirms your statement at all. It says:

          "Delay exchange (msec) Simulated delay of a virtual exchange server processing an order"


          which sounds exactly like what I said: processing delay, not network delay.


          Can I please have a clear answer to a simple question. I understand the difference between network latency and processing time, and that is not the topic of my question. I am simply asking whether NT interprets the Delay comm.parameter as the one-way network latency, or the round-trip network latency (excluding processing). Maybe it is just the one-way network latency, but I am wondering because I am in Australia, which is a long way from Chicago, and I do not what to be out by a factor of two on the quite considerable latency.


          How do you recommend people to find the right value to put in the Delay comms setting ? Maybe ping the exchange server, and use the millseconds value given by ping ?

          Comment


            #6
            'Delay comm' is one way only. It only sets the delay of sending an order from your PC to the exchange.

            I assumed you meant network + order processing by 'round trip'. Can you please clarify what you mean by round trip - I am not sure if I follow. When an order is submitted, it can take time for the order to be sent. However once an order is processed and executed, what delay do you like to set? Are you referring to a delay of the execution update to be received by NinjaTrader from your broker? If so, unfortunately such a delay cannot be setup.

            You can setup the simulator settings to your liking - your suggestion to ping the server would be a good way to replicate live trading.
            JasonNinjaTrader Customer Service

            Comment


              #7
              Round-trip time (RTT) is a standard networking term:

              Learn what network packets are and why they're used, as well as the different parts of a network packet.


              I would appreciate it, if you could check with someone familiar with this term and the NT simulator code (e.g. a software engineer), whether the Delay comm. parameter is the round-trip time, or only half the round-trip time.

              People tend to think in terms of round-trip time, because one-way communication is hardly ever useful, and because measuring the one-way time generally requires a pair of synchronised atomic clocks.

              The reason I asked about using 'ping' is because ping measures the RTT. Should the Delay comm. parameter be set to the value shown by 'ping' or half of it?

              Would it be so hard to clarify this ? What is the point of having a good simulator, if an IT expert (like myself) has to guess about how to configure it ?

              Comment


                #8
                I checked with a colleague of mine. The delay refers to sending an order and having it accepted at the exchange.

                During live trading you submit an order to your broker, subsequently they will send a signal back to NinjaTrader that will indicate the order is accepted. As per the description of 'round turn', the delay would be round turn. Data is sent from NinjaTrader to your broker, subsequently a signal is sent back to NinjaTrader.

                I suggest to enter the full ping time.
                JasonNinjaTrader Customer Service

                Comment


                  #9
                  Thanks for sorting this out, Jason.

                  If I understand correctly, you are saying that almost any interaction NT has with the exchange will need a round-trip over the network (which makes sense), so the Comm. delay should be the RTT (full ping time).

                  I had been wrongly using half the ping-time, which might explain some discrepancies I noticed between the simulator and live trades.

                  Comment


                    #10
                    Correct, when you send an order to your broker/exchange, NinjaTrader will receive a signal back from your broker once the order is accepted or working.
                    JasonNinjaTrader Customer Service

                    Comment


                      #11
                      Hi Jason. When adjusting the settings in the Options/simulator tab, specifically the Comm Delay and Exchange Delay settings, do these figures also apply to market replay as well as market simulator?

                      Thanks
                      Brian

                      Comment


                        #12
                        Hello Brian,

                        Unfortunately the delays do not apply when trading the Replay101 account.
                        JasonNinjaTrader Customer Service

                        Comment


                          #13
                          Do the 'Delay comm.' and 'Delay exchange' options affect executions on the Sim101 account while connected to a live feed such as Zen-Fire, or do these options ONLY affect executions on the Simulated Data Feed?

                          Comment


                            #14
                            Hello Radical,

                            The delays apply upon trading the sim101 account so it does not matter what real-time data provider you use.
                            JasonNinjaTrader Customer Service

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by andrewtrades, Today, 04:57 PM
                            1 response
                            8 views
                            0 likes
                            Last Post NinjaTrader_Manfred  
                            Started by chbruno, Today, 04:10 PM
                            0 responses
                            6 views
                            0 likes
                            Last Post chbruno
                            by chbruno
                             
                            Started by josh18955, 03-25-2023, 11:16 AM
                            6 responses
                            436 views
                            0 likes
                            Last Post Delerium  
                            Started by FAQtrader, Today, 03:35 PM
                            0 responses
                            7 views
                            0 likes
                            Last Post FAQtrader  
                            Started by rocketman7, Today, 09:41 AM
                            5 responses
                            19 views
                            0 likes
                            Last Post NinjaTrader_Jesse  
                            Working...
                            X