Esempio n. 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);
        }
Esempio n. 2
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;
        }