Hii Tomasz,
I am from India , our market timings are from 9:15 am to 3:30pm , So whenever I plot 75 min or 125 min chart I found 1 min extra candle [As shown in chart].
After reading some post by other user, I tried to upload data using $timeshift. Now chart plotting properly, but Quotation editor shows time as 09:30:01 instead of 09:30:00.
Am I doing something wrong ? Please guide
@sandeep you shouldn't use Time shift in this case. What you need to do is:
Setup properly your market's trading hours (Database settings --> Intraday settings):
https://www.amibroker.com/guide/w_dbsettings.html
Choose appropriate or preferred way of compressing intraday bars (Preferences --> Intraday) - START time of interval is recommended:
http://www.amibroker.com/kb/2015/01/07/timestamps-explained/
Similar threads:
You will get start of interval because you have set it so in Tools->Preferences->Intraday
"Time compressed bars".
If you use “start of interval” you will get opening time, if you use “end” you will get ending time.
You can change it to suit your needs or you can use simply add the interval to the timestamp you are getting, using DateTimeAdd.
Or you can use Status function http://www.amibroker.com/guide/afl/status.html
Status("lastbarend");
You probably have non-zero time shift set in File->Database Settings->Intraday Settings. Set it to zero.
Go to Tools->Preferences, "Intraday" tab and NOTE that by default there is a checkbox "align minute bars to regular market hours" turned ON. So if your session starts 9:30 the hourly bar will be aligned to 9:30 as per settings, so they will start at 9:30.
Turn this OFF, if you want 9:00, 10:00 bars.
Hi all,
Do you have any ideas why the intraday on the chart (see screen below) of every bar are always 1 second lag as compared to the database.
[image]
http://www.amibroker.com/kb/2014/10/25/how-to-correct-forward-looking-timestamps/
2 Likes
And one more example showing, that similar ideas (using Time shift when importing intraday data) have been already discussed on the forum:
Hi,
What are your Tools > Preference > Intraday settings?
[Untitled]
Time compressed bars shows: â—¦time of FIRST tick inside bar - when selected the bar gets the time stamp of the very first trade inside given time slot (bar)
â—¦time of the LAST tick inside bar - when selected the bar gets the time stamp of the very last trade inside given time slot (bar)
◦START time of the interval - when selected the bar is time-stamped with start time of the time slot (bar). Lets say that 30 minute bar cov…
1 Like