Lean
$LEAN_TAG$
|
Provides an implementation of IRiskManagementModel that limits the maximum possible loss measured from the highest unrealized profit More...
Public Member Functions | |
TrailingStopRiskManagementModel (decimal maximumDrawdownPercent=0.05m) | |
Initializes a new instance of the TrailingStopRiskManagementModel class More... | |
override IEnumerable< IPortfolioTarget > | ManageRisk (QCAlgorithm algorithm, IPortfolioTarget[] targets) |
Manages the algorithm's risk at each time step More... | |
![]() | |
virtual void | OnSecuritiesChanged (QCAlgorithm algorithm, SecurityChanges changes) |
Event fired each time the we add/remove securities from the data feed More... | |
Provides an implementation of IRiskManagementModel that limits the maximum possible loss measured from the highest unrealized profit
Definition at line 27 of file TrailingStopRiskManagementModel.cs.
QuantConnect.Algorithm.Framework.Risk.TrailingStopRiskManagementModel.TrailingStopRiskManagementModel | ( | decimal | maximumDrawdownPercent = 0.05m | ) |
Initializes a new instance of the TrailingStopRiskManagementModel class
maximumDrawdownPercent | The maximum percentage relative drawdown allowed for algorithm portfolio compared with the highest unrealized profit, defaults to 5% drawdown per security |
Definition at line 36 of file TrailingStopRiskManagementModel.cs.
|
virtual |
Manages the algorithm's risk at each time step
algorithm | The algorithm instance |
targets | The current portfolio targets to be assessed for risk |
Reimplemented from QuantConnect.Algorithm.Framework.Risk.RiskManagementModel.
Definition at line 46 of file TrailingStopRiskManagementModel.cs.