MaxRelativeDrawdownParameter
StockSharp.Algo.Statistics
Maximum relative equity drawdown during the whole period.
Inherits: BasePnLStatisticParameter<decimal>
Constructors
MaxRelativeDrawdownParameter
public MaxRelativeDrawdownParameter()
maxRelativeDrawdownParameter = MaxRelativeDrawdownParameter()
Initialize MaxRelativeDrawdownParameter.
Methods
Add
public override void Add(DateTime marketTime, decimal pnl, decimal? commission)
maxRelativeDrawdownParameter.Add(marketTime, pnl, commission)
To add new data to the parameter.
- marketTime
- The exchange time.
- pnl
- The profit-loss value.
- commission
- Commission.
Load
public override void Load(SettingsStorage storage)
maxRelativeDrawdownParameter.Load(storage)
To load the state of statistic parameter.
- storage
- Storage.
Reset
public override void Reset()
maxRelativeDrawdownParameter.Reset()
To reset the parameter value.
Save
public override void Save(SettingsStorage storage)
maxRelativeDrawdownParameter.Save(storage)
To save the state of statistic parameter.
- storage
- Storage.