Global fix (#9)
* Fix time for candle * Fix out ouf range * Fix pnl, fix custom money management * Clean a bit
This commit is contained in:
@@ -21,7 +21,7 @@ public static class TradingHelpers
|
||||
|
||||
public static PerformanceMetrics GetStatistics(Dictionary<DateTime, decimal> pnls)
|
||||
{
|
||||
var priceSeries = new TimePriceSeries(pnls);
|
||||
var priceSeries = new TimePriceSeries(pnls.DistinctBy(p => p.Key).ToDictionary(p => p.Key, p => p.Value));
|
||||
|
||||
return priceSeries.CalculatePerformanceMetrics();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user