private string RampingStrategySummary(IRampingStrategySummary summary) { if (summary == null || summary.RampingStrategy == RampingStrategy.Unknown) { return(string.Empty); } return ($"{summary.TimeSegment.GetDescription()} ramping analysis detected market prices {summary.TrendClassification.Trend.GetDescription()} trend concurrent with a trading pattern with a {summary.PriceImpact.Classification.GetDescription().ToLower()} price impact. Trading strategy is judged to be {summary.RampingStrategy.GetDescription()} ramping. "); }
public RampingStrategySummaryPanel( IRampingStrategySummary oneDayAnalysis, IRampingStrategySummary fiveDayAnalysis, IRampingStrategySummary fifteenDayAnalysis, IRampingStrategySummary thirtyDayAnalysis) { this.OneDayAnalysis = oneDayAnalysis ?? throw new ArgumentNullException(nameof(oneDayAnalysis)); this.FiveDayAnalysis = fiveDayAnalysis ?? throw new ArgumentNullException(nameof(fiveDayAnalysis)); this.FifteenDayAnalysis = fifteenDayAnalysis ?? throw new ArgumentNullException(nameof(fifteenDayAnalysis)); this.ThirtyDayAnalysis = thirtyDayAnalysis ?? throw new ArgumentNullException(nameof(thirtyDayAnalysis)); }