Example #1
0
        public override void Copy(BaseChartIndicator indi)
        {
            var fibo = (IndicatorFiboBars)indi;

            CopyBaseSettings(fibo);
            fibo.ThresholdPercent = ThresholdPercent;
            fibo.FiboFilterBars   = FiboFilterBars;
            fibo.FiboLevels       = FiboLevels;
            fibo.FiboMarks        = FiboMarks;
            fibo.DontSumDegree    = DontSumDegree;
            fibo.CalculateHits    = CalculateHits;
            fibo.EstimateMarks    = EstimateMarks;
            fibo.ZigZagSourceType = ZigZagSourceType;
            fibo.HideOldBars      = HideOldBars;

            fibo.seriesTurnBar.barsKey.Clear();
            foreach (var bar in seriesTurnBar.barsKey)
            {
                fibo.seriesTurnBar.barsKey.Add(new TurnBar(bar));
            }
            fibo.seriesTurnBar.barsTurn.Clear();
            foreach (var bar in seriesTurnBar.barsTurn)
            {
                fibo.seriesTurnBar.barsTurn.Add(new TurnBar(bar));
            }
        }
        public override void Copy(BaseChartIndicator indi)
        {
            var opt = (OptionLevelIndicator)indi;

            CopyBaseSettings(opt);
            opt.options.AddRange(options);
            opt.seriesSpan = seriesSpan;
            opt.lineHints.Clear();
            foreach (var hint in lineHints)
            {
                opt.lineHints.Add(hint.Key, hint.Value);
            }
            opt.AllowedOptionTypes  = AllowedOptionTypes;
            opt.AllowedOptionStyles = AllowedOptionStyles;
            opt.LevelType           = LevelType;
            opt.WeightType          = WeightType;
            opt.ChannelID           = ChannelID;
            opt.MinOI                   = MinOI;
            opt.MinVolume               = MinVolume;
            opt.LengthHours             = LengthHours;
            opt.StretchYAxis            = StretchYAxis;
            opt.LabelLeft               = LabelLeft;
            opt.LabelRight              = LabelRight;
            opt.ColorPut                = ColorPut;
            opt.ColorGet                = ColorGet;
            opt.DaysToHighlight         = DaysToHighlight;
            opt.MaxPointsDistanceToShow = MaxPointsDistanceToShow;
            opt.needRebuildLevels       = needRebuildLevels;
            opt.SummaryLevelStyle       = SummaryLevelStyle;
        }
 public void ActivateIndiEditEvent(string oldName, BaseChartIndicator indi)
 {
     timeUpdateIndicators.Touch();
     if (IndiEditEvent == null) return;
     var eventArg = new IndiEventArgs(indi);
     IndiEditEvent(oldName, eventArg);
 }
 public void ActivateIndiRemoveEvent(BaseChartIndicator indi)
 {
     timeUpdateIndicators.Touch();
     if (IndiRemoveEvent == null) return;
     var eventArg = new IndiEventArgs(indi);
     IndiRemoveEvent(this, eventArg);
 }
Example #5
0
        public override void Copy(BaseChartIndicator indi)
        {
            var indiBol = (IndicatorConsumption)indi;

            CopyBaseSettings(indiBol);
            indiBol.ConsumptionStyle = ConsumptionStyle;
            indiBol.MinCount         = MinCount;
        }
Example #6
0
        public override void Copy(BaseChartIndicator indi)
        {
            var div = (CodedIndicator)indi;

            CopyBaseSettings(div);
            div.Code      = Code;
            div.ColorLine = ColorLine;
        }
        public override void Copy(BaseChartIndicator indi)
        {
            var iv = (IndicatorVolatility)indi;

            CopyBaseSettings(iv);

            ColorLine = iv.ColorLine;
            Period    = iv.Period;
        }
Example #8
0
        public override void Copy(BaseChartIndicator indi)
        {
            var op = (IndicatorOrders)indi;

            op.openPositions.Clear();
            op.openPositions.AddRange(openPositions);
            CopyParameters(op);
            CopyBaseSettings(op);
        }
        public override void Copy(BaseChartIndicator indi)
        {
            var indiEdge = (IndicatorEdgeRatio)indi;

            CopyBaseSettings(indiEdge);
            indiEdge.seriesRatio    = seriesRatio;
            indiEdge.Period         = Period;
            indiEdge.IndiSourceType = IndiSourceType;
        }
