|
@ -334,8 +334,10 @@ export class TWRPortfolioCalculator extends PortfolioCalculator { |
|
|
if (isChartMode) { |
|
|
if (isChartMode) { |
|
|
const datesWithOrders = {}; |
|
|
const datesWithOrders = {}; |
|
|
|
|
|
|
|
|
for (const order of orders) { |
|
|
for (const { date, type } of orders) { |
|
|
datesWithOrders[order.date] = true; |
|
|
if (['BUY', 'SELL'].includes(type)) { |
|
|
|
|
|
datesWithOrders[date] = true; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
while (isBefore(day, end)) { |
|
|
while (isBefore(day, end)) { |
|
|