Lean  $LEAN_TAG$
QuantConnect.Statistics.AlgorithmPerformance Class Reference

The AlgorithmPerformance class is a wrapper for TradeStatistics and PortfolioStatistics More...

Public Member Functions

 AlgorithmPerformance (List< Trade > trades, SortedDictionary< DateTime, decimal > profitLoss, SortedDictionary< DateTime, decimal > equity, SortedDictionary< DateTime, decimal > portfolioTurnover, List< double > listPerformance, List< double > listBenchmark, decimal startingCapital, int winningTransactions, int losingTransactions, IRiskFreeInterestRateModel riskFreeInterestRateModel, int tradingDaysPerYear)
 Initializes a new instance of the AlgorithmPerformance class More...
 
 AlgorithmPerformance ()
 Initializes a new instance of the AlgorithmPerformance class More...
 

Properties

TradeStatistics TradeStatistics [get, set]
 The algorithm statistics on closed trades More...
 
PortfolioStatistics PortfolioStatistics [get, set]
 The algorithm statistics on portfolio More...
 
List< TradeClosedTrades [get, set]
 The list of closed trades More...
 

Detailed Description

The AlgorithmPerformance class is a wrapper for TradeStatistics and PortfolioStatistics

Definition at line 25 of file AlgorithmPerformance.cs.

Constructor & Destructor Documentation

◆ AlgorithmPerformance() [1/2]

QuantConnect.Statistics.AlgorithmPerformance.AlgorithmPerformance ( List< Trade trades,
SortedDictionary< DateTime, decimal >  profitLoss,
SortedDictionary< DateTime, decimal >  equity,
SortedDictionary< DateTime, decimal >  portfolioTurnover,
List< double >  listPerformance,
List< double >  listBenchmark,
decimal  startingCapital,
int  winningTransactions,
int  losingTransactions,
IRiskFreeInterestRateModel  riskFreeInterestRateModel,
int  tradingDaysPerYear 
)

Initializes a new instance of the AlgorithmPerformance class

Parameters
tradesThe list of closed trades
profitLossTrade record of profits and losses
equityThe list of daily equity values
portfolioTurnoverThe algorithm portfolio turnover
listPerformanceThe list of algorithm performance values
listBenchmarkThe list of benchmark values
startingCapitalThe algorithm starting capital
winningTransactionsNumber of winning transactions
losingTransactionsNumber of losing transactions
riskFreeInterestRateModelThe risk free interest rate model to use
tradingDaysPerYearThe number of trading days per year

Definition at line 56 of file AlgorithmPerformance.cs.

◆ AlgorithmPerformance() [2/2]

QuantConnect.Statistics.AlgorithmPerformance.AlgorithmPerformance ( )

Initializes a new instance of the AlgorithmPerformance class

Definition at line 79 of file AlgorithmPerformance.cs.

Property Documentation

◆ TradeStatistics

TradeStatistics QuantConnect.Statistics.AlgorithmPerformance.TradeStatistics
getset

The algorithm statistics on closed trades

Definition at line 30 of file AlgorithmPerformance.cs.

◆ PortfolioStatistics

PortfolioStatistics QuantConnect.Statistics.AlgorithmPerformance.PortfolioStatistics
getset

The algorithm statistics on portfolio

Definition at line 35 of file AlgorithmPerformance.cs.

◆ ClosedTrades

List<Trade> QuantConnect.Statistics.AlgorithmPerformance.ClosedTrades
getset

The list of closed trades

Definition at line 40 of file AlgorithmPerformance.cs.


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