NeedForTrade Documentation

Sell Methods

Sell method names are constructed as follows:

Sell<When><Price>[<ExitOptions>]([<Parameters>])

 

<ExitOptions> and <Parameters> are optional and may vary depending on your needs.

 

For example:

SellNextBarAtMarket();

Available When variants:

 

Available Price variants:

 

Tip: relativePrice can be negative to specify price less then Open price of the next bar.

 

Available ExitOptions variants:

 

Tip: use FromEntry exit option to to close specific entries named with tradeName parameter.

 

List of available Sell methods with possible parameters:

 


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

    void SellNextBarAtLimitFromEntry(string tradeName, double limitPrice, int tradeSize);

    void SellNextBarAtLimitFromEntryTotal(string tradeName, double limitPrice, int tradeSize);

    void SellNextBarAtLimitTotal(double limitPrice, int tradeSize);
    void SellNextBarAtLimitTotal(string tradeName, double limitPrice, int tradeSize);

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

    void SellNextBarAtMarketFromEntry(string tradeName, int tradeSize);

    void SellNextBarAtMarketFromEntryTotal(string tradeName, int tradeSize);

    void SellNextBarAtMarketTotal(int tradeSize);
    void SellNextBarAtMarketTotal(string tradeName, int tradeSize);

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

    void SellNextBarAtOpenFromEntry(string tradeName, int tradeSize);

    void SellNextBarAtOpenFromEntryTotal(string tradeName, int tradeSize);

    void SellNextBarAtOpenOfNextBarLimit(double relativePrice);
    void SellNextBarAtOpenOfNextBarLimit(double relativePrice, int tradeSize);
    void SellNextBarAtOpenOfNextBarLimit(string tradeName, double relativePrice);
    void SellNextBarAtOpenOfNextBarLimit(string tradeName, double relativePrice, int tradeSize);

    void SellNextBarAtOpenOfNextBarLimitFromEntry(string tradeName, double relativePrice, int tradeSize);

    void SellNextBarAtOpenOfNextBarLimitFromEntryTotal(string tradeName, double relativePrice, int tradeSize);

    void SellNextBarAtOpenOfNextBarLimitTotal(double relativePrice, int tradeSize);
    void SellNextBarAtOpenOfNextBarLimitTotal(string tradeName, double relativePrice, int tradeSize);

    void SellNextBarAtOpenOfNextBarStop(double relativePrice);
    void SellNextBarAtOpenOfNextBarStop(double relativePrice, int tradeSize);
    void SellNextBarAtOpenOfNextBarStop(string tradeName, double relativePrice);
    void SellNextBarAtOpenOfNextBarStop(string tradeName, double relativePrice, int tradeSize);

    void SellNextBarAtOpenOfNextBarStopFromEntry(string tradeName, double relativePrice, int tradeSize);

    void SellNextBarAtOpenOfNextBarStopFromEntryTotal(string tradeName, double relativePrice, int tradeSize);

    void SellNextBarAtOpenOfNextBarStopTotal(double relativePrice, int tradeSize);
    void SellNextBarAtOpenOfNextBarStopTotal(string tradeName, double relativePrice, int tradeSize);

    void SellNextBarAtOpenTotal(int tradeSize);
    void SellNextBarAtOpenTotal(string tradeName, int tradeSize);

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

    void SellNextBarAtStopFromEntry(string tradeName, double stopPrice, int tradeSize);

    void SellNextBarAtStopFromEntryTotal(string tradeName, double stopPrice, int tradeSize);

    void SellNextBarAtStopTotal(double stopPrice, int tradeSize);
    void SellNextBarAtStopTotal(string tradeName, double stopPrice, int tradeSize);

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

    void SellThisBarOnCloseFromEntry(string tradeName, int tradeSize);

    void SellThisBarOnCloseFromEntryTotal(string tradeName, int tradeSize);

    void SellThisBarOnCloseTotal(int tradeSize);
    void SellThisBarOnCloseTotal(string tradeName, int tradeSize);