NeedForTrade Documentation

Sell Short Methods

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.

 

List of available SellShort methods with possible parameters:

 

//SellShortNextBarAtLimit 
    void SellShortNextBarAtLimit(double limitPrice);
    void SellShortNextBarAtLimit(double limitPrice, int tradeSize);
    void SellShortNextBarAtLimit(string tradeName, double limitPrice);
    void SellShortNextBarAtLimit(string tradeName, double limitPrice, int tradeSize);

//SellShortNextBarAtMarket 
    void SellShortNextBarAtMarket();
    void SellShortNextBarAtMarket(int tradeSize);
    void SellShortNextBarAtMarket(string tradeName);
    void SellShortNextBarAtMarket(string tradeName, int tradeSize);

//SellShortNextBarAtOpen 
    void SellShortNextBarAtOpen();
    void SellShortNextBarAtOpen(int tradeSize);
    void SellShortNextBarAtOpen(string tradeName);
    void SellShortNextBarAtOpen(string tradeName, int tradeSize);
    void SellShortNextBarAtOpenOfNextBarLimit(double relativePrice);
    void SellShortNextBarAtOpenOfNextBarLimit(double relativePrice, int tradeSize);
    void SellShortNextBarAtOpenOfNextBarLimit(string tradeName, double relativePrice);
    void SellShortNextBarAtOpenOfNextBarLimit(string tradeName, double relativePrice, int tradeSize);
    void SellShortNextBarAtOpenOfNextBarStop(double relativePrice);
    void SellShortNextBarAtOpenOfNextBarStop(double relativePrice, int tradeSize);
    void SellShortNextBarAtOpenOfNextBarStop(string tradeName, double relativePrice);
    void SellShortNextBarAtOpenOfNextBarStop(string tradeName, double relativePrice, int tradeSize);

//SellShortNextBarAtStop 
    void SellShortNextBarAtStop(double stopPrice);
    void SellShortNextBarAtStop(double stopPrice, int tradeSize);
    void SellShortNextBarAtStop(string tradeName, double stopPrice);
    void SellShortNextBarAtStop(string tradeName, double stopPrice, int tradeSize);

//SellShortThisBarOnClose 
    void SellShortThisBarOnClose();
    void SellShortThisBarOnClose(int tradeSize);
    void SellShortThisBarOnClose(string tradeName);
    void SellShortThisBarOnClose(string tradeName, int tradeSize);