Experts: Examples from the book "Neural networks for algorithmic trading with MQL5"

 

Examples from the book "Neural networks for algorithmic trading with MQL5":

The book "Neural networks in algorithmic trading with MQL5" is a comprehensive guide, covering both the theoretical foundations of artificial intelligence and neural networks and practical aspects of their application in financial trading using the MQL5 programming language.

Examples from the book "Neural networks for algorithmic trading with MQL5"

Author: MetaQuotes

 
Ho inserito: #pragma OPENCL EXTENSION cl_khr_gl_sharing : enable #pragma OPENCL EXTENSION cl_khr_gl_depth_images : enable in opencl_program.cl Per il resto un capolavoro. 😍​
 
pleases updatade
 
I tried to test on tester but it's not working, tester stops showing message "Tester stopped because OnInit returns non-zero code 1" Please update it So everybody can test it and understand it what is exactly doing.
 

I am getting an error loading the file "our_model.net".  Is there a sample file to load?  Please provide some guidance here.

This is the tester error log:

inputs:

KI 0 10:07:44.145 Core 1   Model=our_model.net

OM 0 10:07:44.145 Core 1   BarsToPattern=3

PJ 0 10:07:44.145 Core 1   Common=true

NK 0 10:07:44.145 Core 1   TimeFrame=5

DP 0 10:07:44.145 Core 1   TradeLevel=0.9

KD 0 10:07:44.145 Core 1   Lot=0.01

FK 0 10:07:44.145 Core 1   MaxTP=500

IR 0 10:07:44.145 Core 1   ProfitMultiply=0.8

IS 0 10:07:44.145 Core 1   MinTarget=100

CF 0 10:07:44.145 Core 1   StopLoss=300

KL 0 10:07:44.145 Core 1   UseOpenCL=true

IP 0 10:07:44.145 Core 1 2023.12.01 00:00:00   Error of load mode our_model.net: 5008

PR 2 10:07:44.145 Core 1 tester stopped because OnInit returns non-zero code 1

LG 2 10:07:44.216 Core 1 disconnected

KP 0 10:07:44.216 Core 1 connection closed

 

i have error please update 



Error of load mode our_model.net: 5008


 
This error because "our_model.net" file is not given as input.  without input file it cannot read and throws error.
 
Error of load mode our_model.net: 5008
 
Yuanchang Wu #:
Error loading our_model.net mode: 5008

ERR_WRONG_FILEHANDLE

5008

Wrong file handle

Check file path

 

Даже если явно указать путь к файлу модели, бот его все равно не видит))))

 

Good afternoon,

I am trying to run the first script from the book, which generates a csv file.

It is called initial_data.mq5.

When running the script on the first step:

If(CopyClose(_Symbol, PERIOD_M5, Start, End, close) <= 0 ||

CopyOpen(_Symbol, PERIOD_M5, Start, End, open) <= 0 ||

CopyHigh(_Symbol, PERIOD_M5, Start, End, high) <= 0 ||

CopyLow(_Symbol, PERIOD_M5, Start, End, low) <= 0)

return;

CopyClose is always equal to -1

and the script crashes, re-runs do not help and as I read in the comments

this is a normal situation and means that there is no data from the server.

However, I do not fully understand how the path to the data files is written in this script.

It is written in the MQL5 documentation:


For example, EURUSD symbol data from the MetaQuotes-Demo trade server will be located in theterminal_directory\bases\MetaQuotes-Demo\history\EURUSD\folder.


And I do have files with .hcc resolution and a subdirectory \cache with files like H4.hc on it


But in the script initial_data.mq5, there is only one place where the path is written.

PrintFormat("Correlation coefficients saved to file %s\\\\Files\\\\%s",

TerminalInfoString(TERMINAL_DATA_PATH), FileName);


I output TERMINAL_DATA_PATH

2024.06.16 22:53:39.982 path (EURUSD,M5) dataPath =C:\Users\HPAppData\Roaming\MetaQuotes\Terminal\D0E8209F77C8CF37AD8BF550E51FF075


What should I do to correctly specify the path to these files or should it automatically hook them from the terminal directory according to MQL5 logic?

How to download data to a csv file?