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
Hi,
I'm facing really weird problems with a client of my EA. Let me explain:
1- Camarilla PIVOT:
I can run Strategy Tester without any problem using this resource (see attached source) for entire year... but when using in DEMO (realtime DEMO account), the EA reports "Cannot get Array for PIVOT BUFFER" (in real, the error 4807 - Invalid Handler). How can the Indicator run for hours in DEMO and suddenly raise this error? And why does not this error raise in TESTER mode for months?
2- Custom LOG name
I'm using a custom LOG file to set some messages. This file is created in the default location (C:\Users\...\AppData\Roaming\MetaQuotes\Tester\...\Agent-127.0.0.1-3000\MQL5\Files) but I'm using a custom name to separate the LOG of each pair. My code is:
which results in something like "USDGBP.2020.10.12_log.txt" . In TESTER mode I get all files without any problem, but, when running in DEMO mode, I receive "ERROR OPENING LOG FILE" , which means "Inalid Handle".
The code to write each LOG file is
So, do you know WHY am I getting different behaviours between TESTER and DEMO mode?
I tried DEMO in FBS and ICM Brokers with the same results.
I appreciate for any help.