minor fixes

This commit is contained in:
Simon Moisy 2025-05-21 17:23:35 +08:00
parent 2fd73085b8
commit f4873c56ff
2 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ class Backtest:
entry_price = 0
usd = initial_usd
coin = 0
trade_log = []
max_balance = initial_usd
drawdowns = []

View File

@ -163,7 +163,7 @@ def get_nearest_price(df, target_date):
return nearest_time, price
if __name__ == "__main__":
debug = True
debug = False
parser = argparse.ArgumentParser(description="Run backtest with config file.")
parser.add_argument("config", type=str, nargs="?", help="Path to config JSON file.")