Discussing the article: "Neural Networks in Trading: Recurrent Modeling of Market Micromovements (Conclusion)" - page 2

djgagarin #:

......
2. Study expert. I selected the same time period as specified in the expert. (Is it possible or necessary to change this, and should the period in the expert match the one I have selected, which differs from yours?)
....

When training models, you can experiment with the timeframe to achieve the best possible result. The expert advisor uses the timeframe specified in its parameters as a reference, rather than being tied to the timeframe of the chart on which it is running. During testing, it is advisable to specify the timeframe on which the model was trained.

djgagarin #:

......
Now, regarding this project. I’ll describe the stages of the launch, and please do correct me if I’m wrong:

1. EURUSD H1

2. The ‘Study’ expert advisor. I selected the same time frame as specified in the expert advisor. (Is it possible or necessary to change this, and should the time frame in the expert advisor match the one I’ve chosen, which differs from yours?)

3. Four files with the extension *.nnw have been created in the ‘files’ folder

4. I ran StudyOnline over the same time period (if I’ve understood correctly). Trades appear. Finished.

5. I ran Test on the test period. And here there’s just a solid line representing the balance – not a single trade.


What am I doing wrong?

I used the same time frames as specified in the article to achieve your result.

The training process is iterative and time-consuming. During the initial training, I run the Study function dozens of times. The total number of epochs (the Epochs parameter) far exceeds 1,000. By default, the advisor is set to 100 to save interim results and allow visual monitoring of the training process. With each run, the final errors logged should decrease. When they stabilise, we move on to StudyOnline.
At this stage, I leave only one agent active in the tester and run a slow optimisation based on the agent index (Agent). This parameter is not used in the programme and is included solely for training the model in the strategy tester. I set the number of iterations to 200–300 and monitor how the results evolve. We only proceed to model testing once several consecutive iterations have produced similar results.
Dmitriy Gizlyk #:

When training models, you can experiment with the timeframe to achieve the best possible result. The expert advisor uses the timeframe specified in the parameters, rather than being tied to the timeframe of the chart on which it is running. During backtesting, it is advisable to specify the timeframe on which the model was trained.

What about the timeframe specified in the expert advisor? Do I need to change it to match whichever one I choose?
Dmitriy Gizlyk #:

Good afternoon,
First of all, thank you for your interest in my work.
The ‘Experts’ folder allows for subfolders, which minimises confusion even when experts have identical names. For example, this is what it looks like in my terminal

Oh, I see...
djgagarin #:
What about the timeframe specified in the expert advisor? Do I need to change it to match the one I choose?
For use in live trading, I recommend training the model over a longer timeframe. However, this also involves higher costs.
Following your example, I tried moving the entire folder from the archive into the ‘experts’ directory. After restarting the terminal, the folder doesn’t appear in the navigator and the files haven’t been compiled... I don’t understand what’s going on...
Dmitriy Gizlyk #:
The training process is iterative and time-consuming. During initial training, I run Study dozens of times. The total number of epochs (the ‘Epochs’ parameter) far exceeds 1,000. By default, the advisor is set to 100 to save interim results and allow visual monitoring of the training process. With each run, the final errors logged should decrease. When they stabilise, we move on to StudyOnline.
At this stage, I leave only one agent active in the tester and run a slow optimisation based on the agent index (Agent). This parameter is not used in the programme and is included solely for training the model in the strategy tester. I set the number of iterations to 200–300 and monitor how the results change over time. We only move on to testing the model once several consecutive iterations have produced similar results.
Ah, that makes more sense; I’d thought that once I’d run through the files, I’d move on to the next stage…

Where can I check the training errors? In the log, there’s ‘train-->277’ – is that it?

And there’s also this in the tester’s log: ‘removed itself on 0% of the testing interval’ – is that normal?


djgagarin #:

Where can I check the training errors? In the log, there’s ‘train-->277’ – is that it?

And there’s also this in the tester’s log: ‘removed itself on 0% of the testing interval’ – is that normal?

Messages


Dmitriy Gizlyk #:

Posts


Hmm... I don’t have any such messages in my log...