This forum is a space for developers who are genuinely learning and working with MQL5. If you're using an AI tool (like ChatGPT or similar) to generate code, it's your responsibility to also use that tool to debug or refine the output it creates.
Posting AI-generated code here (especially without understanding it) and expecting others to fix it for you is not acceptable. It’s not fair to ask human developers to clean up or troubleshoot code that was mass-produced by a machine. That’s not collaboration, that’s outsourcing without consent.
If you want to learn, you're absolutely welcome here, and we'll help you. But if your intent is to let an AI generate everything and offload the work of fixing it to others, this is not the right place.
Please take this into account before posting further.
This forum is a space for developers who are genuinely learning and working with MQL5. If you're using an AI tool (like ChatGPT or similar) to generate code, it's your responsibility to also use that tool to debug or refine the output it creates.
Posting AI-generated code here (especially without understanding it) and expecting others to fix it for you is not acceptable. It’s not fair to ask human developers to clean up or troubleshoot code that was mass-produced by a machine. That’s not collaboration, that’s outsourcing without consent.
If you want to learn, you're absolutely welcome here, and we'll help you. But if your intent is to let an AI generate everything and offload the work of fixing it to others, this is not the right place.
Please take this into account before posting further.
Thank you for the guidance, and I apologize for the misunderstanding. I understand and respect the forum's rules.
The reason I posted the code is that I'm genuinely in a learning phase. I did try to fix it myself first but was still stuck, and seeing the correct approach from experienced developers helps me a lot.
I'll be more careful in the future and will be sure to explain my own attempts more clearly. Thanks again.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have this EA code that seems syntactically correct, but it always fails to compile with an "unexpected token" error. The error appears on different lines each time (like line 75 in the attached screenshot), even though the lines look correct.
I have already tried cleaning the code by pasting it into Notepad and saving it with ANSI encoding, but the problem still persists. Can anyone see what might be wrong with my file or the code itself? I have attached the .mq5 file for you to check.
Thank you for your help.