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);
        }
示例#4
0
 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);
 }
示例#7
0
 public void Trigger(IAnalyst analyst, double price, double pct)
 {
     Client.GetCOutlierAlert(analyst, price, Num);
 }
示例#8
0
 private Executor(IAnalyst analyst, IBisector bisector)
 {
     _analyst = analyst;
     _bisector = bisector;
 }