manual close btn
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user