Пример #1
0
        public HitResult DoBinaryOptionHit(BetDirection betDirection, DateTime hitTime)
        {
            BeforeHitParams hitParams = new BeforeHitParams(this.HitCount, this.BestPrice, this.BestTime, this.BetResult);

            this.HitCount++;
            var hitPrice = this.GetHitPrice();

            this.BestPrice = hitPrice;
            this.BestTime  = hitTime;
            this.BetResult = this.CalculateBetResult(hitPrice, betDirection);
            return(new HitResult(this.BetResult.Value, hitParams));
        }
Пример #2
0
 internal HitResult(BetResult betResult, BeforeHitParams beforeHitParams)
 {
     _betResult       = betResult;
     _beforeHitParams = beforeHitParams;
 }