Author |
Topic: bar closed (5 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
RCrawford65 Posts: 6 Joined: Dec 03, 2012 |
Tried searching for answer but didnt find it - must be simple...
How to determine that a bar from bar subscription is actually closed and not just an update? That is, can I tell from the bar object itself that the bar is still open or do I have to play around with timestamps, etc to figure it out? Thanks Richard Crawford |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Hello,
please try function BarStatus(0) - it returns 0 for opening, 1 for update and 2 for closing. Victor Vins Lead Software Developer |
||||
RCrawford65 Posts: 6 Joined: Dec 03, 2012 |
I cannot find which object provides this method?
Richard Crawford |
||||
RCrawford65 Posts: 6 Joined: Dec 03, 2012 |
btw I am using the API and not EasyLangauge... Sorry for not mentioning that in original post.
Richard Crawford |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Unfortunately, there is no any flag that can tell that the current update is "closing" update for this bar.
Victor Vins Lead Software Developer |
||||