ExitAllUnitsAtLimitClose

Top  Previous  Next

Exits all units for the current instrument if the close  trades through the limit price. This function is generally used by an Exit Block to close out a position.

 

Syntax

 

ExitAllUnitsAtLimitClose( limitPrice )

 

Parameters

limitPrice

 

the price which the close must trade beyond to trigger the order

 

Example

' Exit all units during the next bar if it trades through our limit price.

broker.ExitAllUnitsAtLimitClose( limitPrice )