any assistance please... my code has undeclared identifier errors for functions OrderSend() and iStochastic(). im still getting undeclared identifier errors for parameters of both function even after including the trade.mqh library.
I'm trying to run a code snipet which was generated by AI and its giving me errors The error are caused by two function that im using in my code namely OrderSend() and iStochastic(). these function both have parameters and some of the parameters are variables. for example , iStochastic() has a parameter of a viable '"MODE_MAIN" and "MODE SIGNAL" the other errors a generated by the OrderSend() function and its undeclared identifires "OP_SELL" and ""Bid"". I've attached a snapshot of the compiled code and error messages
It seems you are trying to use MQL4 code in MQL5, which is not valid. Is this ChatGPT generated code?
Please, don't request help for ChatGPT (or other A.I.) generated code. It generates horrible code, mixing MQL4 and MQL5. Please use the Freelance section for such requests.
- 2024.01.06
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use