Initializing of X failed with code -1
-

Unfortunately this is happening with an expert that I don't wish to share publicly. But, is this a standard error code? At first glance, I didn't find an answer online or here on the forums.
I've just started trying to work with arrays (this is MT5 if it matters). And I've likely done something silly. I've also used some "Run Blocks" for the first time ever. Idk if I could have done anything wrong with those ahaha.
Is there any general guidance anyone has on how I can go about troubleshooting this one?
Thanks in advance!
-
Okay, I believe I solved it. The EA I'm trying to build here, I wanted this event to only happen one time, so I put it "on Init" but for some reason, when I moved it all to "on Tick" it seemed fine.