Im getting 2 errors one is ')' - unexpected end of program and the other is '{' - unbalanced parentheses
![Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Order Properties Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Order Properties](https://c.mql5.com/36/61/documentation-on-mql5-constants__21.png)
- www.mql5.com
- order error 138. code attached help would be appreciated
- ordersend error 138... any advice would be appreciated
- EA will not run on multiple pairs, need help
Is this your code, or did you generate it in ChatGPT?
If it is your code, then please take some time to learn the basics of how you have to define functions, how to define code blocks with and also how to balance parenthesis.
If it was generated code, then we are unable to help you, because any advice we give, you will not be able to understand or apply because you don't know how to code it yourself.
Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
Next time, post in the correct place. The moderators will likely move this thread there soon.
// Modify the existing buy order OrderModify(OrderSelect(ticket, SELECT_BY_TICKET, MODE_TRADES), OrderOpenPrice(), stopLossPrice, takeProfitPrice, void OnDeinit(const int reason) {}
- OrderSelect does not return a ticket number, modify will never work.
- OrderModify incomplete, enclosing function incomplete.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use