Sell Short method names are constructed as follows:
SellShort<When><Price>([<Parameters>])
<Parameters> are optional and may vary depending on your needs.
For example:
SellShortNextBarAtMarket();
Available When variants:
Available Price variants:
Tip: relativePrice can be negative to specify price less then Open price of the next bar.
Backtesting Real Time Strategies on historical data:
List of available SellShort methods with possible parameters:
// BackTestSellShort
protected void BackTestSellShort(double price);
protected void BackTestSellShort(double price, int tradeSize);
protected void BackTestSellShort(string tradeName, double price);
protected void BackTestSellShort(string tradeName, double price, int tradeSize);
// SellShortAtLimit
protected void SellShortAtLimit(double limitPrice);
protected void SellShortAtLimit(double limitPrice, int tradeSize);
protected void SellShortAtLimit(string tradeName, double limitPrice);
protected void SellShortAtLimit(string tradeName, double limitPrice, int tradeSize);
// SellShortAtMarket
protected void SellShortAtMarket();
protected void SellShortAtMarket(int tradeSize);
protected void SellShortAtMarket(string tradeName);
protected void SellShortAtMarket(string tradeName, int tradeSize);
// SellShortAtStop
protected void SellShortAtStop(double stopPrice);
protected void SellShortAtStop(double stopPrice, int tradeSize);
protected void SellShortAtStop(string tradeName, double stopPrice);
protected void SellShortAtStop(string tradeName, double stopPrice, int tradeSize);