Example #1
0
        protected override void ApplySettings(HydraTaskSettings settings)
        {
            _settings = new RtsSettings(settings);

            if (settings.IsDefault)
            {
                _settings.DayOffset         = 3;
                _settings.StartFrom         = RtsHistorySource.RtsMinAvaliableTime;
                _settings.UsdRurStartFrom   = FortsDailyData.UsdRateMinAvailableTime;
                _settings.IsDownloadUsdRate = true;
                //_settings.UsdRateLastDate = FortsDailyData.UsdRateMinAvailableTime;
                _settings.IsSystemOnly           = true;
                _settings.LoadEveningSession     = false;
                _settings.SaveRtsStdTrades       = false;
                _settings.SaveRtsStdCombinedOnly = false;
                _settings.Interval          = TimeSpan.FromDays(1);
                _settings.IgnoreWeekends    = true;
                _settings.UseTemporaryFiles = TempFiles.UseAndDelete;
            }
        }
Example #2
0
		protected override void ApplySettings(HydraTaskSettings settings)
		{
			_settings = new RtsSettings(settings);

			if (settings.IsDefault)
			{
				_settings.DayOffset = 3;
				_settings.StartFrom = RtsHistorySource.RtsMinAvaliableTime;
				_settings.UsdRurStartFrom = FortsDailyData.UsdRateMinAvailableTime;
				_settings.IsDownloadUsdRate = true;
				//_settings.UsdRateLastDate = FortsDailyData.UsdRateMinAvailableTime;
				_settings.IsSystemOnly = true;
				_settings.LoadEveningSession = false;
				_settings.SaveRtsStdTrades = false;
				_settings.SaveRtsStdCombinedOnly = false;
				_settings.Interval = TimeSpan.FromDays(1);
				_settings.IgnoreWeekends = true;
				_settings.UseTemporaryFiles = TempFiles.UseAndDelete;
			}
		}