- MQL5 Wizard: Development of trading robots for MetaTrader 5
- Compilation - Developing programs
- Articles on the development of trading applications

- www.mql5.com
There is something important you need to consider: when you publish on the Market, you are not just sharing an EA, you are offering a commercial product that other users may buy. This carries a responsibility, and it also requires at least a basic level of technical and practical knowledge.
The error you mentioned is a basic one and is well documented. If, after reading the explanation, you are still unable to apply it, then most likely you are not yet ready to publish products on the Market. I am not saying this as a criticism, but as a reality. If you need others to fix your code for you, then in practice, you are not the one developing the product.
We are here to help people learn, not to do the work for them. I encourage you to keep studying and practicing, and once you reach a point where you can solve this kind of issue on your own, you will be in a much better position to offer a quality product.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use