Машинное обучение в трейдинге: теория, модели, практика и алготорговля - страница 1064
Вы упускаете торговые возможности:
- Бесплатные приложения для трейдинга
- 8 000+ сигналов для копирования
- Экономические новости для анализа финансовых рынков
Регистрация
Вход
Вы принимаете политику сайта и условия использования
Если у вас нет учетной записи, зарегистрируйтесь
Also, I have one more request Maxim...
When you publish your article, please try to comment the code as much as possible so that it will be quick and easy for others to understand the code so that we can progress faster..
Otherwise, if it will take a long time for me to understand the code, then it will take even more time to modify it.
So I request you to add as many comments and explanations of the code possible. For now I will try to understand it quickly and will ask you if I don't understand anything:))
Ok, now I just constantly change many things and no sense to comment it
also you can think about how to change outputs.. maybe use zigzag with different settings instead reward function or something elseOk, now I just constantly change many things and no sense to comment it
also you can think about how to change outputs.. maybe use zigzag with different settings instead reward function or something elseI just had a quick overview of the code. But till now I have not figured out exactly where are the indicators or how it decides the trade entries. So I am not sure as what to do with output. You mean output using GDMH?
I just run the test with various settings, but it seems to place completely random trades.
Also, in the testing phase it doesn't create the "Mtrees" text files.right?
I mean the code which you provided is not complete.right? Or is it capable of placing trades if it is attached directly to the chart without optimization.
I just had a quick overview of the code. But till now I have not figured out exactly where are the indicators or how it decides the trade entries. So I am not sure as what to do with output.
I just run the test with various settings, but it seems to place completely random trades as well as it showed some strange behaviour and hence, I just rebooted my server. Does it have to do anythign with real kernels of the VPS?
Also, in the testing phase it doesn't create the "Mtrees" text files.right?
When first run in tester choose "true"
He will make random trades and learn then and save the models
2-nd run choose false. Thats it. And he upload models and will trade in +
Next, in EA you can add agents, now you have 5 agents, 100 features for each agent, 50 trees
In this function we add 100 close prices for each agent (100 predictors). And then normalize data. You can add different indicators, for example first 50 features - close prices, next 25 rsi, next 25 adx, or change the number of predictors when you declare agent
After each deal he update policies, when close trade - update reward (TD, temporal difference RL)
Really simple library usage
In train mode he will show you logs with errors for each iteration
in trade mode in tester show final errors on train and test subset for each agent
Result for 100 close prices:
When first run in tester choose "true"
He will make random trades and learn then and save the models
2-nd run choose false. Thats it. And he upload models and will trade in +
Next, in EA you can add agents, now you have 5 agents, 100 features for each agent, 50 trees
In this function we add 100 close prices for each agent (100 predictors). And then normalize data. You can add different indicators, for example first 50 features - close prices, next 25 rsi, next 25 adx, or change the number of predictors when you declare agent
After each deal he update policies, when close trade - update reward (TD, temporal difference RL)
Really simple usage of library
Yes, this seems much simple as well as robust at the same time..let's experiment and see..Great job!!!!!
So where is the use of GDMH?
I was thinking of writing my GDMH code. You can just show me the code where RDF input and output is happening or where exactly you are trying implement GDMH so that I will try to write my piece of code and then, we can compare the results both your code and my code and evaluate.
Yes, this seems much simple as well as robust at the same time..let's experiment and see..Great job!!!!!
So where is the use of GDMH?
I was thinking of writing my GDMH code. You can just show me the code where RDF input and output is happening or where exactly you are trying implement GDMH so that I will try to write my piece of code and then, we can compare the results both your code and my code and evaluate.
Here I use simple kernel CRLAgent::kernelizedMatrix(void) (in library), so need to change this function for gdmh
Here I use simple kernel CRLAgent::kernelizedMatrix(void) (in library), so need to change this function for gdmh
Ok, let's see if I can write my own code....
if it is just about the GDMH logic, then I can easily translate or convert the GDMH algo into MQL5 code, but if it has to do with some other kernel functions or libraries, then I need time to study and convert...
Another feature: you can configure each agent in committee
When fill predictors values just change here:
Also you can add different groups of agents
Ok, let's see if I can write my own code....
if it is just about the GDMH logic, then I can easily translate or convert the GDMH algo into MQL5 code, but if it has to do with some other kernel functions or libraries, then I need time to study and convert...
If you can just convert gmdh logic - it will very helpful, then I can change it for my library
Gmdh logic - it will very helpful, then I can change it for my library
Can you please provide me the formula of GDMH which you are trying to convert to MQL5? I mean there are many varieties and which one of you are trying and implement and how you are trying to implement?
Also, you mentioned " After each deal, update policies, when close trade-update reward (TD, temporal difference RL) "
Does it happen in LIVE trading as well?
Or happens only during testing?Can you please provide me the formula of GDMH which you are trying to convert to MQL5 ? I mean there are many varieties and which one you are trying and how you are trying to implement?
Also, you mentioned "After each deal he update policies, when close trade - update reward (TD, temporal difference RL)"
Does it happen in LIVE trading also or does it happen only during testing in bactester?
I think we must to use polynomial for all features combinations, for example first line: (x - feature value) x0+x1, x0+x2, ...., x2+x3.... xn+xm where x0,xn - different predictors values
second line x0^2+x1^2...
third line x0^3+x1^3...
with selection of best n results on previous lines ("levels" better). But Im not sure how it works, just learning
... only during testing