MaxProfitPercentParameter
StockSharp.Algo.Statistics
Maximum profit value for the period, expressed as a percentage.
Inherits: BasePnLStatisticParameter<decimal>
Implements: IBeginValueStatisticParameter
Constructors
MaxProfitPercentParameter
public MaxProfitPercentParameter(MaxProfitParameter underlying)
maxProfitPercentParameter = MaxProfitPercentParameter(underlying)
Maximum profit value for the period, expressed as a percentage.
- underlying
- MaxProfitParameter
Properties
BeginValue
public decimal BeginValue { get; set; }
value = maxProfitPercentParameter.BeginValue
maxProfitPercentParameter.BeginValue = value
The initial value of the parameter.
Methods
Add
public override void Add(DateTime marketTime, decimal pnl, decimal? commission)
maxProfitPercentParameter.Add(marketTime, pnl, commission)
To add new data to the parameter.
- marketTime
- The exchange time.
- pnl
- The profit-loss value.
- commission
- Commission.