Exemple #1
0
        public BarStats Clone()
        {
            var barStats = new BarStats
            {
                BarTime       = BarTime,
                _posDir       = _posDir,
                PositionPrice = PositionPrice,
                PositionLots  = PositionLots,
                _posFlag      = _posFlag,
                Operations    = Operations.GetRange(0, Operations.Count)
            };

            return(barStats);
        }
        public BarStats Clone()
        {
            var barStats = new BarStats
                               {
                                   BarTime = BarTime,
                                   _posDir = _posDir,
                                   PositionPrice = PositionPrice,
                                   PositionLots = PositionLots,
                                   _posFlag = _posFlag,
                                   Operations = Operations.GetRange(0, Operations.Count)
                               };

            return barStats;
        }