Skip to content

Commit

Permalink
fix: trade logic
Browse files Browse the repository at this point in the history
  • Loading branch information
RexBearIU committed Apr 23, 2024
1 parent 27f905a commit 6005477
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified src/strategies/strategy/rl-dqn/models/dqn/weights.bin
Binary file not shown.
4 changes: 3 additions & 1 deletion src/tradebot/tradebot.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ export class TradebotService {
return 'CLOSE';
}
if (suggestion === 'BUY' || suggestion === 'SELL') {
return suggestion;
if (tradebot.holdingStatus === 'WAIT') {
return suggestion;
}
}
return 'WAIT';
} catch (error) {
Expand Down

0 comments on commit 6005477

Please sign in to comment.