Class SmaCrossStrategy

java.lang.Object
com.quantfinlib.backtest.strategies.SmaCrossStrategy
All Implemented Interfaces:
TradingStrategy

public final class SmaCrossStrategy extends Object implements TradingStrategy
Golden/death cross: buy when the fast SMA crosses above the slow SMA, sell on the reverse cross.