[ad_1] import pandas as pdimport numpy as npnp.NaN = np.nan # For pandas_ta compatibilityimport matplotlib.pyplot…