Fixed record breaker logic and added tests #363
No reviewers
Labels
No labels
blocked
breaking
bug
dependencies
duplicate
enhancement
good first issue
help wanted
question
tech debt
testing
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
scion/arbitrader!363
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-record-breakers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I confused some of the logic in here earlier. Fixed that and added some tests.
This was causing messages to be generated when they were not actually record breakers, and the emojis indicating that prices had "crossed" being shown incorrectly. We only want green checks when the maxSpreadIn is higher than the minSpreadOut, meaning that TradeCombination has a potentially profitable zone.
In the future we'll use that to determine entry and exit points, so it's important to get it right.