switch to using FT calc_profi_pct, reverse entry/exit fees

This commit is contained in:
robcaulk
2022-11-13 13:41:17 +01:00
parent e45d791c19
commit 81f800a79b
4 changed files with 12 additions and 19 deletions

View File

@@ -74,6 +74,7 @@ class Base4ActionRLEnv(BaseEnvironment):
self._last_trade_tick = self._current_tick
elif action == Actions.Exit.value:
self._position = Positions.Neutral
self._update_total_profit()
trade_type = "neutral"
self._last_trade_tick = None
else: