Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
#!/usr/bin/env python
try:
import pyaux
pyaux.use_exc_ipdb()
pyaux.use_exc_log()
except:
pass
import datetime
import matplotlib.pyplot as plt
import IPython
import logging
logging.basicConfig()
from pybacktest.testers import SimpleBacktester
from pybacktest.opt import Optimizer
from examples.ma_strategy import MACrossoverStrategy as strategy
from pybacktest.data.pandas_bars import pandas_bars_wrap
from pybacktest.data.quotes import get_daily_quotes_yahoo