Difference between revisions of "OpenEntryDate"

From MultiCharts
Jump to navigation Jump to search
m
m
Line 11: Line 11:
  
 
== Notes ==  
 
== Notes ==  
This function can only be used in signals.  
+
* This function can only be used in signals.  
 
+
* To retrieve the total number of trades in open position use [[OpenEntriesCount]].
To retrieve the total number of trades in open position use [[OpenEntriesCount]].
 
 
   
 
   
 
== Example ==  
 
== Example ==  

Revision as of 09:32, 9 February 2012

Returns a numerical value, indicating the date of specified entry into the open position.

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

OpenEntryDate(EntryIndex)

Where:

EntryIndex - a numerical expression, specifying the number of trade (zero-based).

Notes

  • This function can only be used in signals.
  • To retrieve the total number of trades in open position use OpenEntriesCount.

Example

OpenEntryDate(1);

Will return 1110402 for the open position if the second trade was generated at April 2nd, 2011.