/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ using Newtonsoft.Json; using System.Collections.Generic; namespace QuantConnect.Optimizer { /// /// Sensitivity report for a single optimized parameter. /// public class ParameterReport { /// /// Parameter name. /// public string Name { get; set; } /// /// Lower bound of the parameter sweep. /// public decimal SearchedMin { get; set; } /// /// Upper bound of the parameter sweep. /// public decimal SearchedMax { get; set; } /// /// Sweep step size; null when not provided in the optimization configuration. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public decimal? Step { get; set; } /// /// Mean Sharpe range (max - min) across every 1-D slice. /// public decimal MeanWithinSliceSharpeRange { get; set; } /// /// Maximum Sharpe range (max - min) across every 1-D slice. /// public decimal MaxWithinSliceSharpeRange { get; set; } /// /// Worst-case Sharpe change between two adjacent grid values, scaled by . /// public decimal MaxAbsDerivativePerStep { get; set; } /// /// This parameter's value at the best backtest. /// public decimal BestValue { get; set; } /// /// True when lies within half a step of or . /// public bool BestAtSearchedEdge { get; set; } /// /// One-dimensional slices used for the sensitivity analysis. /// public IReadOnlyList Slices { get; set; } } }