private void Init() { this.fStyle = EMarkerStyle.Rectangle; this.fColor = Color.Black; this.fSize = 5; this.fFilled = true; this.fTextEnabled = true; this.fTextOffset = 2; this.fTextPosition = EMarkerTextPosition.Bottom; this.fTextFont = new Font("Times New Roman", 8); this.fTextColor = Color.Black; this.fToolTipEnabled = true; this.fToolTipFormat = ""; }
public TMarker(string X, double Y, EMarkerStyle Style) : base() { this.fBuyColor = Color.Blue; this.fSellColor = Color.Red; this.fSellShortColor = Color.Yellow; this.fBuyShortColor = Color.Green; this.fX = (double)DateTime.Parse(X).Ticks; this.fY = Y; this.fZ = 0.0; this.Init(); this.fStyle = Style; if (this.fStyle != EMarkerStyle.Buy && this.fStyle != EMarkerStyle.Sell && (this.fStyle != EMarkerStyle.SellShort && this.fStyle != EMarkerStyle.BuyShort)) { return; } this.fSize = 10; }
public Graph(string name, string title) { Name = name; Title = title; Style = EGraphStyle.Line; MoveStyle = EGraphMoveStyle.Point; Points = new ArrayList(); MinX = MinY = double.MaxValue; MaxX = MaxY = double.MinValue; MarkerEnabled = true; this.markerStyle = EMarkerStyle.Rectangle; this.markerSize = 5; this.markerColor = Color.Black; LineEnabled = true; LineDashStyle = DashStyle.Solid; LineColor = Color.Black; BarWidth = 20; ToolTipEnabled = true; ToolTipFormat = "{0}\nX = {2:F2} Y = {3:F2}"; }
private TMarker(double x, double y, double z, EMarkerStyle style, double high, double low, double open, double close, Color color) { X = x; Y = y; Z = z; High = high; Low = low; Open = open; Close = close; Style = style; Color = color; Size = (Style == EMarkerStyle.Buy || Style == EMarkerStyle.Sell || Style == EMarkerStyle.SellShort || Style == EMarkerStyle.BuyShort) ? 10 : 5; Filled = true; TextEnabled = true; TextOffset = 2; TextPosition = EMarkerTextPosition.Bottom; TextFont = new Font("Arial", 8f); TextColor = Color.Black; ToolTipEnabled = true; ToolTipFormat = "X = {0:F2} Y = {1:F2}"; }
public Graph(string name, string title) { Name = name; Title = title; Style = EGraphStyle.Line; MoveStyle = EGraphMoveStyle.Point; Points = new ArrayList(); MinX = double.MaxValue; MinY = double.MaxValue; MaxX = double.MinValue; MaxY = double.MinValue; MarkerEnabled = true; this.markerStyle = EMarkerStyle.Rectangle; this.markerSize = 5; this.markerColor = Color.Black; LineEnabled = true; LineDashStyle = DashStyle.Solid; LineColor = Color.Black; BarWidth = 20; ToolTipEnabled = true; ToolTipFormat = "{0}\nX = {2:F2} Y = {3:F2}"; }
private TMarker(double x, double y, double z, EMarkerStyle style, double high, double low, double open, double close, Color color) { X = x; Y = y; Z = z; High = high; Low = low; Open = open; Close = close; Style = style; Color = color; Size = (Style == EMarkerStyle.Buy || Style == EMarkerStyle.Sell || Style == EMarkerStyle.SellShort || Style == EMarkerStyle.BuyShort) ? 10 : 5; Filled = true; TextEnabled = true; TextOffset = 2; TextPosition = EMarkerTextPosition.Bottom; TextFont = new Font("Arial", 8f); TextColor = Color.Black; ToolTipEnabled = true; ToolTipFormat = "X = {0:F2} Y = {1:F2}"; }
public TMarker(string x, double y, EMarkerStyle style) : this(DateTime.Parse(x).Ticks, y, 0, Color.Black) { }
public TMarker(DateTime x, double y, EMarkerStyle style) : this(x.Ticks, y, 0, Color.Black) { }
public TMarker(double x, double y, EMarkerStyle style) : this(x, y, 0, Color.Black) { }
public TMarker(string x, double y, EMarkerStyle style) : this(DateTime.Parse(x).Ticks, y, 0, Color.Black) { }
public TMarker(DateTime x, double y, EMarkerStyle style) : this(x.Ticks, y, 0, Color.Black) { }
public TMarker(double x, double y, EMarkerStyle style) : this(x, y, 0, Color.Black) { }
//---------------------------------------------------------------------------- public static MarkerStyle GetMSMarkerStyle(EMarkerStyle futValue) { return((MarkerStyle)((int)futValue)); }
private void Init() { this.fStyle = EMarkerStyle.Rectangle; this.fColor = Color.Black; this.fSize = 5; this.fFilled = true; this.fTextEnabled = true; this.fTextOffset = 2; this.fTextPosition = EMarkerTextPosition.Bottom; this.fTextFont = new Font("Times New Roman", 8); this.fTextColor = Color.Black; this.fToolTipEnabled = true; this.fToolTipFormat = ""; }
public TMarker(string X, double Y, EMarkerStyle Style):base() { this.fBuyColor = Color.Blue; this.fSellColor = Color.Red; this.fSellShortColor = Color.Yellow; this.fBuyShortColor = Color.Green; this.fX = (double) DateTime.Parse(X).Ticks; this.fY = Y; this.fZ = 0.0; this.Init(); this.fStyle = Style; if (this.fStyle != EMarkerStyle.Buy && this.fStyle != EMarkerStyle.Sell && (this.fStyle != EMarkerStyle.SellShort && this.fStyle != EMarkerStyle.BuyShort)) return; this.fSize = 10; }