|
ExitAllUnitsOnStop |
Top Previous Next |
|
Exits all units for the current instrument if the price during the next bar goes lower than the stop price for long positions or higher than the stop price for short positions. This function is generally used by an Exit Block to close out a position.
Syntax
ExitAllUnitsOnStop( stopPrice )
Parameters
Example ' Exit all units during the next bar if it hits our stop. broker.ExitAllUnitsOnStop( exitStop ) |