[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRo
Brought to you by:
glauco_1
|
From: <gla...@us...> - 2003-11-10 21:35:56
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRows
In directory sc8-pr-cvs1:/tmp/cvs-serv23225/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRows
Added Files:
ReturnOnAccount.cs
Log Message:
Computes the return on account for the
account report summary object
--- NEW FILE: ReturnOnAccount.cs ---
using System;
using System.Data;
using QuantProject.Business.Financial.Accounting.Reporting.Tables;
namespace QuantProject.Business.Financial.Accounting.Reporting.SummaryRows
{
/// <summary>
/// Summary description for TotalNumberOfTrades.
/// </summary>
public class ReturnOnAccount : SummaryRow
{
public ReturnOnAccount( Summary summary )
{
this.rowDescription = "Return on account";
this.rowValue = summary.TotalPnl / ( summary.FinalAccountValue - summary.TotalPnl ) * 100;
}
}
}
|