Machine learning in trading: theory, models, practice and algo-trading - page 1557
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I've been using ZZ for about 15 years now. I know all the disadvantages of this tool. And I know many other things, that's why I told above about my idea.
---
The system should find buy/sell points on its own. It competes not with the players on the market, but with the market itself (sorry for some tautology).
I've been working with ZZ for about 15 years now. I know all the disadvantages of this tool. And I know a lot of other things, that's why I told above about my idea.
---
The system must itself detect points for buying/selling. It competes not with the players on the market, but with the market itself (sorry for some tautology).
An article on Habra with the high-profile title "AI for people: simple words about technology"https://habr.com/ru/company/jetinfosystems/blog/471626/
I flipped through the article - it all boiled down to Machine Learning, ..... It reminded me of an old anecdote:
A student is taking a zoology exam. He only knows about fleas. On the exam he gets a question about dogs.
The student begins:
- Dogs are mammals, covered with fur. There are fleas in their fur...then it's all about fleas....
Preacher:
- Okay, young man, tell me about cats.
Student:
- Cats are mammals, covered with hair. There are fleas in their fur....then all about fleas....
Presenter:
- Let's talk about fish.
Student:
- Fish are not mammals. They don't have fur. They are covered with scales, but if they were covered with fur there would be fleas in them....
The finale of returnee training
Do not use ZZ or any additional indicators. Only OHLC from several tf (tf should differ 4-6 times. For example, 1-5-30-H3... up to a monthly timeframe. Select it independently) and, perhaps, more ticks for early warning.
By the prices of maximums and minimums separately convolutional structures. By OHLC - the recurrence structure. And so on for all the used prices. All signals of that are directed, for example, to the full mesh network.
Also, the ticks passed through the recurrence network are fed to one of the inputs of the full mesh network.
Optimize by speed of deposit increase. As a result, the cumulative network should decide by itself, what is the lot volume and select the points of opening and closing. Approximately like this.
Why are you using words? Just draw the structure of your proposed network. And you, too, will have a lot of questions.
And in the meantime, it is just a flutter. The idea is right, but the direction is wrong.
The finale of returnee training
Can you attach a homemade tester, I wonder if you avoided one very common mistake? Or in person.
Good luck
And can you attach a self-made tester, I wonder if you avoided one very common mistake? Or in person.
Good luck
zhupiter notebook will do? skipped the whole, no secret, because the whole code is in the video
jupiter notebook will do? discounted the whole, not secret, because the whole code is in the video
Sure. Thank you. I'll look at it and report back
Jupiter notebook will do? I have downloaded the whole code, it is not secret, because the whole code is in the video
It's a lot of work to take apart someone else's code. Let's look at only the custom_tester() function and only the highlighted part.
What is the error in calculating the result? You calculate the result for each iteration by adding result +=testpr[i] - lastpr to the previous value. This is the difference between the Close of the current bar and the previous one. Ideally, it would be better to use Close - Open, but it does not matter. The important thing is that having received a signal at the close of the current bar, you calculate the signal premium as diff(Close) of the same bar. This is incorrect. The signal premium of the current bar is diff(Close) of the next bar. To correctly calculate the result, you must shift p = model.predict_proba(X) to the right by one bar. I will give further calculations on R, it is easier for me.
In the first line, convert the predictions to nominal (1,-1), shift to the right by one bar, remove NA and get a vector of signals. In the second line cumulatively summarize the product of the signals vector and diff(Close) vector, having previously aligned it with the signals vector in length. Then we get the correct result.
Good luck