Hello pls i need hekp with a code review of my code: The error message is attached in the image
- Machine learning
- Learn how to design a trading system by Accelerator Oscillator
- Help with error message!
You are using MQL4 functionality to code an MQL5 EA. That will not work. The two platforms are not compatible, and there are many differences between the MQL4 and MQL5 languages.
You will need to dedicate some time to learning how MQL5 Trade functionality differs from that of MQL4.
Also, study the difference how Indicator functions are used between the two. In MQL5 you first need to obtain a handle and then use CopyBuffer to get the values.
Your code also has unbalanced braces. You should fix that too.