Where: [[EntryIndex]] - a numerical expression, specifying the number of trade (zero-based).
==== Notes ==== This function can only be used in signals:'''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]] .* 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.