import pandas as pd import numpy as np import yfinance as yf import matplotlib.pyplot as plt from scipy.optimize import brute class contrarian_strategy(): def __ini