Esempio n. 1
0
        /// <summary>
        /// создать полную копию робота,
        /// оперативные настройки (переменные-члены) копировать необязательно
        /// </summary>
        public override BaseRobot MakeCopy()
        {
            var bot = new RobotMA
            {
                StopLossPoints       = StopLossPoints,
                TakeProfitPoints     = TakeProfitPoints,
                RangeSlowMA          = RangeSlowMA,
                RangeFastMA          = RangeFastMA,
                FixedVolume          = FixedVolume,
                CountCandelToDerive  = CountCandelToDerive,
                PeriodVirtualResults = PeriodVirtualResults,
                UnknownUnitProfit    = UnknownUnitProfit,
                Leverage             = Leverage,
                RoundType            = RoundType,
                NewsChannels         = NewsChannels,
                RoundMinVolume       = RoundMinVolume,
                RoundVolumeStep      = RoundVolumeStep
            };

            CopyBaseSettings(bot);
            return(bot);
        }
Esempio n. 2
0
        /// <summary>
        /// создать полную копию робота,
        /// оперативные настройки (переменные-члены) копировать необязательно
        /// </summary>
        public override BaseRobot MakeCopy()
        {
            var bot = new RobotMA
            {
                StopLossPoints = StopLossPoints,
                TakeProfitPoints = TakeProfitPoints,
                RangeSlowMA = RangeSlowMA,
                RangeFastMA = RangeFastMA,
                FixedVolume = FixedVolume,
                CountCandelToDerive = CountCandelToDerive,
                PeriodVirtualResults = PeriodVirtualResults,
                UnknownUnitProfit = UnknownUnitProfit,
                Leverage = Leverage,
                RoundType = RoundType,
                NewsChannels = NewsChannels,
                RoundMinVolume = RoundMinVolume,
                RoundVolumeStep = RoundVolumeStep

            };
            CopyBaseSettings(bot);
            return bot;
        }