//----------------------------------------------------------------------------------------------// // // // What type of program is this? // // // //----------------------------------------------------------------------------------------------// This program uses OpenCL to speed up calculations, to run it you need to have an appropriate device - GPU or CPU with good integrated graphics. This program is a script type. However, it is not necessary to place it in the scripts folder of your terminal. For ease of use, it can be placed in the same folder where the "SolarTrade Suite" series indicators are located. After downloading, you place it there yourself. //----------------------------------------------------------------------------------------------// // // // What is it for? // // // //----------------------------------------------------------------------------------------------// This utility is designed for training or additional training of neural networks contained in the corresponding indicators. It is recommended to use this approximately no later than one-two weeks after the last use or when the corresponding indicator is first turned on on a previously unused timeframe or symbol. //----------------------------------------------------------------------------------------------// // // // How to get the input data file for training the corresponding neural networks? // // // //----------------------------------------------------------------------------------------------// Run the appropriate indicator with the "AI" ​​option and "Save" option enabled on the symbol and timeframe you need, the exception is the monthly timeframe "MN1" - the required file with input data for training will be created automatically. After that, if your GPU or other OpenCL device is not very powerful, the indicator can be disabled while the utility being used trains the AI. //----------------------------------------------------------------------------------------------// // // // Description of the menu of this program. // // // //----------------------------------------------------------------------------------------------// 1) Progrm: - Select from the drop-down list the indicator from which the training data was obtained. 2) Symbol: - If the symbol of the chart on which the training program is running matches the symbol of the data for training, then this field can be left blank, otherwise manually enter the symbol name. For example: "EURUSD" or "XAUUSD" or "BTCUST" ... 3) Tframe: - If the chart timeframe on which this program is launched coincides with the input data timeframe, then leave "PERIOD_CURRENT", or select the timeframe of the data for training from the drop-down list. 4) PrgMod: - "Learn" is the main operating mode of this program; In this mode, AI is trained. The second operating mode of this program "Clean" is designed to clean up the accumulated large number of input data files for AI training, since in the process of using indicators with the "Save" option enabled, the input data for AI training is automatically saved to the computer's hard drive and with high values ​​of "MAX_BARS_IN_CHART" they can take up a lot of space. 5) Wreset: - Activate this option if you want to start training the AI ​​from scratch. In this case, the old AI parameters will be reset and additional training will not be performed this time, but will start again. 6) InpDel: - If this option is activated, the file with the input data for training the AI ​​will be immediately deleted after loading into the program and to get a new one you will need to run the corresponding indicator on the corresponding symbol and timeframe again. This is necessary so as not to clutter up your computer's hard drive with unnecessary large files. 7) Device: - 0 - means automatic selection of OpenCL device, or look in the terminal on the "tools" panel in the "experts" tab for a list of devices with the corresponding numbers and use the one you need. This list will appear after the program is launched. 8) Passes: - The number of passes of AI training epochs. If you are training AI from scratch, you can set this value to "2", but it is not necessary, otherwise you can leave the value "1". More than "2" will most likely not bring any benefit, but will only increase the training time. 9) Trelax: - 0 - means no delay during program execution, or enter the number of seconds that will be used as a delay between iterations to protect the OpenCL device from overheating. The higher the number, the longer the training time. 10) MulObj: - This is the coefficient of multiplication of the size of the object of the "STOP" button. It can be used if the program could not automatically calculate the size correctly or you are not satisfied with it. For example, "2" will double the size, and "0.5" will decrease it by 2 times. 11) MulTxt: - This is the multiplication factor of the text size of the "STOP" button. It can be used if the program could not automatically calculate the size correctly or you are not satisfied with it. For example, "2" will double the size, and "0.5" will decrease it by 2 times. //----------------------------------------------------------------------------------------------// // // // Features of using this program. // // // //----------------------------------------------------------------------------------------------// 1) Before starting, make sure that your computer meets the minimum hardware requirements: 8 gigabytes of RAM and a GPU or other OpenCL device with 4 gigabytes of memory. Also make sure that OpenCL support is enabled in the terminal settings and the appropriate device is selected. Please check for yourself: "How many simultaneously running programs your GPU, CPU and RAM can handle?", for example using "Windows Task Manager". If the training data is too big/long, which depends on the "MAX_BARS_IN_CHART" parameter that you set in the terminal settings, then the program may fail to start due to insufficient memory - in this case, try creating a new file with the input data for training by reducing the above parameter in the terminal settings. For example, for a GPU with 4 gigabytes of memory, I use "20 000". 2) Depending of your computer capabilities (CPU, GPU, RAM and HDD) it may take some time to initialize the program after launch, so do not worry if nothing appears in the startup window right away - just wait if the program does not stop working itself. 3) In the lower right corner of the program window, the "STOP" button will appear - it is better to use it if you do not want to wait for automatic completion, as this gives a greater guarantee that the parameters of the trained AI will be saved to the hard drive. And here too it may take some time to complete the program after pressing the "STOP" button, just like when starting - try not to interrupt it forcibly, but patiently wait for it to complete automatically. 4) While running "AI Learn Utility" you will see in the window of the running program the calculated error of each neural network included in the general ensemble. These errors are displayed as a percentage as the most probable deviation from the real value of what will be predicted. For different indicators as well as different symbols and timeframes the achieved level of the minimum error will be different - for some such as "Earth", "Mars" and "Venus" it is normal that it is in the region of about 22-8%, for the rest 12-2%. The calculation of the error and the prediction itself is made using methods of advanced mathematical and statistical analysis and machine learning, but the price of a financial instrument can be affected by other events not taken into account by such methods, such as political intentions, environmental events, weather conditions, etc. Therefore, keep in mind: "!!! WARNING: This AI can make mistakes - be sure to check its predictions for correctness !!!". To have the most complete picture of the most probable price behavior in the future, we recommend purchasing all products of the "SolarTrade Suite" series and additionally using other methods of mathematical, statistical and fundamental economic analysis. 5) All parameters are saved to the hard drive in the terminal folder "//Common//Files//SolarTradeSuite//... ". If you have a link to download ready-made parameters for AI, then after downloading, copy them here. 6) Don't forget to manually make a backup copy of the AI ​​parameters into a separate folder you created yourself. 7) If you don't like the previously trained AI, just find the corresponding subfolders with the names of the corresponding indicator, symbol and timeframe in the folder specified above - delete files from 0 to 7 with the extension ".wgt", or enable "Wreset" option during program startup. After that, you can train the AI ​​from scratch. The file with input data for AI training has the extension ".dat" - it is created automatically every time you run the corresponding indicator with the "AI" ​​option and "Save" option enabled. 8) When you run indicator in the strategy tester, when the "AI" option is enabled, incorrect results may be displayed because during training, the latest data is given more weight than the earlier data. //----------------------------------------------------------------------------------------------// // // // Additional questions. // // // //----------------------------------------------------------------------------------------------// 1) Please feel free to ask questions in the discussion tab on the corresponding indicator page of the MQL5.com website. 2) Email for communication: gerasimovadam@gmail.com , tgwls2@gmail.com .