Show 24 hours trading (no filtering)<\/strong> – all data is displayed (no filtering at all). In this case, all the data (including pre- and after-market quotations) is shown on the chart, and all the quotations are compressed to the daily bar.<\/li><\/ul>
\u00a0<\/strong><\/p>As a result – all the data\u00a0(since 00:00\u00a0untill 23:59)\u00a0is included on the intraday chart.\u00a0Now, if we\u00a0switch the display\u00a0into DAILY interval, all these quotes will be compressed to the daily candle.<\/p>
<\/p>
As it is visible in the tooltip\u00a0– the OHLC values shown for the 2006-03-14 candle match the values observed on the intraday (5-min) chart.<\/p>
- Show day session only<\/strong> – only the data between day session (RTH) start and end times is displayed. If we apply such kind of filtering, the quotes outside the regular session hours are not included in the charts.<\/li><\/ul>
<\/p>
These are the settings we want to use if we are interested in getting daily bar representing standard US stock markets trading hours (9:30 open, 16:00 close).<\/strong> If we switch the display to DAILY interval, the influence of the filtering settings can also be observed.<\/p><\/p>
As it is visible in the tooltip\u00a0– the OHLC values shown for the 2006-03-14 candle match the values from 9:30 upto 16:00 observed on the intraday (5-min) chart.<\/p>
- Show night session only<\/strong> – only the data between night sesison (ETH) start and times are displayed. The below chart shows only the data between start and end times of the Night session defined in the settings.<\/li><\/ul>
<\/p>
Since only Night-session data is displayed in the charts, consequently, such data will be included in the Daily candle when we switch the display interval to DAILY.<\/p>
\u00a0<\/p>
Daily candle includes all the quotes for 2006-03-14 (marked with yellow background on the previous \/ intraday picture)<\/p>
Now we will examine how does the time-shift<\/strong> affect the daily compression. Let us consider\u00a0the Europe-based investor in\u00a0GMT+1 time zone. There is a 6 hours difference, that is – when the regular session starts in US at 9:30, the time here is 15:30. That’s what the time-shift setting is for. If one wants to, it’s possible to display the quotations in the local time.<\/p>Time shift –<\/strong> is the time difference (in hours) between your local time zone and the exchange time zone. So – let’s set the time-shift to 6 hours and check what’s the influence of this setting on the daily compression.<\/p>AmiBroker allows us to choose, whether the daily time-compression uses Exchange time or Local time.<\/p>
- Exchange time<\/strong> – daily data are constructed from intraday bars starting from 00:00 and ending at 23:59 in the EXCHANGE (or data source) TIME ZONE. This situation is presented in the screenshot below:
\u00a0<\/strong><\/li><\/ul>\u00a0<\/strong><\/p>The yellow shade shows the bars which are used to build the 2006-03-14 daily candle.\u00a0Despite the fact that the day expressed in Local time starts at 00:00, daily time-compression uses EXCHANGE time (so in local time, the new trading day starts at 6:00 and ends at 5:59, which is just 00:00\u00a0shifted by\u00a06 hours).\u00a0Consequently –\u00a0if EXCHANGE time is used for the daily compression then the Daily bar will look exactly the same as in US-time (first example in this article).<\/p>
<\/strong><\/p>As you can see – the Open, High, Low, Close prices of the 2006-03-14 daily candle are exactly the same as in Example 1, when there was no time-shift used. This is because the compression still uses EXCHANGE 00:00 – 23:59 range, which is expressed as 6:00 – 5:59 in local time.<\/p>
- Local time<\/strong> – daily data are constructed from intraday bars starting from 00:00 and ending at 23:59 in the LOCAL (computer) TIME ZONE.<\/li><\/ul>
<\/p>
As opposed to the previous example – now AmiBroker uses 00:00 – 23:59 range expressed in Local time. That will produce\u00a0a different daily candle.<\/p>
<\/p>
It’s also possible to use Day\/Night session times\u00a0<\/strong>defined\u00a0in the settings for daily compression purposes.\u00a0Then daily candles are constructed from the intraday bars that start at the start time of night session (previous day) and end at the end time of day session). So – if we define the\u00a0day session to start at: 9:30 and finish at 16:00 and night session times as 16:01 – 9:29, then the daily candles will be built from all the intraday bars from the start of the night session on the PREVIOUS day till the very last bar of the day session of the CURRENT day. Such setup is popular in Forex markets where Monday’s daily bar actually starts with Sunday evening trading (which starts from 17:00 ET) and continues till the end of Monday’s day session, and so on for each next day.<\/p><\/p>
And the daily candle of March 14th shows these values – so the daily compression uses time range from: March 13th (previous day) 16:01<\/strong> to March 14th (current day), 16:00.<\/strong><\/p><\/p>
See also:
Detailed setup instructions for Tokyo-based Forex traders using eSignal feed.<\/a>
<\/em><\/p>","protected":false},"excerpt":{"rendered":"When you are using intraday database daily candles are usually constructed by time-compression of intraday (for example 1-minute data). AmiBroker offers lots of flexibility when it comes to defining intraday-to-daily time compression.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[14,55,54],"_links":{"self":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/14"}],"collection":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":1,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":798,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/14\/revisions\/798"}],"wp:attachment":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}