manual close btn

This commit is contained in:
Dobromir Popov
2025-08-08 11:47:51 +03:00
parent 6214bc2e9f
commit c58ec789f2
5 changed files with 48 additions and 25 deletions

View File

@ -209,8 +209,8 @@ class DataInterface:
curr_close = data[window_size-1:-1, 3]
price_changes = (next_close - curr_close) / curr_close
# Define thresholds for price movement classification
threshold = 0.0005 # 0.05% threshold - smaller to encourage more signals
# Define thresholds for price movement classification
threshold = 0.001 # 0.10% threshold - prefer bigger moves to beat fees
y = np.zeros(len(price_changes), dtype=int)
y[price_changes > threshold] = 2 # Up
y[price_changes < -threshold] = 0 # Down

View File

@ -50,7 +50,7 @@ class SignalInterpreter:
self.oscillation_filter_enabled = self.config.get('oscillation_filter_enabled', False) # Disable oscillation filter by default
# Sensitivity parameters
self.min_price_movement = self.config.get('min_price_movement', 0.0001) # Lower price movement threshold
self.min_price_movement = self.config.get('min_price_movement', 0.001) # Align with deadzone; prefer bigger moves
self.hold_cooldown = self.config.get('hold_cooldown', 1) # Shorter hold cooldown
self.consecutive_signals_required = self.config.get('consecutive_signals_required', 1) # Require only one signal