mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +00:00
make sure order is within dataset bounds
This commit is contained in:
parent
de92ac9459
commit
561db06b39
|
@ -40,7 +40,11 @@ export function getTradeEntries(dataset: PairHistory, filteredTrades: Trade[]) {
|
|||
if (trade.orders) {
|
||||
for (let i = 0; i < trade.orders.length; i++) {
|
||||
const order: Order = trade.orders[i];
|
||||
if (order.order_filled_timestamp) {
|
||||
if (
|
||||
order.order_filled_timestamp &&
|
||||
order.order_filled_timestamp <= dataset.data_stop_ts &&
|
||||
order.order_filled_timestamp > dataset.data_start_ts
|
||||
) {
|
||||
// Trade entry
|
||||
if (i === 0) {
|
||||
tradeData.push([
|
||||
|
|
Loading…
Reference in New Issue
Block a user