public void GetCOutlierAlert(IAnalyst analyst, double price, int num) { string msg = $"alert {Name}: {analyst} {price} ortlier {num}"; CommandUtil.PrintLine(msg); }
public void GetInitAlert(IAnalyst analyst, double price) { string msg = $"alert {Name}: {analyst} {price} initiate"; CommandUtil.PrintLine(msg); }
public void GetChangeAlert(IAnalyst analyst, double price, StatisticType type, double pct) { string msg = $"alert {Name}: {analyst} {price} change {type} {pct}"; CommandUtil.PrintLine(msg); }
public DataPoint(IAnalyst analyst, double price) { Analyst = analyst; Price = price; }
public bool Equals(IAnalyst other) { return(Name == other.Name); }
public void Trigger(IAnalyst analyst, double price, double pct) { Client.GetChangeAlert(analyst, price, SType, pct); }
public void Trigger(IAnalyst analyst, double price, double pct) { Client.GetCOutlierAlert(analyst, price, Num); }
private Executor(IAnalyst analyst, IBisector bisector) { _analyst = analyst; _bisector = bisector; }