Esempio n. 1
0
        private bool AllowBuy(CoursePoint pt)
        {
            if (pt.Course > MaxBuy)
            {
                return(false);
            }
            if (!Sellers.Any())
            {
                return(true);
            }
            double minPrice = Sellers.Min(s => s.BuyOrder.Price);
            double gap      = KSellDist * Tracker.Sett.Delta * Math.Sqrt(Sellers.Count);

            return(pt.Course < minPrice - gap);
        }