ExitShortStopMarket()
ExitShortStopMarket()
Definition
Generates a buy to cover stop market order to exit a short position.
Method Return Value
An Order read-only object that represents the order. Reserved for experienced programmers, additional information can be found within the Advanced Order Handling section.
Syntax
ExitShortStopMarket(double stopPrice)
ExitShortStopMarket(int quantity, double stopPrice)
ExitShortStopMarket(double stopPrice, string fromEntrySignal)
ExitShortStopMarket(double stopPrice, string signalName, string fromEntrySignal)
ExitShortStopMarket(int quantity, double stopPrice, string signalName, string fromEntrySignal)
The following method variation is for experienced programmers who fully understand Advanced Order Handling concepts:
ExitShortStopMarket(int barsInProgressIndex, bool isLiveUntilCancelled, int quantity, double stopPrice, string signalName, string fromEntrySignal)
Parameters
Examples
Tips
- This method is ignored if a short position does not exist.
- It is helpful to provide a signal name if your strategy has multiple exit points to help identify your exits on a chart.
- You can tie an exit to an entry by providing the entry signal name in the parameter “fromEntrySignal”.
- If you do not specify a quantity the entire position is exited rendering your strategy flat.
- If you do not specify a “fromEntrySignal” parameter the entire position is exited rendering your strategy flat.

