NexusFi: Find Your Edge


Home Menu

 





Tick chart bars change


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one uspilotzzz with 8 posts (2 thanks)
    2. looks_two Malthus with 4 posts (4 thanks)
    3. looks_3 bobwest with 2 posts (4 thanks)
    4. looks_4 Happy Rick with 1 posts (0 thanks)
    1. trending_up 5,608 views
    2. thumb_up 10 thanks given
    3. group 4 followers
    1. forum 15 posts
    2. attach_file 1 attachments




 
Search this Thread

Tick chart bars change

  #1 (permalink)
 uspilotzzz 
Denver, CO United States
 
Experience: Intermediate
Platform: Multicharts
Trading: ES
Posts: 78 since May 2015
Thanks Given: 3
Thanks Received: 25

I have been noticing that from time to time the bars on my 233 tick chart will change between times I open ninjatrader. I am using the CQG demo data at the moment. I saw the post on the MDP 3.0 migration but this seems to be something different and more subtle but maybe not.

For example I took a trade this morning at a bar that closed at 7:00:07. When I opened ninjatrader this evening to look at the charts omy two 233 tick charts were different from each other. (I have one set up with Heikin Ashi candles and one with normal candles) And neither of them were what was shown this morning. I disconnected from CQG and "repaired the database" after reconnecting and restarting the two charts matched each other but still neither were the same thing I saw this morning. I can tell because I took a screen shot this morning and because I recorded the time stamp for the bar close on my trade. The closest thing I could find was a bar that closed at 7:00:42. The disconcerting thing is that the chart I see now does not show a trade entry.


Ninjatrader replied with the following:

Hello uspilotzzz,

"Thank you for your post.

While using a tick interval chart, the chart's bars are going to refresh, which will cause new and different sized bars to appear at different times. (As ticks come into NinjaTrader in real-time, they are time stamped based on your local PC time if they do not already have an associated time stamp that is provided from the real-time data source. The majority of our supported brokerage feeds DO NOT time stamp ticks, where most of our supported market data vendor feeds do provide time stamped ticks. NinjaTrader then builds bars based on the time stamp of the incoming tick and displays these bars in your chart in real-time.)

Please see the link below for more information on "How Bars are Built''; see the section on 'Understanding why a chart can look different after reloading historical data from the server.':

http://www.ninjatrader.com/support/h..._are_built.htm"

So their reply was that bars are going to look different when refreshed with historical data when the program is reopened. (if I am reading that right) That seems pretty unacceptable to me. There is no way that a professional could deal with two totally different charts between live and historical data. I could accept a slight difference in time stamp but bars with OLHC totally different from one another is simply broken charting.

Does anyone have any experience with this? Am I crazy to think that's unacceptable? If I do accept it, that means a trade set up I see live I may never be able to revisit. It would be a one and done deal. It also means any form of back testing would be totally invalid. no?

Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
  #2 (permalink)
 
Malthus's Avatar
 Malthus 
Madrid Spain
 
Experience: Intermediate
Platform: Ninjatrader, TOS
Trading: ES
Posts: 251 since Oct 2014
Thanks Given: 1,252
Thanks Received: 708


uspilotzzz View Post
So their reply was that bars are going to look different when refreshed with historical data when the program is reopened. (if I am reading that right)

That's correct. Tick and volume bars have that problem (probably range bars too). The only ones that doesn't change are time based bars (I think).

Reply With Quote
Thanked by:
  #3 (permalink)
 uspilotzzz 
Denver, CO United States
 
Experience: Intermediate
Platform: Multicharts
Trading: ES
Posts: 78 since May 2015
Thanks Given: 3
Thanks Received: 25


I find that hard to swallow. There is no way a professional trader would be ok seeing a chart only once. Meaning the way it looks when he trades it is potentially the only time it will look that way. This would negate any data you get from back testing. In addition any trades you took because of the price action live would disappear never to be reexamined again. (like they did for me yesterday)

Started this thread Reply With Quote
Thanked by:
  #4 (permalink)
 
Malthus's Avatar
 Malthus 
Madrid Spain
 
Experience: Intermediate
Platform: Ninjatrader, TOS
Trading: ES
Posts: 251 since Oct 2014
Thanks Given: 1,252
Thanks Received: 708


