handles are normally loaded/initialised in the OnInit function. What errors have you got mentioned in editor?
looks like you got this written by an AI or online generator? am i right? These are ridiculed on this forum. There are several threads describing the problems and issues of using these.
I recommend that you look in codebase. There is many free codes there for you to look at, copy, and learn how to code better than 99% of the AI's.

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
What is wrong: