×

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 "OpenEntryDate" - MultiCharts
Open main menu

Difference between revisions of "OpenEntryDate"

(Created page with "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...")
 
m (Reverted edits by 176.8.90.7 (talk) to last revision by JoshM)
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
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.  
 
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>OpenEntryDate(EntryIndex)</syntaxhighlight>  
 
<syntaxhighlight>OpenEntryDate(EntryIndex)</syntaxhighlight>  
  
Where: [[EntryIndex]] - a numerical expression, specifying the number of trade (zero-based).
+
Where:  
  
==== Notes ====
+
:'''EntryIndex''' - a numerical expression, specifying the number of trade (zero-based).  
This function can only be used in signals.  
 
  
To retrieve the total number of trades in open position use [[OpenEntriesCount]]  
+
== Notes ==
 +
* This function can only be used in signals.
 +
* To retrieve the total number of trades in open position use [[OpenEntriesCount]].
 
   
 
   
==== Example ====  
+
== Example ==  
<syntaxhighlight>OpenEntryDate(1) will return 1110402 for the open position if the second trade was generated at  
+
<syntaxhighlight>OpenEntryDate(1);</syntaxhighlight>
April 2nd, 2011.</syntaxhighlight>
+
 
 +
Will return 1110402 for the open position if the second trade was generated at April 2nd, 2011.
 
   
 
   
 
[[Category:Strategy Position Trades]]
 
[[Category:Strategy Position Trades]]

Latest revision as of 13:10, 13 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.