×

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.

Difference between revisions of "Date" - MultiCharts
Open main menu

Difference between revisions of "Date"

 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
Returns a numerical value indicating the closing date of a bar. The date is indicated in the YYYMMdd format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month.  
+
Returns a numerical value indicating the closing date of a bar. The date is indicated in the ''YYYMMdd'' format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month.  
 
   
 
   
==== Usage ====
+
== Usage ==
 
<syntaxhighlight>Date</syntaxhighlight>
 
<syntaxhighlight>Date</syntaxhighlight>
  
==== Example ====
+
== Notes ==
<syntaxhighlight>Date will return a value of 1071030 for October 30th, 2007
+
* See the category [[:Category:Date_and_Time_Routines|Date and Time Routines]] for more information about the PowerLanguage reserved words for working with dates.
 
+
* The range of returned values is limited by the [[MaxBarsBack]] setting.
Date  will return a value of 990402 for April 2th, 1999</syntaxhighlight>
 
 
 
 
 
 
 
 
 
 
  
 +
== Example ==
 +
<syntaxhighlight>Print(Date);</syntaxhighlight>
 +
* Will return a value of 1071030 if the date is October 30th, 2007.
 +
* Will return a value of 990402 if the date April 2th, 1999.
  
 +
== Related articles ==
 +
* [[Outputting_Dates_in_EasyLanguage|Outputting Dates in EasyLanguage]]
  
 
[[Category:Data Information/General]]
 
[[Category:Data Information/General]]

Latest revision as of 15:57, 28 February 2012

Returns a numerical value indicating the closing date of a bar. The date is indicated in the YYYMMdd format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month.

Contents

Usage

Date

Notes

  • See the category Date and Time Routines for more information about the PowerLanguage reserved words for working with dates.
  • The range of returned values is limited by the MaxBarsBack setting.

Example

Print(Date);
  • Will return a value of 1071030 if the date is October 30th, 2007.
  • Will return a value of 990402 if the date April 2th, 1999.

Related articles