Example #10
0
        public override void Copy(BaseChartIndicator indi)
        {
            var turtle = (IndicatorTurtle)indi;

            CopyBaseSettings(turtle);
            turtle.Period = Period;
            turtle.ClLine = ClLine;
            turtle.series = series;
            turtle.Shape  = Shape;
        }
        public override void Copy(BaseChartIndicator indi)
        {
            var parabolic = (IndicatorParabolic)indi;

            CopyBaseSettings(parabolic);
            parabolic.step      = step;
            parabolic.stepDelta = stepDelta;
            parabolic.LineStyle = LineStyle;
            parabolic.LineColor = LineColor;
        }
Example #12
0
        public override void Copy(BaseChartIndicator indi)
        {
            var cci = (IndicatorCCI)indi;

            CopyBaseSettings(cci);
            cci.Period       = Period;
            cci.ColorLine    = ColorLine;
            cci.ColorBorder  = ColorBorder;
            cci.series       = series;
            cci.seriesBounds = seriesBounds;
        }
        public override void Copy(BaseChartIndicator indi)
        {
            var indiTf = (IndicatorFractal)indi;

            CopyBaseSettings(indiTf);
            indiTf.barsRight   = barsRight;
            indiTf.barsLeft    = barsLeft;
            indiTf.clArrowHigh = clArrowHigh;
            indiTf.clArrowLow  = clArrowLow;
            indiTf.Price       = Price;
        }
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            es = (IWindowsFormsEditorService) provider.GetService(typeof (IWindowsFormsEditorService));
            if (es == null) return null;

            indi = (BaseChartIndicator) context.Instance;

            LoadListBoxItems();
            es.DropDownControl(cbx);
            return value;
        }
        public override void Copy(BaseChartIndicator indi)
        {
            var ma = (IndicatorOptionDom)indi;

            CopyBaseSettings(ma);
            ma.Ticker      = Ticker;
            ma.ClCall      = ClCall;
            ma.ClPut       = ClPut;
            ma.CmeUserName = CmeUserName;
            ma.CmePassword = CmePassword;
        }
Example #16
0
        public override void Copy(BaseChartIndicator indi)
        {
            var rsi = (IndicatorRSI)indi;

            CopyBaseSettings(rsi);
            rsi.Period        = Period;
            rsi.MarginPercent = MarginPercent;
            rsi.LineColor     = LineColor;
            rsi.seriesRSI     = seriesRSI;
            rsi.seriesBound   = seriesBound;
        }
        public override void Copy(BaseChartIndicator indi)
        {
            var indiTf = (IndicatorAccelerator)indi;

            CopyBaseSettings(indiTf);
            indiTf.seriesDeltas   = seriesDeltas;
            indiTf.periodSlow     = periodSlow;
            indiTf.periodFast     = periodFast;
            indiTf.periodAwesome  = periodAwesome;
            indiTf.ClBarsPositive = ClBarsPositive;
            indiTf.ClBarsNegative = ClBarsNegative;
        }
Example #18
0
        public override void Copy(BaseChartIndicator indi)
        {
            var zig = (IndicatorZigZag)indi;

            CopyBaseSettings(zig);
            zig.LineColor        = LineColor;
            zig.LineWidth        = LineWidth;
            zig.LineStyle        = LineStyle;
            zig.ThresholdPercent = ThresholdPercent;
            zig.seriesZigZag     = seriesZigZag;
            zig.ZigZagSourceType = ZigZagSourceType;
        }
Example #19
0
        public override void Copy(BaseChartIndicator indi)
        {
            var rangeIndi = (IndicatorNarrowRange)indi;

            CopyBaseSettings(rangeIndi);
            rangeIndi.NarrowPercent   = NarrowPercent;
            rangeIndi.CandlesToSignal = CandlesToSignal;
            rangeIndi.MaPeriod        = MaPeriod;
            rangeIndi.PointsRange     = PointsRange;
            rangeIndi.LineStyle       = LineStyle;
            rangeIndi.LineColor       = LineColor;
        }
Example #20
0
        public override void Copy(BaseChartIndicator indi)
        {
            var randomWalk = (IndicatorRandomWalk)indi;

            CopyBaseSettings(randomWalk);
            randomWalk.Period       = Period;
            randomWalk.ClLine       = ClLine;
            randomWalk.ShiftX       = ShiftX;
            randomWalk.LineWidth    = LineWidth;
            randomWalk.percentile   = percentile.ToArray();
            randomWalk.forwardSteps = forwardSteps;
        }
