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