public MaTradingStrategy(List <HighLowItem> candles, MovingAverage movingAverage) : base(candles) { ma = movingAverage ?? throw new ArgumentNullException("moving average is null"); }
public MaCrossRsiTradingStrategy(List <HighLowItem> candles, Rsi rsi, MovingAverage shortMa, MovingAverage longMa) : base(candles) { this.rsi = rsi; this.shortMa = shortMa; this.longMa = longMa; }