uspilotzzz View Post
I find that hard to swallow. There is no way a professional trader would be ok seeing a chart only once. Meaning the way it looks when he trades it is potentially the only time it will look that way. This would negate any data you get from back testing. In addition any trades you took because of the price action live would disappear never to be reexamined again. (like they did for me yesterday)

Well it changes a bit the chart but not THAT much. Professional traders doesn't pay much attention to how bars are, but to what they're telling you (HH and HL or LL and LH, which doesn't change). In the case of algorithmic trading it's common some kind of noise filter.

Reply With Quote
Thanked by:
  #5 (permalink)
 uspilotzzz 
Denver, CO United States
 
Experience: Intermediate
Platform: Multicharts
Trading: ES
Posts: 78 since May 2015
Thanks Given: 3
Thanks Received: 25

Maybe I am not explaining myself properly. For a set of candles yesterday the OLHC were all different. I dont mean a tick here or a tick there. I mean the relationship from one candle to its neighboring candle changed. This HAS to matter. People base entries and exits on candlestick relationships. For example buy with a close above the previous candles high. People also make decisions based on indicators which are based on the OLHC of the candles. For example, yesterday I had a turn on the stochastic from an over sold position. After the change on the chart that turn didnt happen for another couple of bars.

Started this thread Reply With Quote
  #6 (permalink)
 uspilotzzz 
Denver, CO United States
 
Experience: Intermediate
Platform: Multicharts
Trading: ES
Posts: 78 since May 2015
Thanks Given: 3
Thanks Received: 25

Here is a side by side picture so you can see. Its not the best because its just a low res screen shot but look at the candles around the trade entries and you will see they are not the same.


Started this thread Reply With Quote
  #7 (permalink)
 
Malthus's Avatar
 Malthus 
Madrid Spain
 
Experience: Intermediate
Platform: Ninjatrader, TOS
Trading: ES
Posts: 251 since Oct 2014
Thanks Given: 1,252
Thanks Received: 708

I know it's hard to accept but that's how it is.

From Ninjatrader's guide:

Quoting 
Understanding why a chart can look different after reloading historical data from the server

As ticks come into NinjaTrader in real-time, they are time stamped based on your local PC time if they do not already have an associated time stamp that is provided from the real-time data source. The majority of our supported brokerage feeds DO NOT time stamp ticks, where most of our supported market data vendor feeds do provide time stamped ticks. NinjaTrader then builds bars based on the time stamp of the incoming tick and displays these bars in your chart in real-time.

Let's say you have a tick (tick "A") with a time stamp of 10:31:00 AM which gets packaged into the 10:32:00 AM bar and happens to be the high of that bar. An hour later, you reload historical data from your historical data provider into NinjaTrader. This process will overwrite the existing data. The 10:32:00 AM bar now looks different since the high made by TICK "A" is now part of the prior bar, 10:31:00 AM. How is this possible?

• Your PC clock could have been off so the time stamp is delayed

• Your internet may have been lagging so the tick came in slightly delayed and therefore the time stamp is delayed

• Due to standard latency, even 50ms delay (which is normal) could be the difference between a 10:30:59 and 10:31:00 time stamp

• There is no way of knowing how the historical data provider packages their bars

The only way to ensure that data always looks the same is if every connectivity provider sent ticks with time stamps AND that all vendors synchronized on time stamps. Unfortunately, this is just not a reality nor plausible scenario.

With time based bars the difference is almost non-existent but with the rest there is a huge difference.

Reply With Quote
Thanked by:
  #8 (permalink)
 
Malthus's Avatar
 Malthus 
Madrid Spain
 
Experience: Intermediate
Platform: Ninjatrader, TOS
Trading: ES
Posts: 251 since Oct 2014
Thanks Given: 1,252
Thanks Received: 708

Take a look at this thread and see how different people have different bars for the same time period.

PATs - [AUTOLINK]Price Action[/AUTOLINK] Trading - Elite Members Common Journal

Reply With Quote
Thanked by:
  #9 (permalink)
 uspilotzzz 
Denver, CO United States
 
Experience: Intermediate
Platform: Multicharts
Trading: ES
Posts: 78 since May 2015
Thanks Given: 3
Thanks Received: 25

So I am trying to verify something as is relates to this issue. As far as I can tell this seems to be a problem specific to ninjatrader and the way it handles the incoming data and time stamps. I have been searching other software forums for the same issue and haven't come up with anything. Can anyone confirm this for me or if you happen to be a user of another piece of software and you know this is an issue that would be helpful to know.

Thanks

Started this thread Reply With Quote
  #10 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,162 since Jan 2013
Thanks Given: 57,344
Thanks Received: 26,267



uspilotzzz View Post
I have been noticing that from time to time the bars on my 233 tick chart will change between times I open ninjatrader. I am using the CQG demo data at the moment. I saw the post on the MDP 3.0 migration but this seems to be something different and more subtle but maybe not.

So their reply was that bars are going to look different when refreshed with historical data when the program is reopened. (if I am reading that right)


Malthus View Post
That's correct. Tick and volume bars have that problem (probably range bars too). The only ones that doesn't change are time based bars (I think).


uspilotzzz View Post
So I am trying to verify something as is relates to this issue. As far as I can tell this seems to be a problem specific to ninjatrader and the way it handles the incoming data and time stamps. I have been searching other software forums for the same issue and haven't come up with anything. Can anyone confirm this for me or if you happen to be a user of another piece of software and you know this is an issue that would be helpful to know.

Thanks

I just came across this thread, so this is a late comment, and pretty much in line with what @Malthus wrote.

I have seen the same thing with Ninja for both tick and volume bars. The other day I had a real-time chart that had some noticeable differences from one that I had posted to futures.io (formerly BMT) just an hour before; I had forgotten the issue with historical data.

Basically, what's going on, as I understand it, is that NT supplies historical data from their data servers when you first connect, and then during the day the chart is updated by whatever feed you are getting from your data provider or trading broker. So you have two sources of data on the chart. Aside from whether there may be data differences between the two, when a tick or volume chart is built, the bars depend on when the accumulation of ticks/volume starts -- unlike time bars, which always match up based on time, tick and volume bars are somewhat artificial in that they are built from transactions, and when you start counting matters. So it is not surprising if the bars that are built from the two sources do not coincide. You don't see that during the day, because you just see the chart as it is presented. But when you log off and then log back in, NT will repaint the chart entirely from its historical data, and if that is not in sync with what came from your real-time provider (which is likely), then the chart will be different.

As to whether this happens to any other platform, I can't be sure of all others.... It does make sense that if you have the exact same situation -- real-time providers not providing historical data also -- then you would likely have the same issue.

It is likely that this is more a data provider issue than a platform issue. You may want to check around for what the different data providers do. Bear in mind that a dedicated feed comes at a cost, and is not just what comes with the broker or NT feed.

You can be sure of never having that problem if the historical and real-time data are always from the same source. I know, for instance, that you won't have that issue with the ThinkOrSwim integrated platform -- but the TOS data is pretty crummy, bundled and dropping ticks, because they aren't in the data business -- or at least it was when I used them a few years ago.

Basically, this may be something to live with. The more each individual bar matters to you, the more this issue may matter. The more you are looking at larger movements, the less it will matter. But remember that you can't even expect two different traders' tick charts to always match up anyway. When you look at tick charts for the same period that are posted by different traders, there often are small differences in the bars, because the bars don't actually independently exist, the way time intervals do; they are summations from a certain beginning point, which may be different. That's a different issue from the one you have, but it's closely related, because if the bars different traders see are different, the price action on their charts is different, just as the price action on your chart may be different when the bars are refreshed from the historical data. But if you're not looking at very fine detail, the difference is not large. There were long discussions in the old PATs thread that @Malthus linked to on the subject; this is pretty much in the nature of tick and volume charts.

Everyone who uses tick or volume charts eventually has to understand and accept that any two tick or volume charts of the same span of time may not be the same. That's why, when your chart is redrawn from your historical data source when you log back in, it may not be exactly the same as it was in real time. Usually the same basic trend and chart features will still apply, however.

Bob.

Reply With Quote
Thanked by:




Last Updated on April 25, 2017


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts