Support

Equilla Formula Language

FilledOrderDate

Returns the date at which a order of the specified numbered position was filled.

Inputs

Position
Numeric: (Optional) The position to examine. Omit this parameter or use zero (0) to indicate the current position.
Index
Numeric: (Optional) The index of the filled order to examine. If omitted, the order which opened the position is used.

Remarks

The Position parameter specifies the number of the referenced position relative to the current one. A value of zero (0) identifies the current position, a value of one (1) the previous one. If there are multiple filled orders per position the filled order can be selected by specifying the Index parameter, the index starts at 1.

Examples

Print date of every filled order of the last position
Variable: i; Print( FilledOrderCount( 1 ) + " orders on last position" ); For i = 1 To FilledOrderCount( 1 ) Begin Print( "Order " + i, FormatDate( FilledOrderDate( 1, i ) ) ); End;