Uses of Enum Class
com.quantfinlib.backtest.Signal

Packages that use Signal
Package
Description
Bar-based backtesting engines, execution models and performance analytics.
  • Uses of Signal in com.quantfinlib.backtest

    Subclasses with type arguments of type Signal in com.quantfinlib.backtest
    Modifier and Type
    Class
    Description
    enum 
    Trading signal emitted by a strategy for a single bar.
    Methods in com.quantfinlib.backtest that return Signal
    Modifier and Type
    Method
    Description
    TradingStrategy.onBar(int index)
     
    default Signal
    TradingStrategy.onBar(int index, double position)
    Position-aware variant, called by Backtester with the quantity currently held (0 when flat, positive when long).
    Backtester.State.pending()
    Returns the value of the pending record component.
    static Signal
    Signal.valueOf(String name)
    Returns the enum constant of this class with the specified name.
    static Signal[]
    Signal.values()
    Returns an array containing the constants of this enum class, in the order they are declared.
    Constructors in com.quantfinlib.backtest with parameters of type Signal
    Modifier
    Constructor
    Description
     
    State(double cash, double quantity, double entryPrice, double entryCost, int entryIndex, long entryTime, Signal pending)
    Creates an instance of a State record class.