there's a lot more than 2 errors, once you fix the unbalanced parenthesis, you'll see about 100 errors
ChatGPT prompts?
you are missing a whole bunch of libraries that the code uses, and you don't have the #includes at the topHi
As was said above- this code has a lot of errors you need to add end of brackets „}” after each function (OnCalculate,OnChartEvent etc. But you use a lot of libraries which are not included in the code. You need to add something like this at the top of your code:
#include <Canvas\Canvas.mqh> #include <Trade\SymbolInfo.mqh>
I don’t know others of the libraries you used here – try find them on your own and fix your code and then we might be able to help you.
Best Regards

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register