+1 888 340 6572

ExitDateTime: Difference between revisions

From MultiCharts
(Created page with "Returns a double-precision decimal DateTime value indicating the date and time of the complete exit from the specified position. The integer portion of the DateTime value ind...")
 
No edit summary
 
Line 1: Line 1:
Returns a double-precision decimal DateTime value indicating the date and time of the complete exit from the specified position.  The integer portion of the DateTime value indicates the number of days that have elapsed since January 1st, 1900, and the fractional portion of the DateTime value indicates the fraction of the day that has passed since midnight. DateTime is a floating point value with high precision. It allows accessing millisecond time stamps of the bar.
Returns a double-precision decimal DateTime value indicating the date and time of the complete exit from the specified position.  The integer portion of the DateTime value indicates the number of days that have elapsed since December 30th, 1899, and the fractional portion of the DateTime value indicates the fraction of the day that has passed since midnight. DateTime is a floating point value with high precision. It allows accessing millisecond time stamps of the bar.
   
   
'''Usage'''
'''Usage'''

Latest revision as of 13:34, 15 February 2023

Returns a double-precision decimal DateTime value indicating the date and time of the complete exit from the specified position. The integer portion of the DateTime value indicates the number of days that have elapsed since December 30th, 1899, and the fractional portion of the DateTime value indicates the fraction of the day that has passed since midnight. DateTime is a floating point value with high precision. It allows accessing millisecond time stamps of the bar.

Usage

ExitDateTime(PosBack)

Where:

  • PosBack - a numerical expression, specifying the position:
1 - the last position closed (one position back);
2 - two positions back, etc.

Notes

This function can only be used in signals.

Example Assign a value, indicating the date that the most recently closed position has been exited, to Value1 variable:

Value1=ExitDateTime(1);