Example #1
0
		public RectangleView(DrawingRectangle rect, Pad pad) : base()
    {
      this.nQNSrDsxti = rect;
      this.Pad = pad;
			this.ToolTipEnabled = true;
			this.ToolTipFormat = "";
    }
Example #2
0
		public PathView(DrawingPath path, Pad pad) : base()
    {
      this.drawingPath = path;
      this.Pad = pad;
			this.ToolTipEnabled = true;
			this.ToolTipFormat = "tofr";
    }
Example #3
0
		public ImageView(DrawingImage image, Pad pad) : base()
		{
			this.drawingImage = image;
			this.Pad = pad;
			this.ToolTipEnabled = true;
			this.ToolTipFormat = "ttoot";
		}
Example #4
0
		public EllipseView(DrawingEllipse rect, Pad pad) : base()
    {
      this.drawingEllipse = rect;
      this.Pad = pad;
			this.ToolTipEnabled = true;
			this.ToolTipFormat = "dfdsd";
    }
Example #5
0
		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();
		}
Example #6
0
		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();
    }
Example #7
0
		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();
    }
Example #8
0
		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();
		}
Example #9
0
		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));
		}
Example #10
0
		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());
		}
Example #11
0
		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();
		}
Example #12
0
		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;
    }
Example #13
0
		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);
		}
Example #14
0
		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);
		}
Example #15
0
		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);
		}
Example #16
0
		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;
    }
Example #17
0
		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;
		}
Example #18
0
		public DSView(Pad pad, DoubleSeries series, Color color) : this(pad, series, color, EIndexOption.Null, SmoothingMode.AntiAlias)
		{
		}
Example #19
0
		public DSView(Pad pad, DoubleSeries series) : this(pad, series, EIndexOption.Null)
		{
		}
Example #20
0
		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);
		}
Example #21
0
 public override PadRange GetPadRangeY(Pad Pad)
 {
   return new PadRange(this.kagi.LowestLow(this.firstDate, this.lastDate), this.kagi.HighestHigh(this.firstDate, this.lastDate));
 }
Example #22
0
 public void Insert(int index, Pad pad)
 {
     this.pads.Insert(index, pad);
 }
Example #23
0
 public int IndexOf(Pad pad)
 {
     return(this.pads.IndexOf(pad));
 }
Example #24
0
		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);
		}
Example #25
0
 public DSView(Pad pad, DoubleSeries series) : this(pad, series, EIndexOption.Null)
 {
 }
Example #26
0
 public DSView(Pad pad, DoubleSeries series, Color color) : this(pad, series, color, EIndexOption.Null, SmoothingMode.AntiAlias)
 {
 }
Example #27
0
 public override PadRange GetPadRangeY(Pad Pad)
 {
     return(new PadRange(this.lineBreak.LowestLow(this.firstDate, this.lastDate), this.lineBreak.HighestHigh(this.firstDate, this.lastDate)));
 }
Example #28
0
 public void Remove(Pad pad)
 {
     this.pads.Remove(pad);
 }
Example #29
0
		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();
		}
Example #30
0
 public DSView(Pad pad, DoubleSeries series, EIndexOption option)
     : this(pad, series, Color.White, option, SmoothingMode.AntiAlias)
 {
 }
Example #31
0
		public DSView(Pad pad, DoubleSeries series, EIndexOption option) 
			: this(pad, series, Color.White, option, SmoothingMode.AntiAlias)
		{
		}
Example #32
0
 public BSView(Pad pad) : base(pad)
 {
 }
Example #33
0
 public abstract PadRange GetPadRangeY(Pad pad);
Example #34
0
 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);
 }
Example #35
0
		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";
    }
Example #36
0
 public PadRange GetPadRangeY(Pad pad)
 {
   return new PadRange(0.0, 0.0);
 }
Example #37
0
 public VolumeBSView(Pad pad, DoubleSeries series) : base(pad)
 {
     this.Color         = Color.SteelBlue;
     this.series        = series;
     this.ToolTipFormat = "";
 }
Example #38
0
		public virtual void ShowProperties(DSView view, Pad pad, bool forceShowProperties)
		{
		}
Example #39
0
		public SimpleBSView(Pad pad, BarSeries series) : base(pad)
		{
			this.UpColor = Color.Black;
			this.DownColor = Color.Lime;
			this.barSeries = series;
		}
Example #40
0
		private PnFBSView AaUga350I(Pad pad, BarSeries series)
		{
			return new PnFBSView(pad, series, 1.0, 3);
		}
Example #41
0
 public int Add(Pad pad)
 {
     return(this.pads.Add(pad));
 }