コード例 #1
0
        public override BaseRobot MakeCopy()
        {
            var robo = new OscillatorBasedRobot
            {
                indexFormula          = indexFormula,
                IndexMarginUp         = IndexMarginUp,
                IndexMarginDn         = IndexMarginDn,
                CandlesInIndexHistory = CandlesInIndexHistory,
                Volume           = Volume,
                StopLossPoints   = StopLossPoints,
                TakeProfitPoints = TakeProfitPoints
            };

            CopyBaseSettings(robo);
            return(robo);
        }
コード例 #2
0
 public override BaseRobot MakeCopy()
 {
     var robo = new OscillatorBasedRobot
                    {
                        indexFormula = indexFormula,
                        IndexMarginUp = IndexMarginUp,
                        IndexMarginDn = IndexMarginDn,
                        CandlesInIndexHistory = CandlesInIndexHistory,
                        Volume = Volume,
                        StopLossPoints = StopLossPoints,
                        TakeProfitPoints = TakeProfitPoints
                    };
     CopyBaseSettings(robo);
     return robo;
 }