mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
fix selectOrders filter
This commit is contained in:
parent
90aac7e469
commit
92004ed34e
|
@ -145,7 +145,7 @@ const selectOrders = (data: Order[], since: Date, until: Date): Order[] => {
|
|||
continue
|
||||
}
|
||||
|
||||
data.push(d);
|
||||
entries.push(d);
|
||||
}
|
||||
return entries
|
||||
}
|
||||
|
@ -448,8 +448,7 @@ const TradingViewChart = (props: TradingViewChartProps) => {
|
|||
const fetchers = [];
|
||||
const ordersFetcher = fetchOrders(props.basePath, props.runID).then((orders: Order[] | void) => {
|
||||
if (orders) {
|
||||
// const markers = ordersToMarkers(currentInterval, selectOrders(orders, selectedTimeRange[0], selectedTimeRange[1]));
|
||||
const markers = ordersToMarkers(currentInterval, orders);
|
||||
const markers = ordersToMarkers(currentInterval, selectOrders(orders, selectedTimeRange[0], selectedTimeRange[1]));
|
||||
chartData.orders = orders;
|
||||
chartData.markers = markers;
|
||||
setOrders(orders);
|
||||
|
|
Loading…
Reference in New Issue
Block a user