options-backtesting/test/best_entry_times_test.py

8 lines
202 B
Python

from backtesting import best_entry_times
from datetime import datetime
print(best_entry_times())
print(best_entry_times(datetime(2024, 1, 31)))
print(best_entry_times(days_to_look_back = 30)) # Days.