backtestor it returns a 5121 error (ERR_DATABASE_INVALID_HANDLE), that does not otherwise occur when I run it properly on live trading. I have it running everytime OnTick and is instrumental to my code as you can see it holds Calendar events data. I looked around for ages but saw not forum posts on this issue. Does anyone know if you even can access a database through the MT5 backtestor or not? If so what am I doing wrong?
Every time I run this through the - Working with Excel (tools, indicators, conversion ...)
- Raw Ideas
- My EA does buy and sell automatically when I backtest it is there anyone that can help me to solve this issue?
Sebastian Clarke:
Every time I run this through the backtestor it returns a 5121 error (ERR_DATABASE_INVALID_HANDLE), that does not otherwise occur when I run it properly on live trading. I have it running everytime OnTick and is instrumental to my code as you can see it holds Calendar events data. I looked around for ages but saw not forum posts on this issue. Does anyone know if you even can access a database through the MT5 backtestor or not? If so what am I doing wrong?
Every time I run this through the backtestor it returns a 5121 error (ERR_DATABASE_INVALID_HANDLE), that does not otherwise occur when I run it properly on live trading. I have it running everytime OnTick and is instrumental to my code as you can see it holds Calendar events data. I looked around for ages but saw not forum posts on this issue. Does anyone know if you even can access a database through the MT5 backtestor or not? If so what am I doing wrong?
I am quite sure, I did this in tester/debugger... And I remember it working.
Have you tried with a normal file?
And debugged it?

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