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
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
Before posting you should read all the comments.
Forum on trading, automated trading systems and testing trading
ChartScreenShot() is saving the files as empty
Alain Verleyen, 2019.12.01 07:13
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.