×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts

Changes

Jump to navigation Jump to search

Datetime bar update

620 bytes added, 16:45, 7 May 2013
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). ==..."
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 ==
<syntaxhighlight>datetime_bar_update(data_stream)</syntaxhighlight>

== 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

<syntaxhighlight>print(datetime_bar_update:15:8)</syntaxhighlight> will return <code>41393.45415687</code>.

<syntaxhighlight>print(datetimetostring_ms(datetime_bar_update))</syntaxhighlight> will return <code>"29.04.2013 10:53:59.154"</code>.

Navigation menu