Market Forecast: StatsModels VARMAX Method

--

This is a small contribution to the vast expanse of price action forecast modeling that has existed, thankfully, long enough for it to retain such great value. I hope this prevails a couple revelations, if not just one, at least in the realm of VARMAX, forecasting outputs, or just revel at my chicken-scratch coding. Regardless your reason to continue reading, you will at bare minimum see my take on applying a look-ahead function in order to model a predicted vs observed price action of one cryptocurrency sample.

You can see the code here: [https://www.kaggle.com/code/dascient/crypto-forecast-using-statsmodels-varmax]

I will begin the rest with less to zero pleasantries:

Let’s look at the most common currency, Bitcoin.

BTC Price Action 2013, April/May
Close Price 2017–2018

Scale data using sklearn MinMaxScaler and/or MaxAbsScaler. The cell below also creates the “train” and “test” dataframes. “Train” contains observed data for the model to interpret. “Test” will be observed data with which a model will be forecasted.

train.tail()
test.head()

Initiate VARMAX Modeling

As well as, output model summary for each variable [o,h,l,c].

model_fit.summary() [0]
model_fit.summary() [1]

Looking at the outcome above, I found that running the VARMAX predictor will generate random forecast regardless of the train data. This is due in part of a randomly generated factor within the model parameters that could still be explored. Future work includes the VARMAX model to make trade signals against live price action data.

Please feel free to fork, star, watch, & even scrutinize/criticize my projects/repositories:

My credentials & other contributions are verifiable on my LinkedIn profile here:

https://www.linkedin.com/in/dontadaya

Thank you!

Join Coinmonks Telegram Channel and Youtube Channel learn about crypto trading and investing

Also, Read

--

--