Commit Latest
This commit is contained in:
@@ -23,6 +23,22 @@ namespace PortfolioManager.Models
|
||||
return compositeDataSource;
|
||||
}
|
||||
|
||||
public static CompositeDataSource Price(Price price)
|
||||
{
|
||||
if (null == price) return Empty();
|
||||
SortedDateTimeDataAdapter sortedDateTimeDataAdapter = new SortedDateTimeDataAdapter();
|
||||
|
||||
|
||||
// CompositeDataSource compositeDataSource;
|
||||
// var xData = new EnumerableDataSource<DateTime>(new DateTime[]{price.Date});
|
||||
// xData.SetXMapping(x => (x.Ticks / 10000000000.0));
|
||||
// var yData = new EnumerableDataSource<double>(new double[]{price.Close});
|
||||
// yData.SetYMapping(y => y);
|
||||
// compositeDataSource = xData.Join(yData);
|
||||
// return compositeDataSource;
|
||||
return Empty();
|
||||
}
|
||||
|
||||
// This is the active gain/loss as number or percent.
|
||||
public static CompositeDataSource GainLoss(ModelPerformanceSeries gainLossList, bool useGainLoss)
|
||||
{
|
||||
|
||||
@@ -356,7 +356,7 @@ namespace PortfolioManager.ViewModels
|
||||
BinCollection<InsiderTransactionSummary> acquiredSummariesBin=BinHelper<InsiderTransactionSummary>.CreateBins(new BinItems<InsiderTransactionSummary>(acquiredSummaries),3);
|
||||
|
||||
|
||||
// compositeDataSourceZeroPoint = GainLossModel.Price(zeroPrice);
|
||||
compositeDataSourceZeroPoint = GainLossModel.Price(zeroPrice);
|
||||
/*
|
||||
if(null!=stopLimits)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user