Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

comparing bar time on 2 symbols: ticks not matching

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

    comparing bar time on 2 symbols: ticks not matching

    Hi,

    I just started using Kinetick and try to verify the quality of the feed before relying on it for real trades. In that process I have noticed a very unusual behaviour. Since I am not sure if the problem is on my side (internet delays, PC problems) I would appreciate it if others could verify if they see the same thing as I do (I attached a strategy for that).

    Test setup: I have a chart with 2 symbols on a 1-min. time frame. The second symbol is SPY to have a liquid symbol here, while the main symbol can be chosen by the user. OBU is set to false, so we register every tick. Whenever one of the 2 symbols has the event FirstTickOfBar we log the time on the PC, the bar time (minute bar) for that tick and the price.

    Issue: My expectation is that when one symbol has a tick for a new bar then the next tick for the other symbol will also be for a new bar - as this is a time based chart and the time of the "old" bar is over and the time for the "new" bar has already begun. But strangely enough it can happen that several ticks can still come in for the "old" bar. Sometimes with a delay of several seconds (see example):

    Code:
    #FFF# First tick in bar! [COLOR=Blue]BIP: 0[/COLOR]; BarTime_Home-Time: 07.08.2013 [B]17:58[/B]:00.000; PC-Time at Home: 07.08.2013 17:57:04.113; price: 27,21$
    #FFF# First tick in bar! [COLOR=Sienna]BIP: 1[/COLOR]; BarTime_Home-Time: 07.08.2013 [B]17:58[/B]:00.000; PC-Time at Home: 07.08.2013 17:57:05.268; price: 168,85$
    
    // both symbols moved to the bar ending at 17:58
    
    #FFF# First tick in bar! [COLOR=Sienna]BIP: 1[/COLOR]; BarTime_Home-Time: 07.08.2013 [B]17:59[/B]:00.000; PC-Time at Home: 07.08.2013 17:58:[COLOR=SeaGreen][B]00.117[/B][/COLOR]; price: 168,77$
    
    // SPY moved to the bar ending at 17:59
    
    #???# Follow-up tick after other symbol started new bar! [COLOR=Blue]BIP: 0[/COLOR]; BarTime_Home-Time: 07.08.2013 [B]17:58[/B]:00.000; PC-Time at Home: 07.08.2013 17:58:00.147; price: 27,17$
    #???# Follow-up tick after other symbol started new bar! [COLOR=Blue]BIP: 0[/COLOR]; BarTime_Home-Time: 07.08.2013 [B]17:58[/B]:00.000; PC-Time at Home: 07.08.2013 17:58:03.676; price: 27,18$
    #???# Follow-up tick after other symbol started new bar! [COLOR=Blue]BIP: 0[/COLOR]; BarTime_Home-Time: 07.08.2013 [B]17:58[/B]:00.000; PC-Time at Home: 07.08.2013 17:58:03.680; price: 27,18$
    #???# Follow-up tick after other symbol started new bar! [COLOR=Blue]BIP: 0[/COLOR]; BarTime_Home-Time: 07.08.2013 [B]17:58[/B]:00.000; PC-Time at Home: 07.08.2013 17:58:[B][COLOR=Red]13.126[/COLOR][/B]; price: 27,18$
    
    // XIV is still receiving ticks for bar ending at 17:58; up to 13 seconds after SPY started the bar ending at 17:59
    
    #FFF# First tick in bar! [COLOR=Blue]BIP: 0[/COLOR]; BarTime_Home-Time: 07.08.2013 17:59:00.000; PC-Time at Home: 07.08.2013 17:58:13.129; price: 27,18$
    
    // finally XIV also had the first tick for the bar ending at 17:59
    I can hardly believe that the delay for ticks can be more than 10 seconds. Could there be a problem with the time stamp that Kinetick puts on those "follow-up" ticks? Or with how NT processes them? Any other explanations?

    Thanks,
    NutFlush

    P.S. After I posted this happened: XIV sent data with a delay of almost 60 seconds!

    Code:
    #FFF# First tick in bar! BIP: 1; BarTime_Home-Time: 07.08.2013 18:00:00.000; PC-Time at Home: 07.08.2013 17:59:01.863; price: 168,83$
    #???# Follow-up tick after other symbol started new bar! BIP: 0; BarTime_Home-Time: 07.08.2013 17:59:00.000; PC-Time at Home: 07.08.2013 17:59:08.318; price: 27,19$
    #???# Follow-up tick after other symbol started new bar! BIP: 0; BarTime_Home-Time: 07.08.2013 17:59:00.000; PC-Time at Home: 07.08.2013 17:59:08.321; price: 27,19$
    #FFF# First tick in bar! BIP: 0; BarTime_Home-Time: 07.08.2013 18:00:00.000; PC-Time at Home: 07.08.2013 [COLOR=Blue][B]17:59:24.703[/B][/COLOR]; price: 27,19$
    
    // both symbols started the 18:00 bar, but XIV sent the first tick very late at 17:59:24.703
    
    #FFF# First tick in bar! BIP: 1; BarTime_Home-Time: 07.08.2013 18:01:00.000; PC-Time at Home: 07.08.2013 17:59:59.833; price: 168,82$
    
    // SPY moved to the 18:01 bar
    
    #???# Follow-up tick after other symbol started new bar! BIP: 0; BarTime_Home-Time: 07.08.2013 18:00:00.000; PC-Time at Home: 07.08.2013 18:00:55.808; price: 27,18$
    #???# Follow-up tick after other symbol started new bar! BIP: 0; BarTime_Home-Time: 07.08.2013 18:00:00.000; PC-Time at Home: 07.08.2013 18:00:55.811; price: 27,18$
    #???# Follow-up tick after other symbol started new bar! BIP: 0; BarTime_Home-Time: 07.08.2013 18:00:00.000; PC-Time at Home: 07.08.2013 18:00:55.814; price: 27,18$
    #???# Follow-up tick after other symbol started new bar! BIP: 0; BarTime_Home-Time: 07.08.2013 18:00:00.000; PC-Time at Home: 07.08.2013 18:00:55.817; price: 27,18$
    #???# Follow-up tick after other symbol started new bar! BIP: 0; BarTime_Home-Time: 07.08.2013 18:00:00.000; PC-Time at Home: 07.08.2013 18:00:55.821; price: 27,18$
    #???# Follow-up tick after other symbol started new bar! BIP: 0; BarTime_Home-Time: 07.08.2013 18:00:00.000; PC-Time at Home: 07.08.2013 18:00:55.824; price: 27,18$
    #???# Follow-up tick after other symbol started new bar! BIP: 0; BarTime_Home-Time: 07.08.2013 18:00:00.000; PC-Time at Home: 07.08.2013 18:00:55.827; price: 27,18$
    #???# Follow-up tick after other symbol started new bar! BIP: 0; BarTime_Home-Time: 07.08.2013 18:00:00.000; PC-Time at Home: 07.08.2013 18:00:55.830; price: 27,18$
    #???# Follow-up tick after other symbol started new bar! BIP: 0; BarTime_Home-Time: 07.08.2013 18:00:00.000; PC-Time at Home: 07.08.2013 18:00:55.832; price: 27,18$
    #???# Follow-up tick after other symbol started new bar! BIP: 0; BarTime_Home-Time: 07.08.2013 18:00:00.000; PC-Time at Home: 07.08.2013 [B][COLOR=Red]18:00:55.834[/COLOR][/B]; price: 27,18$
    
    // more  than 90 seconds after starting the 18:00 bar (at [COLOR=Red][B]17:59:24.703[/B][/COLOR]) 
    
    #FFF# First tick in bar! BIP: 0; BarTime_Home-Time: 07.08.2013 [B]18:01[/B]:00.000; PC-Time at Home: 07.08.2013 [B][COLOR=Blue]18:00:55.867[/COLOR][/B]; price: 27,18$
    
    // finally XIV moves also to the 18:01 bar
    
    FFF# First tick in bar! BIP: 1; BarTime_Home-Time: 07.08.2013 18:02:00.000; PC-Time at Home: 07.08.2013 [B]18:00:59.740[/B]; price: 168,84$
    
    // SPY moves to 18:02 bar
    
    #???# Follow-up tick after other symbol started new bar! BIP: 0; BarTime_Home-Time: 07.08.2013 18:01:00.000; PC-Time at Home: 07.08.2013 18:01:03.542; price: 27,19$
    #???# Follow-up tick after other symbol started new bar! BIP: 0; BarTime_Home-Time: 07.08.2013 18:01:00.000; PC-Time at Home: 07.08.2013 18:01:11.778; price: 27,18$
    #FFF# First tick in bar! BIP: 0; BarTime_Home-Time: 07.08.2013 [B]18:02[/B]:00.000; PC-Time at Home: 07.08.2013 [B][COLOR=Blue]18:01:11.781[/COLOR][/B]; price: 27,17$
    
    // just 16 seconds after going to the 18:01 bar XIV moves to the 18:02 bar
    So XIV stayed in the 18:00 bar for more than 90 seconds, but then cut short the following 18:01 bar to 16 seconds. Can that be real???
    Attached Files
    Last edited by NutFlush; 08-07-2013, 10:40 AM.

    #2
    While I'm not able to run the script on my end due to a failed write, I think there may be a misunderstanding about how bar data is referenced. With a multi series script OBU() will possibly be called twice at the same time. It will then evaluate each bar series in the order they were added. Your script doesn't appear to account for times when the time stamps are equal.

    While this may not be the issue you're referring to I want to note, It would also be possible for one series to start having ticks on the new bar before the lower volume instrument had a tick placed on its new bar.

    If you're looking to more monitor the time at which Kinetick (or any other datafeed) is sending the data consider using OnMarketData() http://www.ninjatrader.com/support/h...marketdata.htm
    LanceNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Lance View Post
      While I'm not able to run the script on my end due to a failed write, I think there may be a misunderstanding about how bar data is referenced. With a multi series script OBU() will possibly be called twice at the same time. It will then evaluate each bar series in the order they were added. Your script doesn't appear to account for times when the time stamps are equal.

      While this may not be the issue you're referring to I want to note, It would also be possible for one series to start having ticks on the new bar before the lower volume instrument had a tick placed on its new bar.

      If you're looking to more monitor the time at which Kinetick (or any other datafeed) is sending the data consider using OnMarketData() http://www.ninjatrader.com/support/h...marketdata.htm
      Hi Lance,

      is the ZIP file corrupt or what do you mean by "failed write"? I just redid the export of the script, but I can also paste the code here if you prefer.

      I am aware that the OBU() is called for each tick and each symbol seperately. What I check with my code is when there are ticks for a bar that was already completed on one symbol, but the equivalent bar of the other symbol still receives ticks (although the ending time of the bar has already passed so those ticks should be sorted into the next bar). In these unexpected cases Time[0] of the "late" symbol is smaller than the bar time stamp of the other symbol (which was already increased to the next minute).

      There is no check for an equal or bigger time stamp, as that would be expected "normal" behaviour.

      Thanks,
      NutFlush
      Attached Files

      Comment


        #4
        I get the message

        **NT** Enabling NinjaScript strategy 'tkCompareTimingOfTwoTickStreams/9159d0a4cce7438c9fdda3e94ea1d575' : On starting a real-time strategy - StrategySync=SubmitImmediately SyncAccountPosition=False EntryHandling=AllEntries EntriesPerDirection=1 StopTargetHandling=PerEntryExecution ErrorHandling=StopStrategyCancelOrdersClosePositio ns ExitOnClose=True/ triggering 30 before close Set order quantity by=Strategy ConnectionLossHandling=KeepRunning DisconnectDelaySeconds=10 CancelEntryOrdersOnDisable=True CancelExitOrdersOnDisable=True CalculateOnBarClose=False MaxRestarts=4 in 5 minutes
        ### 2SymbolsBarTimeSyncTest initialized on symbol: ES; PC-Time at Home: 07.08.2013 11:17:29.154
        >>> Failed to write to log file: C:\2SymbolsBarTimeSyncTest_ES_SPY.txt
        **NT** Error on calling 'OnStartUp' method for strategy 'tkCompareTimingOfTwoTickStreams/9159d0a4cce7438c9fdda3e94ea1d575': A required privilege is not held by the client.


        But this is besides the point.


        It's now my understanding that you're saying this one line should never be true correct? If so let me know and I can test the simpler script on my end.

        (BarsInProgress == 0 && Times[0][0] < Times[1][0])
        LanceNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Lance View Post
          It's now my understanding that you're saying this one line should never be true correct? If so let me know and I can test the simpler script on my end.

          (BarsInProgress == 0 && Times[0][0] < Times[1][0])
          What a strange error message...

          But you were at least able to open the script, right?

          Yes, this term should never become true (or only at times where the causing tick was delayed a little bit, but certainly not for more than a second):

          if ((BarsInProgress == 0 && Times[0][0] < Times[1][0]) || (BarsInProgress == 1 && Times[1][0] < Times[0][0]))

          Since any of the two symbols could be "late" we need to check both ways.

          Thanks for looking into it!
          NutFlush

          P.S. I took a look at the error message and it looks like the strategy fails to write the log file to C:\. Maybe you need to change the path in the code to a place where you have writing rights? Or simply deactivate that part of the code and just look at the output window.
          Last edited by NutFlush; 08-07-2013, 12:03 PM.

          Comment


            #6
            Sorry for the delayed response. I had forgotten a key point to the way OBU() is called with multi-instrument series.

            Looking at this snippet

            if(BarsInProgress == 0 && Times[0][0] < Times[1][0])

            This shouldn't trigger true when dealing with a multi series script with the same instrument. However, in this case we are dealing with a multi instrument script. It's possible BIP 0 gets called several times without BIP 1 ever getting called or vice versa. Several minutes could go by leading to the results you're seeing.

            For example BIP 0 is the ES BIP 1 is the NQ
            The ES has multiple bars go by without the NQ receiving a tick
            When the NQ does receive its next tick the time stamp of that is now behind that of the ES. It could be behind by a few seconds or several minutes depending on how much time passed without a tick.
            LanceNinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_Lance View Post
              Sorry for the delayed response. I had forgotten a key point to the way OBU() is called with multi-instrument series.

              Looking at this snippet

              if(BarsInProgress == 0 && Times[0][0] < Times[1][0])

              This shouldn't trigger true when dealing with a multi series script with the same instrument. However, in this case we are dealing with a multi instrument script. It's possible BIP 0 gets called several times without BIP 1 ever getting called or vice versa. Several minutes could go by leading to the results you're seeing.

              For example BIP 0 is the ES BIP 1 is the NQ
              The ES has multiple bars go by without the NQ receiving a tick
              When the NQ does receive its next tick the time stamp of that is now behind that of the ES. It could be behind by a few seconds or several minutes depending on how much time passed without a tick.
              Hi Lance,

              please forgive for saying this, but it appears you don't understand the problem I described in my posts so far.

              Let me explain by using your example:
              1. ES and NQ both receive a tick at 10:00:15, so the current bar's time for both is 10:01.
              2. From then on NQ doesn't receive any more ticks, while ES does.
              3. ES receives a tick at 10:03:11, so ES is now in bar 10:04 while NQ hasn't closed bar 10:01 yet, right?
              4. NQ receives a tick at 10:03:13. What it should do is close bar 10:01 and then put the new tick into bar 10:04 as the FirstTickInBar. So that Times[1][0] is 10:04 (NQ) and Times[0][0] is 10:04 (ES).

              Now here's the problem: The new tick is still put into the unfinished bar 10:01 (not 10:04). As a consequence Times[1][0] is still 10:01 (NQ) while Times[0][0] is 10:04 (ES).That's what if(BarsInProgress == 1 && Times[1][0] < Times[0][0]) is checking and then calling a "follow-up" tick.

              Could I make myself clear now?

              Originally posted by NinjaTrader_Lance View Post
              When the NQ does receive its next tick the time stamp of that is now behind that of the ES. It could be behind by a few seconds or several minutes depending on how much time passed without a tick.
              It is my understanding that the current bar's time of the instrument that receives a new tick should not be behind the current bar's time of the other instrument (if both instruments are on the same time interval, of course)!

              Cheers,
              NutFlush

              Comment


                #8
                Yes it is your step 4 that is where the difference occurs. This is because the time that is returned with be the previous bar's time stamp at the start of the OBU() (the point when you're checking it). Once the OBU() finishes the time will be updated. This is why you only see this happen in real time but would not replicate it on historical data.

                If you want to monitor the time of the current tick instead of the bar please use OnMarketData() http://www.ninjatrader.com/support/h...marketdata.htm

                This is a useful read as well: http://www.ninjatrader.com/support/h..._are_built.htm

                Let me know if I can further assist.
                LanceNinjaTrader Customer Service

                Comment


                  #9
                  Originally posted by NinjaTrader_Lance View Post
                  Yes it is your step 4 that is where the difference occurs. This is because the time that is returned with be the previous bar's time stamp at the start of the OBU() (the point when you're checking it). Once the OBU() finishes the time will be updated. This is why you only see this happen in real time but would not replicate it on historical data.

                  If you want to monitor the time of the current tick instead of the bar please use OnMarketData() http://www.ninjatrader.com/support/h...marketdata.htm

                  This is a useful read as well: http://www.ninjatrader.com/support/h..._are_built.htm

                  Let me know if I can further assist.
                  Hi Lance,

                  what you write is correct under the assumption that COBC is set to true.

                  But I was always talking about COBC being set to false. That's why I said in the example above:
                  4. NQ receives a tick at 10:03:13. What it should do is close bar 10:01 and then put the new tick into bar 10:04 as the FirstTickInBar.

                  But FirstTickInBar is not going to true while all those "follow-up" ticks are coming in.

                  Please try my strategy for yourself (XIV & SPY make a good pair) and you will quickly see plenty of "follow-up" ticks.

                  Thanks,
                  NutFlush

                  Comment


                    #10
                    Hello,

                    It does not matter if COBC is set to true or false. This is expected behavior and my tests were run with COBC set to false. You will see this happen in both cases.

                    Time[0] on a minute chart is not going to have second granularity.

                    If you want to monitor the time of the current tick instead of the bar please use OnMarketData() http://www.ninjatrader.com/support/h...marketdata.htm
                    LanceNinjaTrader Customer Service

                    Comment


                      #11
                      Originally posted by NinjaTrader_Lance View Post
                      Hello,

                      It does not matter if COBC is set to true or false. This is expected behavior and my tests were run with COBC set to false. You will see this happen in both cases.

                      Time[0] on a minute chart is not going to have second granularity.

                      If you want to monitor the time of the current tick instead of the bar please use OnMarketData() http://www.ninjatrader.com/support/h...marketdata.htm
                      Sorry Lance,
                      I don't mean to sound rude, but could you get a colleague to take a look at my posts? Somehow I fail to get my point across, but I don't know how else to explain the problem that you on the other hand fail to see.

                      Please take a look at the example of my very first post (last code area) which I repost here. As measured by my PC clock there were ticks coming in over a time span of 90 seconds that all got sorted into the same 1 minute bar. This cannot be expected behaviour, right?

                      Code:
                      #FFF# First tick in bar! [COLOR=DarkOrange]BIP: 1[/COLOR]; [COLOR=Purple][B]BarTime[/B][/COLOR]_Home-Time: 07.08.2013 [COLOR=Purple][B]18:00[/B][/COLOR]:00.000; PC-Time at Home: 07.08.2013 17:59:01.863; price: 168,83$ 
                      #???# Follow-up tick after other symbol started new bar! BIP: 0; BarTime_Home-Time: 07.08.2013 17:59:00.000; PC-Time at Home: 07.08.2013 17:59:08.318; price: 27,19$ 
                      #???# Follow-up tick after other symbol started new bar! BIP: 0; BarTime_Home-Time: 07.08.2013 17:59:00.000; PC-Time at Home: 07.08.2013 17:59:08.321; price: 27,19$ 
                      #FFF# First tick in bar! [B][COLOR=SeaGreen]BIP: 0[/COLOR][/B]; [COLOR=Purple][B]BarTime[/B][/COLOR]_Home-Time: 07.08.2013 [B][COLOR=Purple]18:00[/COLOR][/B]:00.000; PC-Time at Home: 07.08.2013 [COLOR=Blue][B]17:59:24.703[/B][/COLOR]; price: 27,19$  
                      
                      // both symbols started the [B][COLOR=Purple]18:00[/COLOR][/B] bar, but XIV sent the first tick very late at 17:59:24.703  
                      
                      #FFF# First tick in bar! [COLOR=DarkOrange]BIP: 1[/COLOR]; [B][COLOR=Purple]BarTime[/COLOR][/B]_Home-Time: 07.08.2013 [B][COLOR=Purple]18:01[/COLOR][/B]:00.000; PC-Time at Home: 07.08.2013 17:59:59.833; price: 168,82$  
                      
                      // SPY moved to the [B][COLOR=Purple]18:01[/COLOR][/B] bar  
                      
                      #???# Follow-up tick after other symbol started new bar! [B][COLOR=SeaGreen]BIP: 0[/COLOR][/B]; [COLOR=Purple][B]BarTime[/B][/COLOR]_Home-Time: 07.08.2013 [COLOR=Purple][B]18:00[/B][/COLOR]:00.000; PC-Time at Home: 07.08.2013 18:00:55.808; price: 27,18$ 
                      #???# Follow-up tick after other symbol started new bar! BIP: 0; [B][COLOR=Purple]BarTime[/COLOR][/B]_Home-Time: 07.08.2013 [B][COLOR=Purple]18:00[/COLOR][/B]:00.000; PC-Time at Home: 07.08.2013 18:00:55.811; price: 27,18$ 
                      #???# Follow-up tick after other symbol started new bar! BIP: 0; [B][COLOR=Purple]BarTime[/COLOR][/B]_Home-Time: 07.08.2013 [B][COLOR=Purple]18:00[/COLOR][/B]:00.000; PC-Time at Home: 07.08.2013 18:00:55.814; price: 27,18$ 
                      #???# Follow-up tick after other symbol started new bar! BIP: 0; [COLOR=Purple][B]BarTime[/B][/COLOR]_Home-Time: 07.08.2013 [B][COLOR=Purple]18:00[/COLOR][/B]:00.000; PC-Time at Home: 07.08.2013 18:00:55.817; price: 27,18$ 
                      #???# Follow-up tick after other symbol started new bar! BIP: 0; [B][COLOR=Purple]BarTime[/COLOR][/B]_Home-Time: 07.08.2013 [B][COLOR=Purple]18:00[/COLOR][/B]:00.000; PC-Time at Home: 07.08.2013 18:00:55.821; price: 27,18$ 
                      #???# Follow-up tick after other symbol started new bar! BIP: 0; [B][COLOR=Purple]BarTime[/COLOR][/B]_Home-Time: 07.08.2013 [B][COLOR=Purple]18:00[/COLOR][/B]:00.000; PC-Time at Home: 07.08.2013 18:00:55.824; price: 27,18$ 
                      #???# Follow-up tick after other symbol started new bar! BIP: 0; [B][COLOR=Purple]BarTime[/COLOR][/B]_Home-Time: 07.08.2013 [B][COLOR=Purple]18:00[/COLOR][/B]:00.000; PC-Time at Home: 07.08.2013 18:00:55.827; price: 27,18$ 
                      #???# Follow-up tick after other symbol started new bar! BIP: 0; [B][COLOR=Purple]BarTime[/COLOR][/B]_Home-Time: 07.08.2013[B][COLOR=Purple] 18:00[/COLOR][/B]:00.000; PC-Time at Home: 07.08.2013 18:00:55.830; price: 27,18$ 
                      #???# Follow-up tick after other symbol started new bar! BIP: 0; [B][COLOR=Purple]BarTime[/COLOR][/B]_Home-Time: 07.08.2013 [B][COLOR=Purple]18:00[/COLOR][/B]:00.000; PC-Time at Home: 07.08.2013 18:00:55.832; price: 27,18$ 
                      #???# Follow-up tick after other symbol started new bar! [B][COLOR=SeaGreen]BIP: 0[/COLOR][/B]; [COLOR=Purple][B]BarTime[/B][/COLOR]_Home-Time: 07.08.2013 [B][COLOR=Purple]18:00[/COLOR][/B]:00.000; PC-Time at Home: 07.08.2013 [B][COLOR=Red]18:00:55.834[/COLOR][/B]; price: 27,18$ 
                      
                      // more  than 90 seconds after starting the 18:00 bar (at [COLOR=Red][B]17:59:24.703[/B][/COLOR])   
                      
                      #FFF# First tick in bar! [B][COLOR=SeaGreen]BIP: 0[/COLOR][/B]; [B][COLOR=Purple]BarTime[/COLOR][/B]_Home-Time: 07.08.2013 [COLOR=Purple][B]18:01[/B][/COLOR]:00.000; PC-Time at Home: 07.08.2013 [B][COLOR=Blue]18:00:55.867[/COLOR][/B]; price: 27,18$  
                      
                      // finally XIV moves also to the [B][COLOR=Purple]18:01[/COLOR][/B] bar
                      I apologize if I sound unfriendly in any way, which I don't mean to! I would gladly accept that I am wrong at some point, but I need to be certain first that my problem was understood.

                      Thanks for your time!
                      NutFlush

                      Comment


                        #12
                        We've looked into this a bit further and ran this test using OnMarketData()

                        Code:
                        protected override void OnMarketData(MarketDataEventArgs e)
                           {
                            if( BarsInProgress == 1)
                            {
                             if (e.MarketDataType == MarketDataType.Last) 
                             {
                              if(e.Time != DateTime.Now)
                              {
                               Print("BIP: " + BarsInProgress + " ( " + Instrument.FullName + " ) ");
                               Print("Computer Time: " + DateTime.Now);
                               Print("Trade Time: " + e.Time);
                               
                              
                              }
                             }
                             
                            }
                           }
                        There does appear to be an issue with XIV erroneously sending delayed prints

                        We are currently working with DTN to resolve this issue and will get back to you once I have more info.
                        LanceNinjaTrader Customer Service

                        Comment


                          #13
                          Hello,

                          Please send me your log and trace files for today so that I may look into what occurred.

                          You can do this by going to the Control Center-> Help-> Mail to Support.

                          Please reference the following ticket number in the body of the email: 896578 ATTN Lance

                          Please also include your Kinetick ID

                          I look forward to assisting you further.
                          LanceNinjaTrader Customer Service

                          Comment


                            #14
                            Originally posted by NinjaTrader_Lance View Post
                            We've looked into this a bit further and ran this test using OnMarketData()

                            Code:
                            protected override void OnMarketData(MarketDataEventArgs e)
                               {
                                if( BarsInProgress == 1)
                                {
                                 if (e.MarketDataType == MarketDataType.Last) 
                                 {
                                  if(e.Time != DateTime.Now)
                                  {
                                   Print("BIP: " + BarsInProgress + " ( " + Instrument.FullName + " ) ");
                                   Print("Computer Time: " + DateTime.Now);
                                   Print("Trade Time: " + e.Time);
                                   
                                  
                                  }
                                 }
                                 
                                }
                               }
                            There does appear to be an issue with XIV erroneously sending delayed prints

                            We are currently working with DTN to resolve this issue and will get back to you once I have more info.

                            Hi Lance,

                            thanks for looking into that further. An error in the data stream would explain the strange occurences. Please tell DTN that more symbols than just XIV might be affected. Actually SPY which I used as the second symbol also showed "follow-up" ticks.

                            I will send you the log files tomorrow morning.

                            Cheers,
                            NutFlush

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by alifarahani, Today, 09:40 AM
                            4 responses
                            21 views
                            0 likes
                            Last Post alifarahani  
                            Started by gentlebenthebear, Today, 01:30 AM
                            3 responses
                            16 views
                            0 likes
                            Last Post NinjaTrader_Jesse  
                            Started by PhillT, Today, 02:16 PM
                            2 responses
                            7 views
                            0 likes
                            Last Post PhillT
                            by PhillT
                             
                            Started by Kaledus, Today, 01:29 PM
                            3 responses
                            11 views
                            0 likes
                            Last Post NinjaTrader_Jesse  
                            Started by frankthearm, Yesterday, 09:08 AM
                            14 responses
                            47 views
                            0 likes
                            Last Post NinjaTrader_Clayton  
                            Working...
                            X