public override BaseRobot MakeCopy() { var res = new MultiIndexRobot { indexList = new List <IndexDivergencyInfo>() }; foreach (var ind in indexList) { var indi = new IndexDivergencyInfo { IndexFormulaL = ind.IndexFormulaL, IndexMarginUp = ind.IndexMarginUp, IndexMarginDn = ind.IndexMarginDn, IsNaN = ind.IsNaN, DiverType = ind.DiverType, PeriodExtremum = ind.PeriodExtremum, MaxPastExtremum = ind.MaxPastExtremum, }; res.indexList.Add(indi); } res.FractalPeriod = FractalPeriod; res.FiboLevel = FiboLevel; res.FiboBarsCount = FiboBarsCount; res.DeltaLevel = DeltaLevel; res.CandlesInIndexHistory = CandlesInIndexHistory; res.Volume = Volume; res.CountTrades = CountTrades; res.UseProtectPositionsFlag = UseProtectPositionsFlag; res.DeltaProtect = DeltaProtect; res.FractalSourceType = FractalSourceType; res.EnterChain = EnterChain; res.ForgetDiverCandles = ForgetDiverCandles; res.ExtendedMarks = ExtendedMarks; CopyBaseSettings(res); return(res); }
public override BaseRobot MakeCopy() { var res = new MultiIndexRobot { indexList = new List<IndexDivergencyInfo>() }; foreach (var ind in indexList) { var indi = new IndexDivergencyInfo { IndexFormulaL = ind.IndexFormulaL, IndexMarginUp = ind.IndexMarginUp, IndexMarginDn = ind.IndexMarginDn, IsNaN = ind.IsNaN, DiverType = ind.DiverType, PeriodExtremum = ind.PeriodExtremum, MaxPastExtremum = ind.MaxPastExtremum, }; res.indexList.Add(indi); } res.FractalPeriod = FractalPeriod; res.FiboLevel = FiboLevel; res.FiboBarsCount = FiboBarsCount; res.DeltaLevel = DeltaLevel; res.CandlesInIndexHistory = CandlesInIndexHistory; res.Volume = Volume; res.CountTrades = CountTrades; res.UseProtectPositionsFlag = UseProtectPositionsFlag; res.DeltaProtect = DeltaProtect; res.FractalSourceType = FractalSourceType; res.EnterChain = EnterChain; res.ForgetDiverCandles = ForgetDiverCandles; res.ExtendedMarks = ExtendedMarks; CopyBaseSettings(res); return res; }