public DataEventArgs(EUpdateType update_type, PriceData pd, RangeI index_range, Candle candle) { UpdateType = update_type; PriceData = pd; IndexRange = index_range; Candle = candle; }
/// <summary>Create a view of price data that updates as new data arrives</summary> public Instrument(string name, PriceData pd) { try { Debug.Assert(Misc.AssertMainThread()); Name = name; PriceData = pd; CandleStyle = ECandleStyle.Standard; // A cache of candle data read from the DB m_cache = new List <Candle>(); m_first_cached = 0; } catch { Dispose(); throw; } }
public DataEventArgs(PriceData pd) : this(pd, new RangeI(0, pd.Count)) { }
public DataEventArgs(PriceData pd, RangeI index_range) : this(EUpdateType.Range, pd, index_range, null) { }