Lean  $LEAN_TAG$
QuantConnect.Algorithm.Framework.Risk.TrailingStopRiskManagementModel Class Reference

Provides an implementation of IRiskManagementModel that limits the maximum possible loss measured from the highest unrealized profit More...

Inheritance diagram for QuantConnect.Algorithm.Framework.Risk.TrailingStopRiskManagementModel:
[legend]

Public Member Functions

 TrailingStopRiskManagementModel (decimal maximumDrawdownPercent=0.05m)
 Initializes a new instance of the TrailingStopRiskManagementModel class More...
 
override IEnumerable< IPortfolioTargetManageRisk (QCAlgorithm algorithm, IPortfolioTarget[] targets)
 Manages the algorithm's risk at each time step More...
 
- Public Member Functions inherited from QuantConnect.Algorithm.Framework.Risk.RiskManagementModel
virtual void OnSecuritiesChanged (QCAlgorithm algorithm, SecurityChanges changes)
 Event fired each time the we add/remove securities from the data feed More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TrailingStopRiskManagementModel()

QuantConnect.Algorithm.Framework.Risk.TrailingStopRiskManagementModel.TrailingStopRiskManagementModel ( decimal  maximumDrawdownPercent = 0.05m)

Initializes a new instance of the TrailingStopRiskManagementModel class

Parameters
maximumDrawdownPercentThe 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.

Member Function Documentation

◆ ManageRisk()

override IEnumerable<IPortfolioTarget> QuantConnect.Algorithm.Framework.Risk.TrailingStopRiskManagementModel.ManageRisk ( QCAlgorithm  algorithm,
IPortfolioTarget[]  targets 
)
virtual

Manages the algorithm's risk at each time step

Parameters
algorithmThe algorithm instance
targetsThe current portfolio targets to be assessed for risk

Reimplemented from QuantConnect.Algorithm.Framework.Risk.RiskManagementModel.

Definition at line 46 of file TrailingStopRiskManagementModel.cs.


The documentation for this class was generated from the following file: