Equilla Formula Language


Returns the time at which the specified position was exited.


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


The function returns the exit time as Time. For the current position the function always returns 0.

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 entries per position the entry order can be selected by specifying the Index parameter, the index starts at 1.


Delay the next entry for some hours
Input: Price( Close ), Period( 10, 1 ), Hours( 3, 1 ); If TotalPositions = 0 Or Date <;>; ExitDate( 1 ) Or Time >; ( ExitTime( 1 ) + Hours * 100 ) Then Begin If Average( Price, Period ) >; Price Then Buy Next Bar at Market Else If Price >; Average( Price, Period ) Then Short Next Bar at Market; End;