Files
quantconnect--lean/Common/Result.cs
Martin Molinero cfa08a11fb Address reviews
- Removing `using QCAlgorithmFramework = QuantConnect.Algorithm.QCAlgorithm`
- Removing `QCAlgorithmFrameworkBridge`
- Removing `IsFrameworkAlgorithm`
- Making `EmitInsightBasedOnFill` private. Adding new
`IOrderEventProvider` exposing an `event` to which `QCAlgorithm` will
subscribe.
- `AccountType.Cash` algorithms will be allowed to manually trade and
emight insights manually or with alpha model.
2019-04-03 21:55:44 -03:00

47 lines
1.7 KiB
C#

using System;
using System.Collections.Generic;
using QuantConnect.Orders;
using QuantConnect.Packets;
namespace QuantConnect
{
/// <summary>
/// Base class for backtesting and live results that packages result data.
/// <see cref="LiveResult"/>
/// <see cref="BacktestResult"/>
/// </summary>
public class Result
{
/// <summary>
/// Contains population averages scores over the life of the algorithm
/// </summary>
public AlphaRuntimeStatistics AlphaRuntimeStatistics;
/// <summary>
/// Charts updates for the live algorithm since the last result packet
/// </summary>
public IDictionary<string, Chart> Charts = new Dictionary<string, Chart>();
/// <summary>
/// Order updates since the last result packet
/// </summary>
public IDictionary<int, Order> Orders = new Dictionary<int, Order>();
/// <summary>
/// Trade profit and loss information since the last algorithm result packet
/// </summary>
public IDictionary<DateTime, decimal> ProfitLoss = new Dictionary<DateTime, decimal>();
/// <summary>
/// Statistics information sent during the algorithm operations.
/// </summary>
/// <remarks>Intended for update mode -- send updates to the existing statistics in the result GUI. If statistic key does not exist in GUI, create it</remarks>
public IDictionary<string, string> Statistics = new Dictionary<string, string>();
/// <summary>
/// Runtime banner/updating statistics in the title banner of the live algorithm GUI.
/// </summary>
public IDictionary<string, string> RuntimeStatistics = new Dictionary<string, string>();
}
}