ExitAllUnitsAtLimit

Top  Previous  Next

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

 

Syntax

 

ExitAllUnitsAtLimit( limitPrice )

 

Parameters

limitPrice

 

the price which the market must trade through to trigger the order

 

Example

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

broker.ExitAllUnitsAtLimit( limitPrice )