How can I leave a comment when placing an order?

 

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

Files:
Capture.PNG  9 kb
 
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:

Documentation on MQL5: Constants, Enumerations and Structures / Data Structures / Trade Request Structure
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.

How can I change the caption font size?
The picture is attached.

Thanks
Improving Panels: Adding transparency, changing background color and inheriting from CAppDialog/CWndClient
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