Difference between revisions of "OpenEntryTime"

From MultiCharts
Jump to navigation Jump to search
(Created page with "Returns a numerical value, indicating the time of specified entry into the open position. The time is indicated in the HHmm format, where HH is the hour in 24 hours format a...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
The time is indicated in the HHmm format, where HH is the hour in 24 hours format and mm are minutes.  
 
The time is indicated in the HHmm format, where HH is the hour in 24 hours format and mm are minutes.  
 
   
 
   
==== Usage ====
+
== Usage ==
 
<syntaxhighlight>OpenEntryTime(EntryIndex)</syntaxhighlight>  
 
<syntaxhighlight>OpenEntryTime(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.
==== Example ====
+
* To retrieve the total number of trades in open position use [[OpenEntriesCount]].
+
* Use [[PosTradeEntryDateTime]] and [[PosTradeExitDateTime]] to get the time, in DateTime format, for recently closed positions.
 +
 
 +
== Example ==  
 +
<syntaxhighlight>OpenEntryTime(0)</syntaxhighlight>
 +
Will return 1028 if the first entry occurred at 10:28 am.
 
[[Category:Strategy Position Trades]]
 
[[Category:Strategy Position Trades]]

Latest revision as of 09:28, 9 February 2012

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

The time is indicated in the HHmm format, where HH is the hour in 24 hours format and mm are minutes.

Usage

OpenEntryTime(EntryIndex)

Where:

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

Notes

Example

OpenEntryTime(0)

Will return 1028 if the first entry occurred at 10:28 am.