]> Piment Noir Git Repositories - freqai-strategies.git/commit
fix(reforcexy): correct short fee application to match Freqtrade semantics
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 12 Jan 2026 13:57:58 +0000 (14:57 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 12 Jan 2026 13:57:58 +0000 (14:57 +0100)
commit2912c0cd397b36c0d596be0c193f0ed5683a4b78
treea896097506bb392fc55e4c028b9beaa57c1caec9
parent5e5749ccc8cea3719acac17fa1f7d7da08efc69b
fix(reforcexy): correct short fee application to match Freqtrade semantics

Short positions must use:
- Entry (sell): add_exit_fee reduces price received
- Exit (buy): add_entry_fee increases cost to close

Previous commit incorrectly inverted these in both get_most_recent_return
and get_most_recent_profit for short positions.
ReforceXY/user_data/freqaimodels/ReforceXY.py