Example #21
0
        public override void Copy(BaseChartIndicator indi)
        {
            var fut = (IndicatorTradeSharpVolumes)indi;

            CopyBaseSettings(fut);
            fut.volumeData        = volumeData.ToList();
            fut.ChannelId         = ChannelId;
            fut.ColorBuy          = ColorBuy;
            fut.ColorSell         = ColorSell;
            fut.needRebuildLevels = needRebuildLevels;
            fut.seriesBuy         = seriesBuy;
            fut.seriesSell        = seriesSell;
        }
Example #22
0
        public override void Copy(BaseChartIndicator indi)
        {
            var ma = (IndicatorMA)indi;

            CopyBaseSettings(ma);
            ma.Period    = Period;
            ma.ClLine    = ClLine;
            ma.MaType    = MaType;
            ma.PriceType = PriceType;
            ma.ShiftX    = ShiftX;
            ma.series    = series;
            ma.smmaPrev  = smmaPrev;
        }
        public override void Copy(BaseChartIndicator indi)
        {
            var cpy = (IndicatorExtremum)indi;

            CopyBaseSettings(indi);
            cpy.ShowBars           = ShowBars;
            cpy.ExtremumDirection  = ExtremumDirection;
            cpy.ShowMarginZones    = ShowMarginZones;
            cpy.MargUpper          = MargUpper;
            cpy.MargLower          = MargLower;
            cpy.ExtremumType       = ExtremumType;
            cpy.ClassicExtremumBar = ClassicExtremumBar;
        }
        public override void Copy(BaseChartIndicator indi)
        {
            var rangeIndi = (IndicatorNarrowRange)indi;

            CopyBaseSettings(rangeIndi);
            rangeIndi.NarrowPercent = NarrowPercent;
            rangeIndi.FrameLength   = FrameLength;
            rangeIndi.MaPeriod      = MaPeriod;
            rangeIndi.PointsRange   = PointsRange;
            rangeIndi.LineStyle     = LineStyle;
            rangeIndi.LineColor     = LineColor;
            rangeIndi.ChainBound    = ChainBound;
        }
        public override void Copy(BaseChartIndicator indi)
        {
            var div = (IndicatorFiboDiver)indi;

            CopyBaseSettings(div);
            div.MaxPastDiver       = MaxPastDiver;
            div.seriesComment      = seriesComment;
            div.IndicatorDrawStyle = IndicatorDrawStyle;
            div.IsVisible          = IsVisible;
            div.RedrawSeconds      = RedrawSeconds;
            div.ShowArrow          = ShowArrow;
            div.ShowBox            = ShowBox;
            div.ArrowLengthPx      = ArrowLengthPx;
        }
Example #26
0
        public override void Copy(BaseChartIndicator indi)
        {
            var al = (IndicatorAlert)indi;

            CopyBaseSettings(al);
            al.clLine        = clLine;
            al.lineWidth     = lineWidth;
            al.lineStyle     = lineStyle;
            al.AlertLevels   = AlertLevels;
            al.SendSmsFlag   = SendSmsFlag;
            al.SendEmailFlag = SendEmailFlag;
            al.SendSmsPhones = SendSmsPhones;
            al.SendEmailList = SendEmailList;
        }
        public override void Copy(BaseChartIndicator indi)
        {
            var indiSt = (IndicatorStochastic)indi;

            CopyBaseSettings(indiSt);
            indiSt.Period     = Period;
            indiSt.ColorLineK = ColorLineK;
            indiSt.ColorLineD = ColorLineD;
            indiSt.periodMA   = periodMA;
            indiSt.seriesK    = seriesK;
            indiSt.seriesD    = seriesD;
            indiSt.LowerBound = LowerBound;
            indiSt.UpperBound = UpperBound;
        }
        public override void Copy(BaseChartIndicator indi)
        {
            var extIndi = (IndicatorExternSeries)indi;

            CopyBaseSettings(extIndi);
            extIndi.Path             = Path;
            extIndi.UpperBound       = UpperBound;
            extIndi.LowerBound       = LowerBound;
            extIndi.candleSeries     = candleSeries;
            extIndi.OutlineLineColor = OutlineLineColor;
            extIndi.DownFillColor    = DownFillColor;
            extIndi.UpFillColor      = UpFillColor;
            extIndi.DrawMode         = DrawMode;
        }
Example #29
0
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            es = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService));
            if (es == null)
            {
                return(null);
            }

            indi = (BaseChartIndicator)context.Instance;

            LoadListBoxItems();
            es.DropDownControl(cbx);
            return(value);
        }
        public override void Copy(BaseChartIndicator indi)
        {
            var ind = (IndicatorCrossChartDivergencies)indi;

            CopyBaseSettings(ind);
            ind.ColorArrowUp   = ColorArrowUp;
            ind.ColorArrowDown = ColorArrowDown;
            // настройки индексов - диверов
            ind.sets.Clear();
            foreach (var set in sets)
            {
                ind.sets.Add(set.MakeCopy());
            }
        }
Example #31
0
        public override void Copy(BaseChartIndicator indi)
        {
            var fut = (IndicatorFuturesVolume)indi;

            CopyBaseSettings(fut);
            fut.volumeData.AddRange(volumeData);
            fut.IndicatorVolumeType      = IndicatorVolumeType;
            fut.IndicatorDisplayedLevels = IndicatorDisplayedLevels;
            fut.ChannelId         = ChannelId;
            fut.ColorVolume       = ColorVolume;
            fut.ColorOI           = ColorOI;
            fut.needRebuildLevels = needRebuildLevels;
            fut.seriesVolume      = seriesVolume;
            fut.seriesOI          = seriesOI;
        }
Example #32
0
        public override void Copy(BaseChartIndicator indi)
        {
            var macd = (IndicatorMACD)indi;

            CopyBaseSettings(macd);
            macd.fastEMA     = fastEMA;
            macd.slowEMA     = slowEMA;
            macd.signalSMA   = signalSMA;
            macd.LineColor1  = LineColor1;
            macd.LineColor2  = LineColor2;
            macd.SignalLine  = SignalLine;
            macd.MainLine    = MainLine;
            macd.FastEMALine = FastEMALine;
            macd.SlowEMALine = SlowEMALine;
        }
        public override void Copy(BaseChartIndicator indi)
        {
            var indiTf = (IndicatorTrendFlat)indi;

            CopyBaseSettings(indiTf);
            indiTf.ClLine         = ClLine;
            indiTf.PriceType      = PriceType;
            indiTf.seriesLine     = seriesLine;
            indiTf.seriesDeltas   = seriesDeltas;
            indiTf.periodSlow     = periodSlow;
            indiTf.periodFast     = periodFast;
            indiTf.ClBarsPositive = ClBarsPositive;
            indiTf.ClBarsNegative = ClBarsNegative;
            indiTf.LineWidth      = LineWidth;
        }
 public override void Copy(BaseChartIndicator indi)
 {
     var ichimoku = (IndicatorIchimoku)indi;
     CopyBaseSettings(ichimoku);
     ichimoku.PeriodS = PeriodS;
     ichimoku.PeriodM = PeriodM;
     ichimoku.PeriodL = PeriodL;
     ichimoku.ColorChikou = ColorChikou;
     ichimoku.ColorKijyn = ColorKijyn;
     ichimoku.ColorSenkouA = ColorSenkouA;
     ichimoku.ColorSenkouB = ColorSenkouB;
     ichimoku.ColorTencan = ColorTencan;
     ichimoku.ColorCloudA = ColorCloudA;
     ichimoku.ColorCloudB = ColorCloudB;
 }
Example #35
0
 public override void Copy(BaseChartIndicator indi)
 {
     var turtle = (IndicatorTurtle) indi;
     CopyBaseSettings(turtle);
     turtle.Period = Period;
     turtle.ClLine = ClLine;
     turtle.series = series;
     turtle.Shape = Shape;
 }
Example #36
0
 public override void Copy(BaseChartIndicator indi)
 {
     var macd = (IndicatorMACD) indi;
     CopyBaseSettings(macd);
     macd.fastEMA = fastEMA;
     macd.slowEMA = slowEMA;
     macd.signalSMA = signalSMA;
     macd.LineColor1 = LineColor1;
     macd.LineColor2 = LineColor2;
     macd.SignalLine = SignalLine;
     macd.MainLine = MainLine;
     macd.FastEMALine= FastEMALine;
     macd.SlowEMALine = SlowEMALine;
 }
