Sets the exit stop for an active position specified unit.
This function works where order are being processed to assign a value:
If you set the stop with this function, the daily risk will be calculated using this value, but no order is placed. To place an actual stop in the market use a broker order like this: broker.ExitAllUnitsOnStop( instrument.unitExitStop ).
| Syntax: | 
|---|
| SetExitStop( [unitNumber,] stopPrice ) | 
| Parameter: | Description: | 
|---|---|
| [unitNumber,] | The unit number (optional). If not supplied this will default to the first unit. | 
| stopPrice | The value of the stop to be set. | 
| Example: | 
|---|
| ' Move the stop by the amount of the slippage. | 
| Returns: | 
|---|
| Values assigned can be printed and used after assignment. It is also available to the Broker object to execute. | 
| Links: | 
|---|
| See Also: | 
| Edit Time: 9/21/2020 2:40:45 PM | Topic ID#: 543 |