MetaEditor features AI Assistant – the advanced automatic code completion tool powered by the OpenAI-based models. Write a trading idea in a natural language, and AI Assistant will offer its MQL5 implementation. This opportunity will be useful to everyone:
Add a comments with a prompt to the program code or part of the function you need to add. After that select "Prompt to AI Assistant" in the menu or press Ctrl+Alt+\. The neural network will analyze your prompt and will offer you code options to implement your idea.
Depending on the file type, the string "MQL5 language", "Python language" or "C++ language" is automatically inserted at each prompt beginning. Thus, the neural network will provide the result in the required language.
In addition to writing new code, AI Assistant can explain the existing one. Select the desired code part and click "Explain via AI Assistant". Code explanation generated by the neural network will be added as a comment above the selected part.
AI Assistant is currently free and is already enabled in the editor. There are several options available under Tools \ Options \ AI Assistant:
Payment settings:
Prompt settings: