You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
It's hard to explain in a nutshell. Read here first
https://ru.wikipedia.org/wiki/%D0%92%D0%B7%D0%B0%D0%B8%D0%BC%D0%BD%D0%B0%D1%8F_%D0%B8%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%86%D0%B8%D1%8F
and then here (the chapter on mutual information, where the formula is given):
http://www.jclinbioinformatics.com/content/2/1/16
How is mutual information and entropy calculated?
ЗЫ А сори нашёл https://ru.wikipedia.org/wiki/%D0%98%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%86%D0%B8%D0%BE%D0%BD%D0%BD%D0%B0%D1%8F_%D1%8D%D0%BD%D1%82%D1%80%D0%BE%D0%BF%D0%B8%D1%8F
Here are some examples. Dow Jones index with Non-farm payrolls data.
The arrows mark the pivot point, the data includes a 20+ year history.
The pattern happened once, and it is possible to find another one in the interval of 2000-2001. It is possible to program it, but two signals in twenty years is too little for statistics.
You can say that about any model, not only regression, but also neural models, ARMA and others. If there is no relationship between inputs and outputs, any model will generate a prediction, only inaccurately.
I agree, neural networks are even better, I wasn't clear at the time
regression is useful to quickly test an idea of whether something can be done with the data
i.e. to quickly build-check an empirical model
but the relationships may be "nonexistent" or indirect unobservable
I once built such a model:
MICEX index + 5-year Treasuries + 3-month LIBOR + price of BRENT + EU ZVR + something else
it turns out this combination is a relatively good predictor of the canadian
why? what is the connection? no one knows...
My calculation of mutual information:
Here are some examples. Dow Jones index with Non-farm payrolls data.
The arrows marked the pivot point, the data includes a 20+ year history.
The pattern happened once, and it is possible to find another one in the interval of 2000-2001. It is possible to program this, but two signals for twenty years is too little for statistics.
To use macroeconomic indicators for the high-frequency trading, we should trade by dates of their release. That is, having a model of these indicators, we predict their next value, compare it with the published value and open a position just before the news release. To be honest, though, I am not interested in such trading. I am more interested in predicting crashes. Everybody can make profit on a rising market but avoiding losses on crashes is an art that requires an ability to distinguish the beginning of a crash from a correction.
Here is a more interesting picture. Before crashes, the number of PERMIT1 homes allowed to be built was falling (the vertical gray lines represent historical recessions):
The only recession before which the number of houses allowed to be built did not fall sharply was the 2002-2003 recession. Some economists argue that technically that period of time was not a recession because there were not two consecutive quarters of negative GDP growth. But the market price still fell quite sharply (dot com bubble). My model is pretty bad at predicting 2002-2003. What is needed is an additional indicator that is able to predict this period.
Here is another interesting example: bond yield curve = GS5-GS3M, predicts recessions well.
I once built a model like this:
MICEX index + 5-year Treasuries + 3-month LIBOR + price of Brent + EU ZVR + something else
it turns out this combination is a relatively good predictor of the canadian
why? what is the connection? no one knows...
))) And how did you "predict" the canadoyen with that?
Moreover, I even KNOW "what's the connection", but the question is HOW did you predict kanadoyen with it?
Let's say you have a deviation of the forecast from the real rate of the canadooena and this model does "work" - what next? How do you predict the exchange rate of the canadooen will go to the rate of this synthetic, or the rate of the synthetic will go to the rate of the canadooen or they will both go against each other? How?
To use macroeconomic indicators for high-frequency trading, you need to trade by their release date. That is, having a model of these indicators, we predict their next value, compare it with the published estimate and open a position just before the news release. To be honest, though, I am not interested in such trading. I am more interested in predicting crashes. Everybody can make profit on a rising market but avoiding losses on crashes is an art that requires an ability to distinguish the beginning of a crash from a correction.
Here is a more interesting picture. Before crashes, the number of PERMIT1 homes allowed to be built was falling (the vertical gray lines represent historical recessions):
The only recession before which the number of houses allowed to be built did not fall sharply was the 2002-2003 recession. Some economists argue that technically that period of time was not a recession because there were not two consecutive quarters of negative GDP growth. But the market price still fell quite sharply (dot com bubble). My model is pretty bad at predicting 2002-2003. What is needed is an additional indicator that can predict this period.
Here is another interesting example: yield curve, predicts recessions well.
Regarding crashes. Below is a chart of the Dow Jones with New homesales and theADP-EMPL-SEC data.
The ADP predicted a good fall in 2007, or rather it fell in sync with the Dow Jones.
It is interesting to note that the new home sales broke the trend at the end of 2005, but the index still rose after that, but then there was already a signal that all was not well in the market.
Regarding strategies. One could try:
P.S. I have little programming experience. I read data from file in int init() build buffer once and then fill indicator buffer with matching dates. In my Expert Advisor I get indicator data once per day. With this design optimisation speed is not bad.
The problem is if we use intraday data to build candlesticks using this data, if available. In this case reading from the file will be very long.
What equations do you use in the function you have given?
For those who read this thread, check out my first post, I updated it a couple of days ago.
For anyone interested in trying to predict the market manually using economic indicators, here is a list of indicators: https://www.conference-board.org/data/bci/index.cfm?id=2160
It is as follows:
It is interesting that the fed resurv considers the S&P 500 to be the leading indicator as if it predicts the economy rather than the other way round. The only leading indicator on this list in my opinion is Building Permits, but it has the least weight among all other indicators. Apparently the Fed doesn't know what they are doing and therefore can't predict the coming recession and prevent it with their monetary policy.
My calculation of mutual information:
On mql it goes something like this.
My calculation of mutual information:
Thank you for the implementation. I will study it.
In mql it goes something like this.
Double thanks to you Nikolay! MQL rules!