Lean
$LEAN_TAG$
|
Provides an implementation of IRiskManagementModel that limits the unrealized profit per holding to the specified percentage More...
Public Member Functions | |
MaximumUnrealizedProfitPercentPerSecurity (decimal maximumUnrealizedProfitPercent=0.05m) | |
Initializes a new instance of the MaximumUnrealizedProfitPercentPerSecurity 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 unrealized profit per holding to the specified percentage
Definition at line 27 of file MaximumUnrealizedProfitPercentPerSecurity.cs.
QuantConnect.Algorithm.Framework.Risk.MaximumUnrealizedProfitPercentPerSecurity.MaximumUnrealizedProfitPercentPerSecurity | ( | decimal | maximumUnrealizedProfitPercent = 0.05m | ) |
Initializes a new instance of the MaximumUnrealizedProfitPercentPerSecurity class
maximumUnrealizedProfitPercent | The maximum percentage unrealized profit allowed for any single security holding, defaults to 5% drawdown per security |
Definition at line 36 of file MaximumUnrealizedProfitPercentPerSecurity.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 48 of file MaximumUnrealizedProfitPercentPerSecurity.cs.