Example #37
0
 //private readonly SeriesComment seriesComment = new SeriesComment("Сигма-анализ");
 public override void Copy(BaseChartIndicator indi)
 {
     var ell = (IndicatorSigma)indi;
     CopyBaseSettings(ell);
 }
 public override void Copy(BaseChartIndicator indi)
 {
     var fork = (FiboForkIndicator)indi;
     CopyBaseSettings(fork);
     fork.levelsProj = levelsProj.ToArray();
     fork.levelsCorr = levelsCorr.ToArray();
     fork.ThresholdPercent = ThresholdPercent;
     fork.ZigZagSourceType = ZigZagSourceType;
     fork.ColorLineUpper = ColorLineUpper;
     fork.ColorLineLower = ColorLineLower;
     fork.ProjectionBars = ProjectionBars;
     fork.CorrectionBcLength = CorrectionBcLength;
     fork.CorrectionAbLength = CorrectionAbLength;
     fork.CorrectionEnabled = CorrectionEnabled;
     fork.ExtendChartBounds = ExtendChartBounds;
     fork.Markers = Markers;
 }
 /// <summary>
 /// переданный параметром индикатор получит настройки текущего
 /// </summary>        
 public abstract void Copy(BaseChartIndicator indi);
 public override void Copy(BaseChartIndicator indi)
 {
     var indiEdge = (IndicatorEdgeRatio)indi;
     CopyBaseSettings(indiEdge);
     indiEdge.seriesRatio = seriesRatio;
     indiEdge.Period = Period;
     indiEdge.IndiSourceType = IndiSourceType;
 }
 public override void Copy(BaseChartIndicator indi)
 {
     var indiTf = (IndicatorTrendFlat)indi;
     CopyBaseSettings(indiTf);
     indiTf.ClLine = ClLine;
     indiTf.PriceType = PriceType;
     indiTf.seriesLine = seriesLine;
     indiTf.seriesDeltas = seriesDeltas;
     indiTf.periodSlow = periodSlow;
     indiTf.periodFast = periodFast;
     indiTf.ClBarsPositive = ClBarsPositive;
     indiTf.ClBarsNegative = ClBarsNegative;
     indiTf.LineWidth = LineWidth;
 }
        public override void Copy(BaseChartIndicator indi)
        {
            var dr = (IndicatorDaysRuler)indi;
            CopyBaseSettings(dr);
            dr.ShowDays = ShowDays;
            dr.ShowMonths = ShowDays;
            dr.ShowWeeks = ShowWeeks;

            for (var i = 0; i < widths.Length; i++) dr.widths[i] = widths[i];
            for (var i = 0; i < colors.Length; i++) dr.colors[i] = colors[i];
            for (var i = 0; i < styles.Length; i++) dr.styles[i] = styles[i];
        }
        public override void Copy(BaseChartIndicator indi)
        {
            var fibo = (IndicatorFiboBars)indi;
            CopyBaseSettings(fibo);
            fibo.ThresholdPercent = ThresholdPercent;
            fibo.FiboFilterBars = FiboFilterBars;
            fibo.FiboLevels = FiboLevels;
            fibo.FiboMarks = FiboMarks;
            fibo.DontSumDegree = DontSumDegree;
            fibo.CalculateHits = CalculateHits;
            fibo.EstimateMarks = EstimateMarks;
            fibo.ZigZagSourceType = ZigZagSourceType;
            fibo.HideOldBars = HideOldBars;

            fibo.seriesTurnBar.barsKey.Clear();
            foreach (var bar in seriesTurnBar.barsKey)
                fibo.seriesTurnBar.barsKey.Add(new TurnBar(bar));
            fibo.seriesTurnBar.barsTurn.Clear();
            foreach (var bar in seriesTurnBar.barsTurn)
                fibo.seriesTurnBar.barsTurn.Add(new TurnBar(bar));
        }
