Questions from Beginners MQL5 MT5 MetaTrader 5 - page 199
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
Good afternoon, why is the function not defined (message 'OrderModify' - function not defined):
Have you connected the CTrade class?
Yes, it is connected.
First, in MetaEditor apply code styler (Ctrl+,). After that deal with missing curly braces ( } ).
ORDER_TYPE_TIME must be one of the constants:
ENUM_ORDER_TYPE_TIME
Identifier
Description
ORDER_TIME_GTC
Order will be in the queue until it is removed
ORDER_TIME_DAY
Order will be valid for the current trading day only
ORDER_TIME_SPECIFIED
Order will be valid until the expiry date
ORDER_TIME_SPECIFIED_DAY
The order will be in effect until 00:00 on the specified date. If that time does not fall on a trading session, the expiration will be at the nearest trading time.
Thank you helps)))))
First, in MetaEditor apply the code styler (Ctrl+,). Then deal with the missing closing curly braces ( } ).
ORDER_TYPE_TIME must be one of the constants:
ENUM_ORDER_TYPE_TIME
Identifier
Description
ORDER_TIME_GTC
Order will be in the queue until it is removed
ORDER_TIME_DAY
Order will be valid for the current trading day only
ORDER_TIME_SPECIFIED
Order will be valid until the expiry date
ORDER_TIME_SPECIFIED_DAY
The order will be in effect until 00:00 on the specified date. If that time does not fall on a trading session, the expiration will be at the nearest trading time.
First, in MetaEditor, apply a code styliser (Ctrl+,).
First, in MetaEditor apply the code styler (Ctrl+,). Afterwards, deal with the missing closing curly braces ( } ).
By the way I have this command for some reason puts the header of the function)))))
Ctrl and <
or in menu service => styler
Ctrl and <
or in the service menu => styling tool
What is the status of the order if it is closed by a MetaTrader when the SL or TP condition is met? And will it be on the ticket at all?
What is the status of the order if it is closed by a MetaTrader when the SL or TP condition is met? And will it be on the ticket at all?