예제 #1
0
        private SmartComTimeFrames(SmartBarInterval interval, TimeSpan value)
        {
            Interval = interval;

            _value = value;

            _intervals.Add(interval, this);
            _values.Add(value, this);
        }
예제 #2
0
		private SmartComTimeFrames(SmartBarInterval interval, TimeSpan value)
		{
			Interval = interval;

			_value = value;

			_intervals.Add(interval, this);
			_values.Add(value, this);
		}
예제 #3
0
 internal void OnAddBar(int row, int rowCount, string securityId, SmartBarInterval interval, DateTime time, double open, double high, double low, double close, double volume, double openInt)
 {
     NewBar.SafeInvoke(row, rowCount, securityId, SmartComTimeFrames.GetTimeFrame(interval), time, open.ToDecimal(), high.ToDecimal(), low.ToDecimal(), close.ToDecimal(), volume.ToDecimal(), openInt.ToDecimal());
 }
예제 #4
0
 internal static SmartComTimeFrames GetTimeFrame(SmartBarInterval interval)
 {
     return(_intervals[interval]);
 }
예제 #5
0
		internal static SmartComTimeFrames GetTimeFrame(SmartBarInterval interval)
		{
			return _intervals[interval];
		}
예제 #6
0
 internal void OnAddBar(int row, int rowCount, string securityId, SmartBarInterval interval, DateTime time, double open, double high, double low, double close, double volume, double openInt)
 {
     NewBar.SafeInvoke(row, rowCount, securityId, SmartComTimeFrames.GetTimeFrame(interval), time, SafeCast(open), SafeCast(high), SafeCast(low), SafeCast(close), SafeCast(volume), SafeCast(openInt));
 }