Exemple #1
0
        /// <summary>
        /// Initializes a new default instance of the <see cref="Controls"/> class
        /// </summary>
        public Controls()
        {
            MinuteLimit                     = 500;
            SecondLimit                     = 100;
            TickLimit                       = 30;
            RamAllocation                   = 1024;
            BacktestLogLimit                = 10000;
            BacktestingMaxOrders            = int.MaxValue;
            DailyLogLimit                   = 3000000;
            RemainingLogAllowance           = 10000;
            BacktestingMaxInsights          = 10000;
            MaximumDataPointsPerChartSeries = 4000;
            SecondTimeOut                   = 300;

            // initialize to default leaky bucket values in case they're not specified
            TrainingLimits = new LeakyBucketControlParameters();
        }
Exemple #2
0
        /// <summary>
        /// Initializes a new default instance of the <see cref="Controls"/> class
        /// </summary>
        public Controls()
        {
            MinuteLimit                     = 500;
            SecondLimit                     = 100;
            TickLimit                       = 30;
            RamAllocation                   = 1024;
            BacktestLogLimit                = 10000;
            BacktestingMaxOrders            = int.MaxValue;
            DailyLogLimit                   = 3000000;
            RemainingLogAllowance           = 10000;
            BacktestingMaxInsights          = 10000;
            MaximumDataPointsPerChartSeries = 4000;
            SecondTimeOut                   = 300;
            StorageLimitMB                  = 5;
            StorageFileCount                = 100;
            PersistenceIntervalSeconds      = 5;
            StoragePermissions              = FileAccess.ReadWrite;

            // initialize to default leaky bucket values in case they're not specified
            TrainingLimits = new LeakyBucketControlParameters();
        }
        /// <summary>
        /// Initializes a new default instance of the <see cref="Controls"/> class
        /// </summary>
        public Controls()
        {
            MinuteLimit                     = 500;
            SecondLimit                     = 100;
            TickLimit                       = 30;
            RamAllocation                   = 1024;
            BacktestLogLimit                = 10000;
            BacktestingMaxOrders            = int.MaxValue;
            DailyLogLimit                   = 3000000;
            RemainingLogAllowance           = 10000;
            BacktestingMaxInsights          = 10000;
            MaximumDataPointsPerChartSeries = 4000;
            SecondTimeOut                   = 300;
            StorageLimitMB                  = Config.GetInt("storage-limit-mb", 5);
            StorageFileCount                = Config.GetInt("storage-file-count", 100);
            PersistenceIntervalSeconds      = Config.GetInt("persistence-interval-seconds", 5);

            // initialize to default leaky bucket values in case they're not specified
            TrainingLimits = new LeakyBucketControlParameters();

            StreamingDataPermissions = new HashSet <string>();
        }