ok, kind of incremental trading and backtester, but result not alligning
This commit is contained in:
@@ -96,10 +96,10 @@ class DefaultStrategy(StrategyBase):
|
||||
return
|
||||
|
||||
# Limit data size to prevent excessive computation time
|
||||
original_length = len(strategy_data)
|
||||
if len(strategy_data) > 200:
|
||||
strategy_data = strategy_data.tail(200)
|
||||
print(f"DefaultStrategy: Limited data from {original_length} to {len(strategy_data)} points for faster computation")
|
||||
# original_length = len(strategy_data)
|
||||
# if len(strategy_data) > 200:
|
||||
# strategy_data = strategy_data.tail(200)
|
||||
# print(f"DefaultStrategy: Limited data from {original_length} to {len(strategy_data)} points for faster computation")
|
||||
|
||||
# Use a timeout mechanism for Supertrend calculation
|
||||
result_container = {}
|
||||
|
||||
Reference in New Issue
Block a user