ExitUnitOnClose

Top  Previous  Next

Exits the specified unit for the current instrument on the next close. This function is generally used by an Exit Block to lighten up a position.

 

Syntax

 

ExitUnitOnClose( unitNumber )

 

Parameters

unitNumber

 

the unit to exit

 

Example

' Exit the first unit on the next close.

broker.ExitUnitOnClose( 1 )