Пример #1
0
 /// <summary>
 /// Event invocator for the DataConsolidated event. This should be invoked
 /// by derived classes when they have consolidated a new piece of data.
 /// </summary>
 /// <param name="consolidated">The newly consolidated data</param>
 protected void OnDataConsolidated(RenkoBar consolidated)
 {
     DataConsolidated?.Invoke(this, consolidated);
     _currentBar = consolidated;
     _dataConsolidatedHandler?.Invoke(this, consolidated);
     Consolidated = consolidated;
 }
Пример #2
0
        /// <summary>
        /// Event invocator for the DataConsolidated event. This should be invoked
        /// by derived classes when they have consolidated a new piece of data.
        /// </summary>
        /// <param name="consolidated">The newly consolidated data</param>
        private void OnDataConsolidated(RenkoBar consolidated)
        {
            DataConsolidated?.Invoke(this, consolidated);

            _dataConsolidatedHandler?.Invoke(this, consolidated);

            Consolidated = consolidated;
        }
        /// <summary>
        /// Event invocator for the DataConsolidated event. This should be invoked
        /// by derived classes when they have consolidated a new piece of data.
        /// </summary>
        /// <param name="consolidated">The newly consolidated data</param>
        protected virtual void OnDataConsolidated(RenkoBar consolidated)
        {
            DataConsolidated?.Invoke(this, consolidated);

            _dataConsolidatedHandler?.Invoke(this, consolidated);

            Consolidated = consolidated;
        }