Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trade Simulation - Exit filled from Past Data

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

    Trade Simulation - Exit filled from Past Data

    I think I found a weakness in the Order Fill simulation.

    This simulation shows an entry and exit price for a trade. The trade took place under 1 second, so ms accuracy would likely have fixed this issue. What can be seen is after the entry took place, a PT Limit order was immediately filled. This is likely due to the fact that within that exact second the Limit Target prices was satisfied, although likely a few 100 ms in the past.
    Attached Files

    #2
    Hi NJA_MC,

    Was this trade a historical trade or a trade that happened in real-time? If it was a historical trade, are you able to reproduce it every time?

    Comment


      #3
      Originally posted by NinjaTrader_PatrickG View Post
      Hi NJA_MC,

      Was this trade a historical trade or a trade that happened in real-time? If it was a historical trade, are you able to reproduce it every time?
      Hi Patrick,

      This was real time (forward testing on NTBroker)... I am not sure I can get the data to try historical.

      Comment


        #4
        Hi NJA_MC,

        Could you send in your log and trace files so that I may look in to your trade executions?

        You can do this by going to Control Center > Help > Email Support...

        Please make sure to note the time of the executions and also reference the following ticket number: 1361248 ATTN Patrick G

        Comment


          #5
          I have been working with support on this issue, we have determined that the Fill price is correct, but this is more of a visual issue.

          What happened is the fill occurred earlier for both Entry/Exit but simply displayed later. NT Support has a proposed future improvement to eliminate this visual affect.
          Attached Files

          Comment


            #6
            NJA_MC

            Thanks for following up in this thread.

            We currently believe the root of the issue to be the PC clock being out of sync. Bars are plotted based on the data provider, however simulated trade executions use the PC clock. Syncing the PC to time.nist.gov clock should resolve this issue moving forward.

            There has been a feature request submitted to the development team to implement either:

            1.) NinjaTrader syncs the PC clock when NinjaTrader launches.

            and/or

            2.) Have Ninjatrader base execution times from your data provider instead of the PC clock so that it matches bar timestamps.

            Comment


              #7
              Originally posted by NinjaTrader_PatrickG View Post
              NJA_MC

              Thanks for following up in this thread.

              We currently believe the root of the issue to be the PC clock being out of sync. Bars are plotted based on the data provider, however simulated trade executions use the PC clock. Syncing the PC to time.nist.gov clock should resolve this issue moving forward.

              There has been a feature request submitted to the development team to implement either:

              1.) NinjaTrader syncs the PC clock when NinjaTrader launches.

              and/or

              2.) Have Ninjatrader base execution times from your data provider instead of the PC clock so that it matches bar timestamps.
              I'm personally not too happy with option 1. I have software of my own that synchronizes my PC clock every 30 minutes or so. Some computers have significant drift, and I try to leave NT up from Sunday night to Friday night. One option I would like is to see a report somewhere, maybe a warning or at least an "indicator" for use in Market Analyzer that would show how out of sync we are. I.e. how late or early are the ticks arriving. This would have the added benefit of detecting data feed issues. Indicators like that are available, but an NT built-in version would be welcome. What good is data that runs many seconds behind?

              Comment


                #8
                Hi Dalebru

                This is an excellent suggestion and I will also forward this to the development team for consideration.

                I'd like to clarify your last point:

                What good is data that runs many seconds behind?
                In this specific case, the discrepancy appears to be between the time stamp that your data provider is sending (which plots the bars) and the time stamp of your local PC clock (which controls simulated executions).

                Comment


                  #9
                  Originally posted by NinjaTrader_PatrickG View Post
                  Hi Dalebru

                  This is an excellent suggestion and I will also forward this to the development team for consideration.

                  I'd like to clarify your last point:



                  In this specific case, the discrepancy appears to be between the time stamp that your data provider is sending (which plots the bars) and the time stamp of your local PC clock (which controls simulated executions).
                  I think I agree with your clarification. In this specific case, yes, the discrepancy is because the PC clock. But when I receive this warning and check/sync my PC clock and ticks are still running late, it is surely a bottleneck somewhere in the tick feed. This is not so unusual in "very fast" markets, but it's very nice to know about if I'm trying to trade inadvertently-delayed data.

                  Comment


                    #10
                    Hi dalebru,

                    Your data provider supplies unfiltered, real time data. The difference you have reported is milliseconds off. It is unlikely that you will be able to improve this much as it will take time to get from the exchange to your system. What some users do to improve latency however is get a VPS that is close to the exchange.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by techgetgame, Yesterday, 11:42 PM
                    0 responses
                    8 views
                    0 likes
                    Last Post techgetgame  
                    Started by sephichapdson, Yesterday, 11:36 PM
                    0 responses
                    2 views
                    0 likes
                    Last Post sephichapdson  
                    Started by bortz, 11-06-2023, 08:04 AM
                    47 responses
                    1,613 views
                    0 likes
                    Last Post aligator  
                    Started by jaybedreamin, Yesterday, 05:56 PM
                    0 responses
                    10 views
                    0 likes
                    Last Post jaybedreamin  
                    Started by DJ888, 04-16-2024, 06:09 PM
                    6 responses
                    20 views
                    0 likes
                    Last Post DJ888
                    by DJ888
                     
                    Working...
                    X