public RectangleView(DrawingRectangle rect, Pad pad) : base() { this.nQNSrDsxti = rect; this.Pad = pad; this.ToolTipEnabled = true; this.ToolTipFormat = ""; }
public PathView(DrawingPath path, Pad pad) : base() { this.drawingPath = path; this.Pad = pad; this.ToolTipEnabled = true; this.ToolTipFormat = "tofr"; }
public ImageView(DrawingImage image, Pad pad) : base() { this.drawingImage = image; this.Pad = pad; this.ToolTipEnabled = true; this.ToolTipFormat = "ttoot"; }
public EllipseView(DrawingEllipse rect, Pad pad) : base() { this.drawingEllipse = rect; this.Pad = pad; this.ToolTipEnabled = true; this.ToolTipFormat = "dfdsd"; }
public RankoBSView(Pad pad, BarSeries series) : base(pad) { this.barSeries = series; this.pad = pad; this.ToolTipFormat = "RankoBSView"; this.ranko = new Ranko(series, 0.3); this.ranko.Calculate(); }
public LineBreakBSView(Pad pad, BarSeries series) : base(pad) { this.barSeries = series; this.pad = pad; this.ToolTipFormat = "toooll"; this.lineBreak = new LineBreak(series, 3); this.lineBreak.Calculate(); }
public KagiBaView(Pad pad, BarSeries series) : base(pad) { this.barSeries = series; this.pad = pad; this.ToolTipFormat = "toolfor"; this.kagi = new Kagi(series, EKagiStyle.Percent, 1.0); this.kagi.Calculate(); }
public AxisRight(Chart chart, Pad pad, int x, int y1, int y2) : base() { this.chart = chart; this.pad = pad; this.x = x; this.y1 = y1; this.y2 = y2; this.Init(); }
public LineView(DrawingLine line, Pad pad) : base() { this.drawingLine = line; this.pad = pad; this.ToolTipEnabled = true; this.ToolTipFormat = "tootllf"; this.chartFirstDate = new DateTime(Math.Min(line.X1.Ticks, line.X2.Ticks)); this.chartLastDate = new DateTime(Math.Max(line.X1.Ticks, line.X2.Ticks)); }
public DSView(Pad pad, DoubleSeries series, Color color, EIndexOption option, SmoothingMode smoothing) : base(pad) { this.mainSeries = series; this.option = option; this.KNRy1kSrcC = color; this.IXfyvDxxVL = smoothing; this.ToolTipFormat = "toool"; // this.ToolTipFormat = this.toolTipFormat.Replace(FJDHryrxb1WIq5jBAt.mT707pbkgT(2828), pad.Chart.LabelDigitsCount.ToString()); }
public PnFBSView(Pad pad, BarSeries series, double boxSize, int reversalAmount) : base(pad) { this.upColor = Color.OrangeRed; this.downColor = Color.LawnGreen; this.gKtJiYQi50 = Color.FromArgb(0, (int)byte.MaxValue, 0); this.barSeries = series; this.pad = pad; this.ToolTipFormat = ""; this.pGlJXklPGE = new PointAndFigure(series, boxSize, reversalAmount); this.pGlJXklPGE.Calculate(); }
public TriggerView(Trigger trigger, Pad pad) : base() { this.ActiveColor = Color.Brown; this.ExecutedColor = Color.Green; this.CanceledColor = Color.DarkGray; this.TextEnabled = true; this.toolTipEnabled = true; this.toolTipFormat = ""; this.trigger = trigger; this.pad = pad; }
public override PadRange GetPadRangeY(Pad Pad) { double min = this.series.GetMin(this.firstDate, this.lastDate, BarData.Volume); double max = this.series.GetMax(this.firstDate, this.lastDate, BarData.Volume); if (min >= max) { double num = min / 10.0; min -= num; max += num; } return new PadRange(min, max); }
public override PadRange GetPadRangeY(Pad pad) { double max = this.MainSeries.GetMax(this.firstDate, this.lastDate); double min = this.MainSeries.GetMin(this.firstDate, this.lastDate); if (max >= min) { double num = max / 10.0; max -= num; min += num; } return new PadRange(max, min); }
public override PadRange GetPadRangeY(Pad Pad) { double min = this.barSeries.LowestLow(this.firstDate, this.lastDate); double max = this.barSeries.HighestHigh(this.firstDate, this.lastDate); if (min >= max) { double num = min / 10.0; min -= num; max += num; } return new PadRange(min, max); }
public RayView(DrawingRay ray, Pad pad) : base() { this.toolTipEnabled = true; this.toolTipFormat = ""; this.mYYSbcj8S = ray; this.Pad = pad; this.toolTipEnabled = true; this.toolTipFormat = "tootl"; int index = pad.Series.GetIndex(ray.X, EIndexOption.Prev); if (index == -1) return; this.chartFirstDate = pad.Series.GetDateTime(index); this.chartLastDate = DateTime.MaxValue; }
public OrderView(SingleOrder order, Pad pad) : base() { this.hO3wgSeHU8 = true; this.aoOwHWbfJ4 = Color.Gold; this.vfIwYklUGT = Color.SpringGreen; this.VEIwC98m6Z = Color.Crimson; this.GM4wmd54o9 = Color.Crimson; this.BuyColor = Color.Blue; this.SellColor = Color.Red; this.SellShortColor = Color.Yellow; this.TextEnabled = true; this.ToolTipEnabled = true; this.ToolTipFormat = ""; this.order = order; this.pad = pad; }
public DSView(Pad pad, DoubleSeries series, Color color) : this(pad, series, color, EIndexOption.Null, SmoothingMode.AntiAlias) { }
public DSView(Pad pad, DoubleSeries series) : this(pad, series, EIndexOption.Null) { }
public override void ShowProperties(DSView seriesView, Pad pad, bool forceShowProperties) { object obj = (object)null; if (seriesView.MainSeries.GetType().IsSubclassOf(typeof(Indicator))) { obj = Activator.CreateInstance(System.Type.GetType("OpenQuant.API.Indicators." + ((object)((SeriesView)seriesView).MainSeries).GetType().Name + ", OpenQuant.API"), true); obj.GetType().GetField("indicator", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.GetField).SetValue(obj, (object)((SeriesView)seriesView).MainSeries); } if (this.ChartPropertiesCalled == null) return; this.ChartPropertiesCalled((object)new Tuple<object, bool>(obj, forceShowProperties), EventArgs.Empty); }
public override PadRange GetPadRangeY(Pad Pad) { return new PadRange(this.kagi.LowestLow(this.firstDate, this.lastDate), this.kagi.HighestHigh(this.firstDate, this.lastDate)); }
public void Insert(int index, Pad pad) { this.pads.Insert(index, pad); }
public int IndexOf(Pad pad) { return(this.pads.IndexOf(pad)); }
public override PadRange GetPadRangeY(Pad Pad) { DateTime dateTime1; DateTime dateTime2; if (this.option == EIndexOption.Null) { dateTime1 = this.firstDate; dateTime2 = this.lastDate; } else { int index1 = this.mainSeries.GetIndex(this.firstDate.AddTicks(1), EIndexOption.Next); int index2 = this.mainSeries.GetIndex(this.lastDate.AddTicks(1), EIndexOption.Next); if (index1 == -1 || index2 == -1) return new PadRange(0.0, 0.0); dateTime1 = this.mainSeries.GetDateTime(index1); dateTime2 = this.mainSeries.GetDateTime(index2); } if (this.mainSeries.Count == 0 || !(this.mainSeries.LastDateTime >= dateTime1) || !(this.mainSeries.FirstDateTime <= dateTime2)) return new PadRange(0.0, 0.0); int index3 = this.mainSeries.GetIndex(dateTime1, EIndexOption.Next); int index4 = this.mainSeries.GetIndex(dateTime2, EIndexOption.Prev); double min = this.mainSeries.GetMin(Math.Min(index3, index4), Math.Max(index3, index4)); double max = this.mainSeries.GetMax(Math.Min(index3, index4), Math.Max(index3, index4)); if (min >= max) { double num = Math.Abs(min) / 1000.0; min -= num; max += num; } return new PadRange(min, max); }
public override PadRange GetPadRangeY(Pad Pad) { return(new PadRange(this.lineBreak.LowestLow(this.firstDate, this.lastDate), this.lineBreak.HighestHigh(this.firstDate, this.lastDate))); }
public void Remove(Pad pad) { this.pads.Remove(pad); }
public void ShowVolumePad() { if (this.volumePadShown || !(this.mainSeries is BarSeries)) return; this.volumePadShown = true; this.AdjustPadHeights(); Pad pad = new Pad(this, this.canvasLeftOffset, this.Width - this.canvasRightOffset, this.canvasTopOffset, this.Height - this.canvasBottomOffset); pad.AxisLabelFormat = "xaxis"; pad.DrawGrid = false; this.volumeView = new VolumeBSView(pad, (DoubleSeries)(this.mainSeries as BarSeries)); this.volumeView.Color = this.volumeColor; pad.AddPrimitive(this.volumeView); this.pads.Insert(1, pad); this.AdjustPadCanvases(); this.EmitVolumeVisibleChanged(); }
public DSView(Pad pad, DoubleSeries series, EIndexOption option) : this(pad, series, Color.White, option, SmoothingMode.AntiAlias) { }
public BSView(Pad pad) : base(pad) { }
public abstract PadRange GetPadRangeY(Pad pad);
public PadRange GetPadRangeY(Pad pad) { double y1 = this.mYYSbcj8S.Y; double y2 = this.mYYSbcj8S.Y; if (y2 >= y1) { double num = y2 / 1000.0; y2 -= num; y1 += num; } return new PadRange(y2, y1); }
public SignalView(Signal signal, Pad pad) : base() { this.JVpy8D2xUR = Color.SkyBlue; this.zMOyBnpkt3 = Color.SkyBlue; this.tHoyjarrU1 = Color.Pink; this.XNayo9fgOU = Color.Red; this.signal = signal; this.pad = pad; this.ToolTipEnabled = true; this.ToolTipFormat = "dfdfs"; }
public PadRange GetPadRangeY(Pad pad) { return new PadRange(0.0, 0.0); }
public VolumeBSView(Pad pad, DoubleSeries series) : base(pad) { this.Color = Color.SteelBlue; this.series = series; this.ToolTipFormat = ""; }
public virtual void ShowProperties(DSView view, Pad pad, bool forceShowProperties) { }
public SimpleBSView(Pad pad, BarSeries series) : base(pad) { this.UpColor = Color.Black; this.DownColor = Color.Lime; this.barSeries = series; }
private PnFBSView AaUga350I(Pad pad, BarSeries series) { return new PnFBSView(pad, series, 1.0, 3); }
public int Add(Pad pad) { return(this.pads.Add(pad)); }