siavash ahi: I have an expert. A trading position is opened by the expert, I want to enter the trading position, My desired text in the comment column along with the order. I need its codes
Modify your EA's source code to include the comment as follows:
- If using the OrderSend() function, fill in the "comment" field of the MqlTradeRequest structure.
- If using the CTrade class from the Standard Library, fill in the "comment" parameter for the methods PositionOpen(), OrderOpen(), etc.

Documentation on MQL5: Constants, Enumerations and Structures / Data Structures / Trade Request Structure
- www.mql5.com
Interaction between the client terminal and a trade server for executing the order placing operation is performed by using trade requests. The...
Thank you veryyyyy much for your help, it worked.
I have one more question.
The picture is attached.
Thanks

Improving Panels: Adding transparency, changing background color and inheriting from CAppDialog/CWndClient
- www.mql5.com
In this article, we continue studying the use of CAppDialog. Now we will learn how to set color for the background, borders and header of the dialog box. Also, this article provides a step-by-step description of how to add transparency for an application window when dragging it within the chart. We will consider how to create child classes of CAppDialog or CWndClient and analyze new specifics of working with controls. Finally, we will review new Projects from a new perspective.
Files:
Capture.PNG
17 kb

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello friends;
I have an expert.
A trading position is opened by the expert, I want to enter the trading position, My desired text in the comment column along with the order.
I need its codes
tnk