Example #44
0
 public override void Copy(BaseChartIndicator indi)
 {
     var al = (IndicatorAlert)indi;
     CopyBaseSettings(al);
     al.clLine = clLine;
     al.lineWidth = lineWidth;
     al.lineStyle = lineStyle;
     al.AlertLevels = AlertLevels;
     al.SendSmsFlag = SendSmsFlag;
     al.SendEmailFlag = SendEmailFlag;
     al.SendSmsPhones = SendSmsPhones;
     al.SendEmailList = SendEmailList;
 }
 public IndiEventArgs(BaseChartIndicator indi)
 {
     this.indi = indi;
 }
 public override void Copy(BaseChartIndicator indi)
 {
     var ma = (IndicatorOptionDom)indi;
     CopyBaseSettings(ma);
     ma.Ticker = Ticker;
     ma.ClCall = ClCall;
     ma.ClPut = ClPut;
     ma.CmeUserName = CmeUserName;
     ma.CmePassword = CmePassword;
 }
Example #47
0
 public override void Copy(BaseChartIndicator indi)
 {
     var renco = (IndicatorRenco)indi;
     CopyBaseSettings(renco);
     renco.RencoSize = RencoSize;
     renco.ColorBarDn = ColorBarDn;
     renco.ColorBarUp = ColorBarUp;
     renco.ColorOutlineUp = ColorOutlineUp;
     renco.ColorOutlineDn = ColorOutlineDn;
     renco.TransparentEmptyBricks = TransparentEmptyBricks;
     renco.ColorBarEmpty = ColorBarEmpty;
     renco.VolatilityScale = VolatilityScale;
     renco.VolatilityType = VolatilityType;
     renco.AutosizePeriod = AutosizePeriod;
     renco.BrickSizeAuto = BrickSizeAuto;
 }
 public override void Copy(BaseChartIndicator indi)
 {
     var randomWalk = (IndicatorRandomWalk)indi;
     CopyBaseSettings(randomWalk);
     randomWalk.Period = Period;
     randomWalk.ClLine = ClLine;
     randomWalk.ShiftX = ShiftX;
     randomWalk.LineWidth = LineWidth;
     randomWalk.percentile = percentile.ToArray();
     randomWalk.forwardSteps = forwardSteps;
 }
 public override void Copy(BaseChartIndicator indi)
 {
     var indiBol = (IndicatorBollinger)indi;
     CopyBaseSettings(indiBol);
     indiBol.Period = Period;
     indiBol.ClLine = ClLine;
     indiBol.MaType = MaType;
     indiBol.PriceType = PriceType;
     indiBol.ShiftX = ShiftX;
     indiBol.series = series;
     indiBol.smmaPrev = smmaPrev;
     indiBol.KVolatile = KVolatile;
     indiBol.LineWidth = LineWidth;
     indiBol.LineStyle = LineStyle;
     indiBol.LineStyleMid = LineStyleMid;
 }
 public override void Copy(BaseChartIndicator indi)
 {
     var parabolic = (IndicatorParabolic)indi;
     CopyBaseSettings(parabolic);
     parabolic.step = step;
     parabolic.stepDelta = stepDelta;
     parabolic.LineStyle = LineStyle;
     parabolic.LineColor = LineColor;
 }
        public override void Copy(BaseChartIndicator indi)
        {
            var iv = (IndicatorVolatility)indi;
            CopyBaseSettings(iv);

            ColorLine = iv.ColorLine;
            Period = iv.Period;
        }
 public override void Copy(BaseChartIndicator indi)
 {
     var cpy = (IndicatorExtremum) indi;
     CopyBaseSettings(indi);
     cpy.ShowBars = ShowBars;
     cpy.ExtremumDirection = ExtremumDirection;
     cpy.ShowMarginZones = ShowMarginZones;
     cpy.MargUpper = MargUpper;
     cpy.MargLower = MargLower;
     cpy.ExtremumType = ExtremumType;
     cpy.ClassicExtremumBar = ClassicExtremumBar;
 }
        protected void CopyBaseSettings(BaseChartIndicator indi)
        {
            indi.owner = owner;

            #region Shadow

            indi.DrawShadow = DrawShadow;
            indi.ShadowWidth = ShadowWidth;
            indi.ShadowAlpha = ShadowAlpha;

            #endregion

            #region настройки источников данных

            indi.SeriesSourcesDisplay = SeriesSourcesDisplay;
            if (indi.SeriesSources == null)
                indi.SeriesSources = new List<Series.Series>();
            else
                indi.SeriesSources.Clear();
            indi.SeriesSources.AddRange(SeriesSources);
            if (indi.SeriesResult == null)
                indi.SeriesResult = new List<Series.Series>();
            else
                indi.SeriesResult.Clear();
            indi.SeriesResult.AddRange(SeriesResult);
            indi.DrawPane = DrawPane;
            indi.DrawPaneDisplay = DrawPaneDisplay;
            indi.CreateOwnPanel = CreateOwnPanel;
            indi.IsPanelVisible = IsPanelVisible;

            #endregion

            #region основные настройки
            indi.UniqueName = UniqueName;
            #endregion
        }
 public override void Copy(BaseChartIndicator indi)
 {
     var indiTf = (IndicatorAccelerator)indi;
     CopyBaseSettings(indiTf);
     indiTf.seriesDeltas = seriesDeltas;
     indiTf.periodSlow = periodSlow;
     indiTf.periodFast = periodFast;
     indiTf.periodAwesome = periodAwesome;
     indiTf.ClBarsPositive = ClBarsPositive;
     indiTf.ClBarsNegative = ClBarsNegative;
 }
