How Bars are Built
<< Click to Display Table of Contents >> How Bars are Built |
NinjaTrader builds chart bars from the data provided by your data provider. There are multiple elements in the bar building process that can influence how bars are built.
Understanding the variables involved in building chart bars
Bar Time Stamp
|
Understanding the underlying base data type required for constructing various chart bars
Base Data Types Used to Build BarsA chart bar (period type) requires a base data type as its source for bar construction. Following are NinjaTrader supported period types and their required base data type values. A check mark represents the data base value that is needed to build the period type.
The base data is important to understand. If you are connected to a market data vendor that does NOT support "tick data," you will NOT be able to build chart bars that use "tick data" as its base data such as tick, volume, range or second charts. A matrix of supported data vendors and their varying levels of service is located here. |
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. NinjaTrader then builds bars based on the time stamp of the incoming tick and displays these bars in your chart in real-time.
•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.
Loading Historical DataPlease see the "Historical & Real-Time Data" section of the Help Guide for more information. |