//----------------------------------------------------------------------------------------------// // // // What type of program is this? // // // //----------------------------------------------------------------------------------------------// This program is a indicator type. If you received the limited demo version not through the MQL5.com store, then after downloading, manually place the file in the terminal's "indicators" folder. 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. //----------------------------------------------------------------------------------------------// // // // What is it for? // // // //----------------------------------------------------------------------------------------------// This indicator uses AI to predict the future behavior of its value. You can see how its readings change with the AI ​​option "on" or "off". If you turn on AI, some of its values ​​are shifted back in time on the chart, and its latest values ​​are calculated by AI. For some indicators, such as "Mercury" or "Earth", these are color values, for others, the significant values ​​of the indicator. When first launched on a previously unused symbol or timeframe, the AI ​​uses zero parameters to calculate the result, which in turn leads to an incorrect prediction. In this case, you need to turn off the AI ​​option or remove the indicator itself from the chart until the AI ​​is trained using the "AI Learn Utility". It is recommended to use "AI Learn Utility" 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. 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. //----------------------------------------------------------------------------------------------// // // // 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. The exception is the monthly timeframe "MN1" due to the lack of input data for training due to the wide time range. Another limitation is the required minimum number of bars in history - 600, if not met, the indicator will not start. //----------------------------------------------------------------------------------------------// // // // Description of the menu of this program. // // // //----------------------------------------------------------------------------------------------// 1) AI: - Enables/disables the use of AI to predict values. 2) Save: - If this option is active, then after the indicator is launched, a file containing input data for training the AI ​​will be saved to your computer's hard drive. It can be turned off if you already have current parameters for the AI ​​so as not to clutter up your computer's hard drive with unnecessary large files. 3) 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. 4) Volume: - What volume values ​​do you want the AI ​​to use - tick or real. 5) Combined color settings control - some color parameters that do not have a wide range are set in the usual/standard way in the "colors" tab during programs startup, but there is a wide range colors that can be set by maximum, average and minimum values ​​in the "input parameters" tab. Intuitively try to play with these parameters and you will understand which one is responsible for what. 6) Some indicators use additional parameters to set color values, for example where colors vary in a wide range and therefore cannot be set by standard built-in tools in the "colors" tab. In most cases, an automatic calculation of the average value is used depending on the set chart background color, which you must set yourself before running the indicator, for example, a black background or white. In case there is no average value, depending on the background color, the program will calculate a wide range of indicator value colors from the maximum and minimum that you set in the indicator settings. But there are exceptions, for example, "Earth" - there you set the average value yourself so that it does not merge with the background. Or you can intuitively determine the purpose of the parameter by its name, if the name contains the letter "H" then this is its highest value, the letter "M" is the average and the letter "L" is the lowest. There are codes for the arrows objects, the meaning of which you can find at the link: https://www.mql5.com/en/docs/constants/objectconstants/wingdings 7) For the "Venus" indicator, there are special named parameters at the very bottom "Arrow Cd#", they mean the arrow code described above. 8) For the "Venus" indicator, there are special named parameters at the very bottom "Arrow Sh#", they mean the shift/indent from the edge of the indicator or space between values/readings, so that all the indicator readings fit there. 9) The size and thickness of lines or arrows can be set in the standard "colors" tab. //----------------------------------------------------------------------------------------------// // // // Features of using this program. // // // //----------------------------------------------------------------------------------------------// 1) Before starting, make sure that your computer meets the minimum hardware requirements: to run the indicators themselves, you don't need a particularly powerful device, the main thing is OpenCL support, but to run "AI Learn Utility" 8 gigabytes of RAM and a GPU or other OpenCL device with 4 gigabytes of memory needed. 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 "AI Learn Utility" 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) The exception is the monthly timeframe "MN1" due to the lack of input data for training due to the wide time range. Another limitation is the required minimum number of bars in history - 600, if not met, the indicator will not start. This applies to recently introduced financial instruments, such as cryptocurrency, so the restrictions for such financial instruments will be expressed in the use of an even lower timeframe. 3) 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. 4) 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. 5) All AI parameters, if enabled, 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 "AI Learn Utility" 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. //----------------------------------------------------------------------------------------------// // // // Using these indicators in your programs. // // // //----------------------------------------------------------------------------------------------// Buffer# to use in "CopyBuffer" function of MQL5 code: 1) Mercury - Line: #0, Color #1. 2) Neptune - Line: #0,#1,#2,#3,#4,#5. 3) Uranus - Line: #0,#1, Color: #2. 4) Venus - Line: #9,#10,#11,#12,#13, Color: #14, Volume: #33, Color: #34. 5) Mars - Line: #0, Color: #1, Volume: #10, Color: #11. 6) Earth - Color: #4. //----------------------------------------------------------------------------------------------// // // // 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 .