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

            if (settings.IsDefault)
            {
                _settings.DayOffset         = 1;
                _settings.StartFrom         = new DateTime(2001, 1, 1);
                _settings.Interval          = TimeSpan.FromDays(1);
                _settings.IgnoreWeekends    = true;
                _settings.UseTemporaryFiles = TempFiles.UseAndDelete;
            }

            _mfdSecurityStorage = new MfdSecurityStorage(EntityRegistry);
        }
Beispiel #2
0
		protected override void ApplySettings(HydraTaskSettings settings)
		{
			_mfdSecurityStorage = new MfdSecurityStorage(EntityRegistry);

			_settings = new MfdSettings(settings);

			if (!settings.IsDefault)
				return;

			_settings.DayOffset = 1;
			_settings.StartFrom = new DateTime(2001, 1, 1);
			_settings.Interval = TimeSpan.FromDays(1);
			_settings.IgnoreWeekends = true;
			_settings.UseTemporaryFiles = TempFiles.UseAndDelete;
			_settings.CandleDayStep = 30;
		}