Ejemplo n.º 1
0
        private SmartComTimeFrames(SmartBarInterval interval, TimeSpan value)
        {
            Interval = interval;

            _value = value;

            _intervals.Add(interval, this);
            _values.Add(value, this);
        }
Ejemplo n.º 2
0
		private SmartComTimeFrames(SmartBarInterval interval, TimeSpan value)
		{
			Interval = interval;

			_value = value;

			_intervals.Add(interval, this);
			_values.Add(value, this);
		}
Ejemplo n.º 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());
 }
Ejemplo n.º 4
0
 internal static SmartComTimeFrames GetTimeFrame(SmartBarInterval interval)
 {
     return(_intervals[interval]);
 }
Ejemplo n.º 5
0
		internal static SmartComTimeFrames GetTimeFrame(SmartBarInterval interval)
		{
			return _intervals[interval];
		}
Ejemplo n.º 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));
 }