FastQuant.Stop.GetStopPrice C# (CSharp) 메소드

GetStopPrice() 보호된 메소드

protected GetStopPrice ( ) : double
리턴 double
        protected virtual double GetStopPrice()
        {
            this.initPrice = this.trailPrice;
            if (Mode == StopMode.Absolute)
                return Side == PositionSide.Long ? this.trailPrice - Math.Abs(Level) : this.trailPrice + Math.Abs(Level);
            else
                return Position.Side == PositionSide.Long
                    ? this.trailPrice - Math.Abs(this.trailPrice*Level)
                    : this.trailPrice + Math.Abs(this.trailPrice*Level);
        }