API Support Forum
OEC API > API Support > Custom Sessions and Bar TimeStamps
Author Topic: Custom Sessions and Bar TimeStamps
(6 messages, Page 1 of 1)
Moderators: VPfau
MDunbar52
Posts: 9
Joined:


Posted: Sep 12, 2008 @ 03:47 PM             Msg. 1 of 6
When creating a custom session on a chart lets say I want a session 5:00am to 12:00pm. If I create this the last bar of the session is time stamped 12:00pm. Since you time stamp to the open of a bar and not the close of the bar, this last bar actually extends past the custom session time specified by what ever the time interval is. So if its a 5 min chart the session really ends at 12:05pm. A 30 minute bar chart will have the last bar end at 12:30pm. So the custom sessions created do not match the time specified. I believe the root of this problem is the time stamp to the open and not the close of the bar. Are there any plans to address this. Or maybe a setting that allows the user to choose to set times to the end of a bar instead of the open. This way a users transition from TradeStation will be easier as TS timestamps the end of the bar.
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Sep 12, 2008 @ 03:58 PM             Msg. 2 of 6
This issue has been fixed and will be available in the next build: chart will show only bars that fit to the custom session. About open/close timestamps: actually, the current released version has this option already "ShowOpenTimes" in the chart profile.
MDunbar52
Posts: 9
Joined:


Posted: Sep 12, 2008 @ 05:35 PM             Msg. 3 of 6
Is the option ShowOpenTimes available as a class member/variable inside an indicator or strategy? If so how do you refer to it?
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Sep 15, 2008 @ 08:08 AM             Msg. 4 of 6
No, indicators have no access to chart settings.
MDunbar52
Posts: 9
Joined:


Posted: Sep 15, 2008 @ 01:00 PM             Msg. 5 of 6
Are there any plans to expose the chart settings to indicators and strategies? I have indicators and startegies that are dependant on times of the day. Not knowing if the time is the open or close makes them not reliable.
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Sep 15, 2008 @ 01:04 PM             Msg. 6 of 6
All EasyLanguage functions use "Close" time.