Example #55
0
 public override void Copy(BaseChartIndicator indi)
 {
     var rsi = (IndicatorRSI) indi;
     CopyBaseSettings(rsi);
     rsi.Period = Period;
     rsi.MarginPercent = MarginPercent;
     rsi.LineColor = LineColor;
     rsi.seriesRSI = seriesRSI;
     rsi.seriesBound = seriesBound;
 }
 public override void Copy(BaseChartIndicator indi)
 {
     var fut = (IndicatorFuturesVolume) indi;
     CopyBaseSettings(fut);
     fut.volumeData.AddRange(volumeData);
     fut.IndicatorVolumeType = IndicatorVolumeType;
     fut.IndicatorDisplayedLevels = IndicatorDisplayedLevels;
     fut.ChannelId = ChannelId;
     fut.ColorVolume = ColorVolume;
     fut.ColorOI = ColorOI;
     fut.needRebuildLevels = needRebuildLevels;
     fut.seriesVolume = seriesVolume;
     fut.seriesOI = seriesOI;
 }
Example #57
0
 public override void Copy(BaseChartIndicator indi)
 {
     var indiTf = (IndicatorFractal)indi;
     CopyBaseSettings(indiTf);
     indiTf.barsRight = barsRight;
     indiTf.barsLeft = barsLeft;
     indiTf.clArrowHigh = clArrowHigh;
     indiTf.clArrowLow = clArrowLow;
     indiTf.Price = Price;
 }
 public override void Copy(BaseChartIndicator indi)
 {
     var ind = (IndicatorIndexFunction) indi;
     CopyBaseSettings(ind);
     ind.ShiftX = ShiftX;
     ind.ColorLine = ColorLine;
     ind.ColorFill = ColorFill;
     ind.FloodFill = FloodFill;
     ind.seriesLine = seriesLine;
     ind.resolvers = new ExpressionResolver[5];
     for (var i = 0; i < resolvers.Length; i++)
         ind.resolvers[i] = resolvers[i];
     ind.randomGener = randomGener;
     ind.SubstituteInfinite = SubstituteInfinite;
     ind.SubstituteNegInfinite = SubstituteNegInfinite;
     ind.SubstituteNaN = SubstituteNaN;
     ind.MinMinutesGapToUpdateCache = MinMinutesGapToUpdateCache;
 }
 public override void Copy(BaseChartIndicator indi)
 {
     var ind = (IndicatorCrossChartDivergencies) indi;
     CopyBaseSettings(ind);
     ind.ColorArrowUp = ColorArrowUp;
     ind.ColorArrowDown = ColorArrowDown;
     // настройки индексов - диверов
     ind.sets.Clear();
     foreach (var set in sets)
         ind.sets.Add(set.MakeCopy());
 }
 public override void Copy(BaseChartIndicator indi)
 {
     var sc = (IndicatorSladeChannel)indi;
     CopyBaseSettings(sc);
     sc.ClUpLine = ClUpLine;
     sc.ClDownLine = ClDownLine;
     sc.LineStyle = LineStyle;
     sc.LineWidth = LineWidth;
     sc.MaxBody = MaxBody;
     sc.MinBody = MinBody;
     sc.CountBefore = CountBefore;
     sc.CountAfter = CountAfter;
     sc.ChannelState = ChannelState;
     sc.ShowAllChannels = ShowAllChannels;
     sc.CountForward = CountForward;
     sc.TradePoints = TradePoints;
 }