コード例 #1
0
 public DataEventArgs(EUpdateType update_type, PriceData pd, RangeI index_range, Candle candle)
 {
     UpdateType = update_type;
     PriceData  = pd;
     IndexRange = index_range;
     Candle     = candle;
 }
コード例 #2
0
        /// <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;
            }
        }
コード例 #3
0
 public DataEventArgs(PriceData pd)
     : this(pd, new RangeI(0, pd.Count))
 {
 }
コード例 #4
0
 public DataEventArgs(PriceData pd, RangeI index_range)
     : this(EUpdateType.Range, pd, index_range, null)
 {
 }