Now we run our trading strategies on real data. We use the 20 periods of real data time series of stock data, each with 100 observations, as we tested in the other notebook.
from MathFinanceWorkshop import MFW_Simulation
import numpy as np
Model = MFW_Simulation()
First lets see how our simple strategy, where $$ T(S,W,B,\Delta) = 1 $$ performs. Run the cells below to see the strategy plotted out and the statistics of how it performed.
Model.plotRealData()
Model.statsRealData()