It's NOT the code, To execute the code you need the 'History'' which is not build correctly. I have the same error with experts which did run on this machine - and still do run on another machine - using the SAME broker and account. It MUST BE anything with Metatrader or the tester.
If you read the answer of the OP, you will see it WAS a code issue, trying to access an inexistant timeframe data. And it happened randomly due to an uninitialized variable.
Sorry, but your 2 posts are useless as they don't provide any technical details about the issue. Check your code.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
It's NOT the code, To execute the code you need the 'History'' which is not build correctly. I have the same error with experts which did run on this machine - and still do run on another machine - using the SAME broker and account. It MUST BE anything with Metatrader or the tester.
If you read the answer of the OP, you will see it WAS a code issue, trying to access an inexistant timeframe data. And it happened randomly due to an uninitialized variable.
Sorry, but your 2 posts are useless as they don't provide any technical details about the issue. Check your code.