[FAQ] Sub-Second and Non Time-Based Keywords

Read before posting.
User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

[FAQ] Sub-Second and Non Time-Based Keywords

Postby TJ » 23 May 2013

Sub-Second keywords are introduced in MultiCharts 8.7 Beta1.

Here is a list of these new keywords:

Status line time in DateTime format - q_time_dt
DateTime - time and date of the bar in Julian format.
datetimetostring_ms
MillisecondsFromDateTime - returns milliseconds values(0-999)for DateTime in Julian format.


Drawings with time coordinates in DateTime(Julian) format:
arw_new_dt
arw_new_self_dt
arw_setlocation_dt
arw_gettime_dt

text_new_dt
text_new_self_dt
text_setlocation_dt
text_gettime_dt

mc_tl_new_dt
mc_tl_new_self_dt

tl_new_dt
tl_new_self_dt
tl_setbegin_dt
tl_setend_dt
tl_getbegin_dt
tl_getend_dt
tl_getvalue_dt


Drawings with bar coordinates in BarNumber format:
arw_new_bn
arw_new_self_bn
arw_setlocation_bn
arw_gettime_bn

text_new_bn
text_new_self_bn
text_setlocation_bn
text_gettime_bn

mc_tl_new_bn
mc_tl_new_self_bn

tl_new_bn
tl_new_self_bn
tl_setbegin_bn
tl_setend_bn
tl_getbegin_bn
tl_getend_bn
tl_getvalue_bn


Strategy orders information in DateTime(Julian) format:
entrydatetime
exitdatetime
entrydatetime_checked
exitdatetime_checked

---------------------------------------------------------------------------------------------------------

Date and Time Keywords
https://www.multicharts.com/trading-sof ... e_Routines

---------------------------------------------------------------------------------------------------------
Additional help: EasyLanguage Date and Time Primer

EasyLanguage Reference Guide
CHAPTER: 2 - The Basic EasyLanguage Elements
Manipulating Dates and Times .... pg. 15

trader39
Posts: 105
Joined: 08 Jan 2006
Has thanked: 8 times
Been thanked: 5 times

Re: [FAQ] Millisecond Keywords

Postby trader39 » 01 Jun 2013

It's great that you are now supporting milliseconds. Can you please provide a use example for millisecondsfromdatetime? I am not clear on what to place into the one parameter this function requires and there is no documentation in the keyword alphabetical index other than to say "reserved for future use". (I simply want to reference the milliseconds of each bar's time stamp in power language.)

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: [FAQ] Millisecond Keywords

Postby Henry MultiСharts » 04 Jun 2013

It's great that you are now supporting milliseconds. Can you please provide a use example for millisecondsfromdatetime? I am not clear on what to place into the one parameter this function requires and there is no documentation in the keyword alphabetical index other than to say "reserved for future use". (I simply want to reference the milliseconds of each bar's time stamp in power language.)
MillisecondsFromDateTime(DateTtime); will return 687.00 if the time stamp of the current bar is 11:57:07.687


Return to “MultiCharts FAQ”