trades performance analysis
This commit is contained in:
@@ -390,22 +390,9 @@ def main() -> None:
|
||||
outstanding_positions=pt_strategy.outstanding_positions(),
|
||||
)
|
||||
|
||||
# ADD RESULTS ANALYSIS
|
||||
results.calculate_returns()
|
||||
results.print_single_day_results()
|
||||
|
||||
# Store results with day name as key
|
||||
# filename = os.path.basename(day)
|
||||
# all_results[filename] = {
|
||||
# "trades": pt_strategy.trades_.copy(),
|
||||
# "outstanding_positions": pt_strategy.outstanding_positions_.copy(),
|
||||
# }
|
||||
results.analyze_pair_performance()
|
||||
|
||||
# print(f"Successfully processed {filename}")
|
||||
|
||||
results.calculate_returns()
|
||||
results.print_grand_totals()
|
||||
results.print_outstanding_positions()
|
||||
|
||||
if args.result_db.upper() != "NONE":
|
||||
print(f"\nResults stored in database: {args.result_db}")
|
||||
|
||||
Reference in New Issue
Block a user