Difference between revisions of "Datetime bar update"
Jump to navigation
Jump to search
Dave Masalov (talk | contribs) (Created page with "Returns time of the last update of the current bar if Bar Magnifier mode is on. If Bar Magnifier mode is off, returns the time of the current bar (as the Time property). ==...") |
Dave Masalov (talk | contribs) |
||
Line 13: | Line 13: | ||
<syntaxhighlight>print(datetimetostring_ms(datetime_bar_update))</syntaxhighlight> will return <code>"29.04.2013 10:53:59.154"</code>. | <syntaxhighlight>print(datetimetostring_ms(datetime_bar_update))</syntaxhighlight> will return <code>"29.04.2013 10:53:59.154"</code>. | ||
+ | |||
+ | [[Category:Data Information/General]] |
Revision as of 16:46, 7 May 2013
Returns time of the last update of the current bar if Bar Magnifier mode is on.
If Bar Magnifier mode is off, returns the time of the current bar (as the Time property).
Usage
datetime_bar_update(data_stream)
Example
Bar Magnifier mode is on. Time and date of the last update of the current bar are 29.04.2013 10:53:59.154
print(datetime_bar_update:15:8)
will return 41393.45415687
.
print(datetimetostring_ms(datetime_bar_update))
will return "29.04.2013 10:53:59.154"
.