
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 Alain,
thanks for your support, however it is not working. I would like to use screenshot of historical charts in order to use algorithms of computer vision but I do not know how to proceed, it is now 3 weekd that I cannot produce images and I do not know how to circumvent the problem. Any suggestion or help?
I don't know if this is applicable here, but there can be problems if using TimeToString() when naming the file.
Probably you already know this.
The first screenshot will produce a zero KB file without the PNG extention.
The second will work.
Incidentally, the screenshot will be taken whether in visual mode or not.
I don't know if this is applicable here, but there can be problems if using TimeToString() when naming the file.
Probably you already know this.
The first screenshot will produce a zero KB file without the PNG extention.
The second will work.
Incidentally, the screenshot will be taken whether in visual mode or not.
Are you saying that you can take a screenshot in "normal" mode of the Strategy Tester ?
Yes, but unfortunately any indicators that you may have in the tester template will not show.
I sometimes find it useful though as any objects that the EA may draw are shown.
Yes, but unfortunately any indicators that you may have in the tester template will not show.
I sometimes find it useful though as any objects that the EA may draw are shown.
Can you demonstrate that ? I have run the code that I am using in Visual mode, in "normal" mode and it doesn't take any screenshot.
I changed the code slightly
and the files
Yes, I did delete all files before running the test
I changed the code slightly
and the files
Yes, I did delete all files before running the test
You are right, it works, the code I was using was not working in "normal" mode due an other problem. However it seems Comment() are not taken into account. Anyway, good to know.
Actually checking the previous posts, I see I answered to an MT5 question, while this is well an MT4 topic, so the confusion. With MT5 Strategy Tester, you get empty screenshots whatever the testing mode used.
You are right, it works, the code I was using was not working in "normal" mode due an other problem. However it seems Comment() are not taken into account. Anyway, good to know.
Actually checking the previous posts, I see I answered to an MT5 question, while this is well an MT4 topic, so the confusion. With MT5 Strategy Tester, you get empty screenshots whatever the testing mode used.
Wow!
That's actually a step backwards for 5!
I just checked and taking screenshot in Visual mode of the tester is working perfectly fine.
Hi Alain,
there is some discrepancy from what you and I get, I hope we can solve that in this forum. Still I get empty images.
I am using Metatrader 5 version 5.00 build 2233
Here is the code I use and in tester both in normal and visual they produce empty files. I run the code both on Mac and Windows 10, but i get the same results.
I do not know how to proceed, any ideas or help?
Thanks,
Marco
Hi Alain,
there is some discrepancy from what you and I get, I hope we can solve that in this forum. Still I get empty images.
I am using Metatrader 5 version 5.00 build 2233
Here is the code I use and in tester both in normal and visual they produce empty files. I run the code both on Mac and Windows 10, but i get the same results.
I do not know how to proceed, any ideas or help?
Thanks,
Marco
I got a temporal solution working both in Mac and Windows: let the code i posted run on MT4, only on MT4 you can catch screenshot during testing mode.
Please, watch out when you install MT4 since there is a known issue with links for download: https://www.mql5.com/en/forum/165973/page3