MetaEditor provides integration with the advanced automatic coding assistant Copilot. It is powered by the OpenAI-based models. Write a trading idea in a natural language, and Copilot 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 Copilot" 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, Copilot can explain the existing one. Select the desired code part and click "Explain via Copilot". Code explanation generated by the neural network will be added as a comment above the selected part.
Copilot is currently free and is already enabled in the editor. There are several options available under Tools \ Options \ Copilot: