public Signal(DateTime datetime, ComponentType sender, SignalType type, SignalSide side, double qty, double strategyPrice, Instrument instrument, string text) : base() { this.BuyColor = Color.Blue; this.BuyCoverColor = Color.SkyBlue; this.SellColor = Color.Pink; this.SellShortColor = Color.Red; this.ToolTipEnabled = true; this.ToolTipFormat = "dfdfs"; this.DateTime = datetime; this.Sender = sender; this.Type = type; this.Side = side; this.Qty = qty; this.StrategyPrice = strategyPrice; this.Instrument = instrument; this.Price = this.Instrument.Price(); this.TimeInForce = TimeInForce.GTC; this.Text = text; this.Strategy = (Strategy)null; this.Rejecter = ComponentType.Unknown; this.StopPrice = 0.0; this.LimitPrice = 0.0; this.Status = SignalStatus.New; }
public Signal(DateTime datetime, SignalType type, SignalSide side, double qty, double strategyPrice, Instrument instrument, string text) { this.fDateTime = datetime; this.fType = type; this.fSide = side; this.fQty = qty; this.fStrategyPrice = strategyPrice; this.fInstrument = instrument; this.fPrice = this.fInstrument.Price(); this.fTimeInForce = TimeInForce.GTC; this.fText = text; this.fStrategy = null; this.fStopPrice = 0.0; this.fLimitPrice = 0.0; this.fStatus = SignalStatus.New; }
public Signal(DateTime datetime, SignalType type, SignalSide side, Instrument instrument, string text) : this(datetime, type, side, 0.0, 0.0, instrument, text) { }
public Signal(DateTime datetime, ComponentType sender, SignalType type, SignalSide side, Instrument instrument, string text) : this(datetime, sender, type, side, 0.0, 0.0, instrument, text) { }