Work on StopLimits
This commit is contained in:
@@ -36,17 +36,17 @@ namespace PortfolioManager.Models
|
||||
return compositeDataSource;
|
||||
}
|
||||
|
||||
public static CompositeDataSource CreateCompositeDataSource(DateTime xSource, double ySource)
|
||||
{
|
||||
if (Utility.IsEpoch(xSource)) return Empty();
|
||||
SortedDateTimeDataAdapter sortedDateTimeDataAdapter = new SortedDateTimeDataAdapter();
|
||||
sortedDateTimeDataAdapter.Add(xSource, ySource);
|
||||
CompositeDataSource compositeDataSource = new CompositeDataSource()
|
||||
{
|
||||
DataAdapter = sortedDateTimeDataAdapter
|
||||
};
|
||||
return compositeDataSource;
|
||||
}
|
||||
// public static CompositeDataSource CreateCompositeDataSource(DateTime xSource, double ySource)
|
||||
// {
|
||||
// if (Utility.IsEpoch(xSource)) return Empty();
|
||||
// SortedDateTimeDataAdapter sortedDateTimeDataAdapter = new SortedDateTimeDataAdapter();
|
||||
// sortedDateTimeDataAdapter.Add(xSource, ySource);
|
||||
// CompositeDataSource compositeDataSource = new CompositeDataSource()
|
||||
// {
|
||||
// DataAdapter = sortedDateTimeDataAdapter
|
||||
// };
|
||||
// return compositeDataSource;
|
||||
// }
|
||||
|
||||
// This is the active gain/loss as number or percent.
|
||||
public static CompositeDataSource GainLoss(ModelPerformanceSeries gainLossList, bool useGainLoss)
|
||||
|
||||
Reference in New Issue
Block a user