See OrderSend() function:
Parameters:
symbol | - | Symbol for trading. |
cmd | - | Operation type. It can be any of the Trade operation enumeration. |
volume | - | Number of lots. |
price | - | Preferred price of the trade. |
slippage | - | Maximum price slippage for buy or sell orders. |
stoploss | - | Stop loss level. |
takeprofit | - | Take profit level. |
comment | - | Order comment text. Last part of the comment may be changed by server. |
magic | - | Order magic number. May be used as user defined identifier. |
expiration | - | Order expiration time (for pending orders only). |
arrow_color | - | Color of the opening arrow on the chart. If parameter is missing or has CLR_NONE value opening arrow is not drawn on the chart. |
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
i would like to write a comment for each trade make by my EA.
each EA will write is own comment in "comment" field
any idea how to d, i found only how to read comment not to write ?
many thanks
Laurent